1

I am calling a runnbale jar from a CL program by using RUNJVA command two times with different parameters as follows: 

   

RUNJVA     CLASS('/MYFOLDER/JAVA/project.jar') +
               PARM('INIT' '129.186.121.33' 'TESTLIB') +
               OUTPUT(* *CONTINUE)

   RUNJVA     CLASS('/MYFOLDER/JAVA/project.jar') +
               PARM('CLOSE' '129.186.121.33' 'TESTLIB') +
               OUTPUT(* *CONTINUE)

The first call finishes successfully; and the second call started but terminated soon without logging an exception in the log file. NOTE: the code is surrounded by a try-catch(Throwable) block.

Important point: the JVM crash is occurring at the point where I create the DB2 connection as:

connection = DriverManager.getConnection("jdbc:db2:*local;translate binary=true;prompt=false;naming=sql;libraries=TESTLIB");

or sometime, when creating the AS400 object as:

com.ibm.as400.access.AS400 server = new com.ibm.as400.access.AS400(); 

Any help will be appreciated.

2
  • 2
    A stack trace and error message would be helpful here. Maybe you could modify your try-catch block to produce one? Commented Nov 14, 2018 at 15:29
  • @jmarkmurphy the try catch block(Throwable) is already been placed , but the JVM crashing not able to produce any error message in the log/System.out. Commented Nov 15, 2018 at 5:23

1 Answer 1

1

Actually problem was coming due to RCLRSC command is used in middle of process in CL program

Message MCH3402 from QC2IO

So the problem is fixed after removing the RCLSRC.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.