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

jakarta.activation must be open to at least com.sun.xml.bind #168

Open
GaZaTu opened this issue Dec 16, 2024 · 0 comments
Open

jakarta.activation must be open to at least com.sun.xml.bind #168

GaZaTu opened this issue Dec 16, 2024 · 0 comments

Comments

@GaZaTu
Copy link

GaZaTu commented Dec 16, 2024

Describe the bug
When using SOAP to for example transport base64 encoded files I get the following error:
com.sun.xml.ws.spi.db.DatabindingException: jakarta.xml.bind.JAXBException: Package jakarta.activation with class jakarta.activation.DataHandler defined in a module jakarta.activation must be open to at least com.sun.xml.bind module.

Exception:

com.sun.xml.ws.spi.db.DatabindingException: jakarta.xml.bind.JAXBException: Package jakarta.activation with class jakarta.activation.DataHandler defined in a module jakarta.activation must be open to at least com.sun.xml.bind module.
    at [com.sun.xml.ws@4.0.3/com.sun.xml.ws.db.glassfish.JAXBRIContextFactory.newContext](mailto:com.sun.xml.ws@4.0.3/com.sun.xml.ws.db.glassfish.JAXBRIContextFactory.newContext)(JAXBRIContextFactory.java:75)
    at [com.sun.xml.ws@4.0.3/com.sun.xml.ws.spi.db.BindingContextFactory.getBindingContextFromSpi](mailto:com.sun.xml.ws@4.0.3/com.sun.xml.ws.spi.db.BindingContextFactory.getBindingContextFromSpi)(BindingContextFactory.java:179)
    at [com.sun.xml.ws@4.0.3/com.sun.xml.ws.spi.db.BindingContextFactory.create](mailto:com.sun.xml.ws@4.0.3/com.sun.xml.ws.spi.db.BindingContextFactory.create)(BindingContextFactory.java:148)
    at [com.sun.xml.ws@4.0.3/com.sun.xml.ws.model.AbstractSEIModelImpl$1.run](mailto:com.sun.xml.ws@4.0.3/com.sun.xml.ws.model.AbstractSEIModelImpl$1.run)(AbstractSEIModelImpl.java:184)
    at [com.sun.xml.ws@4.0.3/com.sun.xml.ws.model.AbstractSEIModelImpl$1.run](mailto:com.sun.xml.ws@4.0.3/com.sun.xml.ws.model.AbstractSEIModelImpl$1.run)(AbstractSEIModelImpl.java:156)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:569)
    at [com.sun.xml.ws@4.0.3/com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext](mailto:com.sun.xml.ws@4.0.3/com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext)(AbstractSEIModelImpl.java:156)
    at [com.sun.xml.ws@4.0.3/com.sun.xml.ws.model.AbstractSEIModelImpl.postProcess](mailto:com.sun.xml.ws@4.0.3/com.sun.xml.ws.model.AbstractSEIModelImpl.postProcess)(AbstractSEIModelImpl.java:80)
    at [com.sun.xml.ws@4.0.3/com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel](mailto:com.sun.xml.ws@4.0.3/com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel)(RuntimeModeler.java:289)
    at [com.sun.xml.ws@4.0.3/com.sun.xml.ws.db.DatabindingImpl](mailto:com.sun.xml.ws@4.0.3/com.sun.xml.ws.db.DatabindingImpl).<init>(DatabindingImpl.java:70)
    at [com.sun.xml.ws@4.0.3/com.sun.xml.ws.db.DatabindingProviderImpl.create](mailto:com.sun.xml.ws@4.0.3/com.sun.xml.ws.db.DatabindingProviderImpl.create)(DatabindingProviderImpl.java:51)
    at [com.sun.xml.ws@4.0.3/com.sun.xml.ws.db.DatabindingProviderImpl.create](mailto:com.sun.xml.ws@4.0.3/com.sun.xml.ws.db.DatabindingProviderImpl.create)(DatabindingProviderImpl.java:28)
    at [com.sun.xml.ws@4.0.3/com.sun.xml.ws.db.DatabindingFactoryImpl.createRuntime](mailto:com.sun.xml.ws@4.0.3/com.sun.xml.ws.db.DatabindingFactoryImpl.createRuntime)(DatabindingFactoryImpl.java:92)
    at [com.sun.xml.ws@4.0.3/com.sun.xml.ws.client.WSServiceDelegate.buildRuntimeModel](mailto:com.sun.xml.ws@4.0.3/com.sun.xml.ws.client.WSServiceDelegate.buildRuntimeModel)(WSServiceDelegate.java:867)
    at [com.sun.xml.ws@4.0.3/com.sun.xml.ws.client.WSServiceDelegate.createSEIPortInfo](mailto:com.sun.xml.ws@4.0.3/com.sun.xml.ws.client.WSServiceDelegate.createSEIPortInfo)(WSServiceDelegate.java:884)
    at [com.sun.xml.ws@4.0.3/com.sun.xml.ws.client.WSServiceDelegate.addSEI](mailto:com.sun.xml.ws@4.0.3/com.sun.xml.ws.client.WSServiceDelegate.addSEI)(WSServiceDelegate.java:847)
    at [com.sun.xml.ws@4.0.3/com.sun.xml.ws.client.WSServiceDelegate.getPort](mailto:com.sun.xml.ws@4.0.3/com.sun.xml.ws.client.WSServiceDelegate.getPort)(WSServiceDelegate.java:425)
    at [com.sun.xml.ws@4.0.3/com.sun.xml.ws.client.WSServiceDelegate.getPort](mailto:com.sun.xml.ws@4.0.3/com.sun.xml.ws.client.WSServiceDelegate.getPort)(WSServiceDelegate.java:392)
    at [jakarta.xml.ws@4.0.2/jakarta.xml.ws.Service.getPort](mailto:jakarta.xml.ws@4.0.2/jakarta.xml.ws.Service.getPort)(Service.java:181)
    at josy.db/de.finkonsens.ginster.beku.v1.BekanntgabeService.getBekanntgabeSoapPort(BekanntgabeService.java:84)
    at josy.db/ofdh.staroffice.gibeku.v4.internal.GibekuClientBekanntgabe.getPort(GibekuClientBekanntgabe.java:391)
    at josy.db/ofdh.staroffice.gibeku.v4.internal.GibekuClientBekanntgabe.sendRequest(GibekuClientBekanntgabe.java:440)
    ... 29 more
