Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-1717

When openejb-osgi bundle is restarted, we get an exception (ServiceManager is already initialized)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.0-beta-2
    • Fix Version/s: 4.5.0
    • Component/s: osgi
    • Labels:
      None

      Description

      2011-12-06 15:23:36,075 | ERROR | l Console Thread | Activator | openejb.core.osgi.impl.Activator 92 | 208 - org.apache.openejb.core-osgi - 4.0.0.beta-2-SNAPSHOT | can't start OpenEJB services
      java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_29]
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_29]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_29]
      at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_29]
      at org.apache.openejb.core.osgi.impl.Activator.invoke(Activator.java:132)[208:org.apache.openejb.core-osgi:4.0.0.beta-2-SNAPSHOT]
      at org.apache.openejb.core.osgi.impl.Activator.start(Activator.java:87)[208:org.apache.openejb.core-osgi:4.0.0.beta-2-SNAPSHOT]
      at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:629)[org.apache.felix.framework-3.0.9.jar:]
      at org.apache.felix.framework.Felix.activateBundle(Felix.java:1842)[org.apache.felix.framework-3.0.9.jar:]
      at org.apache.felix.framework.Felix.startBundle(Felix.java:1759)[org.apache.felix.framework-3.0.9.jar:]
      at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:918)[org.apache.felix.framework-3.0.9.jar:]
      at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905)[org.apache.felix.framework-3.0.9.jar:]
      at org.apache.karaf.shell.osgi.StartBundle.doExecute(StartBundle.java:30)[17:org.apache.karaf.shell.osgi:2.2.4]
      at org.apache.karaf.shell.osgi.BundlesCommand.doExecute(BundlesCommand.java:37)[17:org.apache.karaf.shell.osgi:2.2.4]
      at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[23:org.apache.karaf.shell.console:2.2.4]
      at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[23:org.apache.karaf.shell.console:2.2.4]
      at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[23:org.apache.karaf.shell.console:2.2.4]
      at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[23:org.apache.karaf.shell.console:2.2.4]
      at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[23:org.apache.karaf.shell.console:2.2.4]
      at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[23:org.apache.karaf.shell.console:2.2.4]
      at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[23:org.apache.karaf.shell.console:2.2.4]
      at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[23:org.apache.karaf.shell.console:2.2.4]
      at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[23:org.apache.karaf.shell.console:2.2.4]
      at org.apache.karaf.shell.console.jline.Console.run(Console.java:218)[23:org.apache.karaf.shell.console:2.2.4]
      at java.lang.Thread.run(Thread.java:680)[:1.6.0_29]
      Caused by: java.lang.IllegalStateException: ServiceManager is already initialized
      at org.apache.openejb.server.osgi.ServiceManagerExtender.init(ServiceManagerExtender.java:64)
      ... 24 more

        Attachments

        1. openejb-1715-2.patch
          4 kB
          Charles Moulliard

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              cmoulliard Charles Moulliard
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: