Unable to create Java Virtual Machine

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
thirupathireddy.gankidi
Participant
Posts: 19
Joined: Mon Aug 08, 2011 3:20 am

Unable to create Java Virtual Machine

Post 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
prasson_ibm
Premium Member
Premium Member
Posts: 536
Joined: Thu Oct 11, 2007 1:48 am
Location: Bangalore

Post 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.
thirupathireddy.gankidi
Participant
Posts: 19
Joined: Mon Aug 08, 2011 3:20 am

Post 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.
prasson_ibm
Premium Member
Premium Member
Posts: 536
Joined: Thu Oct 11, 2007 1:48 am
Location: Bangalore

Post 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.
prasson_ibm
Premium Member
Premium Member
Posts: 536
Joined: Thu Oct 11, 2007 1:48 am
Location: Bangalore

Re: Unable to create Java Virtual Machine claspath

Post 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.
asorrell
Posts: 1707
Joined: Fri Apr 04, 2003 2:00 pm
Location: Colleyville, Texas

Post by asorrell »

IBM actually has a tech note on that:

http://www-01.ibm.com/support/docview.w ... wg21607302
Andy Sorrell
Certified DataStage Consultant
IBM Analytics Champion 2009 - 2020
Post Reply