users@jaxb.java.net

Re: Internal Error after migration to 1.0.1

From: Mark Brouwer <mark.brouwer_at_virgil.nl>
Date: Wed, 18 Jun 2003 22:52:36 +0200

Ed Mooney wrote:
>
> We agree that we shouldn't be throwing InternalError. The next release
> will throw a JAXBAssertionError. Also, the bug parade folks are trying
> to track down why 4878471 has yet to be publically visible.
>
> Please accept our apologies for letting this bug escape, and our thanks
> for catching it. I hope this workaround is acceptable for now.
>

Hi Ed,

Thanks for providing a fix, it was not that much work to change the
build process, however in changing the process I encoutered another
issue. When you specify the -use-runtime option and you don't provide a
package name the key for the error message seems to be missing,
resulting in aborting the build process. I do know it is hell to keep
these keys in sync, I sometimes regret we don't all speak the same
language so we could skip internationalization :-)

Well at least I can continue now (didn't do any real testing yet but our
application is starting) and that is a big relieve!

create-jsc-model:

BUILD FAILED
java.util.MissingResourceException: Can't find resource for bundle
java.util.Pro
pertyResourceBundle, key Driver.MissingRuntime.PackageName
        at java.util.ResourceBundle.getObject(ResourceBundle.java:314)
        at java.util.ResourceBundle.getString(ResourceBundle.java:274)
        at com.sun.tools.xjc.Messages.format(Messages.java:36)
        at com.sun.tools.xjc.Messages.format(Messages.java:17)
        at com.sun.tools.xjc.Options.parseArgument(Options.java:242)
        at com.sun.tools.xjc.Options.parseArguments(Options.java:349)
        at com.sun.tools.xjc.XJCTask._doXJC(XJCTask.java:287)
        at com.sun.tools.xjc.XJCTask.doXJC(XJCTask.java:277)
        at com.sun.tools.xjc.XJCTask.execute(XJCTask.java:221)
        at org.apache.tools.ant.Task.perform(Task.java:341)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
        at
org.apache.tools.ant.Project.executeTargets(Project.java:1255)
        at org.apache.tools.ant.Main.runBuild(Main.java:609)
        at org.apache.tools.ant.Main.start(Main.java:196)
--
Mark Brouwer