Beta
Nuxeo Answers
ask a question

My project is Java 5 compliant. I am using Nuxeo Automation client 5.5 jar which is compiled with jdk 6.

I get the following exception:

java.lang.UnsupportedClassVersionError: (org/nuxeo/ecm/automation/client/model/Document) bad major version at offset=6
at java.lang.ClassLoader.defineClassImpl(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:228)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:148)
at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:526)
at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java:477)
at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:373)
at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:66)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:127)

Please help. Either I make my project Java 6 compliant (which I can't) or use a Nuxeo Automation Client jar compiled with jdk 5. Can i get a jar compiled with jdk 5?

I am stuck. Please help me solve my issue.

asked Apr 04 '12 at 12:28 catherine 1681313 catherine's gravatar image
edited Apr 04 '12 at 15:37 Florent Guillaume ♦♦ 4.5k112251 Florent%20Guillaume's gravatar image

We do not support Java 5, which is getting quite old, for the server or the client parts. You should try to recompile the client parts (Nuxeo Automation client) under a JDK 5, but I can't promise it will work as we haven't tried it. There should be no major obstacles though.

link
answered Apr 04 '12 at 15:39 Florent Guillaume ♦♦ 4.5k112251 Florent%20Guillaume's gravatar image

Thankyou florent for the response..

The jar available to me only have the .class files. i need to recompile it with java 5.

how can i get the source code of nuxeo automation client 5.5?

(Apr 09 '12 at 07:19) catherine

I would say that:

  • checkout sources here
  • go to the nuxeo-automation/nuxeo-automation-client directory
  • change the pom.xml to unforced the java 5 compilation

Hope this will work. Maybe the dependency will brings other problems.

(Apr 10 '12 at 18:45) bjalon ♦♦
Your answer
toggle preview

Bug Report

You found a bug? Please make sure you've asked the question here before submitting a bug report.

Report a bug

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×729
×1

Asked: Apr 04 '12 at 12:28

Seen: 438 times

Last updated: Apr 10 '12 at 18:45