7 Replies Latest reply on Aug 25, 2007 10:48 AM by wayne baylor

    EJB3 client error - java.io.EOF exception

    jo raksit Newbie

      hello all,

      i'm folllowing the samples in bill burke's ejb3 book, i''ve successfully deployed my ejb bean, and i've got an simple database i've made in oracle xe as my datasource

      i'm now at the stage where i'm tryng to access i through a client application - but whenever i run the client app, it hangs about 4/5 hours - after which i get these error messages:

      (reconfigured port to 1201 for my install)


      C:\>java Client
      javax.naming.CommunicationException: Could not obtain connection to any of these
      urls: jnp://localhost:1201 and discovery failed with error: javax.naming.Commun
      icationException: error setting options [Root exception is java.net.SocketExcept
      ion: error setting options] [Root exception is javax.naming.CommunicationExcepti
      on: Failed to retrieve stub from server localhost:1201 [Root exception is java.i
      o.EOFException]]
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1414)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:594)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
      at javax.naming.InitialContext.lookup(InitialContext.java:392)
      at Client.main(Client.java:14)
      Caused by: javax.naming.CommunicationException: Failed to retrieve stub from ser
      ver localhost:1201 [Root exception is java.io.EOFException]
      at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:263)
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1385)
      ... 4 more
      Caused by: java.io.EOFException
      at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream
      .java:2279)
      at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputS
      tream.java:2748)
      at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:780
      )
      at java.io.ObjectInputStream.<init>(ObjectInputStream.java:280)
      at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:250)
      ... 5 more



      in my searches it seems to be the jndicontext.lookup variable that could an issue, so i've been trying a variety of names including (AVman is the nname of my jar & the jndi name) "java:AVman/com/AVman/Audiorec/AVmanRemote", "java:com/AVman/Audiorec/AVmanRemote", "java:AVman/com/AVman/Audiorec/AVman/remote"
      but no joy

      my log gives me a series of these errors:


      2007-08-21 17:44:33,453 DEBUG [org.jboss.resource.connectionmanager.IdleRemover] run: IdleRemover notifying pools, interval: 450000


      and here is my client app:

      import com.AVman.Audiorec.AVmanRemote;
      import com.AVman.domain.Audiorec;

      import javax.naming.InitialContext;
      import javax.naming.Context;
      import javax.naming.NamingException;
      import java.util.Properties;
      import javax.rmi.PortableRemoteObject;

      public class Client {
      public static void main(String [] args) {
      try {
      Context jndiContext = getInitialContext( );
      Object ref = jndiContext.lookup("java:AVman/com/AVman/Audiorec/AVmanRemote");
      AVmanRemote dao = (AVmanRemote)
      PortableRemoteObject.narrow(ref,AVmanRemote.class);

      Audiorec audiorec_1 = new Audiorec( );
      audiorec_1.setAudiorec_alias("Edirol red 1");
      audiorec_1.setBarcode_audiorec(1111117);
      audiorec_1.setSerial_audiorec("abcdefg");
      audiorec_1.setMedia_audiorec("sd card, 1gb included");

      dao.createAudiorec(audiorec_1);

      Audiorec audiorec_2 = dao.findAudiorec("Edirol red 1");
      System.out.println(audiorec_1.getAudiorec_alias( ));
      System.out.println(audiorec_1.getBarcode_audiorec( ));
      System.out.println(audiorec_1.getSerial_audiorec( ));
      System.out.println(audiorec_1.getMedia_audiorec( ));

      } catch (javax.naming.NamingException ne){ne.printStackTrace( );}
      }

      public static Context getInitialContext( )
      throws javax.naming.NamingException {

      Properties p = new Properties( );
      p.put(Context.INITIAL_CONTEXT_FACTORY,
      "org.jnp.interfaces.NamingContextFactory");
      p.put(Context.URL_PKG_PREFIXES,
      "org.jboss.naming:org.jnp.interfaces");
      p.put(Context.PROVIDER_URL, "jnp://localhost:1201");
      return new javax.naming.InitialContext(p);
      }
      }



      running:
      JBoss [Zion] 4.0.5.GA
      xp pro sp2
      oracle 10g xe
      jdk 1.6.0
      & all on same machine, no firewalll

      this post refers to jboss remoting - http://www.jboss.org/?module=bb&op=viewtopic&t=90965 -could this be my issue? i'm fairly neew to jboss so dont wanna conflate this by trying to get another framework in Yet, unless, thats what i need to do.... ?

      please help!

        • 1. Re: EJB3 client error - java.io.EOF exception
          jo raksit Newbie

          haha, okay scratch my whole "i've successsfully deployed my ejb bean" comment! i just brought up my server log set to debug and got a whole load of this

          2007-08-21 18:44:16,656 DEBUG [org.hibernate.validator.ClassValidator] ResourceBundle ValidatorMessages not found in Validator classloader. Delegate to org.hibernate.validator.resources.DefaultValidatorMessages
          2007-08-21 18:44:16,687 DEBUG [org.hibernate.impl.SessionFactoryImpl] obtaining JTA TransactionManager
          2007-08-21 18:44:16,703 INFO [org.hibernate.util.NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
          2007-08-21 18:44:16,734 DEBUG [org.jboss.ejb3.ServiceDelegateWrapper] Starting failed persistence.units:unitName=AVman
          javax.persistence.PersistenceException: org.hibernate.HibernateException: Could not locate TransactionManager
          at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:698)
          at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:127)
          at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:264)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:102)
          at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
          at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
          at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
          at $Proxy0.start(Unknown Source)
          at org.jboss.system.ServiceController.start(ServiceController.java:417)
          at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
          at $Proxy57.start(Unknown Source)
          at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:96)
          at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:467)
          at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:317)
          at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
          at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
          at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
          at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
          at $Proxy0.start(Unknown Source)
          at org.jboss.system.ServiceController.start(ServiceController.java:417)
          at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
          at $Proxy28.start(Unknown Source)
          at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:449)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
          at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
          at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
          at org.jboss.ws.integration.jboss.DeployerInterceptor.start(DeployerInterceptor.java:92)
          at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
          at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
          at $Proxy29.start(Unknown Source)
          at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
          at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
          at $Proxy8.deploy(Unknown Source)
          at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
          at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
          at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
          at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
          at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
          at $Proxy0.start(Unknown Source)
          at org.jboss.system.ServiceController.start(ServiceController.java:417)
          at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
          at $Proxy4.start(Unknown Source)
          at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
          at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
          at $Proxy5.deploy(Unknown Source)
          at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
          at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
          at org.jboss.Main.boot(Main.java:200)
          at org.jboss.Main$1.run(Main.java:490)
          at java.lang.Thread.run(Thread.java:619)
          Caused by: org.hibernate.HibernateException: Could not locate TransactionManager
          at org.hibernate.transaction.JNDITransactionManagerLookup.getTransactionManager(JNDITransactionManagerLookup.java:26)
          at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:325)
          at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1218)
          at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:691)
          ... 144 more
          Caused by: javax.naming.NameNotFoundException: TransactionManager not bound
          at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
          at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
          at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
          at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
          at javax.naming.InitialContext.lookup(InitialContext.java:392)
          at org.hibernate.transaction.JNDITransactionManagerLookup.getTransactionManager(JNDITransactionManagerLookup.java:23)
          ... 147 more
          2007-08-21 18:44:16,765 WARN [org.jboss.system.ServiceController] Problem starting service persistence.units:unitName=AVman
          javax.persistence.PersistenceException: org.hibernate.HibernateException: Could not locate TransactionManager
          at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:698)
          at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:127)
          at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:264)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:102)
          at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
          at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
          at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
          at $Proxy0.start(Unknown Source)
          at org.jboss.system.ServiceController.start(ServiceController.java:417)
          at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
          at $Proxy57.start(Unknown Source)
          at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:96)
          at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:467)
          at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:317)
          at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
          at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
          at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
          at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
          at $Proxy0.start(Unknown Source)
          at org.jboss.system.ServiceController.start(ServiceController.java:417)
          at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
          at $Proxy28.start(Unknown Source)
          at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:449)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
          at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
          at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
          at org.jboss.ws.integration.jboss.DeployerInterceptor.start(DeployerInterceptor.java:92)
          at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
          at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
          at $Proxy29.start(Unknown Source)
          at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
          at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
          at $Proxy8.deploy(Unknown Source)
          at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
          at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
          at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
          at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
          at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
          at $Proxy0.start(Unknown Source)
          at org.jboss.system.ServiceController.start(ServiceController.java:417)
          at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
          at $Proxy4.start(Unknown Source)
          at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
          at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
          at $Proxy5.deploy(Unknown Source)
          at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
          at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
          at org.jboss.Main.boot(Main.java:200)
          at org.jboss.Main$1.run(Main.java:490)
          at java.lang.Thread.run(Thread.java:619)
          Caused by: org.hibernate.HibernateException: Could not locate TransactionManager
          at org.hibernate.transaction.JNDITransactionManagerLookup.getTransactionManager(JNDITransactionManagerLookup.java:26)
          at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:325)
          at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1218)
          at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:691)
          ... 144 more
          Caused by: javax.naming.NameNotFoundException: TransactionManager not bound
          at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
          at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
          at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
          at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
          at javax.naming.InitialContext.lookup(InitialContext.java:392)
          at org.hibernate.transaction.JNDITransactionManagerLookup.getTransactionManager(JNDITransactionManagerLookup.java:23)
          ... 147 more
          2007-08-21 18:44:17,031 DEBUG [org.jboss.ejb3.security.JaccHelper] JACC Policy Configuration for deployment has been put in service
          2007-08-21 18:44:17,031 DEBUG [org.jboss.ejb3.Ejb3Module] Started jboss.j2ee:service=EJB3,module=AVman.jar
          2007-08-21 18:44:17,031 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.j2ee:service=EJB3,module=AVman.jar dependent components: []
          2007-08-21 18:44:17,031 INFO [org.jboss.ejb3.EJB3Deployer] Deployed: file:/C:/JBOSS/server/default/deploy/AVman.jar
          2007-08-21 18:44:17,046 DEBUG [org.jboss.deployment.MainDeployer] End deployment start on package: AVman.jar
          2007-08-21 18:44:17,046 DEBUG [org.jboss.deployment.MainDeployer] Deployed package: file:/C:/JBOSS/server/default/deploy/AVman.jar


          ouch.

          i swear down it was working fine before, or maybe i've just been lying to myself this whole time...

          any ideas?

          • 2. Re: EJB3 client error - java.io.EOF exception
            wayne baylor Apprentice

            looks like the TransactionManager jndi name is not bound.

            Do you see it in JNDIView from the jmx-console?

            • 3. Re: EJB3 client error - java.io.EOF exception
              jo raksit Newbie

              i read that the transaction manager prefers beans compiled with java5, so i went ahead and did this and redeployed and now have far fewer errors

              however, i seem to have managed an error that doesnt bring up a single page on google! i?m strangely proud of this....


              --- MBeans waiting for other MBeans ---
              ObjectName: jboss.j2ee:service=EJB3,module=AVman.jar
              State: FAILED
              Reason: java.io.IOException: non class file

              --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
              ObjectName: jboss.j2ee:service=EJB3,module=AVman.jar
              State: FAILED
              Reason: java.io.IOException: non class file

              !!!

              - and the rest....

              2007-08-22 05:14:52,812 DEBUG [org.jboss.mx.loading.ClassLoaderUtils] Multiple class loaders found for pkg: com.AVman.Audiorec
              2007-08-22 05:14:52,812 DEBUG [org.jboss.mx.loading.ClassLoaderUtils] Multiple class loaders found for pkg: com.AVman.domain
              2007-08-22 05:14:52,812 DEBUG [org.jboss.deployment.MainDeployer] found 0 subpackages of file:/C:/JBOSS/server/default/deploy/AVman.jar
              2007-08-22 05:14:52,812 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: file:/C:/JBOSS/server/default/deploy/AVman.jar
              2007-08-22 05:14:52,812 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/C:/JBOSS/server/default/deploy/AVman.jar
              2007-08-22 05:14:52,812 DEBUG [org.jboss.ws.integration.jboss.DeployerInterceptorEJB3] create: file:/C:/JBOSS/server/default/deploy/AVman.jar
              2007-08-22 05:14:52,812 DEBUG [org.jboss.ejb3.EJB3Deployer] create, AVman.jar
              2007-08-22 05:14:52,906 DEBUG [org.jboss.ejb3.EJB3Deployer] Deploying: file:/C:/JBOSS/server/default/deploy/AVman.jar
              2007-08-22 05:14:52,921 DEBUG [org.jboss.system.ServiceController] Creating service jboss.j2ee:service=EJB3,module=AVman.jar
              2007-08-22 05:14:52,921 DEBUG [org.jboss.ejb3.Ejb3Module] Creating jboss.j2ee:service=EJB3,module=AVman.jar
              2007-08-22 05:14:52,921 DEBUG [org.jboss.ejb3.security.JaccHelper] Initialising JACC Context for deployment: AVman.jar
              2007-08-22 05:14:52,953 DEBUG [org.jboss.ejb3.Ejb3Module] Initialization failed jboss.j2ee:service=EJB3,module=AVman.jar
              java.io.IOException: non class file
              at javassist.bytecode.ClassFile.read(ClassFile.java:621)
              at javassist.bytecode.ClassFile.<init>(ClassFile.java:52)
              at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:389)
              at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:378)
              at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:350)
              at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:305)
              at org.jboss.ejb3.Ejb3Module.createService(Ejb3Module.java:77)
              at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260)
              at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243)
              at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
              at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
              at $Proxy0.create(Unknown Source)
              at org.jboss.system.ServiceController.create(ServiceController.java:330)
              at org.jboss.system.ServiceController.create(ServiceController.java:273)
              at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
              at $Proxy28.create(Unknown Source)
              at org.jboss.ejb3.EJB3Deployer.create(EJB3Deployer.java:429)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
              at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
              at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
              at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
              at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
              at org.jboss.ws.integration.jboss.DeployerInterceptor.create(DeployerInterceptor.java:74)
              at org.jboss.ws.integration.jboss.DeployerInterceptorEJB.create(DeployerInterceptorEJB.java:44)
              at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
              at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
              at $Proxy29.create(Unknown Source)
              at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
              at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
              at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
              at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
              at $Proxy8.deploy(Unknown Source)
              at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
              at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
              at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
              at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
              at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
              at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
              at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
              at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
              at $Proxy0.start(Unknown Source)
              at org.jboss.system.ServiceController.start(ServiceController.java:417)
              at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
              at $Proxy4.start(Unknown Source)
              at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
              at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
              at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
              at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
              at $Proxy5.deploy(Unknown Source)
              at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
              at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
              at org.jboss.Main.boot(Main.java:200)
              at org.jboss.Main$1.run(Main.java:490)
              at java.lang.Thread.run(Thread.java:595)
              2007-08-22 05:14:52,953 WARN [org.jboss.system.ServiceController] Problem creating service jboss.j2ee:service=EJB3,module=AVman.jar
              java.io.IOException: non class file
              at javassist.bytecode.ClassFile.read(ClassFile.java:621)
              at javassist.bytecode.ClassFile.<init>(ClassFile.java:52)
              at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:389)
              at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:378)
              at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:350)
              at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:305)
              at org.jboss.ejb3.Ejb3Module.createService(Ejb3Module.java:77)
              at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260)
              at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243)
              at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
              at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
              at $Proxy0.create(Unknown Source)
              at org.jboss.system.ServiceController.create(ServiceController.java:330)
              at org.jboss.system.ServiceController.create(ServiceController.java:273)
              at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
              at $Proxy28.create(Unknown Source)
              at org.jboss.ejb3.EJB3Deployer.create(EJB3Deployer.java:429)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
              at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
              at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
              at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
              at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
              at org.jboss.ws.integration.jboss.DeployerInterceptor.create(DeployerInterceptor.java:74)
              at org.jboss.ws.integration.jboss.DeployerInterceptorEJB.create(DeployerInterceptorEJB.java:44)
              at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
              at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
              at $Proxy29.create(Unknown Source)
              at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
              at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
              at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
              at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
              at $Proxy8.deploy(Unknown Source)
              at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
              at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
              at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
              at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
              at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
              at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
              at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
              at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
              at $Proxy0.start(Unknown Source)
              at org.jboss.system.ServiceController.start(ServiceController.java:417)
              at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
              at $Proxy4.start(Unknown Source)
              at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
              at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
              at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
              at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
              at $Proxy5.deploy(Unknown Source)
              at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
              at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
              at org.jboss.Main.boot(Main.java:200)
              at org.jboss.Main$1.run(Main.java:490)
              at java.lang.Thread.run(Thread.java:595)
              2007-08-22 05:14:53,000 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying AVman.jar
              2007-08-22 05:14:53,000 DEBUG [org.jboss.deployment.MainDeployer] Begin deployment start file:/C:/JBOSS/server/default/deploy/AVman.jar
              2007-08-22 05:14:53,000 DEBUG [org.jboss.ws.integration.jboss.DeployerInterceptorEJB3] start: file:/C:/JBOSS/server/default/deploy/AVman.jar
              2007-08-22 05:14:53,000 DEBUG [org.jboss.ejb3.EJB3Deployer] start application, deploymentInfo: org.jboss.deployment.DeploymentInfo@b197217e { url=file:/C:/JBOSS/server/default/deploy/AVman.jar }
              deployer: MBeanProxyExt[jboss.ejb3:service=EJB3Deployer]
              status: Starting
              state: START_DEPLOYER
              watch: file:/C:/JBOSS/server/default/deploy/AVman.jar
              altDD: null
              lastDeployed: 1187756092812
              lastModified: 1187756092796
              mbeans:
              , short name: AVman.jar, parent short name: null
              2007-08-22 05:14:53,000 DEBUG [org.jboss.system.ServiceController] starting service jboss.j2ee:service=EJB3,module=AVman.jar
              2007-08-22 05:14:53,000 DEBUG [org.jboss.system.ServiceController] Ignoring start request for service: jboss.j2ee:service=EJB3,module=AVman.jar
              2007-08-22 05:14:53,000 INFO [org.jboss.ejb3.EJB3Deployer] Deployed: file:/C:/JBOSS/server/default/deploy/AVman.jar
              2007-08-22 05:14:53,000 DEBUG [org.jboss.deployment.MainDeployer] End deployment start on package: AVman.jar
              2007-08-22 05:14:53,000 DEBUG [org.jboss.deployment.MainDeployer] Deployed package: file:/C:/JBOSS/server/default/deploy/AVman.jar
              2007-08-22 05:14:53,000 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for: file:/C:/JBOSS/server/default/deploy/AVman.jar -> file:/C:/JBOSS/server/default/deploy/AVman.jar
              2007-08-22 05:14:53,015 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/C:/JBOSS/server/default/deploy/jmx-console.war/
              2007-08-22 05:14:53,015 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/C:/JBOSS/server/default/deploy/jmx-console.war/
              2007-08-22 05:14:53,015 DEBUG [org.jboss.deployment.MainDeployer] using deployer MBeanProxyExt[jboss.web:service=WebServer]
              2007-08-22 05:14:53,015 DEBUG [org.jboss.web.tomcat.tc5.Tomcat5] Begin init



              and my jmx console says:

              Global JNDI Namespace

              +- OracleDS (class: javax.sql.DataSource)
              +- DefaultDS (class: javax.sql.DataSource)
              +- comp.ejb3 (class: javax.naming.Context)
              | NonContext: null
              +- comp (class: javax.naming.Context)
              +- TransactionPropagationContextImporter (class: org.jboss.tm.TransactionPropagationContextImporter)
              +- QueueConnectionFactory (class: org.jboss.naming.LinkRefPair)
              +- JBossCorbaNaming (class: org.omg.CosNaming.NamingContextExt)
              +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
              +- queue (class: org.jnp.interfaces.NamingContext)
              | +- A (class: org.jboss.mq.SpyQueue)
              | +- testQueue (class: org.jboss.mq.SpyQueue)
              | +- ex (class: org.jboss.mq.SpyQueue)
              | +- DLQ (class: org.jboss.mq.SpyQueue)
              | +- D (class: org.jboss.mq.SpyQueue)
              | +- C (class: org.jboss.mq.SpyQueue)
              | +- B (class: org.jboss.mq.SpyQueue)
              +- UUIDKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.uuid.UUIDKeyGeneratorFactory)
              +- HiLoKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.hilo.HiLoKeyGeneratorFactory)
              +- StdJMSPool (class: org.jboss.jms.asf.StdServerSessionPoolFactory)
              +- UIL2ConnectionFactory[link -> ConnectionFactory] (class: javax.naming.LinkRef)
              +- UserTransactionSessionFactory (proxy: $Proxy12 implements interface org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory)
              +- JBossCorbaPOA (class: org.omg.PortableServer.POA)
              +- UILXAConnectionFactory[link -> XAConnectionFactory] (class: javax.naming.LinkRef)
              +- jaas (class: javax.naming.Context)
              | +- jmx-console (class: org.jboss.security.plugins.SecurityDomainContext)
              | +- jbossmq (class: org.jboss.security.plugins.SecurityDomainContext)
              | +- JmsXARealm (class: org.jboss.security.plugins.SecurityDomainContext)
              +- timedCacheFactory (class: javax.naming.Context)
              Failed to lookup: timedCacheFactory, errmsg=org.jboss.util.TimedCachePolicy
              +- console (class: org.jnp.interfaces.NamingContext)
              | +- PluginManager (proxy: $Proxy47 implements interface org.jboss.console.manager.PluginManagerMBean)
              +- HTTPXAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
              +- JBossCorbaORB (class: org.omg.CORBA.ORB)
              +- topic (class: org.jnp.interfaces.NamingContext)
              | +- testDurableTopic (class: org.jboss.mq.SpyTopic)
              | +- testTopic (class: org.jboss.mq.SpyTopic)
              | +- securedTopic (class: org.jboss.mq.SpyTopic)
              +- TransactionManager (class: org.jboss.tm.TxManager)
              +- JBossCorbaInterfaceRepositoryPOA (class: org.omg.PortableServer.POA)
              +- UserTransaction (class: org.jboss.tm.usertx.client.ClientUserTransaction)
              +- HTTPConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
              +- JmsXA (class: org.jboss.resource.adapter.jms.JmsConnectionFactoryImpl)
              +- TransactionPropagationContextExporter (class: org.jboss.tm.TransactionPropagationContextFactory)
              +- SecurityProxyFactory (class: org.jboss.security.SubjectSecurityProxyFactory)
              +- UIL2XAConnectionFactory[link -> XAConnectionFactory] (class: javax.naming.LinkRef)
              +- invokers (class: org.jnp.interfaces.NamingContext)
              | +- g-1ac14a0f87174 (class: org.jnp.interfaces.NamingContext)
              | | +- iiop (class: org.jboss.invocation.iiop.IIOPInvoker)
              +- DefaultJMSProvider (class: org.jboss.jms.jndi.JNDIProviderAdapter)
              +- UILConnectionFactory[link -> ConnectionFactory] (class: javax.naming.LinkRef)
              +- jmx (class: org.jnp.interfaces.NamingContext)
              | +- invoker (class: org.jnp.interfaces.NamingContext)
              | | +- RMIAdaptor (proxy: $Proxy46 implements interface org.jboss.jmx.adaptor.rmi.RMIAdaptor,interface org.jboss.jmx.adaptor.rmi.RMIAdaptorExt)
              | +- rmi (class: org.jnp.interfaces.NamingContext)
              | | +- RMIAdaptor[link -> jmx/invoker/RMIAdaptor] (class: javax.naming.LinkRef)
              +- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
              +- TopicConnectionFactory (class: org.jboss.naming.LinkRefPair)
              +- XAOracleDS (class: javax.sql.DataSource)
              +- Mail (class: javax.mail.Session)


              and when i try run the client appp, back to the hanging & the

              2007-08-22 05:22:18,156 DEBUG [org.jboss.resource.connectionmanager.IdleRemover] run: IdleRemover notifying pools, interval: 450000

              messages

              so, am i making any progress, or just progressively screwing up my machine? anyone ever got this error?

              cheers :)

              • 4. Re: EJB3 client error - java.io.EOF exception
                wayne baylor Apprentice

                do you have any files in your jar with the .class extension that aren't java class files?

                • 5. Re: EJB3 client error - java.io.EOF exception
                  jo raksit Newbie

                  hey wayne, cheers for your reply, think it was dodgy classses in my jar actually, used an old laptop to compile, anyway, got another one now and i'm back at the transactoin manager not bound place:


                  2007-08-22 14:00:10,593 DEBUG [org.jboss.ejb3.ServiceDelegateWrapper] Starting failed persistence.units:unitName=AVman
                  javax.persistence.PersistenceException: org.hibernate.HibernateException: Could not locate TransactionManager
                  at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:698)
                  at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:127)
                  at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:264)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:585)
                  at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:102)
                  at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
                  at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:585)
                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                  at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
                  at $Proxy0.start(Unknown Source)
                  at org.jboss.system.ServiceController.start(ServiceController.java:417)
                  at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:585)
                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                  at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                  at $Proxy73.start(Unknown Source)
                  at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:96)
                  at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:467)
                  at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:317)
                  at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
                  at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
                  at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:585)
                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                  at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
                  at $Proxy0.start(Unknown Source)
                  at org.jboss.system.ServiceController.start(ServiceController.java:417)
                  at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:585)
                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                  at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                  at $Proxy28.start(Unknown Source)
                  at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:449)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:585)
                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                  at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                  at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                  at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
                  at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
                  at org.jboss.ws.integration.jboss.DeployerInterceptor.start(DeployerInterceptor.java:92)
                  at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
                  at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                  at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                  at $Proxy29.start(Unknown Source)
                  at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                  at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:585)
                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                  at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                  at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                  at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                  at $Proxy8.deploy(Unknown Source)
                  at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
                  at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
                  at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
                  at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
                  at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
                  Caused by: org.hibernate.HibernateException: Could not locate TransactionManager
                  at org.hibernate.transaction.JNDITransactionManagerLookup.getTransactionManager(JNDITransactionManagerLookup.java:26)
                  at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:325)
                  at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1218)
                  at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:691)
                  ... 100 more
                  Caused by: javax.naming.NameNotFoundException: TransactionManager not bound
                  at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
                  at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
                  at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
                  at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
                  at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
                  at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
                  at javax.naming.InitialContext.lookup(InitialContext.java:351)
                  at org.hibernate.transaction.JNDITransactionManagerLookup.getTransactionManager(JNDITransactionManagerLookup.java:23)
                  ... 103 more




                  i've been searching but a lot of posts say, dont worry its a warning, but beecause of this my ejb wont do anything

                  from my console:



                  MBean Name: Domain Name: persistence.units
                  unitName: AVman
                  MBean Java Class: org.jboss.ejb3.ServiceDelegateWrapper

                  Back to Agent View Refresh MBean View

                  --------------------------------------------------------------------------------

                  MBean description:
                  Management Bean.
                  --------------------------------------------------------------------------------

                  List of MBean attributes:
                  Name Type Access Value Description
                  StateString java.lang.String R Failed MBean Attribute.
                  State int R 4 MBean Attribute.
                  Name java.lang.String R ServiceDelegateWrapper MBean Attribute.


                  --------------------------------------------------------------------------------

                  List of MBean operations:





                  and




                  Global JNDI Namespace
                  +- OracleDS (class: javax.sql.DataSource)
                  +- DefaultDS (class: javax.sql.DataSource)
                  +- comp.ejb3 (class: javax.naming.Context)
                  | NonContext: null
                  +- comp (class: javax.naming.Context)
                  +- TransactionPropagationContextImporter (class: org.jboss.tm.TransactionPropagationContextImporter)
                  +- QueueConnectionFactory (class: org.jboss.naming.LinkRefPair)
                  +- JBossCorbaNaming (class: org.omg.CosNaming.NamingContextExt)
                  +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
                  +- queue (class: org.jnp.interfaces.NamingContext)
                  | +- A (class: org.jboss.mq.SpyQueue)
                  | +- testQueue (class: org.jboss.mq.SpyQueue)
                  | +- ex (class: org.jboss.mq.SpyQueue)
                  | +- DLQ (class: org.jboss.mq.SpyQueue)
                  | +- D (class: org.jboss.mq.SpyQueue)
                  | +- C (class: org.jboss.mq.SpyQueue)
                  | +- B (class: org.jboss.mq.SpyQueue)
                  +- UUIDKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.uuid.UUIDKeyGeneratorFactory)
                  +- HiLoKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.hilo.HiLoKeyGeneratorFactory)
                  +- StdJMSPool (class: org.jboss.jms.asf.StdServerSessionPoolFactory)
                  +- UIL2ConnectionFactory[link -> ConnectionFactory] (class: javax.naming.LinkRef)
                  +- UserTransactionSessionFactory (proxy: $Proxy12 implements interface org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory)
                  +- JBossCorbaPOA (class: org.omg.PortableServer.POA)
                  +- UILXAConnectionFactory[link -> XAConnectionFactory] (class: javax.naming.LinkRef)
                  +- jaas (class: javax.naming.Context)
                  | +- jmx-console (class: org.jboss.security.plugins.SecurityDomainContext)
                  | +- jbossmq (class: org.jboss.security.plugins.SecurityDomainContext)
                  | +- JmsXARealm (class: org.jboss.security.plugins.SecurityDomainContext)
                  +- timedCacheFactory (class: javax.naming.Context)
                  Failed to lookup: timedCacheFactory, errmsg=org.jboss.util.TimedCachePolicy
                  +- console (class: org.jnp.interfaces.NamingContext)
                  | +- PluginManager (proxy: $Proxy47 implements interface org.jboss.console.manager.PluginManagerMBean)
                  +- HTTPXAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
                  +- JBossCorbaORB (class: org.omg.CORBA.ORB)
                  +- topic (class: org.jnp.interfaces.NamingContext)
                  | +- testDurableTopic (class: org.jboss.mq.SpyTopic)
                  | +- testTopic (class: org.jboss.mq.SpyTopic)
                  | +- securedTopic (class: org.jboss.mq.SpyTopic)
                  +- TransactionManager (class: org.jboss.tm.TxManager)
                  +- JBossCorbaInterfaceRepositoryPOA (class: org.omg.PortableServer.POA)
                  +- UserTransaction (class: org.jboss.tm.usertx.client.ClientUserTransaction)
                  +- HTTPConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
                  +- JmsXA (class: org.jboss.resource.adapter.jms.JmsConnectionFactoryImpl)
                  +- TransactionPropagationContextExporter (class: org.jboss.tm.TransactionPropagationContextFactory)
                  +- SecurityProxyFactory (class: org.jboss.security.SubjectSecurityProxyFactory)
                  +- UIL2XAConnectionFactory[link -> XAConnectionFactory] (class: javax.naming.LinkRef)
                  +- invokers (class: org.jnp.interfaces.NamingContext)
                  | +- g-1ac14a0f87174 (class: org.jnp.interfaces.NamingContext)
                  | | +- iiop (class: org.jboss.invocation.iiop.IIOPInvoker)
                  +- DefaultJMSProvider (class: org.jboss.jms.jndi.JNDIProviderAdapter)
                  +- UILConnectionFactory[link -> ConnectionFactory] (class: javax.naming.LinkRef)
                  +- jmx (class: org.jnp.interfaces.NamingContext)
                  | +- invoker (class: org.jnp.interfaces.NamingContext)
                  | | +- RMIAdaptor (proxy: $Proxy46 implements interface org.jboss.jmx.adaptor.rmi.RMIAdaptor,interface org.jboss.jmx.adaptor.rmi.RMIAdaptorExt)
                  | +- rmi (class: org.jnp.interfaces.NamingContext)
                  | | +- RMIAdaptor[link -> jmx/invoker/RMIAdaptor] (class: javax.naming.LinkRef)
                  +- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
                  +- TopicConnectionFactory (class: org.jboss.naming.LinkRefPair)
                  +- XAOracleDS (class: javax.sql.DataSource)
                  +- Mail (class: javax.mail.Session)






                  and my files:


                  package com.AVman.domain;
                  
                  import javax.persistence.*;
                  
                  @Entity
                  @Table(name="Audiorec")
                  public class Audiorec implements java.io.Serializable{
                   private int Barcode_audiorec;
                   private String Audiorec_alias;
                   private String Serial_audiorec;
                   private String Media_audiorec;
                   private String Formats_audiorec;
                  
                   @Id
                   @Column(name="Audiorec_alias")
                   public String getAudiorec_alias( ) { return Audiorec_alias; }
                   public void setAudiorec_alias(String alias) { this.Audiorec_alias = alias; }
                  
                   @Column(name="Barcode_audiorec")
                   public int getBarcode_audiorec( ) { return Barcode_audiorec; }
                   public void setBarcode_audiorec(int barcode) { this.Barcode_audiorec = barcode; }
                  
                   @Column(name="Serial_audiorec")
                   public String getSerial_audiorec( ) { return Serial_audiorec; }
                   public void setSerial_audiorec(String serial) { this.Serial_audiorec = serial; }
                  
                   @Column(name="Media_audiorec")
                   public String getMedia_audiorec( ) { return Media_audiorec; }
                   public void setMedia_audiorec(String media) { this.Media_audiorec = media; }
                  
                   @Column(name="Formats_audiorec")
                   public String getFormats_audiorec( ) { return Formats_audiorec; }
                   public void setFormats_audiorec(String formats) { this.Formats_audiorec = formats; }
                  
                  }
                  



                  &

                  package com.AVman.Audiorec;
                  
                  import javax.ejb.Stateless;
                  import javax.persistence.EntityManager;
                  import javax.persistence.PersistenceContext;
                  
                  import com.AVman.domain.Audiorec;
                  
                  @Stateless
                  public class AVmanBean implements AVmanRemote{
                   @PersistenceContext
                  (unitName="AVman")
                  private EntityManager manager;
                  
                   public void createAudiorec(Audiorec audiorec) {
                   manager.persist(audiorec);
                   }
                  
                   public Audiorec findAudiorec(String alias) {
                   return manager.find(Audiorec.class, alias);
                   }
                  }
                  




                  &
                  
                  package com.AVman.Audiorec;
                  
                  import javax.ejb.Remote;
                  import com.AVman.domain.Audiorec;
                  
                  @Remote
                  public interface AVmanRemote {
                  
                   public void createAudiorec(Audiorec audiorec);
                   public Audiorec findAudiorec(String Audiorec_alias);
                  }



                  and my persistence.xml...
                  <persistence>
                   <persistence-unit name="AVman">
                   <jta-data-source>java:/OracleDS</jta-data-source>
                   <jar-file>c:\AVman.jar</jar-file>
                   <class>com.AVman.domain.Audiorec</class>
                   <class>com.AVman.Audiorec.AVmanRemote</class>
                   <class>com.AVman.Audiorec.AVmanBean
                   <properties>
                   <property name="hibernate.dialect" value="org.hibernate.dialect.Oracle9Dialect"/>
                   <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
                   </properties>
                   </persistence-unit>
                  </persistence>


                  • 6. Re: EJB3 client error - java.io.EOF exception
                    jo raksit Newbie

                    whooohoo, got the ejb deployed, turns out i had to adjust the jndi properties file in the conf directory -

                    here's what worked


                    java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
                    java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
                    java.naming.provider.url=localhost:1200


                    (previously just had the first line in there)

                    i remembered it being 1200 from looking up naming on the jmx console

                    so, back round to the original problem, my client is still hanging!

                    gettting lots of this;

                    2007-08-22 19:30:57,093 DEBUG [org.jboss.resource.connectionmanager.IdleRemover] run: IdleRemover notifying pools, interval: 450000


                    that i'm fairly sure will culminate with Caused by: java.io.EOFException

                    think i now need to adjust my timeouts else i'm going to be waiting another 5hours for the stack trace, will update and in the meanwhile, if anyone has any ideas, be very grateful

                    • 7. Re: EJB3 client error - java.io.EOF exception
                      wayne baylor Apprentice

                      is there any info in the server log (in the log dir)?