What is happening is that an exception (BridgeException) thrown by the bridge is caught by your code, and when you are trying to print the stack trace of that exception, you get another exception because the error message for the BridgeException cannot be extracted from the .properties file.
The .properties file that cannot be found is org.apache.batik.bridge.resources.Messages.properties.
In the binary distribution, that file is in batik-bridge.jar
I hope this helps,
Vincent.
P.S: I suspect your exception originally happens in BridgeContext because you have a bad URI reference somewhere in your SVG file (e.g., a <use> with an invalid xlink:href).
Jane Singer wrote:
I have all my batik jar files in one directory, and they are all listed in the classpath. I have tried many different setups and always get this message. In the past I have solved this problem by changing the order of the classpath (I have many other non-batik jar files in the classpath, I have no problems with these). Now the batik jars come first. Which jar file is this message coming from?----- Original Message ----- From: "Vincent Hardy" <[EMAIL PROTECTED]> To: "Batik Users" <[EMAIL PROTECTED]> Sent: Wednesday, January 22, 2003 9:57 PM Subject: Re: Can't find resource for bundle java.util.PropertyResourceBundle, key uri.badTargetHello Jane, What is happening is that the code can't find the error message to report what is wrong in the document. The error messages are stored in files (xx.properties) under the resources directory in the source version of batik. Did you check that you have the Batik resources in your classpath? I think you'll be better off getting proper error messages. Vincent. Jane Singer wrote:Hi, Once again I'm getting exception errors about missing error messages.Thesehappen only with certain SVG documents, so I'm sure there is some errorinthe SVG document itself. The program succeeds in creating an SVG file onthedisk, but the transcoder gives this message when it tries to create ajpgfile. I have rearranged my class path many times, and tried different configurations, but this error always returns. If I could figure outwhat iswrong with the SVG documents I wouldn't worry about the exception error itself. Help! Jane java.util.MissingResourceException: Can't find resource for bundle java.util.Pro pertyResourceBundle, key uri.badTarget at java.util.ResourceBundle.getObject(ResourceBundle.java:382) at java.util.ResourceBundle.getString(ResourceBundle.java:354) atorg.apache.batik.i18n.LocalizableSupport.formatMessage(UnknownSource ) at org.apache.batik.bridge.Messages.formatMessage(UnknownSource)at org.apache.batik.bridge.BridgeException.getMessage(Unknown Source) at org.apache.batik.transcoder.TranscoderException.getMessage(Unknown So urce) at java.lang.Throwable.getLocalizedMessage(Throwable.java:118) at java.lang.Throwable.toString(Throwable.java:139) at java.lang.String.valueOf(String.java:1947) at java.io.PrintStream.print(PrintStream.java:426) at java.io.PrintStream.println(PrintStream.java:563) at java.lang.Throwable.printStackTrace(Throwable.java:181) at SVGUtilities.SVG2JPG(SVGUtilities.java:83) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
