Bug 780913 (SOA-3375) - NPE thrown when deploying ESB application from web admin console
Summary: NPE thrown when deploying ESB application from web admin console
Keywords:
Status: CLOSED NEXTRELEASE
Alias: SOA-3375
Product: JBoss Enterprise SOA Platform 5
Classification: JBoss
Component: Monitoring and Management, JON
Version: 5.1.0 GA,5.2.0.ER3
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 5.2.0 GA,5.2.0.ER5
Assignee: tcunning
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-14 11:08 UTC by Robert Balent
Modified: 2014-01-13 00:20 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-19 10:38:09 UTC
Type: Bug


Attachments (Terms of Use)
1_Before_Deployment.png (134.67 KB, image/png)
2011-09-19 15:03 UTC, Robert Balent
no flags Details
2_After_Deployment.png (137.37 KB, image/png)
2011-09-19 15:03 UTC, Robert Balent
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SOA-3375 0 Major Closed NPE thrown when deploying ESB application from web admin console 2014-02-18 11:26:37 UTC

Description Robert Balent 2011-09-14 11:08:58 UTC
project_key: SOA

When deploying ESB Applocatin from web admin console (JBoss SOA-P 5 -> JBoss ESB -> Deployments -> Add a new resource) web console shows:

"Failed to create Resource Quickstart_helloworld.esb - cause: java.lang.NullPointerException:null"

But ESB Application is successfully deployed.


There is also ERROR in server console:

ERROR [LocalDeployer] Error deploying application for request [CreateResourceReport: ResourceType=[ResourceType[id=0, category=Service, name=Deployment, plugin=JBossESB5]], ResourceKey=[null]].
java.lang.NullPointerException
	at org.rhq.plugins.jbossas5.deploy.AbstractDeployer.deploy(AbstractDeployer.java:131)
	at org.jbosson.plugins.jbossesb.ESB5Component.createResource(ESB5Component.java:202)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	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:525)
	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:662)

Comment 1 tcunning 2011-09-16 18:25:30 UTC
Robert, I tried this against ER3 and can't reproduce - are there other steps to reproduce or configuration that might be missing here?    

Comment 2 Robert Balent 2011-09-19 15:03:05 UTC
Hello Tom, I tried it with soa-5.2-ER3 and can reproduce it on RHEL and Windows machines too. Did you actually deployed the sample app (e.g. Helloworld quickstart) by clicking on Continue? I'm attaching screenshots to better explain where the error occurred.

Comment 3 Robert Balent 2011-09-19 15:03:22 UTC
Attachment: Added: 1_Before_Deployment.png
Attachment: Added: 2_After_Deployment.png


Comment 4 Kevin Conner 2011-09-19 15:15:28 UTC
It looks like the configuration may not contain the deployFarmed property.

The line in error seems to be similar to the following, at least according to the bytecode

config.getSimple("deployFarmed").getBooleanValue() ;

Given that config is used previously it would suggest that the result of the getSimple method invocation is returning null for some reason.

Comment 5 tcunning 2011-09-23 14:21:15 UTC
Link: Added: This issue is related to JOPR-418


Comment 6 tcunning 2011-09-23 17:59:27 UTC
Link: Added: This issue is related to JBESB-3690


Comment 7 tcunning 2011-09-23 18:00:26 UTC
Should be in ER5. 

The problem seems to be that deploymentName was null.    We're now adding it if it is null.

tcunning@localhost:jonplugin]$ svn commit
Sending        jonplugin/as5/src/main/java/org/jbosson/plugins/jbossesb/ESB5Component.java
Transmitting file data .
Committed revision 37477.


Comment 8 David Le Sage 2011-09-25 22:51:36 UTC
Release Notes Docs Status: Added: Documented as Resolved Issue
Writer: Added: dlesage
Release Notes Text: Added: https://issues.jboss.org/browse/SOA-3375

When the user tried to deploy an ESB application from the Web Administration Console, they would encounter this error:  
"Failed to create Resource Quickstart_helloworld.esb - cause: java.lang.NullPointerException:null".  This happened because the DeploymentName was null.  It is now added automatically so users will no longer encounter this problem.


Comment 9 Robert Balent 2011-10-19 10:38:09 UTC
Verified on 5.2.0.ER5


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