You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Kevin Burton <ke...@oracle.com> on 2006/06/15 10:37:46 UTC

Batik as Oracle Java Stored Procedure

Hi

I have implemented the JPEGTranscoder sample as a simple class from the 
Batik site with a slight modification to use the PNGTranscoder instead. 
This compiled class has been loaded (along with all the Batik jar files 
as per the diagram on the Batik install page) into an Oracle database as 
a Java Stored Procedure. This Java Stored Procedure is called from 
within a PL/SQL package that creates an SVG file - the idea being to 
convert the generated SVG file to a PNG image file. The SVG file created 
is valid and displays correctly in FireFox but the PNG image produced is 
of 0 bytes and therefore blank. The error generated by the Java class is:

SAX2 driver class org.apache.crimson.parser.XMLReaderImpl does not 
implement XMLReader

Does anyone have any pointers as to how to resolve this issue? I should 
say that the same code implemented in a JSP works perfectly, so I guess 
I have a library missing or something?

Regards
Kevin

Re: Batik as Oracle Java Stored Procedure

Posted by th...@kodak.com.
Hi Kevin,

Kevin Burton <ke...@oracle.com> wrote on 06/15/2006 04:37:46 AM:

> The error generated by the Java class is:
> 
> SAX2 driver class org.apache.crimson.parser.XMLReaderImpl does not 
> implement XMLReader
> 
> Does anyone have any pointers as to how to resolve this issue? I should 
> say that the same code implemented in a JSP works perfectly, so I guess 
> I have a library missing or something?

   I would guess that the code is picking up a version of the crimson
parser from the Oracle JVM rather than it's own xerces.


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