Unable to create Java virtual machine

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
Hope
Participant
Posts: 97
Joined: Sun May 13, 2007 2:51 pm
Contact:

Unable to create Java virtual machine

Post by Hope »

I am extracting data using webservices client stage.The job aborts with "Unable to create Java virtual machine". I added environment variables in DSADMIN as
DATASTAGE_JRE=$ASBNode/apps/jre
DSHOME=C:\IBM\InformationServer\Server\DSEngine
LIBPATH=$ASBHOME/jre/bin/sovvm;$ASBNode/apps/jre/bin

Still my job fails.

Please suggest.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Please post the complete unedited error message(s) that are logged. Are $ASBHOME and $ASBNODE set as well? And I don't believe that Windows uses a LIBPATH like UNIX does. :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
Hope
Participant
Posts: 97
Joined: Sun May 13, 2007 2:51 pm
Contact:

Post by Hope »

ASBHome=D:\IBM\InformationServer\ASBServer
ASBNode=D:\IBM\InformationServer\ASBNode
PATH=$ASBHOME/jre/bin/sovvm ;$ASBNode/apps/jre/bin;
DSHOME=D:\IBM\InformationServer\Server\DSEngine
DATASTAGE_JRE=$ASBNode/apps/jre

These varaiables I defined in the DSADMIN.

I am using the webservices stage for the 1st time.
The design is
Webservices clientstage---------sequential stage.
only 2 stages.

Below is the error
Webservices_source..Web_Services_Client_6: TJClient::initialize: unable to create Java Virtual Machine; classpath = D:\IBM\InformationServer\Server\DSEngine\java/lib/wsclient.jar
D:\IBM\InformationServer\Server\DSEngine\java/lib/axis.jar
D:\IBM\InformationServer\Server\DSEngine\java/lib/commons-discovery.jar
D:\IBM\InformationServer\Server\DSEngine\java/lib/commons-logging.jar
D:\IBM\InformationServer\Server\DSEngine\java/lib/jaxrpc.jar
D:\IBM\InformationServer\Server\DSEngine\java/lib/saaj.jar
D:\IBM\InformationServer\Server\DSEngine\java/lib/wsdl4j.jar
ASCL-DSJNI-00011`:`JNIWrapper: load library failed: directory D:\IBM\InformationServer\Server\DSEngine\$ASBNode/apps/jre \bin/classic, name jvm.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Try an exact search on "JNIWrapper: load library failed".
-craig

"You can never have too many knives" -- Logan Nine Fingers
Hope
Participant
Posts: 97
Joined: Sun May 13, 2007 2:51 pm
Contact:

Post by Hope »

I did search the topic but I couldn't solve the issue. I did check my env from command prompt and I didn't see my dsenv or dshome there. How do I see dsenv,dshome on windows?
Please advice
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

There's no dsenv file with a Windows server, that strictly a UNIX thing.
-craig

"You can never have too many knives" -- Logan Nine Fingers
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

From my quick search, the advice is to make sure that both DATASTAGE_JVM and DATASTAGE_JRE are set properly.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Sreenivasulu
Premium Member
Premium Member
Posts: 892
Joined: Thu Oct 16, 2003 5:18 am

Post by Sreenivasulu »

Have you done a 'file' or 'ldd' on the library ?
Post Reply