• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Sunone 6.1 Webserver Crashes while migrating from jdk 1.4.2_12 to jdk 1.5.0

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I probably can't help you much, but perhaps the third party library that you are using for your database connectivity is not compatible with the newer version of the JDK.

Cheers,
Martijn
 
B Abraham
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Finally got the solution.

Did the following steps to solve it .

1.Install the JDK 1.5.0_13 wrap from HP Unix site
jdk15_15013_pa.depot
Site:- http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXJDKJRE50

2.Install the java 1.5.0_13 patches from HP-UX
Patch Names:-
- PHCO_35743
- PHKL_34534
- PHSS_37517

Site:- http://h18012.www1.hp.com/java/patches/index.html>

3.Install the Sunone 6.1 SP9 installation (English Version https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=SJWS-6.1-SP9-OTH-G-F@CDS-CDS_SMI ) and when the installer asks for a path for installation give the same path as where the current SunOne server is installed (/opt/sunone) . In this case the installer performs an upgrade on the existing server instance from Sunone 6.1 SP6 to Sunone 6.1 SP9.

4.update the rt.jar and ojdbc.jar ? [Not sure if this step is required. Better not to do it initially, and in case any problem occurs then consider doing it.]


5.Change the server configurations in the server instance and the admin server instance
Changes required to make the Sunone Server 6.1 run with JDK 1.5

Part I:- Change the entries of WebServer6.1\https-admserv\config\Server.xml

a) Add to the "serverclasspath" variable "crimson.jar" required for the server to run.
The "JVMOPTIONS" important is to be as follows.
<JVMOPTIONS>-Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter</JVMOPTIONS>
<JVMOPTIONS>-Dorg.xml.sax.driver=org.apache.crimson.parser.XMLReaderImpl</JVMOPTIONS>
<JVMOPTIONS>-Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl</JVMOPTIONS>
b) The Java tag should have a "javahome="/opt/java1.5"" attribute set.

Part II:- Change the entries in the WebServer6.1\<<local System or Server Name>>\config\server.xml
a) Add to the "serverclasspath" variable "crimson.jar" required for the server to run.
The "JVMOPTIONS" important is to be as follows.
<JVMOPTIONS>-Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter</JVMOPTIONS>
<JVMOPTIONS>-Dorg.xml.sax.driver=org.apache.crimson.parser.XMLReaderImpl</JVMOPTIONS>
<JVMOPTIONS>-Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl</JVMOPTIONS>
b) The Java tag should have a "javahome="D:/Softwares/Java/jdk1.5.0_11"" attribute set.

3.) Add the "crimson.jar" to WebServer6.1\bin\https\jar
 
Martijn Verburg
author
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Cripes! What a mission, well done on solving that and thanks for posting the answers so others can learn from it.
 
You ridiculous clown, did you think you could get away with it? This is my favorite tiny ad!
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic