users@jaxb.java.net

Re: WebSphere 6.1

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Mon, 02 Oct 2006 11:16:21 -0700

Goga, Murtaza wrote:
> Anyone run JAXB2 RI from within a web application deployed in WebSpehere
> 6.1? I have tried 2.0.2 and 2.1EA - I get the same error (See stack
> trace):

I've never heard of this kind of problems before.

> Caused by: java.lang.ArrayStoreException
>
> at
> com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl.<clinit>(Runti
> meBuiltinLeafInfoImpl.java:186)
>
> at java.lang.J9VMInternals.initializeImpl(Native Method)
>
> at
> java.lang.J9VMInternals.initialize(J9VMInternals.java:177)
>
> ... more

If you see the relevant code, you'll notice that there's not much
dynamic factor involved here. All the items that are assigned to the
array here is created statically, so if there is indeed this kind of
type incompatibility, it must have been spotted by the compiler.

I recommend first quickly checking if you don't have multiple copies of
the JAXB RI in multiple classloaders (although even if there are, I
don't think errors like this can occur.)

If that doesn't work, try setting the break point at line 186 (you
should downlonad the source zip bundle from the download section to do
this), and try to see what's going on.

Let me know what you find. This is a new mode of failure to me, so I'm
interested in knowing what the cause was.

-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com