On 8/5/2021 2:53 AM, Abhishek jain wrote:
> Hi ,
>
> I am getting below error in Test module when trying to create a new instance for jaxb context ,
>
> Caused by: java.lang.ClassCastException: "PackageName.className"$JaxbAccessorF_FieldName cannot be cast to com.sun.xml.internal.bind.v2.runtime.reflect.Accessor
> at com.sun.xml.internal.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.instanciate(OptimizedAccessorFactory.java:184)
> [...]
Although I know nothing whatsoever about JAXB or OpenEjb, I know how
to do simple Web searches. Looking for "OptimizedAccessorFactory" led
me to
https://github.com/eclipse-ee4j/jaxb-ri/issues/1449
... which you might find helpful.
> below is the code snippet on which it throws error
>
> jaxbcontext = JAXBContext.newInstance(Classname.class);
Lots of detail there ...
--
eso...@comcast-dot-net.invalid
Look on my code, ye Hackers, and guffaw!