cancel
Showing results for 
Search instead for 
Did you mean: 

java.lang.UnsupportedClassVersionError: (org/apache/poi/hssf/record/RecordF

Former Member
0 Kudos

Hi

I developed an application in Dev system and it is working fine.

Application reads data from an excel sheet and send this data to an interface.

When I transported this application to Test system, I am getting below error.

java.lang.UnsupportedClassVersionError: (org/apache/poi/hssf/record/RecordFormatException) bad major version at offset=6

I tried searching for this error on SDN but not much luck.

Could you please help?

This is little urgent as UAT is in progress.

Regards

Vineet

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

There was some issue with NWDI tracks.

Basis corrected those settings and it worked fine.

Thank you for your help, guidance and response.

junwu
Active Contributor
0 Kudos

it is general java error, nothing to do with sap.

make sure the lib you are using can run on sap java server.

nw7 jdk1.4

ce7.2 jdk 1.6

Former Member
0 Kudos

Hi John

I am not able to find org/apache/poi/hssf/record/RecordFormatException in any of the threads on SDN.

JDK version on both dev and test environment is same. Then why application is throwing error in test environment when it is working fine in Dev environment.

Is it a possibility that some thing is going wrong in CBS?

I am able to successfully activate my applications in NWDI track. Does it mean that everything is fine with the way track is configured?

I don't get any error when I assemble my activities in CBS.

As an addition to the information on our lanscape, we have some other portals running on CE7.2 and we use same NWDI for both NWDS 7.2 and NWDS 7.0.

Regards

Vineet

Former Member
0 Kudos

I forgot to mention that application that is throwing error is built on NWDS 7.0.11 with JDK 1.4.2_04.

Also, in NWDS, under Windows --> Preferences --> Java --> Compiler --> Compliance and Classfiles JDK Compiler Compliance level is set at 1.3. Only other option in drop down is 1.4.

Is this ok or do I need to change it to 1.4?

What difference will this setting make?

Regards

Vineet

Edited by: vineet vikram on Jan 21, 2012 11:18 PM

Former Member
0 Kudos

Hi

The minimum requirement is jdk 1.4. for poi up to 3.4.

Just change to 1.4 and test.

regards

yuval

Former Member
0 Kudos

Hi Yuval

I am using poi-3.2-FINAL-20081019.jar and jdk is 1.4.2_04.

It is working fine in dev environment but not in test environment.

Any other input?

regards

Vineet

Former Member
0 Kudos

Hi Vineet

Put the jars in the lib folder, so that they will be available where ever you deploy your project to.

I take it you are working on NW7.0?

Regards

Yuval