Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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
@Sheetal,do you verified below link?
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
Hi Sheetal,
I have faced the same issue and resolved this by upgrading the jre, jdk to latest versions.
Thanks
Ashok
Hello,
Please refer to online document about:TalendHelpCenter:Compatible Java Environments.
Best regards
Sabrina
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
Hello,
Great this issue has been fixed. Thanks for your feedback.
Best regards
Sabrina