You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Antonio Gallardo Rivera <ag...@agsoftware.dnsalias.com> on 2002/09/03 14:08:08 UTC

Problem with sunRise, please help :)

Hi, please help me.

I was trying to setup a handler with sunRise. I am using Cocoon 2.0.3

After the login I got this error:

java.lang.NullPointerException

Note java.lang.NullPointerException at 
org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:869) at 
org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871) at 
org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871) at 
org.apache.cocoon.sunshine.xml.XMLUtil.getNodeListFromPath(XMLUtil.java:836) 
at 
org.apache.cocoon.sunshine.context.SimpleSessionContext.getXML(SimpleSessionContext.java:173) 
at 
org.apache.cocoon.sunshine.sunrise.SunRise.isAuthenticated(SunRise.java:691) 
at 
org.apache.cocoon.sunshine.sunrise.SunRise.checkAuthentication(SunRise.java:766) 
at 
org.apache.cocoon.sunshine.sunrise.acting.AuthAction.act(AuthAction.java:122) 
at 
org.apache.cocoon.www.sitemap_xmap.matchN400175(/home/agallardo/prueba/jakarta-tomcat-4.1.9-LE-jdk14/work/Standalone/localhost/multipremios/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:1760) 
at 
org.apache.cocoon.www.sitemap_xmap.process(/home/agallardo/prueba/jakarta-tomcat-4.1.9-LE-jdk14/work/Standalone/localhost/multipremios/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:1281) 
at 
org.apache.cocoon.www.sitemap_xmap.process(/home/agallardo/prueba/jakarta-tomcat-4.1.9-LE-jdk14/work/Standalone/localhost/multipremios/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:1197) 
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(ApplicationFilterChain.java:247) 
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) 
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) 
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.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:2350) 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:170) 
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) 
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171) 
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:223) at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405) at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process

What I am doing wrong?

Thanks in advance,

Antonio Gallardo

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: Problem with sunRise, please help :)

Posted by Barbara Post <ba...@ifrance.com>.
You may have a problem with your parser, check it and look in the archives
for your error message: "XMLUtil.getNodesFromPath", I've read this a couple
of times...

Babs
----- Original Message -----
From: "Antonio Gallardo Rivera" <ag...@agsoftware.dnsalias.com>
To: <co...@xml.apache.org>
Sent: Tuesday, September 03, 2002 2:08 PM
Subject: Problem with sunRise, please help :)


Hi, please help me.

I was trying to setup a handler with sunRise. I am using Cocoon 2.0.3

After the login I got this error:

java.lang.NullPointerException

