Jacob Arnold wrote:
I'm applying a rather long custom logicsheet (declared in xconf) to my
XSP. I'm experiencing an annoying bug where if I hit the same page twice
in quick succession (the second time while the page is initially
compiling) then compilation stops part-way through. This only happens
when "use-store" is set to "true" for xalan in my xconf. After it
happens, there is a broken class in my work directory so the page fails
with multiple compilation errors on subsequent visits.
These seem to be the relevant log entries (apologies for the line
lengths):
*First Request*
DEBUG (2006-03-17) 09:35.13:043 [core.manager] (/myapp/test.html)
http8080-Processor1/SourceResolverImpl: Resolving 'cocoon:/test.xsp'
with base 'file:/C:/cocoon/myapp/' in context 'file:/C:/work/cocoon/'
DEBUG (2006-03-17) 09:35.13:043 [core.manager] (/myapp/test.html)
http8080-Processor1/SourceResolverImpl: Resolved to systemID :
cocoon:/test.xsp
DEBUG (2006-03-17) 09:35.13:043 [core.manager] (/myapp/test.html)
http8080-Processor1/SitemapSourceFactory: Creating source object for
cocoon:/test.xsp
DEBUG (2006-03-17) 09:35.13:043 [core.manager] (/myapp/test.html)
http8080-Processor1/EnvironmentWrapper: Setting uri (prefix=null,
uris=test.xsp)
DEBUG (2006-03-17) 09:35.13:043 [core.manager] (/myapp/test.html)
http8080-Processor1/SourceResolverImpl: Resolving
'file:/C:/cocoon/myapp/' with base 'file:/C:/cocoon/myapp/' in context
'file:/C:/work/cocoon/'
DEBUG (2006-03-17) 09:35.13:043 [core.manager] (/myapp/test.html)
http8080-Processor1/SourceResolverImpl: Resolved to systemID :
file:/C:/cocoon/myapp/
DEBUG (2006-03-17) 09:35.13:043 [core.manager] (/myapp/test.html)
http8080-Processor1/SourceResolverImpl: Resolving 'docs/test.xsp' with
base 'file:/C:/cocoon/myapp/' in context 'file:/C:/work/cocoon/'
DEBUG (2006-03-17) 09:35.13:043 [core.manager] (/myapp/test.html)
http8080-Processor1/SourceResolverImpl: Resolved to systemID :
file:/C:/cocoon/myapp/docs/test.xsp
*Second Request?*
DEBUG (2006-03-17) 09:35.13:043 [core.manager] (/myapp/test.html)
http8080-Processor1/SourceResolverImpl: Resolving 'docs/test.xsp' with
base 'file:/C:/cocoon/myapp/' in context 'file:/C:/work/cocoon/'
DEBUG (2006-03-17) 09:35.13:043 [core.manager] (/myapp/test.html)
http8080-Processor1/SourceResolverImpl: Resolved to systemID :
file:/C:/cocoon/myapp/docs/test.xsp
DEBUG (2006-03-17) 09:35.13:043 [core.program-generator]
(/myapp/test.html) http8080-Processor1/ProgramGeneratorImpl: Loading
serverpage systemId=[file:/C:/cocoon/myapp/docs/test.xsp]
markupLanguageName=[xsp] programmingLanguageName=[java] ->
normalizedName=[org\apache\cocoon\www\myapp\docs\test_xsp]
DEBUG (2006-03-17) 09:35.13:043 [core.manager] (/myapp/test.html)
http8080-Processor1/InstrumentedResourceLimitingPool: Got a
org.apache.cocoon.components.language.markup.xsp.XSPMarkupLanguage from
the pool.
DEBUG (2006-03-17) 09:35.13:043 [core.program-generator]
(/myapp/test.html) http8080-Processor1/ProgramGeneratorImpl: The
serverpage [file:/C:/cocoon/myapp/docs/test.xsp] is not in the cache yet
INFO (2006-03-17) 09:35.13:043 [core.program-generator]
(/myapp/test.html) http8080-Processor1/ProgramGeneratorImpl: The
serverpage [file:/C:/cocoon/myapp/docs/test.xsp] could not be preloaded,
will be re-created
(org.apache.cocoon.components.language.LanguageException: Unable to
preload program org\apache\cocoon\www\myapp\docs\test_xsp:
org.apache.cocoon.components.language.LanguageException: Could not load
class for program 'org\apache\cocoon\www\myapp\docs\test_xsp' due to a
java.lang.ClassNotFoundException:
org.apache.cocoon.www.encode.callsupport.docs.test_xsp)
DEBUG (2006-03-17) 09:35.13:043 [core.program-generator]
(/myapp/test.html) http8080-Processor1/ProgramGeneratorImpl: Creating
new serverpage for [file:/C:/cocoon/myapp/docs/test.xsp]
DEBUG (2006-03-17) 09:35.13:043 [core.program-generator]
(/myapp/test.html) http8080-Processor1/ProgramGeneratorImpl: Creating
sourcecode for [file:/C:/cocoon/myapp/docs/test.xsp]
<snip>
DEBUG (2006-03-17) 09:35.13:496 [core.program-generator]
(/myapp/test.html) http8080-Processor1/ProgramGeneratorImpl:
Successfully created sourcecode for
[file:/C:/cocoon/myapp/docs/test.xsp]
DEBUG (2006-03-17) 09:35.13:496 [core.program-generator]
(/myapp/test.html) http8080-Processor1/ProgramGeneratorImpl: Loading
program [org\apache\cocoon\www\myapp\docs\test_xsp]
DEBUG (2006-03-17) 09:35.13:512 [core.language.java] (/myapp/test.html)
http8080-Processor1/JavaLanguage: Compiling
C:\jakarta-tomcat-4.1.30\work\Standalone\localhost\_\cocoon-files\org\ap
ache\cocoon\www\myapp\docs\test_xsp.java
DEBUG (2006-03-17) 09:35.13:606 [core.program-generator]
(/myapp/test.html) http8080-Processor1/ProgramGeneratorImpl: Got
Language Exception
I've experienced this problem in both Cocoon 2.1.5 and 2.1.8. This
appears to be the same issue:
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=106875648724568&w=2
Any ideas? Should I enter a report in Bugzilla?
Amazing! I've never seen it. It seems to be a race condition. Please
create an issue report in jira [1].
Thanks for providing more information on this bug. ;-)
Best Regards,
Antonio Gallardo.
[1] https://issues.apache.org/jira/browse/COCOON
Thanks,
Jacob
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]