APAR status
Closed as program error.
Error description
Problem
=======
ANT task "wsadmin" failure does not result in ANT "BUILD FAILED"
when
"user" and "password" arguments are specified.
Problem Description
===================
If an illegal "port" argument has been specified to ANT task
"wsadmin", the
task terminates but does not report failure to ANT when
arguments "user" and
"password" are also specified. ANT then reports "BUILD
SUCCESSFUL". Also, the
return code from ANT is 0. (Example 1).
If "user" and "password" are not specified, the port problems
are caught as it
should and reported back to ANT, resulting in a "BUILD FAILED".
The return
code from ANT is 1. (Example 2).
Note: This problem may not be specifically related to the "port"
argument.
The examples can be run with "Global Security" turned off"
We normally have "Global Security" turned on and therefore have
to specify the
"user" and "password" arguments.
Example 1
==========
C:\Apps\WebSphere\problem>problem.bat problem1.xml
Buildfile: problem1.xml
list:
[wsadmin] WASX7008E: SOAP connection type requires an integer
port; found: "8880X"
[wsadmin] java.lang.reflect.InvocationTargetException:
java.lang.NullPointerException
[wsadmin] at
com.ibm.ws.scripting.AbstractShell.setupConnectionType(AbstractS
hell.java:611)
[wsadmin] at
com.ibm.ws.scripting.AbstractShell.run(AbstractShell.java:1468)
[wsadmin] at
com.ibm.ws.scripting.WasxShell.main(WasxShell.java:805)
[wsadmin] at java.lang.reflect.Method.invoke(Native
Method)
[wsadmin] at
com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
BUILD SUCCESSFUL
Total time: 6 seconds
Example 2
==========
C:\Apps\WebSphere\problem>problem.bat problem2.xml
Buildfile: problem2.xml
list:
[wsadmin] WASX7008E: SOAP connection type requires an integer
port; found: "8880X"
BUILD FAILED
file:C:/Apps/WebSphere/problem/problem2.xml:12: Java returned:
96
Total time: 6 seconds
Product Information
===================
IBM WebSphere Application Server, 5.0.2.1
Build Number: cf10337.06
Build Date: 09/20/2003
OS Information
==============
Microsoft Windows 2000 SP3
Local fix Problem summary
****************************************************************
* USERS AFFECTED: WebSphere Application Server Users on 5.x *
* using wsadmin *
****************************************************************
* PROBLEM DESCRIPTION: ANT task "wsadmin" failure does not *
* result in ANT "BUILD FAILED" when *
* "user" and "password" arguments are *
* specified. *
****************************************************************
* RECOMMENDATION: *
****************************************************************
If an illegal "port" argument has been specified to ANT task
"wsadmin", the task terminates but does not report failure to
ANT when arguments "user" and "password" are also specified.
ANT then reports "BUILD SUCCESSFUL". Also, the return code
from ANT is 0.
If "user" and "password" are not specified, the port problem
are caught as it should and reported back to ANT, resulting in
a "BUILD FAILED". The return code from ANT is 1.
Problem conclusion
The code had an initialization problem which was causing a
NullpointerException. Fixed the initialization to capture the
build errors properly.
Temporary fix Comments
APAR information |
APAR number |
PQ84826 |
Reported component name |
WAS BASE 5.0 |
Reported component ID |
5630A3600 |
Reported release |
00W |
Status |
CLOSED PER |
PE |
NoPE |
HIPER |
NoHIPER |
Special Attention |
NoSpecatt |
Submitted date |
2004-02-17 |
Closed date |
2004-04-05 |
Last modified date |
2004-04-05 |
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Modules/Macros
Publications Referenced
Applicable component levels |
R003 PSY |
UP |
R00A PSY |
UP |
R00H PSY |
UP |
R00I PSY |
UP |
R00P PSY |
UP |
R00S PSY |
UP |
R00W PSY |
UP |
R103 PSY |
UP |
R10A PSY |
UP |
R10H PSY |
UP |
R10I PSY |
UP |
R10P PSY |
UP |
R10S PSY |
UP |
R10W PSY |
UP |
|