[
https://jira.jboss.org/jira/browse/JBAS-5370?page=com.atlassian.jira.plug...
]
Ian Springer commented on JBAS-5370:
------------------------------------
When attempting to deploy a war using the following code:
DeploymentProgress progress = manager.distribute(tempFile.getName(),
ManagedDeployment.DeploymentPhase.APPLICATION, tempFile.toURL());
progress.addProgressListener(this);
progress.run();
I get the following NPE:
14:16:29,155 ERROR [ProfileJBossServerComponent]
java.lang.RuntimeException: java.lang.NullPointerException
at
org.jboss.profileservice.management.upload.remoting.StreamingDeploymentTarget.transferDeployment(StreamingDep
loymentTarget.java:268)
at
org.jboss.profileservice.management.upload.remoting.StreamingDeploymentTarget.distribute(StreamingDeploymentT
arget.java:108)
at
org.jboss.profileservice.management.upload.DeploymentProgressImpl.distribute(DeploymentProgressImpl.java:169)
at
org.jboss.profileservice.management.upload.DeploymentProgressImpl.run(DeploymentProgressImpl.java:82)
at
org.rhq.plugins.jbossas5.ProfileJBossServerComponent.deployArchive(ProfileJBossServerComponent.java:318)
at
org.rhq.plugins.jbossas5.ProfileJBossServerComponent.createContentBasedResource(ProfileJBossServerComponent.j
ava:283)
at
org.rhq.plugins.jbossas5.ProfileJBossServerComponent.createResource(ProfileJBossServerComponent.java:138)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:623)
at
org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:450)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:713)
Caused by: java.lang.NullPointerException
at
org.jboss.profileservice.management.upload.remoting.DeployHandler.handleStream(DeployHandler.java:106)
at
org.jboss.remoting.ServerInvoker.handleInternalInvocation(ServerInvoker.java:1785)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:895)
at
org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:106)
at org.jboss.remoting.Client.invoke(Client.java:1708)
at org.jboss.remoting.Client.invoke(Client.java:612)
at org.jboss.remoting.Client.invoke(Client.java:1492)
at
org.jboss.profileservice.management.upload.remoting.StreamingDeploymentTarget.transferDeployment(StreamingDep
loymentTarget.java:259)
... 16 more
14:16:29,155 INFO [DeployHandler] Begin start, [valid.war], phase: APPLICATION
I'm using an AS5 build from late last week.
Deploy an ear/war app through ProfileService
--------------------------------------------
Key: JBAS-5370
URL:
https://jira.jboss.org/jira/browse/JBAS-5370
Project: JBoss Application Server
Issue Type: Sub-task
Security Level: Public(Everyone can see)
Reporter: Mark Spritzler
Assignee: Scott M Stark
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira