Problem Note 35556: Error message "sam.S235.ex" might occur when repeatedly opening and closing the SAS® Stored Process Server _webout connection
When running stored processes using the SAS Stored Process Web Application, output might not be returned to the client's Web browser if the stored process repeatedly opens and closes the _WEBOUT connection. The stored process server might become unresponsive and you might receive the following error message in your Web Server's log file:
[ERROR] < User Name Here > com.sas.services.storedprocess.Execution -
com.sas.services.storedprocess.SASServerException: Wraps an exception thrown while accessing the SAS Server.
at com.sas.services.storedprocess.Execution.doExecuteStoredProcessServerStoredProcess(Execution.java:1533)
at com.sas.services.storedprocess.Execution.access$300
Caused by: org.omg.CORBA.COMM_FAILURE: sam.S235.ex.msg: An exception was thrown while reading a packet header from the socket. vmcid: 0x0 minor code: 0 completed: No
at com.sas.net.brg.sam.SocketAccessMethod.getReply(Unknown Source)
at com.sas.net.brg.sam.SocketAccessMethod.sendRequest(Unknown Source)
at com.sas.net.brg.BridgeProtocolEngine.requestByName(Unknown Source)
at com.sas.net.brg.RequestImpl.invoke(Unknown Source)
The following stored process code will illustrate the problem.
/* This code incorrectly creates HTML "top matter" repeatedly. */
%macro repeat;
%do i = 1 %to 100;
%stpbegin; /* Route output to _WEBOUT */
proc print data=test;
run;
%stpend;
%end;
%mend repeat;
%repeat;
In the above example, the %STPBEGIN macro routes output to the _WEBOUT fileref (which is directed to the client user's Web browser).
This code is incorrect. ODS generates multiple, redundant tags for <!DOCTYPE>, <HTML>, <HEAD>,
<BODY> and their associated content and closing tags.
You can avoid this problem by using the ODS options no_top_matter and no_bottom_matter.
Either of the following approaches should avoid the problem.
- Add the following four statements at the top of the above code:
%let _ODSDEST=html;
ods &_ODSDEST body=_webout (no_bottom_matter);
ods &_ODSDEST close;
%let _ODSOPTIONS=%str(body=_webout(no_top_matter no_bottom_matter));
- This alternative approach does not use the %STPBEGIN and
%STPEND macros.
ods html body=_webout(no_bottom_matter);
ods html close;
%macro repeat;
%do i = 1 %to 100;
ods html body=_webout(no_top_matter no_bottom_matter);
proc print data=test;
run;
ods html close;
%end;
%mend repeat;
%repeat;
Operating System and Release Information
| SAS System | SAS Integration Technologies | z/OS | 9.1 TS1M3 SP4 | |
| Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 SP4 | |
| Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M3 SP4 | |
| Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M3 SP4 | |
| Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 SP4 | |
| Microsoft Windows NT Workstation | 9.1 TS1M3 SP4 | |
| Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP4 | |
| Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP4 | |
| Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP4 | |
| Microsoft Windows XP Professional | 9.1 TS1M3 SP4 | |
| Windows Vista | 9.1 TS1M3 SP4 | |
| 64-bit Enabled AIX | 9.1 TS1M3 SP4 | |
| 64-bit Enabled HP-UX | 9.1 TS1M3 SP4 | |
| 64-bit Enabled Solaris | 9.1 TS1M3 SP4 | |
| HP-UX IPF | 9.1 TS1M3 SP4 | |
| Linux | 9.1 TS1M3 SP4 | |
| Linux on Itanium | 9.1 TS1M3 SP4 | |
| OpenVMS Alpha | 9.1 TS1M3 SP4 | |
| Solaris for x64 | 9.1 TS1M3 SP4 | |
| Tru64 UNIX | 9.1 TS1M3 SP4 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
When running stored processes using the SAS Stored Process Web Application, output might not be returned to the client's Web browser if the stored process opens and closes the _WEBOUT connection a large number of times. You might receive the following error message:
sam.S235.ex.msg
| Type: | Problem Note |
| Priority: | high |
| Date Modified: | 2009-04-20 13:20:57 |
| Date Created: | 2009-04-14 15:57:04 |