Troubleshooting: ConnectorNotAvailableException while executing wsadmin script
Feature enablement or disablement fails while executing a wsadmin script, such as a jacl script.
Problem
In the enablement or disablement log you see a message similar to the following:
UpdateEAR: UpdateSOAPTimeout: Warning: Could not find file /usr/WebSphere/AppServer/profiles/demo/properties/soap.client.props.yourOriginalFile to copy. Copying 1 file to /usr/WebSphere/AppServer/profiles/demo/properties profileName=demo registry=/usr/WebSphere/AppServer/properties/profileRegistry.xml profileHome=/usr/WebSphere/AppServer/profiles/demo WASX7209I: Connected to process "server1" on node WC_demo_node using SOAP connector; The type of process is: UnManagedProcess DefaultApplication WC_demo Update of WC_demo has started. ADMA5058I: Application and module versions are validated with versions of deployment targets. ADMA5009I: Extracting application archive to /usr/WebSphere/AppServer/profiles/demo/wstemp/wstemp/app_12f6f0bf2a4/ext. ADMA5064I: FileMergeTask completed successfully for WC_demo. ADMA5005I: The application WC_demo is configured in the WebSphere Application Server repository. ADMA5005I: The application WC_demo is configured in the WebSphere Application Server repository. ADMA5005I: The application WC_demo is configured in the WebSphere Application Server repository. ADMA5113I: Activation plan created successfully. ADMA5005I: The application WC_demo is configured in the WebSphere Application Server repository. ADMA5011I: The cleanup of the temp directory for application WC_demo is complete. Update of WC_demo has ended. ivtApp query DefaultApplication WC_demo WASX7017E: Exception received while running file "/usr/WebSphere/CommerceServer70/components/foundation/scripts/disableFeature.jacl"; exception information: com.ibm.websphere.management.exception.ConnectorNotAvailableException org.apache.soap.SOAPException: [SOAPException: faultCode=SOAP-ENV:Client; msg=Error parsing HTTP status line "": java.util.NoSuchElementException; targetException=java.lang.IllegalArgumentException: Error parsing HTTP status line "": java.util.NoSuchElementException] BUILD FAILED /usr/WebSphere/CommerceServer70/components/common/xml/disableFeature.xml:54: The following error occurred while executing this line: /usr/WebSphere/CommerceServer70/components/common/xml/disableFeature.xml:142: The following error occurred while executing this line: /usr/WebSphere/CommerceServer70/components/common/xml/applicationTasks.xml:221: The following error occurred while executing this line: /usr/WebSphere/CommerceServer70/components/common/xml/applicationTasks.xml:246: The following error occurred while executing this line: /usr/WebSphere/CommerceServer70/components/common/xml/serverEnablementTasks.xml:277: Java returned: 105 at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384) at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) at org.apache.tools.ant.Project.executeTarget(Project.java:1185) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) at org.apache.tools.ant.Project.executeTargets(Project.java:1068) at org.apache.tools.ant.Main.runBuild(Main.java:668) at org.apache.tools.ant.Main.startAnt(Main.java:187) at org.apache.tools.ant.Main.start(Main.java:150) at com.ibm.commerce.config.ant.server.AntLauncher.main(AntLauncher.java:280) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:600) at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:260)
Solution
This error is caused by a communication failure with the WebSphere Application Server administrative server.
Check
the status of the WebSphere Application Server administrative server.
- In a federated or clustered environment, this is the deployment manager server (dmgr).
- In a stand-alone environment this is the server named server1.
- If the WebSphere Application Server administrative server is on a remote machine then check the network connection.