executable problems with shell script in IBM servers

Thread Tools Search this Thread
Operating Systems AIX executable problems with shell script in IBM servers
# 1  
Old 09-25-2014
executable problems with shell script in IBM servers

We have a java stand alone application running currently on sun Solaris system. The java application runs on Jdk 1.4.

We are reshooting this java application to new Ibm servers.

There are 10 unix scripts for this application. All scripts works well except one shell script,

This shell script execute one java file where we are setting a properties file in the java options with -D configfiles.ini .

This properties in turn has entry for some other ini files. Ex. XMLgenerator.ini

XMLgenerator.ini has key key value pair something like filename = punches.txt.

This property of filename is required by the java class to process further.

When we execute this script file on new ibm server- the configfiles.ini is properly set and the values are properly read. But, the moment we start the execution of the java class - the property value of filename in XMLgenerator.ini comes out null.

I have something like this in my shell script

/usr/java14/bin/java \
-DWindowsFileFactory.bufferSize.StagedPunches=102400 \
-DWindowsFileFactory.bufferSize.XmlPunches=102400 \
-DWindowsFileFactory.fullFileName.StagedPunches=/usr/local/apps/workbrain/data/punches/staged/punches.txt \
-DPropertiesFileNames=config/ssc/workbrain/punches/xmlgenerator/ConfigFiles.ini \
-Djava.util.logging.config.file=${logprop} \
-classpath ${CLASSPATH} \

if [[ $statusCode != 0 ]]; then
FormatMsg -u2 -p${PGM} -l $LINENO "$prgToRun JOB FAILED. Job Return Code: [$statusCode]."
return 16

Output in the Logs

2014.09.25 12:54:33.328 - 10 (FINE   ) main:ConfigProperties.getPropertiesFileNames - fileNames=,config/ssc/workbrain/configXML/XML.ini
main:ConfigProperties.<init> - ConfigProperties:
   ,Standard Edition
2014.09.25 12:54:33.849 - 10 (WARNING) main:XMLGenerator.logStats - ElapsedTime=535,StagedCount=0,XmlCount=0,ErroredCount=0
2014.09.25 12:54:33.849 - 10 (WARNING) main:XMLGenerator.main - 
2014.09.25 12:54:33.849 - 10 (WARNING) main:XMLGenerator.main - 2014.09.25 12:54:33.849 - 10 (WARNING) main:XMLGenerator.main - <<com.cvs.components.fileio.FileIOException:fileName=StagedPunches>>
2014.09.25 12:54:33.849 - 10 (WARNING) main:XMLGenerator.main - caused by: 
2014.09.25 12:54:33.849 - 10 (WARNING) main:XMLGenerator.main - <<java.lang.NullPointerException:null>>
2014.09.25 12:54:33.849 - 10 (WARNING) main:XMLGenerator.main - java.io.FileInputStream.<init>(FileInputStream.java:126)
2014.09.25 12:54:33.849 - 10 (WARNING) main:XMLGenerator.main - java.io.FileReader.<init>(FileReader.java:76)
2014.09.25 12:54:33.849 - 10 (WARNING) main:XMLGenerator.main - com.cvs.components.fileio.SequentialFile.getReader(SequentialFile.java:276)
2014.09.25 12:54:33.849 - 10 (WARNING) main:XMLGenerator.main - com.cvs.components.fileio.SequentialFile.readNext(SequentialFile.java:354)
2014.09.25 12:54:33.849 - 10 (WARNING) main:XMLGenerator.main - com.cvs.components.fileio.SequentialFile.read(SequentialFile.java:136)
2014.09.25 12:54:33.849 - 10 (WARNING) main:XMLGenerator.main - com.cvs.ssc.workbrain.punches.XMLGenerator.writeClockElements(XMLGenerator.java:146)
2014.09.25 12:54:33.849 - 10 (WARNING) main:XMLGenerator.main - com.cvs.ssc.workbrain.punches.XMLGenerator.processFile(XMLGenerator.java:100)
2014.09.25 12:54:33.849 - 10 (WARNING) main:XMLGenerator.main - com.cvs.ssc.workbrain.punches.XMLGenerator.main(XMLGenerator.java:80)
12:54:33 | 704536 | 0 | midp010d_punches_process.sh | 27 | com.cvs.ssc.workbrain.punches.XMLGenerator JOB FAILED. Job Return Code: [16].
Ran with CLASSPATH[:/usr/local/apps/workbrain/etc:/usr/local/apps/workbrain/lib/ssc_workbrain.jar:/usr/local/apps/workbrain/lib/jtpe_cor.jar:/usr/local/apps/workbrain/lib/componts.jar:/usr/local/apps/workbrain/lib/cvsimage.jar:/usr/local/apps/workbrain/lib/utils.jar:/usr/local/apps/workbrain/lib/xalan.jar:/usr/local/apps/workbrain/lib/xerces.jar:/usr/local/apps/workbrain/lib/xml-apis.jar]
+ statusCode=16

Please help what could be the problem .

Moderator's Comments:
Mod Comment Please wrap CODE tags around code, files, input & output/errors.
It makes them far easier to read and preserves the spacing

Last edited by rbatte1; 09-26-2014 at 01:24 PM.. Reason: Added CODE tags
# 2  
Old 09-26-2014
This looks more OS specific environment issue, thread moved to AIX

Removed Urgent from Title, reason:
Moderator's Comments:
Mod Comment
Everyone at the UNIX and Linux Forums gives their best effort to reply to all questions in a timely manner. For this reason, posting questions with subjects like "Urgent!" or "Emergency" and demanding a fast reply are not permitted in the regular forums.

For members who want a higher visibility to their questions, we suggest you post in the Emergency UNIX and Linux Support Forum. This forum is given a higher priority than our regular forums.

Posting a new question in the Emergency UNIX and Linux Support Forum requires forum Bits. We monitor this forum to help people with emergencies, but we do not not guarantee response time or best answers. However, we will treat your post with a higher priority and give our best efforts to help you.

If you have posted a question in the regular forum with a subject "Urgent" "Emergency" or similar idea, we will, more-than-likely, close your thread and post this reply, redirecting you to the proper forum.

Of course, you can always post a descriptive subject text, remove words like "Urgent" etc. (from your subject and post) and post in the regular forums at any time.

Thank you.

The UNIX and Linux Forums
This User Gave Thanks to vbe For This Post:
# 3  
Old 09-29-2014
The IBM way of setting up different JAVA versions is somewhat particular. Control if your "JAVA_HOME" environment variable is pointing to the right place and if the Java version you want to use is the first in the PATH variable. Modern versions of AIX are shipping with Java 1.6 and to get 1.4 you need to install that as an additional package. Chances are you are addressing a wrong version.

I hope this helps.

Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell script to encrypt the xls file using executable jar in Linux SUSE 11.4

Dear Experts, I am an ERP consultant and would like to learn shell script. We are working on Linux SUSE 11.4 and I am very new to shell scripting. We can manually encrypt an excel file using "executable jar" through command prompt by placing the jar file & the file to be encrypted on a physical... (1 Reply)
Discussion started by: nithin226
1 Replies

2. Shell Programming and Scripting

Issue while executing C executable with argument in shell script

Hi All, I am new to this forum and also shell script :) My task is I have to read CSV file get the data from the file and use the data to call c executable with data as argument.And the output from c executable should be stored to new CSV file Please find below my code testfunction() {... (14 Replies)
Discussion started by: ravjot28
14 Replies

3. AIX

IBM Servers Documentation

Hello dear friends, I wanrt to document our servers configuration but have no Idea which softweare should I use for documenting server environment.. maybe anyone can suggest me which software should I use.. thanks in Advance (2 Replies)
Discussion started by: Vit0_Corleone
2 Replies

4. Shell Programming and Scripting

convert shell script into a binary executable

Hello every one, i want to convert my shell script into a binary executable a .exe file , is it possible to do that if so are there any tools . Would the script take off when the arguments are parsed. Thanks Venu (13 Replies)
Discussion started by: venu
13 Replies

5. UNIX for Dummies Questions & Answers

running command prompt executable file in shell script

hi i have file extentioned with test.vbs. i am able to run this file n execute through command promt but i dont know how to run in shell script example: file name is test.vbs which contains strSoundFile = "C:\windows\Media\Notify.wav" Set objShell = CreateObject("Wscript.Shell") strCommand... (5 Replies)
Discussion started by: atl@mav
5 Replies

6. UNIX for Advanced & Expert Users

HP-UX 10.2 servers interoperability with IBM mass storage devices

Does anyone have succesfully interconnected HP-UX 10.2 HP 9000 K370 servers with A6885A HBA's, with an IBM Fastt storage server? I need to replace integrate both platforms. Interoperability matrices from manufacturers do not certified such integration. Thanks for anybody's help. (0 Replies)
Discussion started by: raltmannr
0 Replies
Login or Register to Ask a Question

Featured Tech Videos