cocoon-dev mailing list archives

[jira] Commented: (COCOON-2031) Language Exception at Runtime by the attempt to compile a random XSP

Date

Tue, 01 Apr 2008 03:28:24 GMT

[ https://issues.apache.org/jira/browse/COCOON-2031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12583986#action_12583986
]
Peter Walker commented on COCOON-2031:
--------------------------------------
Hello,
We are experiencing the same problem. I have 15 sites running the same cocoon applications,
randomly we are getting the LanguageException as described above. Today I found that 6 of
the 15 sites have this problem and will no longer compile XSP files.
We are using Cocoon 2.1.10, Tomcat 5.5.23 and Java 1.6.0_03 (JRE), Redhat Enterprise Linux
(2.6.9.34)
Previously I though this may be caused due to lack of physical memory as our machine was running
short on memory. I have since upgraded and I have not see the issue for a few weeks but its
back.
What is strange is that the *.java files in the tomcat/work directory are quite different
between two webapps. I would expect that these are the same, the only thing that should be
different is the dateCreated variable
Any suggestions?
> Language Exception at Runtime by the attempt to compile a random XSP
> --------------------------------------------------------------------
>
> Key: COCOON-2031
> URL: https://issues.apache.org/jira/browse/COCOON-2031
> Project: Cocoon
> Issue Type: Bug
> Components: Blocks: XSP
> Affects Versions: 2.1.7
> Reporter: Sebastian Wenzky
> Priority: Critical
>
> Hi there,
> at my topic you have a first imagination about my current (very hard) problem.
> But at fist, my enumeration of my software components:
> - Cocoon 2.18
> - JBoss (Version 4) -> Tomcat.
> Indeed, i have no explanation, for my confuse problem and i don´t know, what kind of
state occures that. Normally, when cocoon starts at first time there are no problems. I can
go, visit different pages (which will be correctly compiled) and so on... But sometimes later
the error occurs suddenly, without any real worthwhile exception message to me.
> But the tracer in cocoon said to me following text(an excerpt):
> ================================================================================================
> ERROR (2007-03-10) 07:44.24:308 [sitemap.handled-errors] (/jobapp3/content/fhj/user.xsp$user-search$meta-html)
TP-Processor8/ErrorHandlerHelper: Language Exception org.apache.cocoon.ProcessingException:
Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling
user_xsp:
> ERROR 1 (org/apache/cocoon/www/docs/content/user_xsp.java):
> ...
> "name",
> "name",
> "CDATA",
> "pst_id"
> // start error (lines 1044-1044) "Syntax error, insert ")" to complete Expression"
> );
> // end error
> this.contentHandler.startElement(
> "http://apache.org/xsp/request/2.0";,
> ...
> ERROR 2 (org/apache/cocoon/www/docs/content/user_xsp.java):
> ...
> "get-parameter",
> "xsp-request:get-parameter"
> );
> // start error (lines 1063-1063) "Syntax error on token ")", delete this token"
> );
> // end error
> if ( pstID != null )
> {
> ...
> Line 1044, column 0: Syntax error, insert ")" to complete Expression
> Line 1063, column 0: Syntax error on token ")", delete this token
> at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.loadProgram(ProgramGeneratorImpl.java:409)
at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:280)
at org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:170)
at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeline(AbstractProcessingPipeline.java:385)
at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(AbstractCachingProcessingPipeline.java:620)
at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipeline(AbstractProcessingPipeline.java:503)
at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:455)
at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:120)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
at org.apache.cocoon.components.treeprocessor.sitemap.SwitchSelectNode.invoke(SwitchSelectNode.java:103)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:46)
at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:138)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:92)
at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:234)
at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:176)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:243)
at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:117)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:46)
at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:138)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:92)
at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:234)
at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:176)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:243)
> at org.apache.cocoon.Cocoon.process(Cocoon.java:608)
> at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1123)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:220)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.jboss.web.tomcat.tc4.statistics.ContainerStatsValve.invoke(ContainerStatsValve.java:76)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
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:2417) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:65)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
> at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
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.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:197)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)
> at java.lang.Thread.run(Thread.java:534)
> ================================================================================================
> Once i´ve already said this, that this error occurs at a different XSP as before. Why
ever. Futhuermore, as soon as this error appears, it seems to be that cocoon will turn off
his intern compiler, so that following XSP Sites which was at this time still not visit(and
so not compiled!) can not compiled by cocoon anymore until cocoon restarts.
> I don´t know, what this is, but i still believe, its possibly that this error can be
a bug of cocoon.
> Can anyone help ?
> Best Regards
> Sebastian Wenzky
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.