Truncated Java Exception Stack Trace When EJB Call Fails In 12.1.2 Production Mode WLS Server (Doc ID 1624363.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle WebLogic Server - Version 12.1.2.0.0 and later
Information in this document applies to any platform.

Symptoms

An EJB is deployed into 12.1.2 WLS server - set in production mode.
An EJB client (stand alone program) invokes an EJB method which fails by throwing an exception.
In this case, the returned Java  stack exception trace  is truncated as  the following  :

javax.ejb.EJBException: EJB Exception: ; nested exception is:
java.lang.IllegalArgumentException
at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.unwrapRemoteException(RemoteBusinessIntfProxy.java:117)
at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:92)
at $Proxy0.testHello2(Unknown Source)
at EJBClient.main(EJBClient.java:25)
Caused by: java.lang.IllegalArgumentException
at weblogic.utils.StackTraceDisabled.unknownMethod()


The expected behaviour is to obtain a complete Java stack exception trace returned to the client :

javax.ejb.EJBException: EJB Exception: ; nested exception is:
java.lang.IllegalArgumentException
at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.unwrapRemoteException(RemoteBusinessIntfProxy.java:117)
at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:92)
at $Proxy0.testHello2(Unknown Source)
at EJBClient.main(EJBClient.java:25)
Caused by: java.lang.IllegalArgumentException
at rmi.ejb.test.SessionEJBBean.testHello2(SessionEJBBean.java:15)
at rmi.ejb.test.SessionEJB_qxt9um_SessionEJBImpl.__WL_invoke(Unknown Source)
at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:34)
at rmi.ejb.test.SessionEJB_qxt9um_SessionEJBImpl.testHello2(Unknown Source)
at rmi.ejb.test.SessionEJB_qxt9um_SessionEJBImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:693)
at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:519)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:515)
at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:295)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:254)


This full Java stack exception trace is returned when the WLS 12.12 is configured in the Development mode.

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