SOA 11g: Exception In BPEL Unit Test

(Doc ID 2321967.1)

Last updated on OCTOBER 30, 2017

Applies to:

Oracle SOA Suite - Version 11.1.1.9.0 and later
Information in this document applies to any platform.

Symptoms

Exception in BPEL synchronous Unit Test using ant scripts

When using BPEL Unit Tests, the faults are handled differently when testing synchronous and asynchronous BPEL processes using ant scripts.

When testing an asynchronous BPEL processes and a fault is thrown, the test is throwing an exception and the test suite stops.

However, when testing a synchronous BPEL process, the test becomes "errored", the test suite continues and will abort with timeout error.

When testing the same synchronous BPEL process using EM, the Unit Tests suite throws an exception and stops working. It is not completed with timeout errror - this is the expected behavior also using ant scripts.


ERROR
-----------------------
  [scatest] java.lang.RuntimeException: The test run has timed out. Some tests did not complete in the allocated time.
  [scatest] at oracle.soa.management.internal.ejb.impl.SOATestBeanImpl.executeTestCases(SOATestBeanImpl.java:136)
  [scatest] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  [scatest] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  [scatest] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  [scatest] at java.lang.reflect.Method.invoke(Method.java:606)
  [scatest] at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
  [scatest] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
  [scatest] at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
  [scatest] at com.oracle.pitchfork.intercept.MethodInvocationInvocationContext.proceed(MethodInvocationInvocationContext.java:103)
  [scatest] at oracle.security.jps.ee.ejb.JpsAbsInterceptor$1.run(JpsAbsInterceptor.java:113)
  [scatest] at java.security.AccessController.doPrivileged(Native Method)
  [scatest] at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)
  [scatest] at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
  [scatest] at oracle.security.jps.ee.ejb.JpsAbsInterceptor.runJaasMode(JpsAbsInterceptor.java:100)
  [scatest] at oracle.security.jps.ee.ejb.JpsAbsInterceptor.intercept(JpsAbsInterceptor.java:154)
.........................................................................................................................................................................
  [scatest] at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
  [scatest] at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
  [scatest] at weblogic.work.ExecuteThread.execute(ExecuteThread.java:263)
  [scatest] at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
  [scatest]
  [scatest] build exception caught



Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms