NullPointerException with incorrect jBPM console credentials
-------------------------------------------------------------
Key: JBESB-2674
URL:
https://jira.jboss.org/jira/browse/JBESB-2674
Project: JBoss ESB
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Examples
Affects Versions: 4.4 CP3
Environment: SOA-P 4.3.0 CP02 IR2
Reporter: Julian Coleman
Priority: Minor
When the username/password credentials are not correct, attempting an `ant deployProcess`
for
a jBPM-related quickstart fails with the (non-intuitive) error:
.../build.xml:45: couldn't deploy process archives : null
Running `ant -d deployProcess` shows the root cause to be:
java.lang.NullPointerException
at
org.jbpm.ant.DeployProcessToServerTask.tryFormBasedAuthentication(DeployProcessToServerTask.java:276)
Line 275 returns (Header) location, but this will be Null if the login failed, so calling
location.getValue() on line 276
causes the exception. (Pointed out by kconner.)
Displaying the HTTP error would probably be more useful when an error has occurred.
--
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