cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Gerzabek" <michael.gerza...@gmx.net>
Subject AW: ParameterSelector
Date Thu, 15 Aug 2002 15:47:11 GMT
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(AuthenticationAction.java
:87)
	at
org.apache.cocoon.www.file_.F_.EFP.Projekte.EFP.efp_cc_2_0___scratchpad.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\sitemap_xmap.java:
540)
	at
org.apache.cocoon.www.file_.F_.EFP.Projekte.EFP.efp_cc_2_0___scratchpad.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___scratchpad.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(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:243)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.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(StandardContextValve.ja
va:190)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
	at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.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(StandardHostValve.java:180
)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
	at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.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(StandardEngineValve.java
:174)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.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(HttpProcessor.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
>

Mime
View raw message