Free Support Forum - groupdocs.com

Groupdocs.Viewer class conflict


#1

Hello,


We are using GroupDocs.Viewer for Java and we found the following problem:

In our application, we need the org.jsoup library, which is also used by GroupDocs.Viewer. This library has a class called org.jsoup.nodes.Entity.

The problem comes from the fact that this class has been refactored in GroupDocs.Viewer .jar file and, then, it conflicts with the original one (the one we use). This issue generates an Exception in our code, since there are two classes with the same and in the same package that cannot be resolved.

I can guess several ways to solve this issue, but I think the most simple one is to change your package name, since it has nothing to do with the original org.jsoup package.

We are a bit in a hurry to solve this issue, so please, we would appreciate a fast response (as you usually do).

Best Regards!




#2
Hello ,

Thank you for using GroupDocs.Viewer for Java.

Basically you can change this package name in your project in a simple way. You should use jarjar library for it. Please investigate this article for how to make it here .

If you will have more questions please feel free to contact us.

Best regards
Evgen Efimov

http://groupdocs.com
Your Document Collaboration APIs
Follow us on LinkedIn, Twitter, Facebook and Google+


#3

The issues you have found earlier (filed as VIEWERJAVA-989) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by GroupDocs Notifier.

#4

Thanks, but with this solution. After every update you do, do I have to change the class names in your .jar??


I would suggest that if you have modified the original jsoup library, you should use and distribute this package with another name. Don’t you think so?

Best Regards!

#5
Hello,

Thank you for your notification.

We have discussed your issue with our product team and they will investigate and fix it. We have logged this problem in our issue tracking system as VIEWERJAVA-989. We have attached this bug ticket to this thread and you will be notified via this forum thread once this issue is resolved.

Also you can try to use our slim Viewer library from Maven repository as workaround, but in this case you should independently download and install 3rd party libraries used in the GroupDocs.Viewer for Java.

Best regards
Evgen Efimov

http://groupdocs.com
Your Document Collaboration APIs
Follow us on LinkedIn, Twitter, Facebook and Google+


#6

Thank you very much for your quick response and for understanding our issue. We use the workaround solution you provided until we can use the fixed release.


I look forward to hearing from you very soon!

Best Regards!




#7
Hello,

Thank you for your patience.

We understand importance of this fix for you and we do all our best to speed it up. However we expecting to include this fix in our next release , which will be very soon. We'll let you know as as soon as this fix will be released.

Best regards
Evgen Efimov

http://groupdocs.com
Your Document Collaboration APIs
Follow us on LinkedIn, Twitter, Facebook and Google+


#8

I’ve seen that this issue has changed the status to fixed. When will it be released?


Thank you very much!



#9
Hello,

Thank you for your inquiry.

We have discussed with our product team release date of the new GroupDocs.Viewer for Java and they said that it should be closer to the middle of the month.
When the new GroupDocs.Viewer for Java will be released, you will be notified in this forum thread via automatic notification.

We apologize for the inconvenience.

Best regards
Evgen Efimov

http://groupdocs.com
Your Document Collaboration APIs
Follow us on LinkedIn, Twitter, Facebook and Google+