[xep-support] NullPointerException

From: robertdouglas@iitalia.com
Date: Wed Oct 23 2002 - 04:59:30 PDT


Nikolai,

Thanks for getting back to me with your advice.

I have modified my application to use an InputSource
instead of the FOInputSource.
This works when I call the application from the
Command line but causes problems for the server.
I don't know why it should? The errors generated are
appened below.

Here are the conditions under which the error
occurs...
The server is Tomcat 4.1.10, and I use Apache Axis or
SOAP.
The parser is created with either of the following
constructs - the same result will always ensue.
 Parser parser =
org.xml.sax.helpers.ParserFactory.makeParser(Conf.Par
ser.SAX) ;
 OR
 Parser parser = new
org.xml.sax.helpers.XMLReaderAdapter(javax.xml.parser
s.SAXParserFactory.newInstance().newSAXParser().getXM
LReader());
Validation is turned off.
I have tried running the rendering app from the
command line with JAXP parsers and there is no
problem. I used xerces 2

Any Ideas

Thanks,

Bob

message from TOMCAT
ROM TOMCAT CONSOLE WINDOW

- RendererBase exiting - current instance count: 0
- com.renderx.FORM.util.Cache cleared
- RendererBase created - current instance count: 1
-
c:\devt\vssprj\FST_IF\Lisa\LISA_JRND_II\test-data\1\o
ut\printTest_3_1_5.ps
(S (parse [system-id - error:
java.lang.NullPointerException
        at
com.renderx.FO2PDF.L.EventLogger.info(EventLogger.jav
a:209)
        at
com.renderx.FO2PDF.L.EventLogger.event(EventLogger.ja
va:146)
        at mt.Driver.render(Unknown Source)
        at mt.Driver.render(Unknown Source)
        at mt.FORenderer.doRender(Unknown Source)
        at mt.FORenderer.render(Unknown Source)
        at mt.MTRenderer.doit_from_fo_or_svg(Unknown
Source)
        at mt.MTRenderer.createPSfromFo(Unknown
Source)
        at java.lang.reflect.Method.invoke(Native
Method)
        at
org.apache.axis.providers.java.RPCProvider.invokeMeth
od(RPCProvider.java:372)
        at
org.apache.axis.providers.java.RPCProvider.processMes
sage(RPCProvider.java:292)
        at
org.apache.axis.providers.java.JavaProvider.invoke(Ja
vaProvider.java:276)
        at
org.apache.axis.strategies.InvocationStrategy.visit(I
nvocationStrategy.java:71)
        at
org.apache.axis.SimpleChain.doVisiting(SimpleChain.ja
va:156)
        at
org.apache.axis.SimpleChain.invoke(SimpleChain.java:1
26)
        at
org.apache.axis.handlers.soap.SOAPService.invoke(SOAP
Service.java:437)
        at
org.apache.axis.server.AxisServer.invoke(AxisServer.j
ava:316)
        at
org.apache.axis.transport.http.AxisServlet.doPost(Axi
sServlet.java:701)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.ja
va:760)
        at
org.apache.axis.transport.http.AxisServletBase.servic
e(AxisServletBase.java:335)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.ja
va:853)
        at
org.apache.catalina.core.ApplicationFilterChain.inter
nalDoFilter(ApplicationFilterChain.java:247)
        at
org.apache.catalina.core.ApplicationFilterChain.doFil
ter(ApplicationFilterChain.java:193)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:260)
        at
org.apache.catalina.core.StandardPipeline$StandardPip
elineValveContext.invokeNext(StandardPipeline.java:64
3)
        at
org.apache.catalina.core.StandardPipeline.invoke(Stan
dardPipeline.java:480)
        at
org.apache.catalina.core.ContainerBase.invoke(Contain
erBase.java:995)
        at
org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:191)
        at
org.apache.catalina.core.StandardPipeline$StandardPip
elineValveContext.invokeNext(StandardPipeline.java:64
3)
        at
org.apache.catalina.core.StandardPipeline.invoke(Stan
dardPipeline.java:480)
        at
org.apache.catalina.core.ContainerBase.invoke(Contain
erBase.java:995)
        at
org.apache.catalina.core.StandardContext.invoke(Stand
ardContext.java:2397)
        at
org.apache.catalina.core.StandardHostValve.invoke(Sta
ndardHostValve.java:180)
        at
org.apache.catalina.core.StandardPipeline$StandardPip
elineValveContext.invokeNext(StandardPipeline.java:64
3)
        at
org.apache.catalina.valves.ErrorDispatcherValve.invok
e(ErrorDispatcherValve.java:170)
        at
org.apache.catalina.core.StandardPipeline$StandardPip
elineValveContext.invokeNext(StandardPipeline.java:64
1)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(Er
rorReportValve.java:171)
        at
org.apache.catalina.core.StandardPipeline$StandardPip
elineValveContext.invokeNext(StandardPipeline.java:64
1)
        at
org.apache.catalina.core.StandardPipeline.invoke(Stan
dardPipeline.java:480)
        at
org.apache.catalina.core.ContainerBase.invoke(Contain
erBase.java:995)
        at
org.apache.catalina.core.StandardEngineValve.invoke(S
tandardEngineValve.java:174)
        at
org.apache.catalina.core.StandardPipeline$StandardPip
elineValveContext.invokeNext(StandardPipeline.java:64
3)
        at
org.apache.catalina.core.StandardPipeline.invoke(Stan
dardPipeline.java:480)
        at
org.apache.catalina.core.ContainerBase.invoke(Contain
erBase.java:995)
        at
org.apache.coyote.tomcat4.CoyoteAdapter.service(Coyot
eAdapter.java:223)
        at
org.apache.coyote.http11.Http11Processor.process(Http
11Processor.java:405)
        at
org.apache.coyote.http11.Http11Protocol$Http11Connect
ionHandler.processConnection(Http11Protocol.java:380)
        at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(Pool
TcpEndpoint.java:508)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunn
able.run(ThreadPool.java:533)
        at java.lang.Thread.run(Thread.java:484)

 
______________________________________________________________________________
Su <http://www.iitalia.com> servizi gratuiti:
emails - spazio web - agenda - bookmarks - fori di discussione

-------------------
By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



This archive was generated by hypermail 2.1.5 : Wed Dec 18 2002 - 08:41:28 PST