Exception with huge Audit Trail in SOA Suite

Tweet about this on TwitterShare on Facebook0Share on LinkedIn7Share on Google+0

Sometimes when you go to the Enterprise Manager to view the audit trail from a complex flow, the exception below may be thrown, and the audit trail is not fully constructed.

Exception occured while retrieving the Flowtrace XML for the Composite Instance; ECID: 2d0237859052c116:-7239f8e2:1495cf2793d:-8000-0000000000002db1
>> java.rmi.RemoteException: EJB Exception: ; nested exception is: 
>>> 	java.lang.RuntimeException: oracle.soa.management.facade.DataSetTooLargeException: Requested audit trail size is larger than threshold 1048576 chars
>>> 	at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:237)
>>> 	at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
>>> 	at oracle.soa.management.internal.ejb.impl.FacadeFinderBean_4vacyo_FacadeFinderBeanImpl_1036_WLStub.getAuditTrail(Unknown Source)
>>> 	at oracle.soa.management.internal.ejb.EJBLocatorImpl.getAuditTrail(EJBLocatorImpl.java:473)
>>> 	at oracle.sysman.emai.model.sca.share.composite.FlowTraceModel.setFloatraceModelInfo(FlowTraceModel.java:172)
>>> 	at oracle.sysman.emai.model.sca.share.composite.FlowTraceModel.initialize(FlowTraceModel.java:79)
>>> 	at oracle.sysman.emai.model.sca.EMEntityModel._initializeEntityData(EMEntityModel.java:28)
>>> 	at oracle.sysman.emai.model.sca.common.SCAEntityObject.initializeSCAData(SCAEntityObject.java:124)

exception-with-huge-audit-trail-in-soa-suite1

This happens because the instanceTrackingAuditTrailThreshold parameter is used to limit the audit trial size. It prevents huge audit trails to potentially consume a lot or all the memory available on the SOA server. The default value of instanceTrackingAuditTrailThreshold parameter is 1MB.

To increase the value of instanceTrackingAuditTrailThreshold parameter, do the following:
Go to Enterprise Manager and expand the Farm and SOA nodes. Right-click the soa-infra (AdminServer) node and choose SOA Administration > Common Properties.
In the SOA Infrastructure Common Properties page, click the More SOA Infra Advanced Configuration Properties link.
In the System MBean Browser page, click the AuditConfig link.
In the Attribute: AuditConfig page, increase the value of instanceTrackingAuditTrailThreshold parameter.

exception-with-huge-audit-trail-in-soa-suite2

Done! Now you can see huge audit trails, but take careful!

Tweet about this on TwitterShare on Facebook0Share on LinkedIn7Share on Google+0

Author: Waslley Souza

Consultor Oracle com foco em tecnologias Oracle Fusion Middleware e SOA. Certificado Oracle WebCenter Portal, Oracle ADF e Java.

Leave a Reply

Your email address will not be published. Required fields are marked *