Unsupported major.minor version 52.0 in dfc code
Hi,
We are getting below error message while uploading documents in repo using the dfc 7.2 code.
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/documentum/mailapp/operations/inbound/DfSeparateAttachments : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at com.documentum.fc.client.impl.bof.classmgmt.URLClassLoaderEx.findClass(URLClassLoaderEx.java:49)
at com.documentum.fc.client.impl.bof.classmgmt.DelayedDelegationClassLoader.findClass(DelayedDelegationClassLoader.java:241)
at com.documentum.fc.client.impl.bof.classmgmt.AbstractTransformingClassLoader.findClass(AbstractTransformingClassLoader.java:122)
at com.documentum.fc.client.impl.bof.classmgmt.DelayedDelegationClassLoader.loadClass(DelayedDelegationClassLoader.java:147)
at com.documentum.fc.client.impl.bof.classmgmt.AbstractTransformingClassLoader.loadClass(AbstractTransformingClassLoader.java:69)
at com.documentum.fc.client.impl.bof.classmgmt.ModuleManager.loadModuleClass(ModuleManager.java:254)
at com.documentum.fc.client.impl.bof.classmgmt.ModuleManager.getModuleClass(ModuleManager.java:203)
at com.documentum.fc.client.impl.bof.classmgmt.ModuleManager.newModule(ModuleManager.java:154)
at com.documentum.fc.client.impl.bof.classmgmt.ModuleManager.newModule(ModuleManager.java:86)
at com.documentum.operations.impl.OperationObjectFactory.newModule(OperationObjectFactory.java:33)
at com.documentum.operations.impl.OperationObjectFactory.newNodeAction(OperationObjectFactory.java:54)
at com.documentum.operations.steps.impl.OperationStep.executeStep(OperationStep.java:161)
at com.documentum.operations.steps.impl.OperationStep.execute(OperationStep.java:41)
at com.documentum.operations.impl.OperationExecutionEngine.execute(OperationExecutionEngine.java:51)
at com.documentum.operations.DfOperation.execute(DfOperation.java:400)
at com.documentum.operations.inbound.impl.InboundOperation.execute(InboundOperation.java:104)
at com.documentum.operations.inbound.DfImportOperation.execute(DfImportOperation.java:96)
at com.tcl.webservices.MsgDocumentImport.importDocument(MsgDocumentImport.java:98)
at
Environment details:-
DFC - 7.2 jar
Java - 1.7
EMC Composer - 7.2 version
Kindly help to resolve this issue.
Answers
-
This error occurs when you’re trying to run Java code compiled with a higher version of Java than the one installed on your system.
In your case, the class com/documentum/mailapp/operations/inbound/DfSeparateAttachments was compiled with a higher Java version (major version 52.0) than the one you’re using (Java 1.7, which corresponds to major version 51.0).Edited by bloxd io 1 day ago
0 -
Hi Daniel,
How can I resolve this issue?
0 -
Since your code is triggering BOF classes which were compiled with a higher version of Java, you will at least need to upgrade your Java version to Java 8. It would also be a good idea to upgrade to a DFC version which matches your Documentum Server version.
0 -
Hi Hicham,
How to resolve this error? Please suggest.
0 -
Like I wrote, your code is triggering code which was compiled for Java 8, e.g. com.documentum.mailapp.operations.inbound.DfSeparateAttachments. Therefore, you must use at least Java 8 JRE to run it.
0 -
I am using the java version listed below to write the code.
Environment details:-
DFC - 7.2 jar
Java - 1.7
EMC Composer - 7.2 version
0 -
Hi Hicham,
How can I resolve this issue?
Please suggest.
0 -
I've already tried to explain it twice but you don't seem to understand. Not sure what more I can do. I'm sure that there is a Java expert in your organisation who can explain this to you.
1 -
And how is this a better solution? Your first option is basically what I wrote. The second option (recompiling) is not applicable as the classes are provided by OpenText (BOF SBOs).
0 -
In short, you say you are using:
Environment details:-
DFC - 7.2 jar
=⇒ Java 1.8 Needed here
Java - 1.7
EMC Composer - 7.2 version0
Categories
- All Categories
- 122 Developer Announcements
- 53 Articles
- 150 General Questions
- 147 Thrust Services
- 56 OpenText Hackathon
- 37 Developer Tools
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 917 Cloud Fax and Notifications
- 84 Digital Asset Management
- 9.4K Documentum
- 31 eDOCS
- 184 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 7 XM Fax
- Follow Categories