[jboss-user] [Installation, Configuration & Deployment] - IllegalArgumentException

lightbulb432 do-not-reply at jboss.com
Thu Oct 5 19:30:33 EDT 2006


I'm getting the following error when changing persistence.xml in my development directory, before running ant to copy the containing JAR to my deploy directory.

If I stop and restart the server, then it works just fine! So this must have something to do with hot deploy not liking me changing the persistence.xml file. (I'm changing the persistence.xml file before I deploy, not in the deploy dir itself).

What's the problem here, and how do I fix it so that I don't have to keep restarting the server?

Thanks.


run.client:
  |      [java] Exception in thread "main" javax.ejb.EJBException: java.lang.IllegalArgumentException: Wrong target. class com.titan.travelagent.TravelAgentBean for public void com.titan.travelagent.TravelAgentBean.createCabin(com.titan.domain.Cabin)
  |      [java] 	at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
  |      [java] 	at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
  |      [java] 	at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
  |      [java] 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |      [java] 	at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
  |      [java] 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |      [java] 	at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
  |      [java] 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |      [java] 	at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
  |      [java] 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |      [java] 	at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
  |      [java] 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |      [java] 	at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
  |      [java] 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |      [java] 	at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:227)
  |      [java] 	at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
  |      [java] 	at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
  |      [java] 	at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828)
  |      [java] 	at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:681)
  |      [java] 	at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:358)
  |      [java] 	at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:398)
  |      [java] 	at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:239)
  |      [java] Caused by: java.lang.IllegalArgumentException: Wrong target. class com.titan.travelagent.TravelAgentBean for public void com.titan.travelagent.TravelAgentBean.createCabin(com.titan.domain.Cabin)
  |      [java] 	at org.jboss.aop.joinpoint.MethodInvocation.handleErrors(MethodInvocation.java:141)
  |      [java] 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:116)
  |      [java] 	at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
  |      [java] 	at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
  |      [java] 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |      [java] 	at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
  |      [java] 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |      [java] 	at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
  |      [java] 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |      [java] 	at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
  |      [java] 	at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
  |      [java] 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |      [java] 	at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
  |      [java] 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |      [java] 	at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
  |      [java] 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |      [java] 	at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
  |      [java] 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |      [java] 	at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
  |      [java] 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |      [java] 	at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
  |      [java] 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |      [java] 	at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:227)
  |      [java] 	at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
  |      [java] 	at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
  |      [java] 	at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828)
  |      [java] 	at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:681)
  |      [java] 	at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:358)
  |      [java] 	at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:398)
  |      [java] 	at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:239)
  |      [java] 	at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:190)
  |      [java] 	at org.jboss.remoting.Client.invoke(Client.java:525)
  |      [java] 	at org.jboss.remoting.Client.invoke(Client.java:488)
  |      [java] 	at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:55)
  |      [java] 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |      [java] 	at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
  |      [java] 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |      [java] 	at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:55)
  |      [java] 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |      [java] 	at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:78)
  |      [java] 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |      [java] 	at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
  |      [java] 	at $Proxy0.createCabin(Unknown Source)
  |      [java] 	at com.titan.clients.Client.main(Client.java:30)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976448#3976448

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976448



More information about the jboss-user mailing list