1 Reply Latest reply on Mar 13, 2013 3:16 PM by Bartosz Majsak

    cannot run ejb 3.x integrate test using arquillian-glassfish-managed-3.1

    Tang Yong Newbie

      Hi Dan,

       

      I have  created the jira[1] several days, and no any confirmation and reply. Could you please see it.

       

      https://issues.jboss.org/browse/ARQ-1346

       

      Thanks

      --Tang

        • 1. Re: cannot run ejb 3.x integrate test using arquillian-glassfish-managed-3.1
          Bartosz Majsak Master

          Isn't it the root cause?

           

          EJB Container initialization error

          java.lang.IllegalStateException: Method 'public abstract int org.jboss.ejb3.examples.ch04.firstejb.CalculatorCommonBusiness.add(int[])' must throw at least one exception of type java.rmi.RemoteException or one of its super-classes

          at com.sun.corba.ee.impl.presentation.rmi.IDLNameTranslatorImpl.<init>(IDLNameTranslatorImpl.java:230)

          at com.sun.corba.ee.impl.presentation.rmi.IDLNameTranslatorImpl.<init>(IDLNameTranslatorImpl.java:63)

          at com.sun.corba.ee.impl.presentation.rmi.IDLNameTranslatorImpl$2.run(IDLNameTranslatorImpl.java:167)

          at com.sun.corba.ee.impl.presentation.rmi.IDLNameTranslatorImpl$2.run(IDLNameTranslatorImpl.java:165)

          at java.security.AccessController.doPrivileged(Native Method)

          at com.sun.corba.ee.impl.presentation.rmi.IDLNameTranslatorImpl.get(IDLNameTranslatorImpl.java:164)

          at com.sun.corba.ee.impl.presentation.rmi.PresentationManagerImpl$ClassDataImpl.<init>(PresentationManagerImpl.java:150)

          at com.sun.corba.ee.impl.presentation.rmi.PresentationManagerImpl$1.lookup(PresentationManagerImpl.java:100)

          at com.sun.corba.ee.impl.presentation.rmi.PresentationManagerImpl$1.lookup(PresentationManagerImpl.java:97)

          at org.glassfish.pfl.basic.concurrent.WeakCache.get(WeakCache.java:114)

          at com.sun.corba.ee.impl.presentation.rmi.PresentationManagerImpl.getClassData(PresentationManagerImpl.java:128)

          at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie.setTarget(ReflectiveTie.java:100)

          at org.glassfish.enterprise.iiop.impl.POAProtocolMgr.validateTargetObjectInterfaces(POAProtocolMgr.java:323)

          at com.sun.ejb.containers.BaseContainer.initializeHome(BaseContainer.java:1253)

          at com.sun.ejb.containers.StatelessSessionContainer.initializeHome(StatelessSessionContainer.java:190)

          at com.sun.ejb.containers.StatelessContainerFactory.createContainer(StatelessContainerFactory.java:63)

          at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:221)

          at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:291)

          at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:99)

          at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:206)

          at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:313)

          at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:493)

          at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)

          at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491)

          at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:528)

          at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:524)

          at java.security.AccessController.doPrivileged(Native Method)

          at javax.security.auth.Subject.doAs(Subject.java:356)

          at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:523)

          at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:547)

          at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1424)

          at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1500(CommandRunnerImpl.java:108)

          at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1759)

          at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1675)

          at org.glassfish.admin.rest.utils.ResourceUtil.runCommand(ResourceUtil.java:233)

          at org.glassfish.admin.rest.utils.ResourceUtil.runCommand(ResourceUtil.java:255)

          at org.glassfish.admin.rest.resources.TemplateListOfResource.createResource(TemplateListOfResource.java:329)

          at org.glassfish.admin.rest.resources.TemplateListOfResource.post(TemplateListOfResource.java:164)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke(Method.java:601)

          at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)

          at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:125)

          at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:152)

          at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:93)

          at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:350)

          at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:345)

          at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)

          at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:207)

          at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)

          at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:183)

          at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:852)

          at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:321)

          at org.glassfish.admin.rest.adapter.RestAdapter$2.service(RestAdapter.java:318)

          at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:181)

          at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:246)

          at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:164)

          at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:175)

          at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)

          at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:273)

          at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)

          at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:134)

          at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)

          at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)

          at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:820)

          at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)

          at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)

          at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)

          at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)

          at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)

          at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)

          at java.lang.Thread.run(Thread.java:722)

          Caused by: com.sun.corba.ee.impl.presentation.rmi.IDLTypeException: Method 'public abstract int org.jboss.ejb3.examples.ch04.firstejb.CalculatorCommonBusiness.add(int[])' must throw at least one exception of type java.rmi.RemoteException or one of its super-classes

          at com.sun.corba.ee.impl.presentation.rmi.IDLTypesUtil.validateExceptions(IDLTypesUtil.java:476)

          at com.sun.corba.ee.impl.presentation.rmi.IDLTypesUtil.validateRemoteInterface(IDLTypesUtil.java:100)

          at com.sun.corba.ee.impl.presentation.rmi.IDLNameTranslatorImpl.<init>(IDLNameTranslatorImpl.java:224)

          ... 72 more