File /META-INF/versions/9/module-info.class need be compiled by JDK 6

Hello,

Running Aspose.Words 18.12 for Java in Web Application Server Resin 4.0.59 and Java 8 I get the following error:

failed scanning class META-INF/versions/9/module-info.class
java.lang.IllegalStateException: META-INF/versions/9/module-info.class: ‘19’ is an unknown constant pool type.
java.lang.IllegalStateException: META-INF/versions/9/module-info.class: ‘19’ is an unknown constant pool type.
at com.caucho.bytecode.ByteCodeClassScanner.error(ByteCodeClassScanner.java:575)

The error caused by the fact that this file /versions/9/module-info.class is compiled by Java 9 but all other classes in the library are compiled by Java 6.

Could you please compile the file also for Java 6/7/8?

Best regards, Evgeniy

@konfetov

Thanks for your inquiry. We have logged this problem in our issue tracking system as WORDSJAVA-1963. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

A post was split to a new topic: Jetty doesn’t support JVM 9

@konfetov

Thanks for your patience. We have tested the scenario using Resin/4.0.59 with Java 8 and have not managed to reproduce this issue at our end. Aspose.Words for Java works as expected on our end regardless of location:

\WEB-INF\lib\aspose-words-18.12-jdk16.jar
resin\webapp-jars\aspose-words-18.12-jdk16.jar

It would be great if you please share how you create your web application. Please share the complete steps that you are using to reproduce this issue at our end. Thanks for your cooperation.

Hi Tahir,

Yes, the latest version of Resin 4.0.59 works properly fine with Aspose.Words 18.11 and higher.
Thank you very much for your input.
You can close the issue.

Best regards, Evgeniy

@konfetov

Thanks for your feedback. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.

For those who can’t upgrade the server… this solve the problem for IBM Websphere 8.5.5.5.

           <dependency>
            <groupId>com.aspose</groupId>
            <artifactId>aspose-words</artifactId>
            <version>20.2</version>
            <classifier>jdk16</classifier>
                <exclusions>
                  <exclusion>
                    <groupId>com.aspose</groupId>
                    <artifactId>aspose-words</artifactId>
                  </exclusion>
                </exclusions>
             </dependency>