cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vgritse...@hns.com>
Subject RE: session messaging
Date Tue, 04 Sep 2001 14:07:53 GMT
Torsten,

For some reason Javac can't parse error message from java compiler. Add some debug printouts
before
line 137 and find out why parsing is failing.

> > > 	at
> > > org.apache.cocoon.components.language.programming.java.Javac.parseModernError(Javac.java:137)

Vadim


> -----Original Message-----
> From: Torsten Curdt [mailto:tcurdt@dff.st]
> Sent: Tuesday, September 04, 2001 9:25 AM
> To: cocoon-dev@xml.apache.org; dims@yahoo.com
> Subject: RE: session messaging
>
>
> > Torsten,
> >
> > Did you use the Tomcat4.0 Servlet.JAR in xml-cocoon2\lib when you did the build?
>
> Yes. For cocoon as well as for our classes!
> If there were a compatibility problem
> shouldn't there be a different exception, anyway?
>
> I just don't get it...
> Any other ideas?
>
> Thanks,
> --
> Torsten
>
> > --- Torsten Curdt <tcurdt@dff.st> wrote:
> > > An again I missed something ;) Thanx for the hints...
> > >
> > > I tried the HttpSessionBindingListener interface since this seems to be exactly
> > > what I was looking for. This interface seems to be in API 2.2 and 2.3
> > > so everything did look fine.
> > >
> > > But after my User class implemented the HttpSessionBindingListener interface
> > > I've run into really strange stacktraces:
> > >
> > > java.util.NoSuchElementException
> > > 	at java.util.StringTokenizer.nextToken(StringTokenizer.java:235)
> > > 	at java.util.StringTokenizer.nextToken(StringTokenizer.java:262)
> > > 	at
> > > org.apache.cocoon.components.language.programming.java.Javac.parseModernError(Javac.java:137)
> > > 	at
> > > org.apache.cocoon.components.language.programming.java.Javac.parseModernStream(Javac.java:119)
> > > 	at org.apache.cocoon.components.language.programming.java.Javac.parseStream(Javac.java:85)
> > > 	at
> > >
> > org.apache.cocoon.components.language.programming.java.AbstractJavaCompiler.getErrors(AbstractJavaCompiler.java:114)
> > > 	at
> > >
> > org.apache.cocoon.components.language.programming.java.JavaLanguage.compile(JavaLanguage.java:190)
> > > 	at
> > >
> >
> org.apache.cocoon.components.language.programming.CompiledProgrammingLanguage.load(CompiledProgrammingLanguage
.java:140)
> > > 	at
> > >
> > org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:276)
> > > 	at
> > >
> > org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:184)
> > > 	at org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator.java:153)
> > > 	at
> > >
> > org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:146)
> > > 	at
> > > org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:246)
> > > 	at
> > >
> > org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:108)
> > > 	at org.apache.cocoon.components.source.SitemapSource.refresh(SitemapSource.java:259)
> > > 	at org.apache.cocoon.components.source.SitemapSource.<init>(SitemapSource.java:145)
> > > 	at
> > > org.apache.cocoon.components.source.CocoonSourceFactory.getSource(CocoonSourceFactory.java:53)
> > > 	at org.apache.cocoon.components.source.SourceHandlerImpl.getSource(SourceHandlerImpl.java:132)
> > > 	at org.apache.cocoon.environment.AbstractEnvironment.resolve(AbstractEnvironment.java:229)
> > > 	at org.apache.cocoon.sitemap.ContentAggregator.setup(ContentAggregator.java:284)
> > > 	at
> > >
> > org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:146)
> > > 	at
> > > org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:246)
> > > 	at
> > >
> > org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:108)
> > > 	at
> > >
> > org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:279)
> > > 	at
> > >
> >
> org.apache.cocoon.www.file_.opt.jakarta.tomcat_4_0_b3.webapps.cocoon.desire4dvs.m_clientdata_xmap.wildcardMatc
> hN1FB(m_clie
> > ntdata_xma
> > > p.java:1945)
> > > 	at
> > >
> >
> org.apache.cocoon.www.file_.opt.jakarta.tomcat_4_0_b3.webapps.cocoon.desire4dvs.m_clientdata_xmap.process(m_cl
ientdata_xma
> > p.java:594
> > > )
> > > 	at
> > >
> >
> org.apache.cocoon.www.file_.opt.jakarta.tomcat_4_0_b3.webapps.cocoon.desire4dvs.m_clientdata_xmap.process(m_cl
ientdata_xma
> > p.java:512
> > > )
> > > 	at org.apache.cocoon.sitemap.Handler.process(Handler.java:160)
> > >
> > > Can someone at least _image__ why this could result into an exception in the
sitemap?
> > >
> > > The most strange thing is that I only get this exception when I use my User
> > > class in XSP. Using it inside an action is fine - even the event handling works
> > > fine. But as soon as I retrieve the User class from the Session inside the
XSP I get
> > > this stackstrace.
> > >
> > > Sorry if this becoming a bit off topic. But I'm stumped...
> > > Thanks
> > > --
> > > Torsten
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > > For additional commands, email: cocoon-dev-help@xml.apache.org
> > >
> >
> >
> > =====
> > Davanum Srinivas, JNI-FAQ Manager
> > http://www.jGuru.com/faq/JNI
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
> > http://im.yahoo.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > For additional commands, email: cocoon-dev-help@xml.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message