Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JAXB Constructor newInstance Fails #9

Closed
ldriscoll opened this issue Feb 16, 2016 · 1 comment
Closed

JAXB Constructor newInstance Fails #9

ldriscoll opened this issue Feb 16, 2016 · 1 comment

Comments

@ldriscoll
Copy link

When I use jaxws to perform soap operations, and JAXB tries to create new instances of the objects being sent, I get errors like below:

14:54:55.797 [pool-1-thread-1] WARN  o.e.j.u.component.AbstractLifeCycle - FAILED org.eclipse.jetty.server.Server@2774c6da: java.lang.IllegalAccessError: Class com.sun.xml.ws.db.glassfish.JAXBRIContextWrapper can not access a member of class com.mysoap.Query with modifiers "protected"
java.lang.IllegalAccessError: Class com.sun.xml.ws.db.glassfish.JAXBRIContextWrapper can not access a member of class com.mysoap.Query with modifiers "protected"
    at com.sun.xml.ws.client.sei.BodyBuilder$DocLit.build(BodyBuilder.java:275) ~[jaxws-rt-2.2.10.jar:2.2.10]
    at com.sun.xml.ws.client.sei.BodyBuilder$JAXB.createMessage(BodyBuilder.java:103) ~[jaxws-rt-2.2.10.jar:2.2.10]
@sabomichal
Copy link
Owner

Well this seems to be specific issue with Glassfish com.sun.xml.internal.ws.db.glassfish.JAXBRIContextWrapper. This class seems to really care about illegal constructor access, so it can not instantiate the class with protected constructor. I have to check the implementation if there is any possibility at all to avoid this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants