You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Alessandro Marcellini <am...@tiscalinet.it> on 2001/08/08 15:28:20 UTC

Re: NullPointerException from Command Line

Hi All,
I've encountered the same problem and i tried to use your code but thow some error during compilation
(the URL was wrong. the correct url is: http://www.geocities.com/jbarnesweb/Cocoon.java
http://www.geocities.com/jbarnesweb/Engine.java
and http://www.geocities.com/jbarnesweb/EngineWrapper.java

Have You some suggestion?
Bye
    Alessandro

Jeff Barnes wrote:

> I posted a fix to cocoon-developers@xml.apache.org and asked them to check it and merge it into the 1.8.2 code.  I don't
> know if they did or not.
>
> You can download my fix to the NullPointerException from the command line by downloading and replacing the following files
> in the source:
>
> Replace <src root> org/apache/cocoon/Cocoon.java with http://www.geocities.com/jbarnes/Cocoon.java
> Replace <src root> org/apache/cocoon/Engine.java with http://www.geocities.com/jbarnes/Engine.java
> Replace <src root> org/apache/cocoon/EngineWrapper.java with http://www.geocities.com/jbarnes/EngineWrapper.java
>
> After the replacements, rebuild the source.
>
> If you don't have the source distribution, you will have to download it.
>
> Jeff
>
> Tapan Nanawati wrote:
>
> > Try seeing the servlet and webserver logs. You will get full inforamtion
> > there
> >
> > Tapan Nanawati                  email -                                                                         phone -
> > Globe Communication             tapan_nanawati@yahoo.com (official)             91-11-6685274 (o)
> > NIL/26, Malviya Nagar           tapan.nanawati@lycos.com (friends)              91-98112-98982
> > (m)
> > New Delhi - INDIA
> > ------------------------------
> > God is real, unless declared integer.
> >
> > $-----Original Message-----
> > $From: rhowe2@sears.com [mailto:rhowe2@sears.com]
> > $Sent: Thursday, March 01, 2001 12:24 AM
> > $To: cocoon-users@xml.apache.org
> > $Subject: NullPointerException from Command Line
> > $
> > $
> > $
> > $I have just downloaded Cocoon version 1.8.2 and am trying to run some of
> > $the examples from
> > $the command line. I am using the Sun Java 2 SDK v1.3 on Windows NT 4.0 SP5
> > $as well as
> > $Windows 2000 Advanced Server.
> > $
> > $I execute org.apache.cocoon.Cocoon and I receive a NullPointerException
> > $with the following
> > $stack:
> > $
> > $Exception in thread "main" java.lang.NullPointerException
> > $        at org.apache.cocoon.Engine.handle(Engine.java:484)
> > $        at org.apache.cocoon.EngineWrapper.handle(EngineWrapper.java:87)
> > $        at org.apache.cocoon.Cocoon.main(Cocoon.java:311)
> > $
> > $In looking at the source code, the exception occurs upon an attempt to
> > $write to the OutputStream
> > $retrieved from the response object. In looking at the FAQ, I saw a similar
> > $error reported but could
> > $not find any answers.
> > $
> > $Any  help on why this is occuring would be appreciated.
> > $
> > $
> > $
> > $---------------------------------------------------------------------
> > $Please check that your question has not already been answered in the
> > $FAQ before posting. <http://xml.apache.org/cocoon/faqs.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/faqs.html>
> >
> > To unsubscribe, e-mail: <co...@xml.apache.org>
> > For additional commands, e-mail: <co...@xml.apache.org>
>
> --
> Jeff Barnes
> Java Architect
> EpicEdge
> 5601 6th Ave South Suite 600
> Seattle, WA 98108-2521
> 206.674.0902 (direct)
> 206.674.0060 (main)
> 206.954.6173 (cell)
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.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/faqs.html>

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