Bug 535338 (RHQ-2044)

Summary: PostgresUserComponent.getConnection() throws NPE when "plugins update" command is run from the Agent prompt
Product: [Other] RHQ Project Reporter: Ian Springer <ian.springer>
Component: Plugin ContainerAssignee: Heiko W. Rupp <hrupp>
Status: CLOSED WORKSFORME QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1.2CC: ccrouch, cwelton
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
URL: http://jira.rhq-project.org/browse/RHQ-2044
Whiteboard:
Fixed In Version: 1.4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
r3875
Last Closed: 2010-06-02 13:27:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ian Springer 2009-04-29 22:56:00 UTC
Here's the output: 

> plugins update
java.lang.NullPointerException
        at org.rhq.plugins.postgres.PostgresUserComponent.getConnection(PostgresUserComponent.java:73)
        at org.rhq.plugins.postgres.PostgresUserComponent.loadResourceConfiguration(PostgresUserComponent.java:94)
        at sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:484)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
java.lang.NullPointerException
        at org.rhq.plugins.postgres.PostgresUserComponent.getConnection(PostgresUserComponent.java:73)
        at org.rhq.plugins.postgres.PostgresUserComponent.loadResourceConfiguration(PostgresUserComponent.java:94)
        at sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:484)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
The plugin container has been stopped.
Updating plugins to their latest versions.
The plugin [jopr-jboss-as-5-plugin-2.3.0-SNAPSHOT.jar] has been updated.
Completed updating the plugins to their latest versions.
The plugin container has been started.
>


Comment 1 Red Hat Bugzilla 2009-11-10 20:56:37 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-2044


Comment 2 Heiko W. Rupp 2010-06-01 12:00:22 UTC
I am not able to reproduce this. I have seen something similar in the past with (I think the server component), but haven't for quite some time.

Assigning to QA so they can decide if they want to followup on it or close the issue.

Comment 3 Corey Welton 2010-06-02 13:27:42 UTC
QA Closing - unable to repro.  Can reopen if it rears its head again down the road.