Bug 780913 (SOA-3375)

Summary: NPE thrown when deploying ESB application from web admin console
Product: [JBoss] JBoss Enterprise SOA Platform 5 Reporter: Robert Balent <rbalent>
Component: Monitoring and Management, JONAssignee: tcunning
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 5.1.0 GA, 5.2.0.ER3CC: fnguyen, kevin.conner, mvecera, rbalent, tcunning
Target Milestone: ---   
Target Release: 5.2.0 GA, 5.2.0.ER5   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-3375
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-19 10:38:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
1_Before_Deployment.png
none
2_After_Deployment.png none

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