JAXB accesors: ClassLoader.defineClass
Gerardo Lastra <[email protected]>
| Newsgroups | gmane.comp.java.ikvm.devel |
|---|---|
| Message-ID | <CAAAKuU6-1OXg7RBbQj53bywpDcViSUb3jwrZY48OaBV=_oV1WA@mail.gmail.com> |
Hi all,
I'm doing some research on the possibility of running a Java SOAP WS client
(using Apache CXF and JAXB) on .NET through ikvmc. I've managed to create
the .dll so far, but when I'm starting the application (when the JAXB
content is starting), I get the following error (names replaced):
Mar 24, 2014 5:20:55 PM com.sun.xml.bind.v2.runtime.reflect.opt.Injector
inject
WARNING: duplicate class definition bug occured? Please report this :
a/b/c/ThisIsAJaxbType$JaxbAccessorF_someField
java.lang.NoClassDefFoundError:
a/b/c/ThisIsAJaxbType$JaxbAccessorF_someField (type not found in
my-assembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null)
at IKVM.NativeCode.java.lang.ClassLoader.defineClass1(Unknown
Source)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:814)
at java.lang.ClassLoader.defineClass(ClassLoader.java:656)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.sun.xml.bind.v2.runtime.reflect.opt.Injector.inject(Injector.java
:205)
at
com.sun.xml.bind.v2.runtime.reflect.opt.Injector.inject(Injector.java
:85)
at
com.sun.xml.bind.v2.runtime.reflect.opt.AccessorInjector.prepare(Acce
ssorInjector.java:89)
at
com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.get(
OptimizedAccessorFactory.java:167)
at
com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection.optimize
(Accessor.java:279)
at
com.sun.xml.bind.v2.runtime.property.SingleElementLeafProperty.<init>
(SingleElementLeafProperty.java:82)
at java.lang.reflect.Constructor.newInstance(Constructor.java:522)
at
com.sun.xml.bind.v2.runtime.property.PropertyFactory.create(PropertyF
actory.java:124)
at
com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.<init>(ClassBeanInfoImp
l.java:179)
at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextIm
pl.java:515)
... stacktrace continues.
I think the problem is either JAXB is using the wrong ClassLoader when
defining the injected classes, or there's a problem in IKVM itself. Any
ideas?
Thank you!
Gerardo
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Ikvm-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ikvm-developers