You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Lalitha Prasad <la...@hotmail.com> on 2005/10/25 12:33:41 UTC

Problem with 10g Parser

Hi,

We are generating PDF documents using FOP. It was working fine with Tomcat 
web server.

Now we have to install our application in Oracle 10g Application Server.  In 
10 App Server, It is taking Default their own default parser. We are getting 
the following exception:

05/10/25 15:52:40 ---------xmlSource:org.xml.sax.InputSource
05/10/25 15:52:40 [ERROR] Logger not set
05/10/25 15:52:40 [INFO] Using oracle.xml.parser.v2.SAXParser as SAX2 Parser
05/10/25 15:52:40 ----parser :oracle.xml.jaxp.JXXMLFilter
05/10/25 15:52:40 [INFO] Using oracle.xml.parser.v2.SAXParser as SAX2 Parser
05/10/25 15:52:41 [INFO] [1]
05/10/25 15:52:41 java.lang.NullPointerException
05/10/25 15:52:41     at 
oracle.xml.jaxp.JXTransformer.reportXSLException(JXTransformer.java:814)
05/10/25 15:52:41     at 
oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:369)
05/10/25 15:52:41     at 
oracle.xml.jaxp.JXTransformerHandler.endDocument(JXTransformerHandler.java:141)
05/10/25 15:52:41     at 
oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:289)
05/10/25 15:52:41     at 
oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:196)
05/10/25 15:52:41     at 
oracle.xml.jaxp.JXXMLFilter.parse(JXXMLFilter.java:96)
05/10/25 15:52:41     at org.apache.fop.apps.Driver.render(Driver.java:498)
05/10/25 15:52:41     at 
_jsp._print._Printable._jspService(_Printable.java:115)
05/10/25 15:52:41     at 
com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
05/10/25 15:52:41     at 
oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
05/10/25 15:52:41     at 
oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
05/10/25 15:52:41     at 
oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
05/10/25 15:52:41     at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
05/10/25 15:52:41     at 
com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
05/10/25 15:52:41     at 
com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
05/10/25 15:52:41     at 
com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:222)
05/10/25 15:52:41     at 
com.hs.web.framework.ControlServlet.doGet(ControlServlet.java:203)
05/10/25 15:52:41     at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
05/10/25 15:52:41     at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
05/10/25 15:52:41     at 
com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
05/10/25 15:52:41     at 
com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
05/10/25 15:52:41     at 
com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
05/10/25 15:52:41     at 
com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
05/10/25 15:52:41     at 
com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
05/10/25 15:52:41     at 
com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
05/10/25 15:52:41     at java.lang.Thread.run(Thread.java:534)
05/10/25 15:52:41 Presentataion JSP : /jsp/print/Printable.jsp

Why we are getting this problem?. If anybody knows the solution/advice reg. 
this. Please send me that info.

Thanks,
LALITH

_________________________________________________________________
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/


Re: Images in PDF

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
You can use RFC 2397 URLs. I've posted a solution earlier this year:
http://marc.theaimsgroup.com/?l=fop-user&m=110875657902117&w=2

On 26.10.2005 21:08:04 Prakash R wrote:
> How can I pass images as XML to FOP to be rendered in
> PDF? I don't want to pass an URL as the image is not
> available as a file but rather as a stream. Is this
> possible? If so, how?

Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Images in PDF

Posted by Prakash R <ra...@yahoo.com>.
How can I pass images as XML to FOP to be rendered in
PDF? I don't want to pass an URL as the image is not
available as a file but rather as a stream. Is this
possible? If so, how?

Thank you.
Prakash

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Problem with 10g Parser

Posted by Lalitha Prasad <la...@hotmail.com>.
Thanks Mr.Jeremias Maerki. I have fixed the issue with your help. Thank you 
very much.




>From: Jeremias Maerki <de...@jeremias-maerki.ch>
>Reply-To: fop-dev@xmlgraphics.apache.org
>To: fop-users@xmlgraphics.apache.org
>CC: fop-dev@xmlgraphics.apache.org
>Subject: Re: Problem with 10g Parser
>Date: Tue, 25 Oct 2005 13:42:31 +0200
>
>(Please send questions to fop-users in the future so all users can
>profit from answers given to your question. fop-dev is for development
>discussions. Thank you.)
>
>Someone reported a similar problem recently:
>http://www.nabble.com/NullPointerException-while-trying-to-run-FOP-servlet-t376136.html#a1038811
>
>Googling for your problem reveals other people having the same problem:
>http://issues.apache.org/bugzilla/show_bug.cgi?id=32193
>http://www-128.ibm.com/developerworks/forums/dw_thread.jsp?message=8489605&cat=11&thread=65825&treeDisplayType=threadmode1&forum=262#8489605
>
>As you can see, they all solved it by replacing Oracle's obviously buggy
>stuff with Apache Xerces and Xalan. Or you should file a bug with Oracle
>so they fix the problem.
>
>On 25.10.2005 12:33:41 Lalitha Prasad wrote:
> > Hi,
> >
> > We are generating PDF documents using FOP. It was working fine with 
>Tomcat
> > web server.
> >
> > Now we have to install our application in Oracle 10g Application Server. 
>  In
> > 10 App Server, It is taking Default their own default parser. We are 
>getting
> > the following exception:
> >
> > 05/10/25 15:52:40 ---------xmlSource:org.xml.sax.InputSource
> > 05/10/25 15:52:40 [ERROR] Logger not set
> > 05/10/25 15:52:40 [INFO] Using oracle.xml.parser.v2.SAXParser as SAX2 
>Parser
> > 05/10/25 15:52:40 ----parser :oracle.xml.jaxp.JXXMLFilter
> > 05/10/25 15:52:40 [INFO] Using oracle.xml.parser.v2.SAXParser as SAX2 
>Parser
> > 05/10/25 15:52:41 [INFO] [1]
> > 05/10/25 15:52:41 java.lang.NullPointerException
> > 05/10/25 15:52:41     at
> > oracle.xml.jaxp.JXTransformer.reportXSLException(JXTransformer.java:814)
> > 05/10/25 15:52:41     at
> > oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:369)
>
><snip/>
>
> > Why we are getting this problem?. If anybody knows the solution/advice 
>reg.
> > this. Please send me that info.
>
>
>Jeremias Maerki
>

