Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Sheetal1
Contributor
Contributor

java.lang.NoClassDefFoundError: Integer (TOS_BD 6.5.1)

Hi,

I have installed TOS_BD 6.5.1.

And trying to run job which is testing connectivity with MongoDB database 3.6. In repository I am able to create successful connection with MongoDB database. However whenever trying to run job I am getting below error:

Starting job Test_MongoDBConnection at 14:27 26/04/2018.

java.lang.NoClassDefFoundError: Integer
 at java.lang.Class.getDeclaredMethods0(Native Method)
 at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
 at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
 at java.lang.Class.getMethod0(Class.java:3018)
 at java.lang.Class.getMethod(Class.java:1784)
 at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
 at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: Integer
 at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
 ... 7 more
Error: A JNI error has occurred, please check your installation and try again
Job Test_MongoDBConnection ended at 14:27 26/04/2018. [exit code=1]

 

Please help me in resolving this issue.

Thanks in Advance!!

 

My Configurations are as below:

Java Installation: jdk1.8.0_102 and jre1.8.0_161

OS:Windows 7 (64 bit)

My environment variables configuration are as below:

JAVA_HOME: C:\Program Files\Java\jdk1.8.0_102\bin

JDK_HOME: C:\Program Files\Java\jdk1.8.0_102\bin

Path: C:\Program Files\Java\jdk1.8.0_102\bin (At first place in Path variables)

 

I have checked Window->Preferences->Java->Installed JREs

0683p000009Lx18.jpg

 

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hello,

Are you using oracle jdk 1.8? Did you install Java 9 also in your computer? Could you please re-install your studio TOS_BD 6.5.1 to see if it works well?

Best regards

Sabrina

View solution in original post

8 Replies
Sheetal1
Contributor
Contributor
Author

Hi Manohar,

Yes, I did.
I already take care of all perquisites like Java 8(jdk1.8.0_102) in place, Environments variables al place, still facing issue.

Sample Job with only tMessageBox component able to run successfully.

Thanks,
Sheetal
Sheetal1
Contributor
Contributor
Author

Hi,
Can anybody suggest me solution? I am still facing an issue.

Thanks,
Sheetal
Anonymous
Not applicable

Hello,

Are you using oracle jdk 1.8? Did you install Java 9 also in your computer? Could you please re-install your studio TOS_BD 6.5.1 to see if it works well?

Best regards

Sabrina

ashok5
Contributor III
Contributor III

Hi Sheetal,

 

I have faced the same issue and resolved this by upgrading the jre, jdk to latest versions.

 

Thanks

Ashok

Anonymous
Not applicable

Hello,

Please refer to online document about:TalendHelpCenter:Compatible Java Environments.

Best regards

Sabrina

Sheetal1
Contributor
Contributor
Author

Hi Sabrina,

 

Thanks for help! I am using JDK 1.8 and I have not installed Java 9.

However I tried to re-install studio TOS_BD 6.5.1 and my issue resolved.

 

Thanks,

Sheetal

Anonymous
Not applicable

Hello,

Great this issue has been fixed. Thanks for your feedback.

Best regards

Sabrina