Details

    • Type: Bug Bug
    • Status: Closed Closed (View Workflow)
    • Priority: Major Major
    • Resolution: Done
    • Affects Version/s: JBossAS-4.0.4.GA, JBossAS-4.0.5.GA
    • Fix Version/s: None
    • Component/s: EJB
    • Security Level: Public (Everyone can see)
    • Labels:
      None
    • Environment:
      Operating System: Ubuntu 6.06 LTS
      JDK Version: jdk1.5.0_09
      ANT Build tool: Apache Ant version 1.6.2 compiled on July 16 2004
    • Similar Issues:
      Show 10 results 

      Description

      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

        Issue Links

          Activity

          Hide
          William DeCoste
          added a comment -

          This problem only exists in the beta3 installer. The problem has been corrected in the non-installer JBoss4.0.5 release combined with the unreleased EJB3 RC10. We need an EJB RC10 release that is compatible with 4.0.5 and/or an updated installer version

          Show
          William DeCoste
          added a comment - This problem only exists in the beta3 installer. The problem has been corrected in the non-installer JBoss4.0.5 release combined with the unreleased EJB3 RC10. We need an EJB RC10 release that is compatible with 4.0.5 and/or an updated installer version
          Hide
          Dimitris Andreadis
          added a comment -
          Show
          Dimitris Andreadis
          added a comment - I presume this is the EJBTHREE-806 issue, solved by EJB3 RC9 Patch 1 available for download at: https://sourceforge.net/project/downloading.php?group_id=22866&use_mirror=osdn&filename=jboss-EJB-3.0_RC9_Patch_1.zip&60443039 .
          Hide
          Dimitris Andreadis
          added a comment -

          Link to a task for producing the next installer release.

          Show
          Dimitris Andreadis
          added a comment - Link to a task for producing the next installer release.
          Hide
          Dimitris Andreadis
          added a comment -

          Nothing more to do in the JBossAS project.

          Show
          Dimitris Andreadis
          added a comment - Nothing more to do in the JBossAS project.
          Hide
          William DeCoste
          added a comment -

          This issue was resolved with the release of EJB3 RC9 Patch1

          Show
          William DeCoste
          added a comment - This issue was resolved with the release of EJB3 RC9 Patch1
          Hide
          Dimitris Andreadis
          added a comment -

          Closing resolved issues.

          Show
          Dimitris Andreadis
          added a comment - Closing resolved issues.

            People

            • Assignee:
              William DeCoste
              Reporter:
              Michael Krauße
            • Votes:
              4 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: