Cannot connect to x11 error causing java.lang.NoClassDefFoundError: Could not initialize class asposewobfuscated.rw

Hi,


At a point during conversion of regular multi-tabbed excel spreadsheet I encountered :

Java.lang.InternalError: Can’t connect to X11 window server using ‘localhost:10.0’ as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)

As the app makes use of a static pojo to convert its images in a JEE app, calling the conversion methods after this failure results in :

java.lang.NoClassDefFoundError: Could not initialize class asposewobfuscated.rw
at com.aspose.words.bcg.a(Unknown Source)
at com.aspose.words.bcg.g(Unknown Source)

Is there anyway that I can deal with besides setting awt to headless mode ?


Hi,


Thanks for the details.

As your error suggests that you are using Aspose.Words APIs, so I am moving this thread to Aspose.Words forum where one of my colleague from Aspose.Words team would help you soon there.

Thank you.

Hi Eugene,

Thanks for your inquiry. It would be great if you please share following detail for investigation purposes.


  • Please attach your input Word documents.
  • Please

    create a standalone/runnable simple Java application that demonstrates the code (Aspose.Words code) you used to generate
    your output document


Unfortunately,
it is difficult to say what the problem is without the Document(s) and
simplified application. We need your Document(s) and simple project to
reproduce the problem. As soon as you get these pieces of information to
us we’ll start our investigation into your issue.