4 Replies Latest reply on Apr 7, 2010 6:24 AM by jaikiran pai

    @Singleton crashes with no-interface view

    Juergen Zimmermann Master

      The EJB 3.1 spec says in chapter 3.4.7.3:

      "All references to the no-interface view of the same singleton session bean have the same object identity."

       

      At http://community.jboss.org/wiki/EJB31inAS600M2 describes how to use a non-interface view. However, if I try a no-interface view for a singleton, then I get the following stacktrace. Any hint or comment is appreciated.

       

      09:55:15,669 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Start: name=vfsfile:/C:/Users/Public/Documents/eclipse-workspace-swe2/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_6.0_Runtime_Server1266414248806/deploy/hska.ear/hskaEJB.jar/$KundenverwaltungDao state=Create: java.lang.RuntimeException: Cannot get a jndi binder for bean KundenverwaltungDao since it's neither a stateful nor a stateless bean
      at org.jboss.ejb3.nointerface.impl.jndi.NoInterfaceViewJNDIBinderFacade.getNoInterfaceViewJndiBinder(NoInterfaceViewJNDIBinderFacade.java:191)
      at org.jboss.ejb3.nointerface.impl.jndi.NoInterfaceViewJNDIBinderFacade.onStart(NoInterfaceViewJNDIBinderFacade.java:127)
      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.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
      at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:151)
      at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
      at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:257)
      at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
      at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:125)
      at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:72)
      at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:202)
      at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
      at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
      at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
      at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
      at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:378)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2029)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1050)
      at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1289)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1213)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1107)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:918)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:633)
      at org.jboss.system.ServiceController.doChange(ServiceController.java:671)
      at org.jboss.system.ServiceController.start(ServiceController.java:443)
      at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:189)
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:102)
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:49)
      at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)
      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1660)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1378)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1399)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1431)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1319)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:378)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2029)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1050)
      at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1289)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1213)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1107)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:918)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:633)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:898)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:677)
      at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
      at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:409)
      at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:294)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:619)