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

Multithreading JAXB-API #280

Closed
IGatsev opened this issue Nov 2, 2023 · 0 comments
Closed

Multithreading JAXB-API #280

IGatsev opened this issue Nov 2, 2023 · 0 comments

Comments

@IGatsev
Copy link

IGatsev commented Nov 2, 2023

My marshaller run from CompletableFuture in docker container.

  CompletableFuture.runAsync(() -> {
            try {
                screeningService.runTask(uuid, type);
            } catch (JAXBException | IOException e) {
                throw new RuntimeException(e);
            }
        });
    public static String jaxbObjectToXML(Object object, Class<?> clazz) throws JAXBException {
        JAXBContext context = null;
        try {
            context = JAXBContext.newInstance(clazz);
        } catch (JAXBException ex) {
            ex.printStackTrace();
        }
}

I having error
Implementation of JAXB-API has not been found on module path or classpath

I have all dependency

Found on stackoverflow same question

Link
How fix it?

@IGatsev IGatsev changed the title how Multithreading JAXB-API Nov 2, 2023
@IGatsev IGatsev closed this as completed Nov 2, 2023
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