Hi,
A synopsis of the issue i was facing ..
Background:-
We are currently running an application on Sunone 6.1 Webserver (SP6) on a HP-UX machine (PA-RISC v11.11). The
java version currently used was java 1.4.2 update 12 that was installed along with the webserver installation sometime back.
We are now trying to migrate the java version from 1.4.2 to java 1.5.0 update 13.
As part of this we had done the following
- Downloaded the jdk 1.5.0.13 wrap from the HPUX support site and installed it on the unix box under /opt/java1.5
- Once the install was successfully done; using the sunone Admin Console changed the following property
Administration Server --> <Server instance> --> Java Tab --> JVM General --> JAVA Home property Old value = /opt_dev/sunone/bin/https/jdk New value = /opt/java 1.5
- Applied the changes and restarted the server
Issue:-
While trying to launch the application the following is shown in the error logs and the server displays a page cannot be displayed error.
****** error Logs *******
[16/Jul/2008:18:31:50] info ( 4239): HTTP3072: [LS ls1]
http://cdmsdevofshr:6530 ready to accept requests
[16/Jul/2008:18:31:50] info ( 4239): CORE3274: successful server startup
[16/Jul/2008:18:32:06] warning ( 4239): for host 169.183.142.218 trying to GET /html/white, send-file reports: HTTP4142: can't find /opt_dev/cdms/cdmsdevofshr/html/white (File not found)
[16/Jul/2008:18:32:06] info ( 4239): CORE3282: stdout:
Test Home 1 *********
[16/Jul/2008:18:32:06] info ( 4239): CORE3282: stdout: Test Home 2 *********
[16/Jul/2008:18:32:07] warning ( 4239): CORE3283: stderr: [GC 7653K->3921K(20032K), 0.0152055 secs]
[16/Jul/2008:18:32:08] catastrophe ( 4239): CORE3260: Server crash detected (signal SIGSEGV)
[16/Jul/2008:18:32:08] info ( 4239): CORE3261: Crash occurred in NSAPI SAF service-j2ee [16/Jul/2008:18:32:08] failure ( 4238): CORE3107: Child process closed admin channel
[16/Jul/2008:18:32:11] info ( 4265): CORE5076: Using [Java HotSpot(TM) Server VM, Version 1.5.0.13] from [Hewlett-Packard Company]
[16/Jul/2008:18:32:11] warning ( 4265): CORE3283: stderr: [GC 3072K->486K(8192K), 0.0151335 secs]
[16/Jul/2008:18:32:12] info ( 4265): WEB0100: Loading web module in virtual server [https-cdmsdevofshr] at [/search]
[16/Jul/2008:18:32:13] warning ( 4265): CORE3283: stderr: [GC 3558K->824K(8192K), 0.0155620 secs]
[16/Jul/2008:18:32:14] warning ( 4265): CORE3283: stderr: [GC 3896K->1083K(8192K), 0.0175540 secs]
[16/Jul/2008:18:32:16] warning ( 4265): CORE3283: stderr: [GC 4155K->2261K(8192K), 0.0517803 secs]
[16/Jul/2008:18:32:18] warning ( 4265): CORE3283: stderr: [GC 5333K->3566K(8192K), 0.0451150 secs]
[16/Jul/2008:18:32:18] warning ( 4265): CORE3283: stderr: [Full GC 3566K->3561K(16704K), 0.3341050 secs]
[16/Jul/2008:18:32:19] warning ( 4265): CORE3283: stderr: [GC 6633K->3657K(17088K), 0.0105030 secs]
[16/Jul/2008:18:32:20] warning ( 4265): CORE3283: stderr: [GC 7497K->3641K(19328K), 0.0103130 secs]
[16/Jul/2008:18:32:21] info ( 4265): HTTP3072: [LS ls1]
http://cdmsdevofshr:6530 ready to accept requests
[16/Jul/2008:18:32:21] info ( 4265): CORE3274: successful server startup
******************************
The first page HTML is rendered using a
servlet and after putting in logs in this servelet found that this occurs when the DB connection is being established.
public synchronized static Connection getConnection(
String serverpath)
throws SQLException, ClassNotFoundException, IOException {
/* Establish connection */
if (!dburl.equals("") && !uid.equals("") && !pwd.equals("")) {
System.out.println("Test Connection **** 21");
Class.forName(driver); // explicitly loads
JDBC drivers
System.out.println("Test Connection **** 22");
try {
result = DriverManager.getConnection(dburl, uid, pwd);
} catch (RuntimeException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
System.out.println("Test Connection **** 23");
}
}
*************************************
The error is thrown at this line exactly
result = DriverManager.getConnection(dburl, uid, pwd);
Hence
- Can anyone give me any information on why this error may be occuring?
- Also can you let me know the steps that I would need to follow for migarting the java version on sunone 6.1 webserver ?
- I dont seem to be able to find the core dumps being created after this crash. Can anyone please guide me as to how to enable the dump files creation.
Any info would be helpful
Any information would be helpful