You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Viktors Rotanovs <vi...@riga.nu> on 2000/10/03 22:15:13 UTC

Cocoon 2.0a3 (fresh from CVS) - java.lang.NullPointerException

Hi,

I have Tomcat (tried both 3.1 and 3.2b5) with fresh Cocoon 2.0a3
from CVS, installed with default settings, and I get "Cocoon 2 - 2.0a3 :)"
message so it is there. I use JDK1.3beta_refresh and RedHat 6.2.

But, when I try to request something but "/cocoon" URI, for example,
"/cocoon/", it says the following:

Cocoon 2 - Internal server error



type internal-server-error

message null

description java.lang.NullPointerException

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

request-uri

/cocoon/

path-info

stacktrace

java.lang.NullPointerException
        at org.apache.cocoon.sitemap.Handler.process(Handler.java:127)
        at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:80)
        at org.apache.cocoon.Cocoon.process(Cocoon.java:229)
        at 
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:167)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at 
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:387)
        at org.apache.tomcat.core.Handler.service(Handler.java:263)
        at 
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
        at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:769)
        at 
org.apache.tomcat.core.ContextManager.service(ContextManager.java:715)
        at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:207)
        at 
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:403)
        at 
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
        at java.lang.Thread.run(Thread.java:484)


I followed installation instructions from Cocoon's INSTALL file, where I went 
wrong?

-- 
Best Wishes,
Viktors Rotanovs
I create websites that attract more clients. http://riga.nu/
Riga Latvia +371, Phone 7377-142, GSM 9173-000, FAX 7377-472

Re: Cocoon 2.0a3 (fresh from CVS) - java.lang.NullPointerException

Posted by "Wang, gonghui" <gw...@houston.geoquest.slb.com>.
I  don't know whether this help, I have tomcat 3.2b5 and cocoon from cvs, it had the same problem, I did two
things and it worked:
1) edit tomcat.sh to add cocoon/lib/*.jar to the CLASSPATH
2) use port 8080only because no matter what port I set in server.xml, the subdirectory in work is always
something8080cocoon. not using 8080 the SQLTransformer will not work. ( I did delete the subdirectory under
work too, just to find out that it alway generate 8080cocoon)

a question,  what is the relationship of SQLTransformer and esql?  which one should I use in order to
minimize change in when cocoon 2 is ready? seems like esql has more capability


Hans Ulrich Niedermann wrote:

> Viktors Rotanovs <vi...@riga.nu> writes:
>
> > I have Tomcat (tried both 3.1 and 3.2b5) with fresh Cocoon 2.0a3
> > from CVS, installed with default settings, and I get "Cocoon 2 - 2.0a3 :)"
> > message so it is there. I use JDK1.3beta_refresh and RedHat 6.2.
>
> Cocoon2 currently doesn't seem to work with Tomcat 3.x. Some people
> are investigating. In the mean time, you could install Tomcat 4.0.
> A step by step HOWTO describing how I set up Tomcat 4.0 for Cocoon 2
> is located at
>
>  <URL:http://n-dimensional.de/cocoon/docbook-test/howto.db.html>
>
> and will soon be integrated into Cocoon2 itself.
>
> Hope this helps a little bit.
>
> Uli
>
> > But, when I try to request something but "/cocoon" URI, for example,
> > "/cocoon/", it says the following:
> >
> > Cocoon 2 - Internal server error
>
> [ ... ]
>
> > java.lang.NullPointerException
> >         at org.apache.cocoon.sitemap.Handler.process(Handler.java:127)
> >         at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:80)
> >         at org.apache.cocoon.Cocoon.process(Cocoon.java:229)
> >         at
> > org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:167)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >         at
> > org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:387)
> >         at org.apache.tomcat.core.Handler.service(Handler.java:263)
> >         at
> > org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
> >         at
> > org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:769)
> >         at
> > org.apache.tomcat.core.ContextManager.service(ContextManager.java:715)
> >         at
> > org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:207)
> >         at
> > org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:403)
> >         at
> > org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
> >         at java.lang.Thread.run(Thread.java:484)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: Cocoon 2.0a3 (fresh from CVS) - java.lang.NullPointerException

Posted by Hans Ulrich Niedermann <ni...@isd.uni-stuttgart.de>.
Hans Ulrich Niedermann <ni...@isd.uni-stuttgart.de> writes:

> Viktors Rotanovs <vi...@riga.nu> writes:
> 
> > I have Tomcat (tried both 3.1 and 3.2b5) with fresh Cocoon 2.0a3
> > from CVS, installed with default settings, and I get "Cocoon 2 - 2.0a3 :)"
> > message so it is there. I use JDK1.3beta_refresh and RedHat 6.2.
> 
> Cocoon2 currently doesn't seem to work with Tomcat 3.x. Some people
> are investigating. 

A few people worked around the problems with Tomcat 3.x by manually
deleting the sitemap from Tomcats work/ directory. Obviously the
sitemap doesn't get re-created despite sitemap code changes.

Uli

> > But, when I try to request something but "/cocoon" URI, for example,
> > "/cocoon/", it says the following:
> > 
> > Cocoon 2 - Internal server error
> 
> [ ... ]
> 
> > java.lang.NullPointerException
> >         at org.apache.cocoon.sitemap.Handler.process(Handler.java:127)
> >         at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:80)
> >         at org.apache.cocoon.Cocoon.process(Cocoon.java:229)
> >         at 
> > org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:167)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >         at 
> > org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:387)
> >         at org.apache.tomcat.core.Handler.service(Handler.java:263)
> >         at 
> > org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
> >         at 
> > org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:769)
> >         at 
> > org.apache.tomcat.core.ContextManager.service(ContextManager.java:715)
> >         at 
> > org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:207)
> >         at 
> > org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:403)
> >         at 
> > org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
> >         at java.lang.Thread.run(Thread.java:484)

Re: Cocoon 2.0a3 (fresh from CVS) - java.lang.NullPointerException

Posted by Hans Ulrich Niedermann <ni...@isd.uni-stuttgart.de>.
Viktors Rotanovs <vi...@riga.nu> writes:

> I have Tomcat (tried both 3.1 and 3.2b5) with fresh Cocoon 2.0a3
> from CVS, installed with default settings, and I get "Cocoon 2 - 2.0a3 :)"
> message so it is there. I use JDK1.3beta_refresh and RedHat 6.2.

Cocoon2 currently doesn't seem to work with Tomcat 3.x. Some people
are investigating. In the mean time, you could install Tomcat 4.0. 
A step by step HOWTO describing how I set up Tomcat 4.0 for Cocoon 2
is located at 

 <URL:http://n-dimensional.de/cocoon/docbook-test/howto.db.html>

and will soon be integrated into Cocoon2 itself.

Hope this helps a little bit.

Uli

> But, when I try to request something but "/cocoon" URI, for example,
> "/cocoon/", it says the following:
> 
> Cocoon 2 - Internal server error

[ ... ]

> java.lang.NullPointerException
>         at org.apache.cocoon.sitemap.Handler.process(Handler.java:127)
>         at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:80)
>         at org.apache.cocoon.Cocoon.process(Cocoon.java:229)
>         at 
> org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:167)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at 
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:387)
>         at org.apache.tomcat.core.Handler.service(Handler.java:263)
>         at 
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
>         at 
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:769)
>         at 
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:715)
>         at 
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:207)
>         at 
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:403)
>         at 
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
>         at java.lang.Thread.run(Thread.java:484)