Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-3839

Wrong target after redeploy

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • JBossAS-4.0.4.GA, JBossAS-4.0.5.GA
    • EJB
    • None

      Description:

      Starting with Jboss 4.0.4 GA I get "Wrong Target" exception on any remote bean invokation after a redeploy. Only thing that helps is restaring JBoss.

      How to repeat the bug:
      -installing JBoss
      *install a fresh JBOSS via http://jboss.sourceforge.net/jnlp/jems-installer-1.2.0.BETA3.jnlp
      *choose: ejb3-clustered
      *rest of installation process, provided defaults were used
      *in $JBOSS_HOME/server/default/conf/standardjboss.xml: disable ipv6 support with an option for JVM:
      -Djava.net.preferIPv4Stack=true
      reason: IP6 does not work on ubuntu linux (see: http://wiki.jboss.org/wiki/Wiki.jsp?page=IPv6)

      -building an example application
      *example uses JBoss' internal database
      *I used the Oreilly Workbook for Enterpreise Beans3.0 http://prdownloads.sourceforge.net/jboss/oreilly-ejb3-workbook_for_jboss404_GA.zip?download
      *unzip workbook to $WORKBOOK
      *change to directory $WORKBOOK/ex04_1
      *set JAVA_HOME, and JBOSS_HOME to required pathes
      *build and deploy example with: ant
      *run client with: ant run.client
      =>everything is working
      *touch the deployed jar with: touch $JBOSS_HOME/server/default/deploy/titan.jar
      *application is redeployed
      *run client with: ant run.client
      =>the following error message is shown:

      [java] Exception in thread "main" javax.ejb.EJBException: java.lang.IllegalArgumentException: Wrong target. class com.titan.travelagent.TravelAgentBean for public int com.titan.travelagent.TravelAgentBean.createCustomer(com.titan.domain.Customer)
      [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:77)
      [java] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:131)
      [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:263)
      [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 int com.titan.travelagent.TravelAgentBean.createCustomer(com.titan.domain.Customer)
      [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:77)
      [java] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:131)
      [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:263)
      [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:53)
      [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      [java] at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:77)
      [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.createCustomer(Unknown Source)
      [java] at com.titan.clients.Client.main(Client.java:30)
      [java] Java Result: 1

              wdecoste1@redhat.com William Decoste (Inactive)
              m-krausse Michael Krauße (Inactive)
              Votes:
              4 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: