×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
We have an application (a set of web services) running on WAS on Linux. Program Call Wizard (PCML) is used to generate a set of Java classes to communicate with service programs on iSeries. The application is running on WAS continuously; however, the iSeries server is brought down each night for backup. As a result, each morning a connection reset exception is returned from the PCML program call when a 3rd party web application attempts to use the web services. After the web application calls the web service a few times, the connection is reestablished.
We would like to handle the failure inside the Java classes and retry the invoke method so that the 3rd party web application will not receive the error. What is the best practice to handle or avoid the situation? Any input to resolve the issue would be appreciated.
Below is the part of the stack trace extracted from the log:
[6/29/09 7:44:36:480 EDT] 00000035 SystemOut O 346187:44:36.480 5 ><BR>** Program Call Definition Error ** : The program alias, [query], caused error :
<BR>Exception received: '[java.net.SocketException] Connection reset'.
<BR>Potential causes :
<BR> 1) for 'Value is not set.' error. Please restart the EAR project or the server
<BR> to ensure that any changes made to the project are recognized by the server.
<BR> 2) for 'ObjectDoesNotExistException' error. Please make sure the host object defined
<BR> in the above program alias is correct and exists on the host.
<BR> 3) For all other errors, please check the setting of the reported field in
<BR> Program Call Definition Page.
[6/29/09 7:44:36:481 EDT] 00000035 SystemOut O WebIntRuntimeException occurred : com.ibm.iseries.webint.WebIntRuntimeException: <BR>** Program Call Definition Error ** : The program alias, [query], caused error :
<BR>Exception received: '[java.net.SocketException] Connection reset'.
<BR>Potential causes :
<BR> 1) for 'Value is not set.' error. Please restart the EAR project or the server
<BR> to ensure that any changes made to the project are recognized by the server.
<BR> 2) for 'ObjectDoesNotExistException' error. Please make sure the host object defined
<BR> in the above program alias is correct and exists on the host.
<BR> 3) For all other errors, please check the setting of the reported field in
<BR> Program Call Definition Page.
[6/29/09 7:44:36:481 EDT] 00000035 SystemOut O com.ibm.iseries.webint.WebIntRuntimeException: <BR>** Program Call Definition Error ** : The program alias, [query], caused error :
<BR>Exception received: '[java.net.SocketException] Connection reset'.
<BR>Potential causes :
<BR> 1) for 'Value is not set.' error. Please restart the EAR project or the server
<BR> to ensure that any changes made to the project are recognized by the server.
<BR> 2) for 'ObjectDoesNotExistException' error. Please make sure the host object defined
<BR> in the above program alias is correct and exists on the host.
<BR> 3) For all other errors, please check the setting of the reported field in
<BR> Program Call Definition Page.
[6/29/09 7:44:36:481 EDT] 00000035 SystemOut O at com.ibm.iseries.webint.WebIntProgramCall.mapException(WebIntProgramCall.java:831)
[6/29/09 7:44:36:481 EDT] 00000035 SystemOut O at com.ibm.iseries.webint.WebIntProgramCall.executeInternal(WebIntProgramCall.java:944)
[6/29/09 7:44:36:481 EDT] 00000035 SystemOut O at com.ibm.iseries.webint.WebIntProgramCall.execute(WebIntProgramCall.java:931)
[6/29/09 7:44:36:481 EDT] 00000035 SystemOut O at com.ibm.connector.as400.ProgramCallBean.invoke(ProgramCallBean.java:93)
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.