Exception: No generator was provided and there is no default generator registered

3,824 views
Skip to first unread message

Mohammad GH

unread,
Mar 17, 2017, 7:49:49 AM3/17/17
to documents4j
Hi

I want to convert excel to pdf with documents4j. However I have this error:

Exception in thread "main" java.lang.RuntimeException: java.lang.ClassNotFoundException: Provider org.glassfish.jersey.internal.RuntimeDelegateImpl could not be instantiated: java.lang.IllegalStateException: No generator was provided and there is no default generator registered


Any suggestion on it? It seems that related to some version conflict. Attached i the screenshot of my code and libraries.

Bests,
Mohammad


Auto Generated Inline Image 1

Rafael Winterhalter

unread,
Mar 17, 2017, 1:59:13 PM3/17/17
to Mohammad GH, documents4j
Hi, you should manage your dependencies with a tool like Maven to avoid this. Seems like you are missing some transitive dependencies. Have a look at this:


--
You received this message because you are subscribed to the Google Groups "documents4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to documents4j+unsubscribe@googlegroups.com.
To post to this group, send email to docum...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/documents4j/0de1aaf3-ce36-4f78-8a28-cc9cb82f7ecf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rafael Winterhalter

unread,
Mar 17, 2017, 1:59:20 PM3/17/17
to Mohammad GH, documents4j
Reply all
Reply to author
Forward
0 new messages