cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Gerzabek <michael.gerza...@gmx.net>
Subject RE: ParameterSelector
Date Fri, 16 Aug 2002 08:26:44 GMT
Thanks alot Carsten! Indeed i missed the configuration in the logkit.xconf

Michael

> Hi Michael,
> 
> the stacktrace shows that the NPE is thrown in the LogKit - from
> the source of the LogKit code, it seems to be that your LogKit
> configuration is wrong - perhaps you use a category to log
> in your action which has no target?
> 
> Carsten
> 
> > -----Original Message-----
> > From: Michael Gerzabek [mailto:michael.gerzabek@gmx.net]
> > Sent: Thursday, August 15, 2002 5:47 PM
> > To: cocoon-dev@xml.apache.org
> > Subject: AW: ParameterSelector
> >
> >
> > Hi,
> >
> > i System.out-ed all involved Objects and they all where valid.
> > that's the reason why i don't understand. even the log-message is
> > strange to me (core.log):
> > ERROR   (2002-08-15) 17:44.24:779   [core.manager] (/welcome/hello)
> > HttpProcessor[81][4]/sitemap_xmap: Sitemap
> > java.lang.NullPointerException
> > 	at org.apache.log.Logger.fireEvent(Logger.java:612)
> > 	at org.apache.log.Logger.output(Logger.java:587)
> > 	at org.apache.log.Logger.output(Logger.java:570)
> > 	at org.apache.log.Logger.error(Logger.java:207)
> > 	at
> > cc.efp.web3.portal.cocoon.AuthenticationAction.act(AuthenticationA
> > ction.java
> > :87)
> > 	at
> > org.apache.cocoon.www.file_.F_.EFP.Projekte.EFP.efp_cc_2_0_
> __scrat
> > chpad.dev.
> > webapp.cocoon.welcome.sitemap_xmap.matchN10044(F:\Cats\Tomcat-404-
> > APPS\work\
> > Standalone\localhost\_\cocoon-files\org/apache/cocoon/www/file_/F_
> > /EFP/Proje
> > kte/EFP/efp_cc_2_0___scratchpad/dev/webapp/cocoon/welcome\sit
> emap_
> > xmap.java:
> > 540)
> > 	at
> > org.apache.cocoon.www.file_.F_.EFP.Projekte.EFP.efp_cc_2_0_
> __scrat
> > chpad.dev.
> > webapp.cocoon.welcome.sitemap_xmap.process(F:\Cats\Tomcat-404-APPS
> > \work\Stan
> > dalone\localhost\_\cocoon-files\org/apache/cocoon/www/file_/F_/EFP
> > /Projekte/
> > EFP/efp_cc_2_0___scratchpad/dev/webapp/cocoon/welcome\sitemap
> _xmap
> > .java:414)
> > 	at
> > org.apache.cocoon.www.file_.F_.EFP.Projekte.EFP.efp_cc_2_0_
> __scrat
> > chpad.dev.
> > webapp.cocoon.welcome.sitemap_xmap.process(F:\Cats\Tomcat-404-APPS
> > \work\Stan
> > dalone\localhost\_\cocoon-files\org/apache/cocoon/www/file_/F_/EFP
> > /Projekte/
> > EFP/efp_cc_2_0___scratchpad/dev/webapp/cocoon/welcome\sitemap
> _xmap
> > .java:351)
> > 	at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
> > 	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
> > 	at
> > org.apache.cocoon.www.sitemap_xmap.matchN10221(F:\Cats\Tomcat-404-
> > APPS\work\
> > Standalone\localhost\_\cocoon-files\org/apache/cocoon/www\sitemap_
> > xmap.java:
> > 1608)
> > 	at
> > org.apache.cocoon.www.sitemap_xmap.process(F:\Cats\Tomcat-404-APPS
> > \work\Stan
> > dalone\localhost\_\cocoon-files\org/apache/cocoon/www\sitemap_xmap
> > .java:1481
> > )
> > 	at
> > org.apache.cocoon.www.sitemap_xmap.process(F:\Cats\Tomcat-404-APPS
> > \work\Stan
> > dalone\localhost\_\cocoon-files\org/apache/cocoon/www\sitemap_xmap
> > .java:1416
> > )
> > 	at org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
> > 	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
> > 	at
> >
> org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
> > 	at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
> > 	at
> > org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
> > 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > 	at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A
> > pplication
> > FilterChain.java:247)
> > 	at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati
> > onFilterCh
> > ain.java:193)
> > 	at
> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapp
> > erValve.ja
> > va:243)
> > 	at
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
> > ine.java:5
> > 66)
> > 	at
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
> > java:472)
> > 	at
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > 	at
> > org.apache.catalina.core.StandardContextValve.invoke(StandardConte
> > xtValve.ja
> > va:190)
> > 	at
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
> > ine.java:5
> > 66)
> > 	at
> > org.apache.catalina.valves.CertificatesValve.invoke(CertificatesVa
> > lve.java:2
> > 46)
> > 	at
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
> > ine.java:5
> > 64)
> > 	at
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
> > java:472)
> > 	at
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > 	at
> >
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
> > 	at
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValv
> > e.java:180
> > )
> > 	at
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
> > ine.java:5
> > 66)
> > 	at
> > org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispat
> > cherValve.
> > java:170)
> > 	at
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
> > ine.java:5
> > 64)
> > 	at
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValv
> > e.java:170
> > )
> > 	at
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
> > ine.java:5
> > 64)
> > 	at
> >
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
> > 	at
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
> > ine.java:5
> > 64)
> > 	at
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
> > java:472)
> > 	at
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > 	at
> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngine
> > Valve.java
> > :174)
> > 	at
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel
> > ine.java:5
> > 66)
> > 	at
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
> > java:472)
> > 	at
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > 	at
> > org.apache.catalina.connector.http.HttpProcessor.process(HttpProce
> > ssor.java:
> > 1027)
> > 	at
> > org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor
> > .java:1125
> > )
> > 	at java.lang.Thread.run(Thread.java:484)
> >
> > sitemap:
> > <map:match pattern="hello">
> >   <map:act type="authenticate">
> > 	  <map:select type="parameter">
> > 	    <map:parameter name="parameter-selector-test" value="{SID}"/>
> >             <map:when test="Rejected">
> >               <map:read src="invalid.html"/>
> >             </map:when>
> >             <map:otherwise>
> >               <map:read src="hello.html"/>
> >             </map:otherwise>
> >           </map:select>
> >   </map:act>
> > </map:match>
> >
> > thanks
> >
> > Michael
> >
> > > -----Urspr√ľngliche Nachricht-----
> > > Von: Carsten Ziegeler [mailto:cziegeler@s-und-n.de]
> > > Gesendet: Donnerstag, 15. August 2002 10:06
> > > An: cocoon-dev@xml.apache.org
> > > Betreff: RE: ParameterSelector
> > >
> > >
> > > Hi,
> > >
> > > so this error is not related to the parameterselector but to your
> > > (custom) action, right?
> > >
> > > Without the complete code for your action, I can only guess.
> > > If you get a NPE in the line you show below, either getLogger()
> > > returns null or something in your expression passed into the
> > > error() method is null.
> > > But this should have nothing to do with the selector.
> > >
> > > Carsten
> > >
> > > > -----Original Message-----
> > > > From: Michael Gerzabek [mailto:michael.gerzabek@at.efp.cc]
> > > > Sent: Wednesday, August 14, 2002 10:20 PM
> > > > To: Cocoon-Dev@Xml. Apache. Org
> > > > Subject: ParameterSelector
> > > >
> > > >
> > > > hi,
> > > >
> > > > i get some strange behaviour when using the parameterselector.
> > > > when the corresponding action that sets the desired parameter
> > > > to the selector tries to log something i get a NPE from the logger.
> > > >
> > > >
> > > > Map act (...) {
> > > >   ...
> > > > 	try {
> > > > 		...
> > > > 	}
> > > > 	catch (Exception x) {
> > > > 		getLogger().error(...);
> > > > >>>>>>>>>>NPE
> > > >   ...
> > > >
> > > > when i use the same action and the selector without logging anything
> > > > then everything is fine.
> > > >
> > > > any ideas
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > 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
> 

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


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


Mime
View raw message