logo       

Re: Can't find resource for bundle java.util.PropertyResourceBundle, key ur: msg#00118

Subject: Re: Can't find resource for bundle java.util.PropertyResourceBundle, key uri.badTarget
Hello Jane,

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" <vincent.hardy@xxxxxxx>
To: "Batik Users" <batik-users@xxxxxxxxxxxxxx>
Sent: Wednesday, January 22, 2003 9:57 PM
Subject: Re: Can't find resource for bundle
java.util.PropertyResourceBundle, key uri.badTarget



Hello 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.

These

happen only with certain SVG documents, so I'm sure there is some error

in

the SVG document itself. The program succeeds in creating an SVG file on

the

disk, but the transcoder gives this message when it tries to create a

jpg

file. I have rearranged my class path many times, and tried different
configurations, but this error always returns. If I could figure out

what is

wrong 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)
       at

org.apache.batik.i18n.LocalizableSupport.formatMessage(Unknown

Source
)
       at org.apache.batik.bridge.Messages.formatMessage(Unknown

Source)

       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: batik-users-unsubscribe@xxxxxxxxxxxxxx
For additional commands, e-mail: batik-users-help@xxxxxxxxxxxxxx






---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xxxxxxxxxxxxxx
For additional commands, e-mail: batik-users-help@xxxxxxxxxxxxxx






---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xxxxxxxxxxxxxx
For additional commands, e-mail: batik-users-help@xxxxxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe