<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Why application exceptions are wrapped in EJBException on AS 6.1?
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/renz13">renz13</a> in <i>EJB3</i> - <a href="http://community.jboss.org/message/628811#628811">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hello,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I'm trying to deploy a Stateless Session Bean with Bean-Managed Transaction on JBoss AS 6.1 with the default configuration.</p><p>Methods in that bean throws application exceptions, which are annotated with @ApplicationException.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>When a method throws an application exception, it's wrapped in an EJBException.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>If I use Container-Managed Transaction, application exceptions are not wrapped in EJBException.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The Stateless Session Bean&#160; (I use a very simple case as an example, but the problem is the same) :</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code">package org.helloworld;</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>import javax.ejb.Stateless;</p><p>import javax.ejb.TransactionManagement;</p><p>import javax.ejb.TransactionManagementType;</p><p>import org.helloworld.exception.MyAppException;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>@Stateless</p><p>@TransactionManagement(TransactionManagementType.BEAN)</p><p>public class MyBean implements MyBeanRemote {</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160; public MyBean() { }</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160; @Override</p><p>&#160;&#160;&#160; public void doSomething(boolean throwException) throws MyAppException {</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (throwException) {</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; throw new MyAppException("Oops") ;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; else {</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return ;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p><p>&#160;&#160;&#160; }</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The remote interface :</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code">package org.helloworld;
import javax.ejb.Remote;

import org.helloworld.exception.MyAppException;

@Remote
public interface MyBeanRemote {

&#160;&#160;&#160; public void doSomething(boolean throwException) throws MyAppException;

}</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The application exception :</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code">
package org.helloworld.exception;

import javax.ejb.ApplicationException;

@ApplicationException
public class MyAppException extends Exception {

&#160;&#160;&#160; private static final long serialVersionUID = 1L;

&#160;&#160;&#160; public MyAppException() {
&#160;&#160;&#160;&#160;&#160;&#160;&#160; super();
&#160;&#160;&#160; }

&#160;&#160;&#160; public MyAppException(String arg0, Throwable arg1) {
&#160;&#160;&#160;&#160;&#160;&#160;&#160; super(arg0, arg1);
&#160;&#160;&#160; }

&#160;&#160;&#160; public MyAppException(String arg0) {
&#160;&#160;&#160;&#160;&#160;&#160;&#160; super(arg0);
&#160;&#160;&#160; }

&#160;&#160;&#160; public MyAppException(Throwable arg0) {
&#160;&#160;&#160;&#160;&#160;&#160;&#160; super(arg0);
&#160;&#160;&#160; }&#160;&#160;&#160; 
}
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The client program (java SE) :</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code">
package org.helloworld.client;

import javax.naming.InitialContext;

import org.helloworld.MyBeanRemote;
import org.helloworld.exception.MyAppException;

public class MyAppClient {

&#160;&#160;&#160; public static void main(String[]&#160; args){
&#160;&#160;&#160;&#160;&#160;&#160;&#160; try {
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; InitialContext ctxt = new InitialContext() ;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; MyBeanRemote myBean = (MyBeanRemote) ctxt.lookup("HelloworldEAR/MyBean/remote") ;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; myBean.doSomething(true) ;
&#160;&#160;&#160;&#160;&#160;&#160;&#160; }
&#160;&#160;&#160;&#160;&#160;&#160;&#160; catch (MyAppException e) {
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; System.err.println("My App Exception Message : "+e.getMessage()) ;
&#160;&#160;&#160;&#160;&#160;&#160;&#160; }
&#160;&#160;&#160;&#160;&#160;&#160;&#160; catch(Exception e) {
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; e.printStackTrace() ;
&#160;&#160;&#160;&#160;&#160;&#160;&#160; }
&#160;&#160;&#160; }
}
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>And here, the stacktrace, when I run the client code :</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="color:red;">
javax.ejb.EJBException: org.helloworld.exception.MyAppException: Oops
&#160;&#160;&#160; at org.jboss.ejb3.tx.BMTInterceptor.handleException(BMTInterceptor.java:94)
&#160;&#160;&#160; at org.jboss.ejb3.tx.StatelessBMTInterceptor.checkStatelessDone(StatelessBMTInterceptor.java:89)
&#160;&#160;&#160; at org.jboss.ejb3.tx.StatelessBMTInterceptor.handleInvocation(StatelessBMTInterceptor.java:105)
&#160;&#160;&#160; at org.jboss.ejb3.tx.BMTInterceptor.invoke(BMTInterceptor.java:57)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:68)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.ejb3.tx2.aop.NoOpInterceptor.invoke(NoOpInterceptor.java:45)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:182)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.ejb3.core.context.CurrentInvocationContextInterceptor.invoke(CurrentInvocationContextInterceptor.java:47)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.ejb3.interceptor.EJB3TCCLInterceptor.invoke(EJB3TCCLInterceptor.java:86)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:392)
&#160;&#160;&#160; at org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(InvokableContextClassProxyHack.java:53)
&#160;&#160;&#160; at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:91)
&#160;&#160;&#160; at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
&#160;&#160;&#160; at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:967)
&#160;&#160;&#160; at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:791)
&#160;&#160;&#160; at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:744)
&#160;&#160;&#160; at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:548)
&#160;&#160;&#160; at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)
Caused by: org.helloworld.exception.MyAppException: Oops
&#160;&#160;&#160; at org.helloworld.MyBean.doSomething(MyBean.java:20)
&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
&#160;&#160;&#160; at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
&#160;&#160;&#160; at java.lang.reflect.Method.invoke(Unknown Source)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeTarget(MethodInvocation.java:122)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
&#160;&#160;&#160; at org.jboss.ejb3.interceptors.container.ContainerMethodInvocationWrapper.invokeNext(ContainerMethodInvocationWrapper.java:72)
&#160;&#160;&#160; at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor$InvocationContext.proceed(InvocationContextInterceptor.java:127)
&#160;&#160;&#160; at org.jboss.weld.integration.ejb.interceptor.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:151)
&#160;&#160;&#160; at org.jboss.weld.integration.ejb.interceptor.Jsr299BindingsInterceptor.doAroundInvoke(Jsr299BindingsInterceptor.java:122)
&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
&#160;&#160;&#160; at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
&#160;&#160;&#160; at java.lang.reflect.Method.invoke(Unknown Source)
&#160;&#160;&#160; at org.jboss.ejb3.interceptors.aop.EJB3InterceptorInterceptor.invoke(EJB3InterceptorInterceptor.java:80)
&#160;&#160;&#160; at org.jboss.ejb3.interceptors.aop.EJB3InterceptorInterceptor.invoke(EJB3InterceptorInterceptor.java:71)
&#160;&#160;&#160; at org.jboss.ejb3.interceptors.container.ContainerMethodInvocationWrapper.invokeNext(ContainerMethodInvocationWrapper.java:62)
&#160;&#160;&#160; at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor$InvocationContext.proceed(InvocationContextInterceptor.java:127)
&#160;&#160;&#160; at org.jboss.weld.ejb.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:57)
&#160;&#160;&#160; at org.jboss.weld.integration.deployer.metadata.WeldLifecycleInterceptor.doAroundInvoke(WeldLifecycleInterceptor.java:55)
&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
&#160;&#160;&#160; at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
&#160;&#160;&#160; at java.lang.reflect.Method.invoke(Unknown Source)
&#160;&#160;&#160; at org.jboss.ejb3.interceptors.aop.EJB3InterceptorInterceptor.invoke(EJB3InterceptorInterceptor.java:80)
&#160;&#160;&#160; at org.jboss.ejb3.interceptors.aop.EJB3InterceptorInterceptor.invoke(EJB3InterceptorInterceptor.java:71)
&#160;&#160;&#160; at org.jboss.ejb3.interceptors.container.ContainerMethodInvocationWrapper.invokeNext(ContainerMethodInvocationWrapper.java:62)
&#160;&#160;&#160; at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.invoke(InterceptorSequencer.java:76)
&#160;&#160;&#160; at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.aroundInvoke(InterceptorSequencer.java:62)
&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
&#160;&#160;&#160; at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
&#160;&#160;&#160; at java.lang.reflect.Method.invoke(Unknown Source)
&#160;&#160;&#160; at org.jboss.aop.advice.PerJoinpointAdvice.invoke(PerJoinpointAdvice.java:174)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.fillMethod(InvocationContextInterceptor.java:74)
&#160;&#160;&#160; at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_fillMethod_22758614.invoke(InvocationContextInterceptor_z_fillMethod_22758614.java)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.setup(InvocationContextInterceptor.java:90)
&#160;&#160;&#160; at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_setup_22758614.invoke(InvocationContextInterceptor_z_setup_22758614.java)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.ejb3.async.impl.interceptor.AsynchronousServerInterceptor.invoke(AsynchronousServerInterceptor.java:128)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.ejb3.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:62)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:56)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.ejb3.tx.StatelessBMTInterceptor.handleInvocation(StatelessBMTInterceptor.java:100)
&#160;&#160;&#160; at org.jboss.ejb3.tx.BMTInterceptor.invoke(BMTInterceptor.java:57)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:68)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.ejb3.tx2.aop.NoOpInterceptor.invoke(NoOpInterceptor.java:45)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:182)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.ejb3.core.context.CurrentInvocationContextInterceptor.invoke(CurrentInvocationContextInterceptor.java:47)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.ejb3.interceptor.EJB3TCCLInterceptor.invoke(EJB3TCCLInterceptor.java:86)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:392)
&#160;&#160;&#160; at org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(InvokableContextClassProxyHack.java:53)
&#160;&#160;&#160; at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:91)
&#160;&#160;&#160; at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
&#160;&#160;&#160; at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:967)
&#160;&#160;&#160; at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:791)
&#160;&#160;&#160; at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:744)
&#160;&#160;&#160; at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:548)
&#160;&#160;&#160; at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)
&#160;&#160;&#160; at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:218)
&#160;&#160;&#160; at org.jboss.remoting.Client.invoke(Client.java:2070)
&#160;&#160;&#160; at org.jboss.remoting.Client.invoke(Client.java:879)
&#160;&#160;&#160; at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:60)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:77)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.ejb3.async.impl.interceptor.AsynchronousClientInterceptor.invoke(AsynchronousClientInterceptor.java:143)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
&#160;&#160;&#160; at $Proxy4.invoke(Unknown Source)
&#160;&#160;&#160; at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:185)
&#160;&#160;&#160; at $Proxy3.doSomething(Unknown Source)
&#160;&#160;&#160; at org.helloworld.client.MyAppClient.main(MyAppClient.java:14)
&#160;&#160;&#160; at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:72)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:77)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.ejb3.async.impl.interceptor.AsynchronousClientInterceptor.invoke(AsynchronousClientInterceptor.java:143)
&#160;&#160;&#160; at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
&#160;&#160;&#160; at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
&#160;&#160;&#160; at $Proxy4.invoke(Unknown Source)
&#160;&#160;&#160; at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:185)
&#160;&#160;&#160; at $Proxy3.doSomething(Unknown Source)
&#160;&#160;&#160; at org.helloworld.client.MyAppClient.main(MyAppClient.java:14)
</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Is there something i made wrong?</p><p><br/>Thx</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/628811#628811">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in EJB3 at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>