Java TI set up on brand new installation
Posted: Thu Jun 09, 2022 2:10 am
I am struggling to set up the JAVATI functionality on our new server install.
I would appreciate any pointer to relevant documentation or any idea on how to determine the root cause as per below :
We are installing PA Version 2.0.913.10 (Upgrade project from Tm1 10.2.2 FP4.).
We are installing form scratch in a new set of servers so there are no overlap with previous version.
We have set the below Java parameters in the CFG file for TM1 server as we use JAVATI functionality in our processes.
JavaJVMPath=D:\Program Files\ibm\cognos\tm1_64\jre\bin\j9vm\jvm.dll
Note : We also tried an alternative for the jvm.dll with same feedback on start up logs
#JavaJVMPath=D:\Program Files\ibm\cognos\tm1_64\jre\bin\default\jvm.dll
JavaJVMArgs=-Xrunjdwp:transport=dt_socket -server=y -suspend=n -address=1044
JavaClassPath=D:\Data\Scripts\Java\poi-3.8-beta4-20110826.jar
We use this JAR for finance function libraries.
We also edited the Java policy file:
/*
Suggested default permissions for java extensions are pretty restrictive:
- They allow reading and writing of files in the model directory and sub directories.
- They allow reading of the same system properties that Java applets allow
- Everything else is disallowed
*/
grant {
/* grant permission to change the files in the model directory in any way */
permission java.io.FilePermission "${tm1.modeldir}${/}-", "write, read, delete";
/* grant read access to the same properties that are allowed in a Java applet */
permission java.util.PropertyPermission "java.class.version", "read";
permission java.util.PropertyPermission "java.vendor", "read";
permission java.util.PropertyPermission "java.vendor", "read";
permission java.util.PropertyPermission "java.vendor.url", "read";
permission java.util.PropertyPermission "java.version", "read";
permission java.util.PropertyPermission "os.name", "read";
permission java.util.PropertyPermission "os.arch", "read";
permission java.util.PropertyPermission "os.version", "read";
permission java.util.PropertyPermission "file.separator", "read";
permission java.util.PropertyPermission "path.separator", "read";
permission java.util.PropertyPermission "line.separator", "read";
permission java.security.AllPermission;
};
And we also set environment variables for JAVA_HOME and JRE_HOME on the TM1 server.
Sample of our start up log highlighting the
14108 [] ERROR 2022-06-09 11:43:17.938 TM1.Server Could not initialize java virtual machine (code -6). Java will not be available
14108 [] INFO 2022-06-09 11:43:17.900 TM1.Server Using javaextensions.policy from D:\Program Files\ibm\cognos\tm1_64\bin64\..\configuration\javaextensions.policy
14108 [] INFO 2022-06-09 11:43:17.900 TM1.Server Creating Java Virtual Machine with arguments:
14108 [] INFO 2022-06-09 11:43:17.900 TM1.Server -Djava.security.policy=D:\Program Files\ibm\cognos\tm1_64\bin64\..\configuration\javaextensions.policy
14108 [] INFO 2022-06-09 11:43:17.900 TM1.Server -Djava.class.path=java_classes;D:\Data\Scripts\Java\poi-3.8-beta4-20110826.jar;D:\Program Files\ibm\cognos\tm1_64\bin64\javatiapi.jar;D:\Program Files\ibm\cognos\tm1_64\bin64\tm1javaticore.jar
14108 [] INFO 2022-06-09 11:43:17.900 TM1.Server -Xrunjdwp:transport=dt_socket
14108 [] INFO 2022-06-09 11:43:17.900 TM1.Server -server=y
14108 [] INFO 2022-06-09 11:43:17.900 TM1.Server -suspend=n
14108 [] INFO 2022-06-09 11:43:17.900 TM1.Server -address=1044
14108 [] INFO 2022-06-09 11:43:17.900 TM1.Server end JVM args
14108 [] ERROR 2022-06-09 11:43:17.938 TM1.Server Could not initialize java virtual machine (code -6). Java will not be available
14108 [] ERROR 2022-06-09 11:43:17.938 TM1.Server JVM initialization attempted with arguments:
14108 [] ERROR 2022-06-09 11:43:17.938 TM1.Server -Djava.security.policy=D:\Program Files\ibm\cognos\tm1_64\bin64\..\configuration\javaextensions.policy
14108 [] ERROR 2022-06-09 11:43:17.938 TM1.Server -Djava.class.path=java_classes;D:\Data\Scripts\Java\poi-3.8-beta4-20110826.jar;D:\Program Files\ibm\cognos\tm1_64\bin64\javatiapi.jar;D:\Program Files\ibm\cognos\tm1_64\bin64\tm1javaticore.jar
14108 [] ERROR 2022-06-09 11:43:17.938 TM1.Server -Xrunjdwp:transport=dt_socket
14108 [] ERROR 2022-06-09 11:43:17.938 TM1.Server -server=y
14108 [] ERROR 2022-06-09 11:43:17.938 TM1.Server -suspend=n
14108 [] ERROR 2022-06-09 11:43:17.938 TM1.Server -address=1044
14108 [] ERROR 2022-06-09 11:43:17.938 TM1.Server - - - - - - - - -
17084 [] INFO 2022-06-09 11:43:17.939 TM1.Server --------------------Session Start--------------------
17084 [] INFO 2022-06-09 11:43:17.939 TM1.Server TM1 Build Number: 11.8.01200.7
I would appreciate any pointer to relevant documentation or any idea on how to determine the root cause as per below :
We are installing PA Version 2.0.913.10 (Upgrade project from Tm1 10.2.2 FP4.).
We are installing form scratch in a new set of servers so there are no overlap with previous version.
We have set the below Java parameters in the CFG file for TM1 server as we use JAVATI functionality in our processes.
JavaJVMPath=D:\Program Files\ibm\cognos\tm1_64\jre\bin\j9vm\jvm.dll
Note : We also tried an alternative for the jvm.dll with same feedback on start up logs
#JavaJVMPath=D:\Program Files\ibm\cognos\tm1_64\jre\bin\default\jvm.dll
JavaJVMArgs=-Xrunjdwp:transport=dt_socket -server=y -suspend=n -address=1044
JavaClassPath=D:\Data\Scripts\Java\poi-3.8-beta4-20110826.jar
We use this JAR for finance function libraries.
We also edited the Java policy file:
/*
Suggested default permissions for java extensions are pretty restrictive:
- They allow reading and writing of files in the model directory and sub directories.
- They allow reading of the same system properties that Java applets allow
- Everything else is disallowed
*/
grant {
/* grant permission to change the files in the model directory in any way */
permission java.io.FilePermission "${tm1.modeldir}${/}-", "write, read, delete";
/* grant read access to the same properties that are allowed in a Java applet */
permission java.util.PropertyPermission "java.class.version", "read";
permission java.util.PropertyPermission "java.vendor", "read";
permission java.util.PropertyPermission "java.vendor", "read";
permission java.util.PropertyPermission "java.vendor.url", "read";
permission java.util.PropertyPermission "java.version", "read";
permission java.util.PropertyPermission "os.name", "read";
permission java.util.PropertyPermission "os.arch", "read";
permission java.util.PropertyPermission "os.version", "read";
permission java.util.PropertyPermission "file.separator", "read";
permission java.util.PropertyPermission "path.separator", "read";
permission java.util.PropertyPermission "line.separator", "read";
permission java.security.AllPermission;
};
And we also set environment variables for JAVA_HOME and JRE_HOME on the TM1 server.
Sample of our start up log highlighting the
14108 [] ERROR 2022-06-09 11:43:17.938 TM1.Server Could not initialize java virtual machine (code -6). Java will not be available
14108 [] INFO 2022-06-09 11:43:17.900 TM1.Server Using javaextensions.policy from D:\Program Files\ibm\cognos\tm1_64\bin64\..\configuration\javaextensions.policy
14108 [] INFO 2022-06-09 11:43:17.900 TM1.Server Creating Java Virtual Machine with arguments:
14108 [] INFO 2022-06-09 11:43:17.900 TM1.Server -Djava.security.policy=D:\Program Files\ibm\cognos\tm1_64\bin64\..\configuration\javaextensions.policy
14108 [] INFO 2022-06-09 11:43:17.900 TM1.Server -Djava.class.path=java_classes;D:\Data\Scripts\Java\poi-3.8-beta4-20110826.jar;D:\Program Files\ibm\cognos\tm1_64\bin64\javatiapi.jar;D:\Program Files\ibm\cognos\tm1_64\bin64\tm1javaticore.jar
14108 [] INFO 2022-06-09 11:43:17.900 TM1.Server -Xrunjdwp:transport=dt_socket
14108 [] INFO 2022-06-09 11:43:17.900 TM1.Server -server=y
14108 [] INFO 2022-06-09 11:43:17.900 TM1.Server -suspend=n
14108 [] INFO 2022-06-09 11:43:17.900 TM1.Server -address=1044
14108 [] INFO 2022-06-09 11:43:17.900 TM1.Server end JVM args
14108 [] ERROR 2022-06-09 11:43:17.938 TM1.Server Could not initialize java virtual machine (code -6). Java will not be available
14108 [] ERROR 2022-06-09 11:43:17.938 TM1.Server JVM initialization attempted with arguments:
14108 [] ERROR 2022-06-09 11:43:17.938 TM1.Server -Djava.security.policy=D:\Program Files\ibm\cognos\tm1_64\bin64\..\configuration\javaextensions.policy
14108 [] ERROR 2022-06-09 11:43:17.938 TM1.Server -Djava.class.path=java_classes;D:\Data\Scripts\Java\poi-3.8-beta4-20110826.jar;D:\Program Files\ibm\cognos\tm1_64\bin64\javatiapi.jar;D:\Program Files\ibm\cognos\tm1_64\bin64\tm1javaticore.jar
14108 [] ERROR 2022-06-09 11:43:17.938 TM1.Server -Xrunjdwp:transport=dt_socket
14108 [] ERROR 2022-06-09 11:43:17.938 TM1.Server -server=y
14108 [] ERROR 2022-06-09 11:43:17.938 TM1.Server -suspend=n
14108 [] ERROR 2022-06-09 11:43:17.938 TM1.Server -address=1044
14108 [] ERROR 2022-06-09 11:43:17.938 TM1.Server - - - - - - - - -
17084 [] INFO 2022-06-09 11:43:17.939 TM1.Server --------------------Session Start--------------------
17084 [] INFO 2022-06-09 11:43:17.939 TM1.Server TM1 Build Number: 11.8.01200.7