Skip to Content
avatar image
Former Member

JDO applications SAP Netweaver 7.3

Hi all,

I have a application using Java Data Objects (EJB DC migrated 6.40 to 7.3). I have this error when I make build:

[jdo.enhance] WARNING: Caused by: com.sap.jdo.enhancer.util.UserException: The byte code of the class file has version 1.6. This is not supported by the JDO enhancer. Please compile with the option -target 1.5.

[jdo.enhance] WARNING: at com.sap.jdo.enhancer.classfile.ClassFile.assertSupportedVersion(ClassFile.java:101)

[jdo.enhance] WARNING: at com.sap.jdo.enhancer.classfile.ClassFile.<init>(ClassFile.java:364)

[jdo.enhance] WARNING: at com.sap.jdo.enhancer.filter.Enhancer.enhanceClassFile1(Enhancer.java:144)

[jdo.enhance] WARNING: at com.sap.jdo.enhancer.filter.Enhancer.enhanceClassFile(Enhancer.java:192)

[jdo.enhance] WARNING: ... 45 more

[jdo.enhance] aborted with errors.

Ant runtime 1.07 seconds

Ant build finished with ERRORS

JDO enhancer failed because of unknown Error: 1

Build stopped due to an error: JDO enhancer failed because of unknown Error: 1

Build plugin finished at 2013-03-14 10:10:49 GMT+01:00 (CET)

Total build plugin runtime: 1.35 seconds

Build finished with ERROR

I have read this document (http://help.sap.com/saphelp_nw73/helpdata/en/48/257a6142ac539ae10000000a421937/content.htmhttp://help.sap.com/saphelp_nw73/helpdata/en/48/257a6142ac539ae10000000a421937/content.htm), but I don't know how to do the following and if that will fix my error:

■ JDO applications

Applications using Java Data Objects (JDO) need special attention. Though the applications themselves can be compiled and built with JDK 6, the actual JDO classes need to be compiled with JDK 1.5 or with JDK 6 using the “-target 1.5” option. JDO classes can be easily detected by their accompanying .jdo and .map files.

The requirement to use JDK 1.5-compliant build target results from the fact that the class files of JDO classes need to be post-processed by a tool known as the JDO enhancer. The class file format was significantly changed with JDK 6. However, the JDO enhancer does only support the JDK 1.5 class file format. Therefore, JDO classes must be compiled in such a way that the JDK 1.5 format is used for the class files. This can be achieved by using JDK 1.5 directly or JDK 6 with the option “-target 1.5” in the build.

Can anyboy help me?

Thanks in advance.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Jan 29, 2014 at 06:36 AM

    hello Jim,

    Please let me know if you were able to resolve the issue. We were able to bypass the "The byte code of the class file has version 1.6. This is not supported by the JDO enhancer. Please compile with the option -target 1.5." by compiling the JDO classes with -target 1.5 in eclipse. But have run into other errors with "Persistence manager was closed" issue. Appreciate if you can let me know on your updates from the migration

    Regards

    PU

    Add comment
    10|10000 characters needed characters exceeded