Caused by: jakarta.xml.bind.JAXBException: Package jakarta.activation with class jakarta.activation.DataHandler defined in a module jakarta.activation must be open to at least com.sun.xml.bind module.
    at [com.sun.xml.bind@4.0.5/org.glassfish.jaxb.runtime.v2.MUtils.open](mailto:com.sun.xml.bind@4.0.5/org.glassfish.jaxb.runtime.v2.MUtils.open)(MUtils.java:58)
    at [com.sun.xml.bind@4.0.5/org.glassfish.jaxb.runtime.v2.ContextFactory.createContext](mailto:com.sun.xml.bind@4.0.5/org.glassfish.jaxb.runtime.v2.ContextFactory.createContext)(ContextFactory.java:52)
    at [com.sun.xml.bind@4.0.5/org.glassfish.jaxb.runtime.api.JAXBRIContext.newInstance](mailto:com.sun.xml.bind@4.0.5/org.glassfish.jaxb.runtime.api.JAXBRIContext.newInstance)(JAXBRIContext.java:132)
    at [com.sun.xml.bind@4.0.5/org.glassfish.jaxb.runtime.api.JAXBRIContext.newInstance](mailto:com.sun.xml.bind@4.0.5/org.glassfish.jaxb.runtime.api.JAXBRIContext.newInstance)(JAXBRIContext.java:76)
    at [com.sun.xml.ws@4.0.3/com.sun.xml.ws.developer.JAXBContextFactory$1.createJAXBContext](mailto:com.sun.xml.ws@4.0.3/com.sun.xml.ws.developer.JAXBContextFactory$1.createJAXBContext)(JAXBContextFactory.java:84)
    at [com.sun.xml.ws@4.0.3/com.sun.xml.ws.db.glassfish.JAXBRIContextFactory.newContext](mailto:com.sun.xml.ws@4.0.3/com.sun.xml.ws.db.glassfish.JAXBRIContextFactory.newContext)(JAXBRIContextFactory.java:64)
    ... 50 more

Additional context
A simple solution is to just add opens jakarta.activation; to the module-info.java

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

No branches or pull requests

1 participant