JAVA-LANG Nullpointer Exeption on starting database agent after installing 10.2B SP6

por | 3 octubre, 2013
Article Number 000034388
Environment OpenEdge 10.2B06
OpenEdge 11.1
Question/Problem Description
JAVA-LANG Nullpointer Exeption on starting database agent after installing 10.2B SP6
The database is started and can be connected to
OpenEdge Explorer shows the database as not running
Clarifying Information
Database Agent started without issues in 10.2B05

Only databases with a specific servergroup defined fail to start the dbagent
Databases with the «defaultservergroup» start the dbagent

This database configuration WILL start the dbagent

configuration.sports.defaultconfiguration
servergroup.sports.defaultconfiguration.defaultservergroup
servergroup.sports.defaultconfiguration.SQL

This database configuration WILL NOT start the dbagent
configuration.sports.sports
servergroup.sports.sports.4gl
servergroup.sports.sports.sql

Error Message java.lang.NullPointerException
Message (throw): Could not create database agent startup command.
Message (excp): null
Stack Trace:
java.lang.NullPointerException
at com.progress.agent.database.AgentDatabase.start(AgentDatabase.java:685)
at com.progress.juniper.admin.JAConfiguration.handleAgent(JAConfiguration.java:1514)
at com.progress.juniper.admin.ConfigListener.messageReceived(ConfigListener.java:332)
at com.progress.common.comsock.Client.run(ServerComSock.java:295)
Defect/Enhancement Number Defect OE00224491
Cause
The exact cause is not known at this time.

The problem appears to be in the code to actually ‘construct’ the command line to start the dbagent for a certain database.

Resolution
Until the fix is available, use the workaround below.
Workaround
There is no problem actually running the dbagent. So as a workaround, the dbagent can be started from the cmd line or a script as follows:

%DLC%\bin\_dbagent -db <path>\<dbname> -port 8842 -u DB_Agent -propertyfile %DLC%\properties\agent.properties -config <configname> -installdir %DLC% -ipver IPv4 -m5

Or as a service as follows: (for example against a database configname = testsports case)

sc create OE_start_dbagent binpath= C:\Progress\OpenEdge\bin\_dbagent -db d:\db\sports2000 -port 8842 -u DB_Agent -propertyfile C:\Progress\OpenEdge\properties\agent.properties -config testsports -installdir C:\Progress\OpenEdge -ipver IPv4 -m5
sc start OE_start_dbagent
sc delete OE_start_dbagent

Notes
Attachment
Disclaimer The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an «AS IS» basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.