[ openjms-Bugs-1108562 ] NullPointerException when calling DatabaseService.getAdapter

"SourceForge.net" <[email protected]> Tue, 30 Aug 2005 22:50:57 -0700
Newsgroups gmane.comp.java.openjms.devel
Message-ID <[email protected]>
Bugs item #1108562, was opened at 2005-01-25 06:24
Message generated for change (Comment added) made by tanderson
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=474136&aid=1108562&group_id=54559

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: persistence
Group: v0.7.6.1
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Shashi (smazumdar)
>Assigned to: Tim Anderson (tanderson)
Summary: NullPointerException when calling DatabaseService.getAdapter

Initial Comment:
This exception is thrown when the OpenJMS server is
shutdown.  It doesn't happen always but when running
stress tests which include starting and stopping the
OpenJMS server frequently.

Here is the stack trace printed to the log file.  The
iweventsub is just a naming convention we use. 
Basically it is the OpenJMS server.

iweventsubd: ---------- STARTING: Sat Aug 21 08:11:14
PDT 2004
EVENTSUBD_HOME is set to /local/iw-home/eventsubsystem
OpenJMS 0.7.6.1
The OpenJMS Group. (C) 1999-2004. All rights reserved.
http://openjms.sourceforge.net
iweventsubd: ---------- STARTED:  Sat Aug 21 08:11:26
PDT 2004
iweventsubd: ---------- STOPPING: Sat Aug 21 08:15:16
PDT 2004
EVENTSUBD_HOME is set to /local/iw-home/eventsubsystem
iweventsubd: ---------- STOPPED:  Sat Aug 21 08:15:34
PDT 2004
08:15:38.769 ERROR [server-1] - Failed to make message
persistent
java.lang.NullPointerException
        at
org.exolab.jms.persistence.DatabaseService.getAdapter(Unknown
Source)
        at
org.exolab.jms.persistence.DatabaseService.getConnection(Unknown
Sour
ce)    
        at
org.exolab.jms.messagemgr.MessageMgr.addPersistentMessage(Unknown
Sou
rce)
        at
org.exolab.jms.messagemgr.MessageMgr.add(Unknown Source)
        at
org.exolab.jms.server.JmsServerSession.sendMessage(Unknown
Source)
        at
org.exolab.jms.server.mipc.IpcJmsSessionConnection.sendMessage(Unknow
n Source)
        at
org.exolab.jms.server.mipc.IpcJmsSessionConnection.notify(Unknown
Sou
rce)
        at
org.exolab.jms.server.mipc.IpcJmsReceiver.notify(Unknown
Source)
        at
org.exolab.jms.server.mipc.IpcServerChannel.run(Unknown
Source)
08:15:38.786 ERROR [server-1] - Failed to process message
javax.jms.JMSException: Failed to make message
persistent: java.lang.NullPointer
Exception
        at
org.exolab.jms.messagemgr.MessageMgr.addPersistentMessage(Unknown
Sou
rce)
        at
org.exolab.jms.messagemgr.MessageMgr.add(Unknown Source)
        at
org.exolab.jms.server.JmsServerSession.sendMessage(Unknown
Source)
        at
org.exolab.jms.server.mipc.IpcJmsSessionConnection.sendMessage(Unknow
n Source)
@

Is this a known issue?   I'm also appending the
database configuration in the config file.

 <DatabaseConfiguration>
    <RdbmsDatabaseConfiguration
        driver="oracle.jdbc.driver.OracleDriver"
        url="dbc:oracle:thin:@qatempl-sol:1521:chandra"
        user="scott"
        password="tiger"
        maxActive="10"
        maxIdle="5"
        minIdleTime="1800"
        evictionInterval="3600" />

  </DatabaseConfiguration>



----------------------------------------------------------------------

>Comment By: Tim Anderson (tanderson)
Date: 2005-08-31 15:50

Message:
Logged In: YES 
user_id=557161

Fixed in CVS. Changes will be available in 0.7.7-alpha-2

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=474136&aid=1108562&group_id=54559


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf