5 Replies Latest reply on Nov 13, 2014 11:49 AM by sriramsharma

    Issue while starting FuseESB...

    sriramsharma

      Hi friends,

       

      I had uninstalled FuseESB and then freshly installed FuseESB yesterday.

      After having Done the installation successfuly, without any issues, when I tried to start the fuseesb.bat, I got the following error.

       

      C:\FuseESBEnterprise-7.1.0\bin>fuseesb.bat

      Please wait while Fuse ESB is loading...

      Error starting karaf activator org.apache.servicemix.specs.activator.Activator: org.osgi.framework.Bundle.adapt(Ljava/lang/Class;)Ljava/lang/Object;

      ERROR: Bundle org.apache.felix.framework [0] EventDispatcher: Error during dispatch. (java.lang.NoSuchMethodError: org.osgi.framework.Bundle.adapt(Ljava/lang/Class;)

      Ljava/lang/Object;)

      java.lang.NoSuchMethodError: org.osgi.framework.Bundle.adapt(Ljava/lang/Class;)Ljava/lang/Object;

              at org.apache.karaf.main.StartupListener.frameworkEvent(StartupListener.java:65)

              at org.apache.felix.framework.util.EventDispatcher.invokeFrameworkListenerCallback(EventDispatcher.java:837)

              at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:787)

              at org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:1105)

              at org.apache.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:55)

              at org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:102)

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

      ERROR: Bundle org.apache.felix.framework [0] EventDispatcher: Error during dispatch. (java.lang.NoSuchMethodError: org.osgi.framework.Bundle.adapt(Ljava/lang/Class;)

      Ljava/lang/Object;)

      java.lang.NoSuchMethodError: org.osgi.framework.Bundle.adapt(Ljava/lang/Class;)Ljava/lang/Object;

              at org.apache.karaf.main.StartupListener.frameworkEvent(StartupListener.java:65)

              at org.apache.felix.framework.util.EventDispatcher.invokeFrameworkListenerCallback(EventDispatcher.java:837)

              at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:787)

              at org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:1105)

              at org.apache.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:55)

              at org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:102)

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

       

      Does any one in this forum have any idea regarding this issue?

      Please help.

       

      Regards,

      Sriram

        • 1. Re: Issue while starting FuseESB...
          bharadwaj

          The getVersion() method was added to Bundle in version 1.5 of the package org.osgi.framework, i.e. OSGi Release 4.2. It looks like you have compiled against OSGi R4.2 but are actually running on something lower.

          This kind of problem can be easily avoided by using version ranges on your Import-Packagestatement. In this example you should import the org.osgi.framework package as version range [1.5,2.0)... this would then prevent your bundle from resolving on an earlier version of the OSGi framework

          Best option is delete the data folder and try to restart...

          • 2. Re: Issue while starting FuseESB...
            sriramsharma

            Hi Bharadwaj,

             

            I have not compiled or put any specific bundle in fuseesb.

            I had uninstalled entire FuseESB and then made a fresh installation of the same.

            It is a fresh installation of FuseESB and I am getting this error now.

            I did not get this error when I installed it previous time.

             

            Regards,

            Sriram

            • 3. Re: Issue while starting FuseESB...
              davsclaus

              What version of Java are you using? It may be that Fuse ESB requires Java 6 - its a bit old release now.

              • 4. Re: Issue while starting FuseESB...
                sriramsharma

                I am using JDK1.7_67

                • 5. Re: Issue while starting FuseESB...
                  sriramsharma

                  I donno what is the reason for this.

                  But, I had almost all my data corrupted for reasons I am unaware of.

                  I had to get my machine formatted and after this, I did not have to encounter this issue at all.

                  Wondering the reason behind the issue! :-(

                  Anyway, Thanks for all the beautiful brains who wanted to help me!