Error while loggin to cocoon

2004-08-24 Thread Anna Bikkina

I get this error today when I was trying to login to cocoon portal server.
Can someone please shed some light on this.

An Error Occurred
Failed to execute pipeline.

org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
java.lang.NullPointerException

cause: java.lang.NullPointerException

full exception chain stacktrace[show] 

Original Exception: java.lang.NullPointerException
at
org.apache.cocoon.portal.event.impl.DefaultEventManager.processEvents(Defaul
tEventManager.java:293)
at
org.apache.cocoon.portal.impl.PortalManagerImpl.process(PortalManagerImpl.ja
va:86)
at
org.apache.cocoon.portal.impl.PortletPortalManager.process(PortletPortalMana
ger.java:228)
at
org.apache.cocoon.portal.generation.PortalGenerator.generate(PortalGenerator
.java:94)
at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLP
ipeline(AbstractProcessingPipeline.java:581)
at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline
.processXMLPipeline(AbstractCachingProcessingPipeline.java:196)
at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(Abs
tractProcessingPipeline.java:525)
at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(Seri
alizeNode.java:155)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:84)
at
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTyp
eNode.java:173)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:84)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:165)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:107)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:162)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:107)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:136)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:371)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:312)
at
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNod
e.java:133)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:84)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:165)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:107)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:162)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:107)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:136)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:371)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:312)
at org.apache.cocoon.Cocoon.process(Cocoon.java:656)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1112)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at

Large xml's in cocoon

2004-05-27 Thread Anna Bikkina
Hi,

I have a xml file that contains database rows. If the number of rows are 
greater than 5000 then cocoon fails to tranform them to html and display 
them. It gives a blank page with no errors.

Has anyone experienced this before? Is there a way I can  make cocoon perform 
better with big xml.?

Any suggestions,inputs are welcome.

Thanks,
Anna.



Isolation level for database

2004-05-25 Thread Anna Bikkina
Hi,

I am using cocoon's connection pool to make connections to my informix 
database. I think the connection cocoon is making is trying to lock rows in 
the database. In my application I have only reads no writes so I want cocoon 
to make dirty reads instead. Is there a place where I can set this?
set islation to dirty read;

My connection params look like this

jdbc logger=core.datasources.myserver name=myserver
  pool-controller min=3 max=10 /
  auto-commitfalse/auto-commit
  dburljdbc:informix-sqli://
dev:1000:informixserver=myserver;Database=mydatabase/dburl
  userinformix/user
  passwordpassword/password
  drivercom.informix.jdbc.IfxDriver/driver
/jdbc


Thanks,
Anna.



Informix Query Error

2004-05-25 Thread Anna Bikkina
Hi,

I am getting the following warning for informix. Can someone tell what I have 
to do to avoid this.My queries work mysteriously at times. Sometimes they 
work sometimes they dont.

WARN    (2004-05-07) 12:02.36:262   [sitemap.generator.serverpages] (/
newhistoryserver/coplets/search/firmhistoryexcel) Thread-14/
AbstractEsqlConnection: Your database [informix-online] is not being 
recognized yet. Using the generic [jdbc] query as default.  Please report 
this to cocoon-dev or to tcurdt.at.apache.org directly.


I tried to set the isolation to dirty read and set lock mode to wait but it 
doesnt help. 

Can anyone please help me with this. I am stuck.

Thanks,
Anna.



Warning for informix query

2004-05-07 Thread Anna Bikkina
Hi,

I am getting the following warning for informix. Can someone tell what I have 
to do to avoid this.My queries work mysteriously at times. Sometimes they 
work sometimes they dont.




WARN(2004-05-07) 12:02.36:262   [sitemap.generator.serverpages] (/
newhistoryserver/coplets/search/firmhistoryexcel) Thread-14/
AbstractEsqlConnection: Your database [informix-online] is not being 
recognized yet. Using the generic [jdbc] query as default.  Please report 
this to cocoon-dev or to tcurdt.at.apache.org directly.

Thanks,
Anna.



Re: Cocoon portal and excel

2004-05-04 Thread Anna Bikkina

You will also want to make
 sure that the excel page is then generated into a new frame and not as part
 of the portal page.

This is something I am looking for. How can we generate the excel page in a 
new frame. Here is the code that I used. The file is quotehistory.xsp 

I have a xsp page which has 2 submit buttons.

 input name=submit1 value=GO type=submit/
 input name=submit1 value=EXCEL type=submit/


Both refer to the same href. 
Note: The href points to the same file.
form href=cocoon:/coplets/search/quotehistory.xsp method=get

In my site map here is the match for quotehistory.xsp   . Check the map:select 
that I am using. When user clicks on GO then I want the out put to displayed 
on the screen. When user clicks EXCEL I want the output to be displayed in a 
excel file. When I click on GO its working fine, when I click on EXCEL it 
isnot generating a excel page it is displaying output in the same coplet but 
it is not tranformed well because it is not html. Also when I click on GO and 
the output comes to QuoteHistoryResult.xsp . in this page I placed a 
hyperlink that would generate excel that works. The xsl file and serializer 
that I am using are just the same and that works. Dont know where the problem 
is. 


map:match pattern=quotehistory.xsp
 
map:act type=validator
map:parameter name=descriptor 
value=context://newhistoryserver/defs/
descriptor.xml/
map:parameter name=validate-set value=securityquote/
   
 
map:generate type=serverpages 
src=quotehistoryresult.xsp 
label=raw
 map:parameter name=from 
value=quotehistory/ 
/map:generate 
map:select type=request
map:parameter name=parameter-name 
value=submit1/
map:when test=GO
map:transform 
src=context:/newhistoryserver/styles/
searchresult.xsl/ 
map:serialize/
/map:when
map:otherwise
map:transform 
src=context://newhistoryserver/styles/
page2xls.xsl/
map:serialize 
type=xls/
/map:otherwise
  /map:select
  /map:act
 map:generate src=quotehistory.xsp type=serverpages/  
 map:transform src=context:/newhistoryserver/styles/search.xsl/ 
 map:transform src=context:/newhistoryserver/styles/
dynamic-page2html.xsl/
   map:serialize/  
   /map:match 


Thank you for the patience.

Anna.


On Tuesday 04 May 2004 02:41 am, Matthew Langham wrote:
  I am using cocoon as a portal server. In one of my coplets when the
  user submits a form I want the output to be displayed in a
 
  excel file.
 
  When I have the excel operation in a submit button this
 
  doesnt work. If
 
  I use a hyperlink in the page with all information in the
 
  url then it works.

 I would take a look at the source of the generated portal page and check
 the URL in the submit button is still correct. You will also want to make
 sure that the excel page is then generated into a new frame and not as part
 of the portal page.

 Matthew



Cocoon portal and excel

2004-05-03 Thread Anna Bikkina
Hi,

I am using cocoon as a portal server. In one of my coplets when the user 
submits a form I want the output to be displayed in a excel file. 

When I have the excel operation in a submit button this doesnt work. If I use 
a hyperlink in the page with all information in the url then it works. 

Can anyone tell me how to generate an excel file as output for a coplet. I 
want the excel to be generated and the coplet should remain the same.

Please let me know if there any way of doing this.


Thanks,
Anna.



Re: InitParameters in Cocoon

2004-04-30 Thread Anna Bikkina
I could put in a properties file but its just one property so didnt know if it 
does make sense. Well if I cant reach web.xml then I have no other alternate 
anway.

Anyone else successful trying to get access to initparameters in web.xml?

Thanks,
Anna.

On Thursday 29 April 2004 06:32 pm, Upayavira wrote:
 Why do you need them there. Can't you put them somewhere else? I've
 failed before to get hold of web.xml parameters.



InitParameters in Cocoon

2004-04-29 Thread Anna Bikkina
Hi,

I have been struggling with this problem since a week. Can someone please shed 
some light.

I have some init-parameters defined in web.xml which are related to my 
application running on cocoon. When I do 
context.getInitParameter(paramname)  in a xsp it returns null. Also in 
action files

String limit1 =   
ObjectModelHelper.getContext(objectModel).getInitParameter(timelimit);

when I use the above command I get limit1 as null. Am I missing something 
here.

Thanks in advance,
Anna.




Coplets and Excel Generation

2004-03-10 Thread Anna Bikkina
OK. I posted the same question earlier but re-framed it so that someone can me 
suggestions. 

I have coplet which accepts some input keys and shoud generate a excel file. 
When I click on submit it takes to the ill formatted html file but does not 
generate a excel file.

I use the same pipeline(generator,transfomer and serializer) outside a coplet 
like in a hyperlink. It  works just fine. 

Can someone tell me where I am making a mistake. Is there anything we have to 
specify for a coplet to generate a xml file. 

my pipeline looks like this
map:generate src=context://historyserver/coplets/search/sec.xml/   
 
map:transform src=context://historyserver/styles/page2xls.xsl/ 
map:serialize type=xls/ 


Any help is greatly appreciated.

Thanks,
Anna.



Features of cocoon

2004-01-29 Thread Anna Bikkina
Hi,

I was asked to look for portal servers in the industry . I found cocoon has a 
interesting mix of XML and the portal features. Can someone please confirm if 
the following features are available with cocoon.

single sign on
Search feature( I guess it has lucene integerated)
XML data tranformable into different formats(like HTML,WML,PDF) etc
security(role base management and authentication)
Ablility to easily add new pages to the portlet
Personalization depending on users requirement for look and feel
Ability to quickly plug in new features.

Any help is very appreciated for me to decide if cocoon is the right one for 
us.

Thanks,
Anna.