[resolved] sh: Java errors from a job which works used as a Webservice

One Star

[resolved] sh: Java errors from a job which works used as a Webservice

Hi,
I've exported one job to both Webservice and .sh.
The webservice is ok.
However, on the same server, I obtain this execution error when it is exported to a .sh :
Warning: -Xms256M not understood. Ignoring.
Warning: -Xmx1024M not understood. Ignoring.
Exception in thread "main" java.lang.NoClassDefFoundError: while resolving class: mosmart_suppliers.b_etlload_0_1.b_ETLload
at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib64/libgcj.so.5.0.0)
at java.lang.Class.initializeClass() (/usr/lib64/libgcj.so.5.0.0)
at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib64/libgcj.so.5.0.0)
at gnu.gcj.runtime.FirstThread.run() (/usr/lib64/libgcj.so.5.0.0)
at _Jv_ThreadRun(java.lang.Thread) (/usr/lib64/libgcj.so.5.0.0)
at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib64/libgcj.so.5.0.0)
at __gcj_personality_v0 (/tmp/talend/job/b_ETLload/b_ETLload/java.version=1.4.2)
at __libc_start_main (/lib64/tls/libc-2.3.4.so)
at _Jv_RegisterClasses (/tmp/talend/job/b_ETLload/b_ETLload/java.version=1.4.2)
Caused by: java.lang.ClassNotFoundException: java.lang.StringBuilder not found in
at java.net.URLClassLoader.findClass(java.lang.String) (/usr/lib64/libgcj.so.5.0.0)
at gnu.gcj.runtime.VMClassLoader.findClass(java.lang.String) (/usr/lib64/libgcj.so.5.0.0)
at java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/usr/lib64/libgcj.so.5.0.0)
at _Jv_FindClass(_Jv_Utf8Const, java.lang.ClassLoader) (/usr/lib64/libgcj.so.5.0.0)
at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib64/libgcj.so.5.0.0)
at _Jv_BytecodeVerifier.verify_instructions_0() (/usr/lib64/libgcj.so.5.0.0)
at _Jv_VerifyMethod(_Jv_InterpMethod) (/usr/lib64/libgcj.so.5.0.0)
at _Jv_PrepareClass(java.lang.Class) (/usr/lib64/libgcj.so.5.0.0)
at _Jv_WaitForState(java.lang.Class, int) (/usr/lib64/libgcj.so.5.0.0)
at java.lang.VMClassLoader.linkClass0(java.lang.Class) (/usr/lib64/libgcj.so.5.0.0)
at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib64/libgcj.so.5.0.0)
...8 more

Is that a pb with my Java Machine version ? (not the same as the Tomcat JVM I guess ?)
Then, on another server (but with the same job), here is what I get :
Exception in thread "main" java.lang.NoClassDefFoundError: org.talend.fileprocess.TOSDelimitedReader$StreamBuffer
at java.lang.Class.initializeClass(libgcj.so.7rh)
at org.talend.fileprocess.TOSDelimitedReader.<init>(TOSDelimitedReader.java:79)
at org.talend.fileprocess.FileInputDelimited.<init>(FileInputDelimited.java:83)
at mosmart_suppliers.b_etlload_0_1.b_ETLload.tFileInputDelimited_1Process(b_ETLload.java:1271)
at mosmart_suppliers.b_etlload_0_1.b_ETLload.tFileExist_1Process(b_ETLload.java:445)
at mosmart_suppliers.b_etlload_0_1.b_ETLload.tOracleConnection_1Process(b_ETLload.java:384)
at mosmart_suppliers.b_etlload_0_1.b_ETLload.runJobInTOS(b_ETLload.java:4269)
at mosmart_suppliers.b_etlload_0_1.b_ETLload.main(b_ETLload.java:4171)
Caused by: java.lang.ClassNotFoundException: sun.security.action.GetPropertyAction not found in gnu.gcj.runtime.SystemClassLoader{urls=, parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(libgcj.so.7rh)
at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
at java.lang.Class.forName(libgcj.so.7rh)
at java.lang.Class.initializeClass(libgcj.so.7rh)
...7 more

Any idea ?
Thank you in advance.
Best regards,

Nicolas

Accepted Solutions
Community Manager

Re: [resolved] sh: Java errors from a job which works used as a Webservice

Hello
Is that a pb with my Java Machine version ? (not the same as the Tomcat JVM I guess ?)
GetPropertyAction not found in gnu.gcj.runtime.SystemClassLoader

You have to use a Sun JVM
Talend Open Studio is not compatible with gcj.
Best regards
shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

All Replies
Community Manager

Re: [resolved] sh: Java errors from a job which works used as a Webservice

Hello
Is that a pb with my Java Machine version ? (not the same as the Tomcat JVM I guess ?)
GetPropertyAction not found in gnu.gcj.runtime.SystemClassLoader

You have to use a Sun JVM
Talend Open Studio is not compatible with gcj.
Best regards
shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: [resolved] sh: Java errors from a job which works used as a Webservice

Hi,
Thank you for the answer Smiley Happy.
I'll give you news after new tests
Regards,
Nicolas
One Star

Re: [resolved] sh: Java errors from a job which works used as a Webservice

Hello,
I've forgotten to give you news.
Just to say it's ok now.
Thank you.
Best regards,
Nicolas