Suppressing Stack Trace in a Service Health Check Response

To suppress stack traces in a HealthCheck response, set the suppressStackTrace element to true in a Service Health Check request. In Administrator UI, while invoking Service Health Check, select value True in Suppress Stack Trace option.

Sample Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:heal="http://www.tibco.com/healthcheck/">
	<soapenv:Header/>
	<soapenv:Body>
		<heal:HealthCheckRequest>
			<hops>2</hops>
			<suppressStackTrace>true</suppressStackTrace>
		</heal:HealthCheckRequest>
	</soapenv:Body>
</soapenv:Envelope>

Sample Response with suppressStackTrace=true

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
	<SOAP-ENV:Header/>
	<SOAP-ENV:Body>
		<HealthCheckResponse applicationName="hc.test.soa" correlationID="9473408a-f8c4-4e5c-ad58-d7205726ca25" status="Failed">
			<Service bindingName="SOAPService_Binding1" bindingType="SOAP" endTime="16 Jul 2015 17:05:45,169" endpointURI="/sample.hc.test2/" environmentName="DevEnvironment" hostName="SystemHost" ipAddress="192.0.2.0" isSSLEnabled="false" machineName="VM-AMX-93" name="Sample" nodeName="DevNode" portTypeName="Sample" responseTime="0" soapVersion="1.1" startTime="16 Jul 2015 17:05:45,169" status="Failed" transportType="HTTP">
				<Component endTime="16 Jul 2015 17:05:45,169" environmentName="DevEnvironment" hostName="SystemHost" name="Java1" nodeName="DevNode" responseTime="16" startTime="16 Jul 2015 17:05:45,153" status="Failed" version="1.0.0.v2015-07-10-1511">
					<SharedResource endTime="16 Jul 2015 17:05:45,153" environmentName="DevEnvironment" hostName="SystemHost" jdbcURL="jdbc:hsqldb:hsql://&lt;localhost>:&lt;port#>/&lt;db_instancename>" name="Property1" nodeName="DevNode" queryUsed="select count(*) from INFORMATION_SCHEMA.SYSTEM_TABLETYPES" resourceName="HSQL2jdbc" responseTime="0" startTime="16 Jul 2015 17:05:45,153" status="Failed">
						<Error>
							<errorCode>TIBCO-AMX-CF-DT-000003</errorCode>
							<errorString>SOO10 Invalid argument in JDBC call</errorString>
						</Error>
					</SharedResource>
				</Component>
			</Service>
		</HealthCheckResponse>
	</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Sample Response with suppressStackTrace=false

