Hide Forgot
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)
Robert, I tried this against ER3 and can't reproduce - are there other steps to reproduce or configuration that might be missing here?
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.
Attachment: Added: 1_Before_Deployment.png Attachment: Added: 2_After_Deployment.png
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.
Link: Added: This issue is related to JOPR-418
Link: Added: This issue is related to JBESB-3690
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.
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.
Verified on 5.2.0.ER5