Note java.lang.NullPointerException at
org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:869) at
org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871) at
org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871) at
org.apache.cocoon.sunshine.xml.XMLUtil.getNodeListFromPath(XMLUtil.java:836)
at
org.apache.cocoon.sunshine.context.SimpleSessionContext.getXML(SimpleSession
Context.java:173)
at
org.apache.cocoon.sunshine.sunrise.SunRise.isAuthenticated(SunRise.java:691)
at
org.apache.cocoon.sunshine.sunrise.SunRise.checkAuthentication(SunRise.java:
766)
at
org.apache.cocoon.sunshine.sunrise.acting.AuthAction.act(AuthAction.java:122
)
at
org.apache.cocoon.www.sitemap_xmap.matchN400175(/home/agallardo/prueba/jakar
ta-tomcat-4.1.9-LE-jdk14/work/Standalone/localhost/multipremios/cocoon-files
/org/apache/cocoon/www/sitemap_xmap.java:1760)
at
org.apache.cocoon.www.sitemap_xmap.process(/home/agallardo/prueba/jakarta-to
mcat-4.1.9-LE-jdk14/work/Standalone/localhost/multipremios/cocoon-files/org/
apache/cocoon/www/sitemap_xmap.java:1281)
at
org.apache.cocoon.www.sitemap_xmap.process(/home/agallardo/prueba/jakarta-to
mcat-4.1.9-LE-jdk14/work/Standalone/localhost/multipremios/cocoon-files/org/
apache/cocoon/www/sitemap_xmap.java:1197)
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:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(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.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(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.StandardContext.invoke(StandardContext.java:2350)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(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.invok
eNext(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:223) at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process

What I am doing wrong?

Thanks in advance,

Antonio Gallardo

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


RE: [SUMMARY] sunRise throw java.lang.NullPointerException in Java 1.4

Posted by Matthew Langham <ml...@s-und-n.de>.
>>
Many thanks to Matthew Langham that provide me the link to:
<<
Glad to see that solved your problem.

Matthew

-----Original Message-----
From: Antonio Gallardo Rivera [mailto:agallardo@agsoftware.dnsalias.com]
Sent: Tuesday, September 03, 2002 3:07 PM
To: cocoon-users@xml.apache.org
Subject: [SUMMARY] sunRise throw java.lang.NullPointerException in Java
1.4


PROBLEM: When you are trying to use sunRise and your plataform is:

	Cocoon 2.0.3
	Tomcat 2.1.8 or 2.1.9
	Java 1.4 or 1.4.1

You get the following error:

java.lang.NullPointerException

java.lang.NullPointerException at
org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:869)
at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871)
at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871)
at
org.apache.cocoon.sunshine.xml.XMLUtil.getNodeListFromPath(XMLUtil.java:836
at
org.apache.cocoon.sunshine.context.SimpleSessionContext.getXML(SimpleSession
Context.java:173)
at
org.apache.cocoon.sunshine.sunrise.SunRise.isAuthenticated(SunRise.java:691
....

CAUSE:
You have to configure java to work with this libraries:
	xalan-2.3.1.jar
	xercesImpl-2.0.0.jar
	xml-apis.jar

SOLUTION:
1-Stop Tomcat.
2-Create a directory named "endorsed" at $JAVA_HOME/jre/lib/
3-Copy from Cocoon the following files to the recent created directory:
	xalan-2.3.1.jar
	xercesImpl-2.0.0.jar
	xml-apis.jar
4-Restart Tomcat

THANKS:

Many thanks to Matthew Langham that provide me the link to:

http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=102927633032114&w=2

Antonio Gallardo

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


[SUMMARY] sunRise throw java.lang.NullPointerException in Java 1.4

Posted by Antonio Gallardo Rivera <ag...@agsoftware.dnsalias.com>.
PROBLEM: When you are trying to use sunRise and your plataform is:

	Cocoon 2.0.3
	Tomcat 2.1.8 or 2.1.9
	Java 1.4 or 1.4.1

You get the following error:

java.lang.NullPointerException

java.lang.NullPointerException at
org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:869)
at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871)
at org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871)
at org.apache.cocoon.sunshine.xml.XMLUtil.getNodeListFromPath(XMLUtil.java:836
at 
org.apache.cocoon.sunshine.context.SimpleSessionContext.getXML(SimpleSession 
Context.java:173)
at org.apache.cocoon.sunshine.sunrise.SunRise.isAuthenticated(SunRise.java:691
....

CAUSE:
You have to configure java to work with this libraries:
	xalan-2.3.1.jar
	xercesImpl-2.0.0.jar
	xml-apis.jar

SOLUTION:
1-Stop Tomcat.
2-Create a directory named "endorsed" at $JAVA_HOME/jre/lib/
3-Copy from Cocoon the following files to the recent created directory:
	xalan-2.3.1.jar
	xercesImpl-2.0.0.jar
	xml-apis.jar
4-Restart Tomcat

THANKS:

Many thanks to Matthew Langham that provide me the link to:

http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=102927633032114&w=2

Antonio Gallardo

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


RE: Problem with sunRise, please help :)

Posted by Matthew Langham <ml...@s-und-n.de>.
Antonio,

try this:
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=102927633032114&w=2


Matthew



-----Original Message-----
From: Antonio Gallardo Rivera [mailto:agallardo@agsoftware.dnsalias.com]
Sent: Tuesday, September 03, 2002 2:08 PM
To: cocoon-users@xml.apache.org
Subject: Problem with sunRise, please help :)


Hi, please help me.

I was trying to setup a handler with sunRise. I am using Cocoon 2.0.3

After the login I got this error:

java.lang.NullPointerException

Note java.lang.NullPointerException at
org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:869) at
org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871) at
org.apache.cocoon.sunshine.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871) at
org.apache.cocoon.sunshine.xml.XMLUtil.getNodeListFromPath(XMLUtil.java:836)
at
org.apache.cocoon.sunshine.context.SimpleSessionContext.getXML(SimpleSession
Context.java:173)
at
org.apache.cocoon.sunshine.sunrise.SunRise.isAuthenticated(SunRise.java:691)
at
org.apache.cocoon.sunshine.sunrise.SunRise.checkAuthentication(SunRise.java:
766)
at
org.apache.cocoon.sunshine.sunrise.acting.AuthAction.act(AuthAction.java:122
)
at
org.apache.cocoon.www.sitemap_xmap.matchN400175(/home/agallardo/prueba/jakar
ta-tomcat-4.1.9-LE-jdk14/work/Standalone/localhost/multipremios/cocoon-files
/org/apache/cocoon/www/sitemap_xmap.java:1760)
at
org.apache.cocoon.www.sitemap_xmap.process(/home/agallardo/prueba/jakarta-to
mcat-4.1.9-LE-jdk14/work/Standalone/localhost/multipremios/cocoon-files/org/
apache/cocoon/www/sitemap_xmap.java:1281)
at
org.apache.cocoon.www.sitemap_xmap.process(/home/agallardo/prueba/jakarta-to
mcat-4.1.9-LE-jdk14/work/Standalone/localhost/multipremios/cocoon-files/org/
apache/cocoon/www/sitemap_xmap.java:1197)
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:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(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.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(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.StandardContext.invoke(StandardContext.java:2350)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(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.invok
eNext(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:223) at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process

What I am doing wrong?

Thanks in advance,

Antonio Gallardo

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>