If suppressStackTrace is not specified or is set to false in the above request, a response similar to the following is returned. It has the complete stack traces for all the failures:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP-ENV:Header/>
   <SOAP-ENV:Body>
      <HealthCheckResponse applicationName="hc.test.soa" correlationID="8c328c8a-bf65-4911-89d5-423518d2fa2a" status="Failed">
         <Service bindingName="SOAPService_Binding1" bindingType="SOAP" endTime="16 Jul 2015 17:08:02,137" endpointURI="/sample.hc.test2/" environmentName="DevEnvironment" hostName="SystemHost" ipAddress="192.0.2.0" isSSLEnabled="false" machineName="VM-AMX-93" name="Sample" nodeName="DevNode" portTypeName="Sample" responseTime="0" soapVersion="1.1" startTime="16 Jul 2015 17:08:02,137" status="Failed" transportType="HTTP">
            <Component endTime="16 Jul 2015 17:08:02,122" environmentName="DevEnvironment" hostName="SystemHost" name="Java1" nodeName="DevNode" responseTime="0" startTime="16 Jul 2015 17:08:02,122" status="Failed" version="1.0.0.v2015-07-10-1511">
               <SharedResource endTime="16 Jul 2015 17:08:02,122" environmentName="DevEnvironment" hostName="SystemHost" jdbcURL="jdbc:hsqldb:hsql://&lt;localhost>:&lt;port#>/&lt;db_instancename>" name="Property1" nodeName="DevNode" queryUsed="select count(*) from INFORMATION_SCHEMA.SYSTEM_TABLETYPES" resourceName="HSQL2jdbc" responseTime="0" startTime="16 Jul 2015 17:08:02,122" status="Failed">
                  <Error>
                     <errorCode>TIBCO-AMX-CF-DT-000003</errorCode>
                     <errorString>SOO10 Invalid argument in JDBC call</errorString>
                     <stackTrace>java.sql.SQLException: SOO10 Invalid argument in JDBC call
	at org.hsqldb.jdbcDriver.getConnection(Unknown Source)
	at org.hsqldb.jdbcDriver.connect(Unknown Source)
	at org.tranql.connector.jdbc.JDBCDriverMCF.getPhysicalConnection(JDBCDriverMCF.java:138)
	at com.tibco.amf.sharedresource.runtime.tibcohost.jdbc.TibcoJDBCDriverMCF.createManagedConnection(TibcoJDBCDriverMCF.java:218)
	at org.apache.geronimo.connector.outbound.MCFConnectionInterceptor.getConnection(MCFConnectionInterceptor.java:61)
	at org.apache.geronimo.connector.outbound.LocalXAResourceInsertionInterceptor.getConnection(LocalXAResourceInsertionInterceptor.java:41)
	at org.apache.geronimo.connector.outbound.SinglePoolConnectionInterceptor.internalGetConnection(SinglePoolConnectionInterceptor.java:86)
	at org.apache.geronimo.connector.outbound.AbstractSinglePoolConnectionInterceptor.getConnection(AbstractSinglePoolConnectionInterceptor.java:99)
	at org.apache.geronimo.connector.outbound.TIBCOConnectionValidatingInterceptor.getConnection(TIBCOConnectionValidatingInterceptor.java:59)
	at org.apache.geronimo.connector.outbound.TransactionEnlistingInterceptor.getConnection(TransactionEnlistingInterceptor.java:46)
	at org.apache.geronimo.connector.outbound.TransactionCachingInterceptor.getConnection(TransactionCachingInterceptor.java:94)
	at org.apache.geronimo.connector.outbound.ConnectionHandleInterceptor.getConnection(ConnectionHandleInterceptor.java:43)
	at org.apache.geronimo.connector.outbound.TCCLInterceptor.getConnection(TCCLInterceptor.java:39)
	at org.apache.geronimo.connector.outbound.TIBCOStatisticsCollectingInterceptor.getConnection(TIBCOStatisticsCollectingInterceptor.java:24)
	at org.apache.geronimo.connector.outbound.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:117)
	at org.tranql.connector.jdbc.DataSource.getConnection(DataSource.java:58)
	at com.tibco.amf.sharedresource.runtime.tibcohost.jdbc.WrappedTranqlDataSource.getTestedConnection(WrappedTranqlDataSource.java:154)
	at com.tibco.amf.sharedresource.runtime.tibcohost.jdbc.WrappedTranqlDataSource.getConnection(WrappedTranqlDataSource.java:58)
	at com.tibco.amf.platform.runtime.componentframework.diagnostic.processor.JDBCSharedResourceProcessor.processHealthCheck(JDBCSharedResourceProcessor.java:79)
	at com.tibco.amf.platform.runtime.componentframework.diagnostic.processor.JDBCSharedResourceProcessor.processHealthCheck(JDBCSharedResourceProcessor.java:1)
	at com.tibco.amf.platform.runtime.componentframework.diagnostic.executionTask.HealthCheckProcessorInterruptibleTask.call(HealthCheckProcessorInterruptibleTask.java:62)
	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)</stackTrace>
                  </Error>
               </SharedResource>
            </Component>
         </Service>
      </HealthCheckResponse>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>