Page 1 of 1

Unable to create Java Virtual Machine

Posted: Tue Sep 17, 2013 9:48 pm
by thirupathireddy.gankidi
Job design in DS v8.7:
Web_Services_Client-------->>peek

DataStage job is aborting due to Below error:

Web_Services_Client_0,0: Fatal Error: Fatal: TJClient::initialize: unable to create Java Virtual Machine; classpath = /opt/IBM/InformationServer/Server/DSEngine/java/lib/wsclient.jar
/opt/IBM/InformationServer/Server/DSEngine/java/lib/axis.jar
/opt/IBM/InformationServer/Server/DSEngine/java/lib/commons-discovery.jar
/opt/IBM/InformationServer/Server/DSEngine/java/lib/commons-logging.jar
/opt/IBM/InformationServer/Server/DSEngine/java/lib/jaxrpc.jar
/opt/IBM/InformationServer/Server/DSEngine/java/lib/saaj.jar
/opt/IBM/InformationServer/Server/DSEngine/java/lib/wsdl4j.jar [dscapiop.C:2169]

Pls help me to resolve the issue

Thanks in advance
Thiru

Posted: Wed Sep 18, 2013 1:46 am
by prasson_ibm
Hi,

What is the setting of your .profile for JVM?

If you are adding add DATASTAGE_JRE and DATASTAGE_JVM in the project (DataStage Administrator) level and job level or .profile:-
There is no need to add JRE/JVM variables to the .profile or DataStage administrator. As per new IIS 8.7 the DataStage knows where to find the JRE/JVM files at their default location in the InformationServer directory tree. It will look for them in the default location as long as those environment variables are undefined.

Posted: Wed Sep 18, 2013 4:04 am
by thirupathireddy.gankidi
Hi Prasoon Da,

I designed the job in Datastage v8.7 ,So i have not added DATASTAGE_JRE and DATASTAGE_JVM in my job.

Posted: Wed Sep 18, 2013 4:15 am
by prasson_ibm
Ok.

Can you please tell me your .profile settings or you make sure below settings are there in .profile.

1.Add java client path to the path variable in .profile of dsadm user.

2.Add Datastage java classpath to .profile

3.Compile your code using javac command.It will generate .class file.

4.Use that class file name (without .class extn.) in Java Client Stage.

Re: Unable to create Java Virtual Machine claspath

Posted: Wed Sep 18, 2013 4:25 am
by prasson_ibm
thirupathireddy.gankidi wrote:Fatal: TJClient::initialize: unable to create Java Virtual Machine; classpath = /opt/IBM/InformationServer/Server/DSEngine/java/lib/wsclient.jar
Add

Code: Select all

/opt/IBM/InformationServer/Server/DSEngine/java/lib/tr4j.jar
to your CLASSPATH and restart the engine.

Posted: Wed Sep 18, 2013 8:10 am
by asorrell
IBM actually has a tech note on that:

http://www-01.ibm.com/support/docview.w ... wg21607302