Bug 535338 (RHQ-2044) - PostgresUserComponent.getConnection() throws NPE when "plugins update" command is run from the Agent prompt
Summary: PostgresUserComponent.getConnection() throws NPE when "plugins update" comman...
Keywords:
Status: CLOSED WORKSFORME
Alias: RHQ-2044
Product: RHQ Project
Classification: Other
Component: Plugin Container
Version: 1.2
Hardware: All
OS: All
medium
medium
Target Milestone: ---
: ---
Assignee: Heiko W. Rupp
QA Contact:
URL: http://jira.rhq-project.org/browse/RH...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-04-29 22:56 UTC by Ian Springer
Modified: 2013-08-06 00:33 UTC (History)
2 users (show)

Fixed In Version: 1.4
Clone Of:
Environment:
r3875
Last Closed: 2010-06-02 13:27:42 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.