_________________________________________________________________
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Problem with 10g Parser

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
(Please send questions to fop-users in the future so all users can
profit from answers given to your question. fop-dev is for development
discussions. Thank you.)

Someone reported a similar problem recently:
http://www.nabble.com/NullPointerException-while-trying-to-run-FOP-servlet-t376136.html#a1038811

Googling for your problem reveals other people having the same problem:
http://issues.apache.org/bugzilla/show_bug.cgi?id=32193
http://www-128.ibm.com/developerworks/forums/dw_thread.jsp?message=8489605&cat=11&thread=65825&treeDisplayType=threadmode1&forum=262#8489605

As you can see, they all solved it by replacing Oracle's obviously buggy
stuff with Apache Xerces and Xalan. Or you should file a bug with Oracle
so they fix the problem.

On 25.10.2005 12:33:41 Lalitha Prasad wrote:
> Hi,
> 
> We are generating PDF documents using FOP. It was working fine with Tomcat 
> web server.
> 
> Now we have to install our application in Oracle 10g Application Server.  In 
> 10 App Server, It is taking Default their own default parser. We are getting 
> the following exception:
> 
> 05/10/25 15:52:40 ---------xmlSource:org.xml.sax.InputSource
> 05/10/25 15:52:40 [ERROR] Logger not set
> 05/10/25 15:52:40 [INFO] Using oracle.xml.parser.v2.SAXParser as SAX2 Parser
> 05/10/25 15:52:40 ----parser :oracle.xml.jaxp.JXXMLFilter
> 05/10/25 15:52:40 [INFO] Using oracle.xml.parser.v2.SAXParser as SAX2 Parser
> 05/10/25 15:52:41 [INFO] [1]
> 05/10/25 15:52:41 java.lang.NullPointerException
> 05/10/25 15:52:41     at 
> oracle.xml.jaxp.JXTransformer.reportXSLException(JXTransformer.java:814)
> 05/10/25 15:52:41     at 
> oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:369)

<snip/>

> Why we are getting this problem?. If anybody knows the solution/advice reg. 
> this. Please send me that info.


Jeremias Maerki


Re: Problem with 10g Parser

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
(Please send questions to fop-users in the future so all users can
profit from answers given to your question. fop-dev is for development
discussions. Thank you.)

Someone reported a similar problem recently:
http://www.nabble.com/NullPointerException-while-trying-to-run-FOP-servlet-t376136.html#a1038811

Googling for your problem reveals other people having the same problem:
http://issues.apache.org/bugzilla/show_bug.cgi?id=32193
http://www-128.ibm.com/developerworks/forums/dw_thread.jsp?message=8489605&cat=11&thread=65825&treeDisplayType=threadmode1&forum=262#8489605

As you can see, they all solved it by replacing Oracle's obviously buggy
stuff with Apache Xerces and Xalan. Or you should file a bug with Oracle
so they fix the problem.

On 25.10.2005 12:33:41 Lalitha Prasad wrote:
> Hi,
> 
> We are generating PDF documents using FOP. It was working fine with Tomcat 
> web server.
> 
> Now we have to install our application in Oracle 10g Application Server.  In 
> 10 App Server, It is taking Default their own default parser. We are getting 
> the following exception:
> 
> 05/10/25 15:52:40 ---------xmlSource:org.xml.sax.InputSource
> 05/10/25 15:52:40 [ERROR] Logger not set
> 05/10/25 15:52:40 [INFO] Using oracle.xml.parser.v2.SAXParser as SAX2 Parser
> 05/10/25 15:52:40 ----parser :oracle.xml.jaxp.JXXMLFilter
> 05/10/25 15:52:40 [INFO] Using oracle.xml.parser.v2.SAXParser as SAX2 Parser
> 05/10/25 15:52:41 [INFO] [1]
> 05/10/25 15:52:41 java.lang.NullPointerException
> 05/10/25 15:52:41     at 
> oracle.xml.jaxp.JXTransformer.reportXSLException(JXTransformer.java:814)
> 05/10/25 15:52:41     at 
> oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:369)

<snip/>

> Why we are getting this problem?. If anybody knows the solution/advice reg. 
> this. Please send me that info.


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org