Re: null pointer exception in servlet
On Tue, 12 Nov 2002, Bobby Mitchell wrote: Jenny Brown wrote: I had indeed missed that step. I've done it now, but don't seem to be having any better results... same error. I'm not sure how to test that the /jre/lib/ changes actually took effect though. I did restart tomcat just in case. snip Also, make sure to delete the contents of the tomcat work directory before you restart tomcat. I did that and restarted, still the same problem. Here's a snippet of Cocoon's code where the NPE is actually occurring, in AbstractStreamSource: public void toSAX(ContentHandler handler) throws SAXException, ProcessingException { Parser parser = null; try { parser = (Parser)this.manager.lookup(Parser.ROLE); --- NPE this line parser.parse( this.getInputSource(), handler); } ... } Since that line has multiple references I'm not quite sure which one ended up being null; but maybe this is enough for someone to notice what I am likely missing? Thanks. Jenny Brown - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
null pointer exception in servlet
I'm having trouble with a recently set up cocoon instance, processing an example xml and xslt file. This seems to be happening inside Cocoon, so I am not sure how to fix it. org.apache.cocoon.ProcessingException: Exception during processing of http://jenny.myinfogenic.net/sitebuilder/simple.xsl: java.lang.NullPointerException at org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStreamSource.java:211) at org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XSLTProcessorImpl.java:268) at org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XSLTProcessorImpl.java:239) at org.apache.cocoon.components.xslt.XSLTProcessorImpl.transform(XSLTProcessorImpl.java:311) at jendvsl.web_post_xsl(jendvsl.java:87) Thanks. Jenny Brown - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: null pointer exception in servlet
Jenny Brown wrote: I'm having trouble with a recently set up cocoon instance, processing an example xml and xslt file. This seems to be happening inside Cocoon, so I am not sure how to fix it. org.apache.cocoon.ProcessingException: Exception during processing of http://jenny.myinfogenic.net/sitebuilder/simple.xsl: Jenny I downloaded your two files simple.x?l to my own coccon installation and they run fine. I am running tomcat 4 and see you are on 3.3 .. Don't know what jdk you are using but it seems to be an installation prob as your xml is fine - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: null pointer exception in servlet
On Tue, 12 Nov 2002, Charles Brewster wrote: Jenny Brown wrote: I'm having trouble with a recently set up cocoon instance, processing an example xml and xslt file. This seems to be happening inside Cocoon, so I am not sure how to fix it. Jenny I downloaded your two files simple.xsl to my own coccon installation and they run fine. I am running tomcat 4 and see you are on 3.3 .. Don't know what jdk you are using but it seems to be an installation prob as your xml is fine I was pretty sure the XML was fine since it came from example code, but that doesn't help me much in solving my actual problem. I'm looking for why Cocoon is throwing a null pointer exception, as in, what do I even try to debug or look into to figure this out? I am running 1.4.0 jdk on a mandrake linux box: java version 1.4.0_01 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_01-b03) Java HotSpot(TM) Client VM (build 1.4.0_01-b03, mixed mode) - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: null pointer exception in servlet
Jenny Brown wrote: On Tue, 12 Nov 2002, Charles Brewster wrote: I was pretty sure the XML was fine since it came from example code, but that doesn't help me much in solving my actual problem. I'm looking for why Cocoon is throwing a null pointer exception, as in, what do I even try to debug or look into to figure this out? I am running 1.4.0 jdk on a mandrake linux box: java version 1.4.0_01 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_01-b03) Java HotSpot(TM) Client VM (build 1.4.0_01-b03, mixed mode) A trivial point, not to be insulting, :-) but did you install the vm14 download version of cocoon built for 1.4.0 - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: null pointer exception in servlet
On Tue, 12 Nov 2002, Charles Brewster wrote: A trivial point, not to be insulting, :-) but did you install the vm14 download version of cocoon built for 1.4.0 Good question. I downloaded Cocoon-2.0.3 as a source tar/gzip. I then built it using the most recent version of ant. It built successfully and told me during build that it was built for 1.4 and wouldn't work with other versions. So... Hopefully that answers your question, as it is a rather important one. Thanks for any help. Jenny Brown - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: null pointer exception in servlet
Jenny Brown wrote: Good question. I downloaded Cocoon-2.0.3 as a source tar/gzip. I then built it using the most recent version of ant. It built successfully and told me during build that it was built for 1.4 and wouldn't work with other versions. So... Hopefully that answers your question, as it is a rather important one. That's ok. But did you read http://xml.apache.org/cocoon/installing/index.html Java 1.4 configuration?? Joerg - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: null pointer exception in servlet
I had indeed missed that step. I've done it now, but don't seem to be having any better results... same error. I'm not sure how to test that the /jre/lib/ changes actually took effect though. I did restart tomcat just in case. Here's the error I'm still getting: DEBUG 10371 [jendvsl ] (): XSLTProcessorImpl: transform source = org.apache.cocoon.components.source.URLSource@2c3327, stylesheet = org.apache.cocoon.components.source.URLSource@d24e3f, parameters = org.apache.avalon.framework.parameters.Parameters@f41e9, result = javax.xml.transform.stream.StreamResult@b05acd DEBUG 10371 [jendvsl ] (): Creating new Templates for http://jenny.myinfogenic.net/sitebuilder/simple.xsl DEBUG 10371 [jendvsl ] (): Source = org.apache.cocoon.components.source.URLSource@d24e3f, templatesHandler = org.apache.xalan.processor.StylesheetHandler@1989b5 java.lang.NullPointerException at org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStreamSource.java:204) at org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XSLTProcessorImpl.java:268) On Tue, 12 Nov 2002, Joerg Heinicke wrote: Jenny Brown wrote: Good question. I downloaded Cocoon-2.0.3 as a source tar/gzip. I then built it using the most recent version of ant. It built successfully and told me during build that it was built for 1.4 and wouldn't work with other versions. So... Hopefully that answers your question, as it is a rather important one. That's ok. But did you read http://xml.apache.org/cocoon/installing/index.html Java 1.4 configuration?? Joerg - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: null pointer exception in servlet
Jenny Brown wrote: I had indeed missed that step. I've done it now, but don't seem to be having any better results... same error. I'm not sure how to test that the /jre/lib/ changes actually took effect though. I did restart tomcat just in case. snip Also, make sure to delete the contents of the tomcat work directory before you restart tomcat. - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]