1 2 Previous Next 18 Replies Latest reply on Nov 23, 2010 5:49 AM by Nicklas Karlsson

    problems with JBoss-6.0.0-SNAPSHOT after switchboard integration

    Frank Langelage Master

      After switchborad integration today an checkout / rebuild I get errors like this on deployment:

      21:43:15,029 ERROR [AbstractKernelController] Error installing to Start: name=jboss-switchboard:appName=mbi2e-lafr-sb2000-ipc,module=ejb-message-core,name=MessageDistributor state=Create: javax.naming.NameAlreadyBoundException: fsh

       

      There are two or more SBs which get injected another EJB with the same variable name.

       

      In this case I have 4 occurences where FilesystemHandler EJB gets injected using it's local interface:

      message/core/MessageDistributor.java:    private FilesystemHandlerLocal fsh;
      session/common/RuleBuilder.java:    private FilesystemHandlerLocal fsh;
      session/sales/InSightSalesOrdersXmlBuilder.java:    private FilesystemHandlerLocal fsh;
      session/sales/SalesItems.java:    private FilesystemHandlerLocal fsh;

       

      Do I have to make the variable name unique or use the name attribute of @EJB?

      I don't hope so.

        • 1. Re: problems with JBoss-6.0.0-SNAPSHOT after switchboard integration
          jaikiran pai Master

          Can you please post the entire exception stacktrace? Also please note that (as I mentioned in the jboss-dev thread), for a few days the AS trunk is going to be a bit unstable (like you have experienced now). You are free to continue using the snapshots and encouraged to report any issues here, but don't be pissed if your working deployments start to fail I'm working on getting the testsuite to stability.

          • 2. Re: problems with JBoss-6.0.0-SNAPSHOT after switchboard integration
            jaikiran pai Master

            Frank Langelage wrote:

             

            There are two or more SBs which get injected another EJB with the same variable name.

             

            In this case I have 4 occurences where FilesystemHandler EJB gets injected using it's local interface:

            message/core/MessageDistributor.java:    private FilesystemHandlerLocal fsh;
            session/common/RuleBuilder.java:    private FilesystemHandlerLocal fsh;
            session/sales/InSightSalesOrdersXmlBuilder.java:    private FilesystemHandlerLocal fsh;
            session/sales/SalesItems.java:    private FilesystemHandlerLocal fsh;

             

            Are these EJBs being deployed within a .war file?

            • 3. Re: problems with JBoss-6.0.0-SNAPSHOT after switchboard integration
              jaikiran pai Master

              Also, can you please post the exact code or relevant xmls? I don't see any @EJB injection in those lines you posted. I believe MessageDistributor, RuleBuilder and the others are all EJBs. Am I right?

              • 4. Re: problems with JBoss-6.0.0-SNAPSHOT after switchboard integration
                Frank Langelage Master

                The classes are deployed in jar files within one ear file. One jar file per package / path (message/core, session/common, session/sales and others).

                 

                I don't know why, but after restart I do not get an NameAlreadyBound for fsh but for some others like "mbiSyuebFacade".

                I allways have the @EJB annotation in a separate line.

                The head of those beans look like this:

                 

                @MessageDriven( name = "MessageDistributor" )
                public class MessageDistributor extends MessageDistributorType implements MessageListener
                {
                    @PersistenceContext
                    private EntityManager entityManager;

                 

                    @EJB

                    private FilesystemHandlerLocal fsh;

                 

                    @EJB
                    private MbiSyuebFacadeLocal mbiSyuebFacade;

                ...

                }

                 

                @Stateful

                public class ExcelHandler implements ExcelHandlerLocal
                {
                    @EJB
                    private MbiSyuebFacadeLocal mbiSyuebFacade;

                ...

                }

                 

                @Stateless
                public class MbiFistaFacade implements MbiFistaFacadeLocal
                {

                    @EJB

                    private MbiSyuebFacadeLocal mbiSyuebFacade;

                ...

                }

                 

                09:03:00,533 ERROR [AbstractKernelController] Error installing to Start: name=jboss-switchboard:appName=mbi2e-lafr-sb2000-ipc,module=ejb-session-common,name=ExcelHandler state=Create: javax.naming.NameAlreadyBoundException: mbiSyuebFacade
                    at org.jnp.server.NamingServer.bind(NamingServer.java:209) [:5.0.5.Final]
                    at org.jnp.server.NamingServer.bind(NamingServer.java:167) [:5.0.5.Final]
                    at org.jnp.server.NamingServer.bind(NamingServer.java:167) [:5.0.5.Final]
                    at org.jnp.interfaces.NamingContext.bind(NamingContext.java:652) [:5.0.5.Final]
                    at org.jnp.interfaces.NamingContext.bind(NamingContext.java:613) [:5.0.5.Final]
                    at org.jboss.util.naming.Util.bind(Util.java:105) [jboss-common-core.jar:2.2.17.GA]
                    at org.jboss.util.naming.Util.bind(Util.java:91) [jboss-common-core.jar:2.2.17.GA]
                    at org.jboss.switchboard.impl.ENCOperator.bind(ENCOperator.java:97) [:1.0.0-alpha-8]
                    at org.jboss.switchboard.mc.SwitchBoardImpl.start(SwitchBoardImpl.java:62) [:1.0.0-alpha-8]
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_22]
                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_22]
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_22]
                    at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_22]
                    at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:60) [jboss-reflect.jar:2.2.0.Alpha9]
                    at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:168) [jboss-reflect.jar:2.2.0.Alpha9]
                    at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66) [jboss-reflect.jar:2.2.0.Alpha9]
                    at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:257) [jboss-kernel.jar:2.2.0.Alpha10]
                    at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47) [jboss-kernel.jar:2.2.0.Alpha10]
                    at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:125) [jboss-kernel.jar:2.2.0.Alpha10]
                    at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:72) [jboss-kernel.jar:2.2.0.Alpha10]
                    at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:202) [jboss-kernel.jar:2.2.0.Alpha10]
                    at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.Alpha10]
                    at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.Alpha10]
                    at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.Alpha10]
                    at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.Alpha10]
                    at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.Alpha10]
                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.Alpha10]
                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.Alpha10]
                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.Alpha10]
                    at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.Alpha10]
                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.Alpha10]

                at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.Alpha10]
                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.Alpha10]
                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.Alpha10]
                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:894) [jboss-dependency.jar:2.2.0.Alpha10]
                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:641) [jboss-dependency.jar:2.2.0.Alpha10]
                    at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:182) [:2.2.0.Alpha8]
                    at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:58) [:2.2.0.Alpha8]
                    at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62) [:2.2.0.Alpha8]
                    at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55) [:2.2.0.Alpha8]
                    at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.Alpha8]
                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.Alpha8]
                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.Alpha8]
                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1571) [:2.2.0.Alpha8]
                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1603) [:2.2.0.Alpha8]
                    at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.Alpha8]
                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.Alpha10]
                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.Alpha10]
                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.Alpha10]
                    at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.Alpha10]
                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.Alpha10]
                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.Alpha10]
                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.Alpha10]
                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.Alpha10]
                    at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.Alpha8]
                    at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.Alpha8]
                    at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.Alpha8]
                    at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0-SNAPSHOT]
                    at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:130) [:0.1.0.Alpha1]
                    at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:148) [:0.1.0.Alpha1]
                    at org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94) [:0.1.0.Alpha1]
                    at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.Alpha10]
                    at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.Alpha10]

                at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.Alpha10]
                    at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.Alpha10]
                    at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.Alpha10]
                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.Alpha10]
                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.Alpha10]
                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.Alpha10]
                    at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.Alpha10]
                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.Alpha10]
                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.Alpha10]
                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.Alpha10]
                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.Alpha10]
                    at org.jboss.profileservice.dependency.ProfileServiceController.activate(ProfileServiceController.java:188) [:0.1.0.Alpha1]
                    at org.jboss.profileservice.AbstractProfileService.activateProfile(AbstractProfileService.java:170) [:0.1.0.Alpha1]
                    at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.activate(AbstractProfileServiceBootstrap.java:117) [:0.1.0.Alpha1]
                    at org.jboss.profileservice.resolver.BasicResolverFactory$ProfileResolverFacade.deploy(BasicResolverFactory.java:89) [:0.1.0.Alpha1]
                    at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.start(AbstractProfileServiceBootstrap.java:97) [:0.1.0.Alpha1]
                    at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:130) [:6.0.0-SNAPSHOT]
                    at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0-SNAPSHOT]
                    at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
                    at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
                    at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]

                • 5. Re: problems with JBoss-6.0.0-SNAPSHOT after switchboard integration
                  jaikiran pai Master

                  Thanks for those details. I think I know what's going on. The EJB3 containers haven't fully been integrated with switchboard (work-in-progress) and that's probably is resulting in these failures.

                   

                  Could you please try commenting out:

                  <bean  name="org.jboss.switchboard.EJBEnvironmentSwitchBoardDeployer" class="org.jboss.switchboard.mc.deployer.EJBEnvironmentSwitchBoardDeployer">
                          <constructor><parameter class="org.jboss.reloaded.naming.deployers.javaee.JavaEEComponentInformer"><inject/></parameter></constructor>
                      </bean>
                  

                   

                  from JBOSS_HOME/server/< servername>/deployers/switchboard-*-jboss-beans.xml?

                   

                  Let us know how it goes.

                  • 6. Re: problems with JBoss-6.0.0-SNAPSHOT after switchboard integration
                    Frank Langelage Master

                    Yes, after commenting out these lines the errors are gone.

                    Thanks for your support so far.

                    • 7. Re: problems with JBoss-6.0.0-SNAPSHOT after switchboard integration
                      jaikiran pai Master

                      Thanks for testing that. I've committed that change to the AS trunk so that it doesn't cause issues till we integrate the EJB3 containers with swictchboard.

                      • 8. Re: problems with JBoss-6.0.0-SNAPSHOT after switchboard integration
                        Frank Langelage Master

                        Todays commits of switchboard artifacts broke my application deployment again.

                         

                        The stacktrace is

                        00:33:40,665 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Real: name=vfs:///mbi/tools/jboss/6.00/server/mbi/deploy/mbi2e-lafr-sb2000-ipc.ear state=PreReal mode=Manual requiredState=Real: org.jboss.deployers.spi.DeploymentException: Error deploying ejb-session-core.jar: failed to initialize bean container
                                at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:191) [:6.0.0-SNAPSHOT]
                                at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:60) [:6.0.0-SNAPSHOT]
                                at org.jboss.deployers.vfs.spi.deployer.AbstractSimpleVFSRealDeployer.deploy(AbstractSimpleVFSRealDeployer.java:56) [:2.2.0.Alpha8]
                                at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62) [:2.2.0.Alpha8]
                                at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55) [:2.2.0.Alpha8]
                                at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.Alpha8]
                                at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.Alpha8]
                                at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.Alpha8]
                                at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1603) [:2.2.0.Alpha8]
                                at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.Alpha8]
                                at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.Alpha10]
                                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.Alpha10]
                                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.Alpha10]
                                at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.Alpha10]
                                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.Alpha10]
                                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.Alpha10]
                                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.Alpha10]
                                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.Alpha10]
                                at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.Alpha8]
                                at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.Alpha8]
                                at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.Alpha8]
                                at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0-SNAPSHOT]
                                at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:130) [:0.1.0.Alpha1]
                                at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.deploy(HDScanner.java:240) [:0.1.0.Alpha1]
                                at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.complete(HDScanner.java:192) [:0.1.0.Alpha1]
                                at org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(TwoPCActionWrapper.java:59) [:0.1.0.Alpha1]
                                at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.complete(AbstractTwoPhaseModificationAction.java:74) [:0.1.0.Alpha1]
                                at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:94) [:0.1.0.Alpha1]
                                at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87) [:0.1.0.Alpha1]
                                at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234) [:0.1.0.Alpha1]
                                at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213) [:0.1.0.Alpha1]
                                at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150) [:0.1.0.Alpha1]
                                at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:135) [:0.1.0.Alpha1]
                                at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanner.java:146) [:0.1.0.Alpha1]
                                at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner.java:90) [:0.1.0.Alpha1]
                                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [:1.6.0_22]
                                at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [:1.6.0_22]
                                at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [:1.6.0_22]
                                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) [:1.6.0_22]
                                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) [:1.6.0_22]
                                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) [:1.6.0_22]
                                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_22]
                                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_22]
                                at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]
                        Caused by: java.lang.RuntimeException: failed to initialize bean container
                                at org.jboss.ejb3.EJBContainer.<init>(EJBContainer.java:304) [:1.6.3]
                                at org.jboss.ejb3.TimerServiceContainer.<init>(TimerServiceContainer.java:86) [:1.6.3]
                                at org.jboss.ejb3.session.SessionContainer.<init>(SessionContainer.java:124) [:1.6.3]
                                at org.jboss.ejb3.session.SessionSpecContainer.<init>(SessionSpecContainer.java:94) [:1.6.3]
                                at org.jboss.ejb3.stateless.StatelessContainer.<init>(StatelessContainer.java:116) [:1.6.3]
                                at org.jboss.ejb3.Ejb3AnnotationHandler.getStatelessContainer(Ejb3AnnotationHandler.java:330) [:1.6.3]
                                at org.jboss.ejb3.Ejb3DescriptorHandler.getStatelessContainer(Ejb3DescriptorHandler.java:499) [:1.6.3]
                                at org.jboss.ejb3.Ejb3AnnotationHandler.getContainers(Ejb3AnnotationHandler.java:211) [:1.6.3]
                                at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:771) [:1.6.3]
                                at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:722) [:1.6.3]
                                at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:704) [:1.6.3]
                                at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:667) [:1.6.3]
                                at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:544) [:1.6.3]
                                at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:177) [:6.0.0-SNAPSHOT]
                                ... 43 more
                        Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
                                at java.lang.String.charAt(String.java:686) [:1.6.0_22]
                                at org.jboss.ejb3.connectionmanager.CachedConnectionInterceptorFactory.createPerClass(CachedConnectionInterceptorFactory.java:58) [:1.6.3]
                                at org.jboss.aop.microcontainer.beans.DelegatingBeanAspectFactory.createPerClass(DelegatingBeanAspectFactory.java:96) [jboss-aop-mc-int.jar:2.2.0.Alpha10]
                                at org.jboss.aop.Advisor.addPerClassAspect(Advisor.java:1274) [jboss-aop.jar:2.2.1.Alpha3]
                                at org.jboss.aop.advice.ScopedInterceptorFactory.create(ScopedInterceptorFactory.java:75) [jboss-aop.jar:2.2.1.Alpha3]
                                at org.jboss.aop.Advisor.createInterceptorChain(Advisor.java:1328) [jboss-aop.jar:2.2.1.Alpha3]
                                at org.jboss.ejb3.interceptors.container.ManagedObjectAdvisor.createInterceptorChain(ManagedObjectAdvisor.java:141) [:1.0.8]
                                at org.jboss.aop.Advisor.pointcutResolved(Advisor.java:1942) [jboss-aop.jar:2.2.1.Alpha3]
                                at org.jboss.aop.MethodMatchInfo.applyBinding(MethodMatchInfo.java:152) [jboss-aop.jar:2.2.1.Alpha3]
                                at org.jboss.aop.MethodMatchInfo.overridePopulateBindings(MethodMatchInfo.java:143) [jboss-aop.jar:2.2.1.Alpha3]
                                at org.jboss.aop.MethodMatchInfo.populateBindings(MethodMatchInfo.java:92) [jboss-aop.jar:2.2.1.Alpha3]
                                at org.jboss.aop.Advisor.finalizeMethodChain(Advisor.java:1553) [jboss-aop.jar:2.2.1.Alpha3]
                                at org.jboss.aop.ClassAdvisor.finalizeChains(ClassAdvisor.java:741) [jboss-aop.jar:2.2.1.Alpha3]
                                at org.jboss.aop.ClassAdvisor.createInterceptorChains(ClassAdvisor.java:609) [jboss-aop.jar:2.2.1.Alpha3]
                                at org.jboss.aop.ClassAdvisor$1.run(ClassAdvisor.java:306) [jboss-aop.jar:2.2.1.Alpha3]
                                at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_22]
                                at org.jboss.aop.ClassAdvisor.attachClass(ClassAdvisor.java:276) [jboss-aop.jar:2.2.1.Alpha3]
                                at org.jboss.ejb3.interceptors.container.ManagedObjectAdvisor.initialize(ManagedObjectAdvisor.java:174) [:1.0.8]
                                at org.jboss.ejb3.aop.ExtendedManagedObjectAdvisor.initialize(ExtendedManagedObjectAdvisor.java:70) [:1.6.3]
                                at org.jboss.ejb3.interceptors.container.AbstractContainer.initializeAdvisor(AbstractContainer.java:180) [:1.0.8]
                                at org.jboss.ejb3.aop.BeanContainer.initialize(BeanContainer.java:193) [:1.6.3]
                                at org.jboss.ejb3.EJBContainer.<init>(EJBContainer.java:300) [:1.6.3]
                                ... 56 more

                         

                        The session beans are:

                        @Stateless
                        public class MailService implements TimedObject, MailServiceLocal
                        {
                            @Resource(mappedName = "java:JmsXA")
                            private ConnectionFactory connectionFactory;

                         

                            @Resource(mappedName = "java:/Mail")
                            private Session mailSession;

                         

                            ...

                        }

                         

                        @Stateless
                        public class MessageSink implements MessageSinkLocal
                        {

                            @PersistenceContext
                            private EntityManager entityManager;

                         

                            @Resource(mappedName = "java:JmsXA")
                            private ConnectionFactory factory;

                         

                            ...

                        }

                         

                        As soon as I comment out all  @Resource annotations the application deploys without errors.

                        • 9. Re: problems with JBoss-6.0.0-SNAPSHOT after switchboard integration
                          jaikiran pai Master

                          That exception doesn't look related to switchboard. Also, I haven't committed anything to trunk yesterday (november 18)

                          • 10. Re: problems with JBoss-6.0.0-SNAPSHOT after switchboard integration
                            Frank Langelage Master

                            Oh, I'm sorry that I blamed you .

                            I meant the commit for revision 109369 from marius.bogoevici: Switchboard integration for BeanManager && Injector - part 1.

                            • 11. Re: problems with JBoss-6.0.0-SNAPSHOT after switchboard integration
                              jaikiran pai Master

                              Frank Langelage wrote:

                               

                              I meant the commit for revision 109369 from marius.bogoevici: Switchboard integration for BeanManager && Injector - part 1.

                              Ah, I see. I hadn't updated my AS trunk and didn't notice that commit. Let me see if it's just an issue due to ongoing work on some other problem.

                              • 12. Re: problems with JBoss-6.0.0-SNAPSHOT after switchboard integration
                                jaikiran pai Master

                                A quick look at that commit doesn't show any obvious issue to me http://fisheye.jboss.org/changelog/JBossAS/trunk?cs=109369

                                 

                                Can you share/attach this application (or a simple version of it) which reproduces the issue? In the meantime, I am going to build and run some tests against the trunk.

                                • 13. Re: problems with JBoss-6.0.0-SNAPSHOT after switchboard integration
                                  Nicklas Karlsson Master

                                  I got a similar one on latest hudson build ~15h ago. CDI app with viewless EJBs, Singletons, Persistence contexts, WAR packed. Haven't narrowed it down yet.

                                  • 14. Re: problems with JBoss-6.0.0-SNAPSHOT after switchboard integration
                                    Nicklas Karlsson Master

                                    This is from latest stable Hudson build:

                                     

                                    09:09:04,872 ERROR [AbstractKernelController] Error installing to Real: name=vfs:///C:/Java/AS/jboss-6.0.0-SNAPSHOT/server/default/deploy/OSTi.war state=PreReal mode=Manual requiredState=Real: org.jboss.deployers.spi.DeploymentException: Error deploying OSTi.war: failed to initialize bean container
                                    at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:191) [:6.0.0-SNAPSHOT]
                                    at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:60) [:6.0.0-SNAPSHOT]
                                    at org.jboss.deployers.vfs.spi.deployer.AbstractSimpleVFSRealDeployer.deploy(AbstractSimpleVFSRealDeployer.java:56) [:2.2.0.Alpha8]
                                    at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62) [:2.2.0.Alpha8]
                                    at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55) [:2.2.0.Alpha8]
                                    at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.Alpha8]
                                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.Alpha8]
                                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.Alpha8]
                                    at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.Alpha8]
                                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.Alpha10]
                                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.Alpha10]
                                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.Alpha10]
                                    at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.Alpha10]
                                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.Alpha10]
                                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.Alpha10]
                                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.Alpha10]
                                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.Alpha10]
                                    at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.Alpha8]
                                    at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.Alpha8]
                                    at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.Alpha8]
                                    at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0-SNAPSHOT]
                                    at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:130) [:0.1.0.Alpha1]
                                    at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:148) [:0.1.0.Alpha1]
                                    at org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94) [:0.1.0.Alpha1]
                                    at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.Alpha10]
                                    at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.Alpha10]
                                    at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.Alpha10]
                                    at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.Alpha10]
                                    at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.Alpha10]
                                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.Alpha10]
                                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.Alpha10]
                                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.Alpha10]
                                    at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.Alpha10]
                                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.Alpha10]
                                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.Alpha10]
                                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.Alpha10]
                                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.Alpha10]
                                    at org.jboss.profileservice.dependency.ProfileServiceController.activate(ProfileServiceController.java:188) [:0.1.0.Alpha1]
                                    at org.jboss.profileservice.AbstractProfileService.activateProfile(AbstractProfileService.java:170) [:0.1.0.Alpha1]
                                    at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.activate(AbstractProfileServiceBootstrap.java:117) [:0.1.0.Alpha1]
                                    at org.jboss.profileservice.resolver.BasicResolverFactory$ProfileResolverFacade.deploy(BasicResolverFactory.java:89) [:0.1.0.Alpha1]
                                    at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.start(AbstractProfileServiceBootstrap.java:97) [:0.1.0.Alpha1]
                                    at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:130) [:6.0.0-SNAPSHOT]
                                    at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0-SNAPSHOT]
                                    at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
                                    at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
                                    at java.lang.Thread.run(Thread.java:619) [:1.6.0_20]
                                    Caused by: java.lang.RuntimeException: failed to initialize bean container
                                    at org.jboss.ejb3.EJBContainer.<init>(EJBContainer.java:304) [:1.6.3]
                                    at org.jboss.ejb3.TimerServiceContainer.<init>(TimerServiceContainer.java:86) [:1.6.3]
                                    at org.jboss.ejb3.session.SessionContainer.<init>(SessionContainer.java:124) [:1.6.3]
                                    at org.jboss.ejb3.session.SessionSpecContainer.<init>(SessionSpecContainer.java:94) [:1.6.3]
                                    at org.jboss.ejb3.stateless.StatelessContainer.<init>(StatelessContainer.java:116) [:1.6.3]
                                    at org.jboss.ejb3.Ejb3AnnotationHandler.getStatelessContainer(Ejb3AnnotationHandler.java:330) [:1.6.3]
                                    at org.jboss.ejb3.Ejb3AnnotationHandler.getContainers(Ejb3AnnotationHandler.java:211) [:1.6.3]
                                    at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:771) [:1.6.3]
                                    at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:722) [:1.6.3]
                                    at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:704) [:1.6.3]
                                    at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:667) [:1.6.3]
                                    at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:544) [:1.6.3]
                                    at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:177) [:6.0.0-SNAPSHOT]
                                    ... 46 more
                                    Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
                                    at java.lang.String.charAt(String.java:686) [:1.6.0_20]
                                    at org.jboss.ejb3.connectionmanager.CachedConnectionInterceptorFactory.createPerClass(CachedConnectionInterceptorFactory.java:58) [:1.6.3]
                                    at org.jboss.aop.microcontainer.beans.DelegatingBeanAspectFactory.createPerClass(DelegatingBeanAspectFactory.java:96) [jboss-aop-mc-int.jar:2.2.0.Alpha10]
                                    at org.jboss.aop.Advisor.addPerClassAspect(Advisor.java:1274) [jboss-aop.jar:2.2.1.Alpha3]
                                    at org.jboss.aop.advice.ScopedInterceptorFactory.create(ScopedInterceptorFactory.java:75) [jboss-aop.jar:2.2.1.Alpha3]
                                    at org.jboss.aop.Advisor.createInterceptorChain(Advisor.java:1328) [jboss-aop.jar:2.2.1.Alpha3]
                                    at org.jboss.ejb3.interceptors.container.ManagedObjectAdvisor.createInterceptorChain(ManagedObjectAdvisor.java:141) [:1.0.8]
                                    at org.jboss.aop.Advisor.pointcutResolved(Advisor.java:1942) [jboss-aop.jar:2.2.1.Alpha3]
                                    at org.jboss.aop.MethodMatchInfo.applyBinding(MethodMatchInfo.java:152) [jboss-aop.jar:2.2.1.Alpha3]
                                    at org.jboss.aop.MethodMatchInfo.overridePopulateBindings(MethodMatchInfo.java:143) [jboss-aop.jar:2.2.1.Alpha3]
                                    at org.jboss.aop.MethodMatchInfo.populateBindings(MethodMatchInfo.java:92) [jboss-aop.jar:2.2.1.Alpha3]
                                    at org.jboss.aop.Advisor.finalizeMethodChain(Advisor.java:1553) [jboss-aop.jar:2.2.1.Alpha3]
                                    at org.jboss.aop.ClassAdvisor.finalizeChains(ClassAdvisor.java:741) [jboss-aop.jar:2.2.1.Alpha3]
                                    at org.jboss.aop.ClassAdvisor.createInterceptorChains(ClassAdvisor.java:609) [jboss-aop.jar:2.2.1.Alpha3]
                                    at org.jboss.aop.ClassAdvisor$1.run(ClassAdvisor.java:306) [jboss-aop.jar:2.2.1.Alpha3]
                                    at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_20]
                                    at org.jboss.aop.ClassAdvisor.attachClass(ClassAdvisor.java:276) [jboss-aop.jar:2.2.1.Alpha3]
                                    at org.jboss.ejb3.interceptors.container.ManagedObjectAdvisor.initialize(ManagedObjectAdvisor.java:174) [:1.0.8]
                                    at org.jboss.ejb3.aop.ExtendedManagedObjectAdvisor.initialize(ExtendedManagedObjectAdvisor.java:70) [:1.6.3]
                                    at org.jboss.ejb3.interceptors.container.AbstractContainer.initializeAdvisor(AbstractContainer.java:180) [:1.0.8]
                                    at org.jboss.ejb3.aop.BeanContainer.initialize(BeanContainer.java:193) [:1.6.3]
                                    at org.jboss.ejb3.EJBContainer.<init>(EJBContainer.java:300) [:1.6.3]
                                    ... 58 more
                                    09:09:04,965 INFO  [TomcatDeployment] deploy, ctxPath=/
                                    09:09:05,343 INFO  [service] Removing bootstrap log handlers
                                    09:09:05,497 ERROR [org.jboss.profileservice.bootstrap] Failed to load profile:: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
                                    DEPLOYMENTS IN ERROR:
                                      Deployment "vfs:///C:/Java/AS/jboss-6.0.0-SNAPSHOT/server/default/deploy/OSTi.war" is in error due to the following reason(s): java.lang.StringIndexOutOfBoundsException: String index out of range: 0
                                    at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1228) [:2.2.0.Alpha8]
                                    at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:905) [:2.2.0.Alpha8]
                                    at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:87) [:6.0.0-SNAPSHOT]
                                    at org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.checkAllComplete(ProfileDeployerPluginRegistry.java:118) [:0.1.0.Alpha1]
                                    at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:133) [:6.0.0-SNAPSHOT]
                                    at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0-SNAPSHOT]
                                    at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
                                    at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
                                    at java.lang.Thread.run(Thread.java:619) [:1.6.0_20]

                                    09:09:04,872 ERROR [AbstractKernelController] Error installing to Real: name=vfs:///C:/Java/AS/jboss-6.0.0-SNAPSHOT/server/default/deploy/OSTi.war state=PreReal mode=Manual requiredState=Real: org.jboss.deployers.spi.DeploymentException: Error deploying OSTi.war: failed to initialize bean container

                                    at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:191) [:6.0.0-SNAPSHOT]

                                    at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:60) [:6.0.0-SNAPSHOT]

                                    at org.jboss.deployers.vfs.spi.deployer.AbstractSimpleVFSRealDeployer.deploy(AbstractSimpleVFSRealDeployer.java:56) [:2.2.0.Alpha8]

                                    at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62) [:2.2.0.Alpha8]

                                    at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55) [:2.2.0.Alpha8]

                                    at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.Alpha8]

                                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.Alpha8]

                                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.Alpha8]

                                    at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.Alpha8]

                                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.Alpha10]

                                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.Alpha10]

                                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.Alpha10]

                                    at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.Alpha10]

                                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.Alpha10]

                                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.Alpha10]

                                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.Alpha10]

                                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.Alpha10]

                                    at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.Alpha8]

                                    at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.Alpha8]

                                    at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.Alpha8]

                                    at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0-SNAPSHOT]

                                    at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:130) [:0.1.0.Alpha1]

                                    at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:148) [:0.1.0.Alpha1]

                                    at org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94) [:0.1.0.Alpha1]

                                    at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.Alpha10]

                                    at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.Alpha10]

                                    at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.Alpha10]

                                    at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.Alpha10]

                                    at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.Alpha10]

                                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.Alpha10]

                                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.Alpha10]

                                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.Alpha10]

                                    at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.Alpha10]

                                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.Alpha10]

                                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.Alpha10]

                                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.Alpha10]

                                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.Alpha10]

                                    at org.jboss.profileservice.dependency.ProfileServiceController.activate(ProfileServiceController.java:188) [:0.1.0.Alpha1]

                                    at org.jboss.profileservice.AbstractProfileService.activateProfile(AbstractProfileService.java:170) [:0.1.0.Alpha1]

                                    at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.activate(AbstractProfileServiceBootstrap.java:117) [:0.1.0.Alpha1]

                                    at org.jboss.profileservice.resolver.BasicResolverFactory$ProfileResolverFacade.deploy(BasicResolverFactory.java:89) [:0.1.0.Alpha1]

                                    at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.start(AbstractProfileServiceBootstrap.java:97) [:0.1.0.Alpha1]

                                    at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:130) [:6.0.0-SNAPSHOT]

                                    at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0-SNAPSHOT]

                                    at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]

                                    at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]

                                    at java.lang.Thread.run(Thread.java:619) [:1.6.0_20]

                                    Caused by: java.lang.RuntimeException: failed to initialize bean container

                                    at org.jboss.ejb3.EJBContainer.<init>(EJBContainer.java:304) [:1.6.3]

                                    at org.jboss.ejb3.TimerServiceContainer.<init>(TimerServiceContainer.java:86) [:1.6.3]

                                    at org.jboss.ejb3.session.SessionContainer.<init>(SessionContainer.java:124) [:1.6.3]

                                    at org.jboss.ejb3.session.SessionSpecContainer.<init>(SessionSpecContainer.java:94) [:1.6.3]

                                    at org.jboss.ejb3.stateless.StatelessContainer.<init>(StatelessContainer.java:116) [:1.6.3]

                                    at org.jboss.ejb3.Ejb3AnnotationHandler.getStatelessContainer(Ejb3AnnotationHandler.java:330) [:1.6.3]

                                    at org.jboss.ejb3.Ejb3AnnotationHandler.getContainers(Ejb3AnnotationHandler.java:211) [:1.6.3]

                                    at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:771) [:1.6.3]

                                    at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:722) [:1.6.3]

                                    at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:704) [:1.6.3]

                                    at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:667) [:1.6.3]

                                    at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:544) [:1.6.3]

                                    at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:177) [:6.0.0-SNAPSHOT]

                                    ... 46 more

                                    Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0

                                    at java.lang.String.charAt(String.java:686) [:1.6.0_20]

                                    at org.jboss.ejb3.connectionmanager.CachedConnectionInterceptorFactory.createPerClass(CachedConnectionInterceptorFactory.java:58) [:1.6.3]

                                    at org.jboss.aop.microcontainer.beans.DelegatingBeanAspectFactory.createPerClass(DelegatingBeanAspectFactory.java:96) [jboss-aop-mc-int.jar:2.2.0.Alpha10]

                                    at org.jboss.aop.Advisor.addPerClassAspect(Advisor.java:1274) [jboss-aop.jar:2.2.1.Alpha3]

                                    at org.jboss.aop.advice.ScopedInterceptorFactory.create(ScopedInterceptorFactory.java:75) [jboss-aop.jar:2.2.1.Alpha3]

                                    at org.jboss.aop.Advisor.createInterceptorChain(Advisor.java:1328) [jboss-aop.jar:2.2.1.Alpha3]

                                    at org.jboss.ejb3.interceptors.container.ManagedObjectAdvisor.createInterceptorChain(ManagedObjectAdvisor.java:141) [:1.0.8]

                                    at org.jboss.aop.Advisor.pointcutResolved(Advisor.java:1942) [jboss-aop.jar:2.2.1.Alpha3]

                                    at org.jboss.aop.MethodMatchInfo.applyBinding(MethodMatchInfo.java:152) [jboss-aop.jar:2.2.1.Alpha3]

                                    at org.jboss.aop.MethodMatchInfo.overridePopulateBindings(MethodMatchInfo.java:143) [jboss-aop.jar:2.2.1.Alpha3]

                                    at org.jboss.aop.MethodMatchInfo.populateBindings(MethodMatchInfo.java:92) [jboss-aop.jar:2.2.1.Alpha3]

                                    at org.jboss.aop.Advisor.finalizeMethodChain(Advisor.java:1553) [jboss-aop.jar:2.2.1.Alpha3]

                                    at org.jboss.aop.ClassAdvisor.finalizeChains(ClassAdvisor.java:741) [jboss-aop.jar:2.2.1.Alpha3]

                                    at org.jboss.aop.ClassAdvisor.createInterceptorChains(ClassAdvisor.java:609) [jboss-aop.jar:2.2.1.Alpha3]

                                    at org.jboss.aop.ClassAdvisor$1.run(ClassAdvisor.java:306) [jboss-aop.jar:2.2.1.Alpha3]

                                    at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_20]

                                    at org.jboss.aop.ClassAdvisor.attachClass(ClassAdvisor.java:276) [jboss-aop.jar:2.2.1.Alpha3]

                                    at org.jboss.ejb3.interceptors.container.ManagedObjectAdvisor.initialize(ManagedObjectAdvisor.java:174) [:1.0.8]

                                    at org.jboss.ejb3.aop.ExtendedManagedObjectAdvisor.initialize(ExtendedManagedObjectAdvisor.java:70) [:1.6.3]

                                    at org.jboss.ejb3.interceptors.container.AbstractContainer.initializeAdvisor(AbstractContainer.java:180) [:1.0.8]

                                    at org.jboss.ejb3.aop.BeanContainer.initialize(BeanContainer.java:193) [:1.6.3]

                                    at org.jboss.ejb3.EJBContainer.<init>(EJBContainer.java:300) [:1.6.3]

                                    ... 58 more

                                     

                                    09:09:04,965 INFO  [TomcatDeployment] deploy, ctxPath=/

                                    09:09:05,343 INFO  [service] Removing bootstrap log handlers

                                    09:09:05,497 ERROR [org.jboss.profileservice.bootstrap] Failed to load profile:: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

                                     

                                    DEPLOYMENTS IN ERROR:

                                      Deployment "vfs:///C:/Java/AS/jboss-6.0.0-SNAPSHOT/server/default/deploy/OSTi.war" is in error due to the following reason(s): java.lang.StringIndexOutOfBoundsException: String index out of range: 0

                                     

                                    at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1228) [:2.2.0.Alpha8]

                                    at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:905) [:2.2.0.Alpha8]

                                    at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:87) [:6.0.0-SNAPSHOT]

                                    at org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.checkAllComplete(ProfileDeployerPluginRegistry.java:118) [:0.1.0.Alpha1]

                                    at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:133) [:6.0.0-SNAPSHOT]

                                    at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0-SNAPSHOT]

                                    at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]

                                    at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]

                                    at java.lang.Thread.run(Thread.java:619) [:1.6.0_20]

                                    1 2 Previous Next