Unsupported major.minor version 52.0 in dfc code

Ram_Kishan_Maitry
edited September 11 in Documentum #1

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.

Tagged:

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

  • Hi Daniel,

    How can I resolve this issue?

  • 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.

  • Hi Hicham,

    How to resolve this error? Please suggest.

  • 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.

  • 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

  • Hi Hicham,

    How can I resolve this issue?

    Please suggest.

  • 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.