4 Replies Latest reply on Sep 17, 2010 3:34 AM by ffang

    ServiceMix 4.3: it throws exceptions on some features (out of the box)

    michaelgli

      I just downloaded 4.3 and tried to run it and got the following errors:

       

      Then I tried one of the examples cxf-osgi, it doesn't work.

       

      22:39:05,491 | ERROR | Thread-5         | FeaturesServiceImpl              | s.internal.FeaturesServiceImpl$1  755 | 29 - org.apache.karaf.features.core - 2.0.0 | Error installing boot feature web: feature not found

      22:39:05,494 | ERROR | Thread-5         | FeaturesServiceImpl              | s.internal.FeaturesServiceImpl$1  755 | 29 - org.apache.karaf.features.core - 2.0.0 | Error installing boot feature servicemix-smpp: feature not found

      22:39:05,495 | ERROR | Thread-5         | FeaturesServiceImpl              | s.internal.FeaturesServiceImpl$1  755 | 29 - org.apache.karaf.features.core - 2.0.0 | Error installing boot feature servicemix-snmp: feature not found

      22:39:05,495 | ERROR | Thread-5         | FeaturesServiceImpl              | s.internal.FeaturesServiceImpl$1  755 | 29 - org.apache.karaf.features.core - 2.0.0 | Error installing boot feature servicemix-vfs: feature not found

      22:39:05,496 | ERROR | Thread-5         | FeaturesServiceImpl              | s.internal.FeaturesServiceImpl$1  755 | 29 - org.apache.karaf.features.core - 2.0.0 | Error installing boot feature servicemix-exec: feature not found

       

      any ideas?

        • 1. Re: ServiceMix 4.3: it throws exceptions on some features (out of the box)
          ffang

          Hi,

           

          For the cxf-osgi example, the workaround currently is edit $SMX_HOME/system/org/apache/servicemix/apache-servicemix/4.3.0-fuse-00-00/apache-servicemix-4.3.0-fuse-00-00-features.xml and comment out

           

           

          for examples-cxf-osgi feature.

           

          You need also do it for other examples-cxf-* features.

           

          Actually we have ESB-1266 to track this issue.

           

          For feature not found exception, it's harmless but it's sth we need fix for next release.

           

          Thanks for pointing out these issues.

          http://fusesource.com/issues/browse/ESB-1266

           

          Freeman

          • 2. Re: ServiceMix 4.3: it throws exceptions on some features (out of the box)
            gmui

            Hi - I'm new to SMX so please forgive me if I missed something obvious.  I'm trying to run through some examples and also had issues with examples-cxf-osgi.  I applied the suggested fix (commenting out the specified dependencies) but still ran into the following exception.  I tried using Apache's SMX 4.0.0 distribution and it seemed to work ok even though the commands were slightly different).

             

            When running Fuse 4.3.0 I don't think the web container is launched at all as there is nothing listening on port 8181 (or 8080 either for that matter).

             

            Any suggestions?

             

            Thanks,

            Gary

             

             

            C:\Software\apache-servicemix-4.3.0-fuse-00-00\bin>servicemix.bat

            ____                  _          __  __ _

            / ___|  ___ _ ____   () ___ ___|  \/  (_)_  __

            \___ \ / _ \ '__\ \ / / |/ __/ _ \ |\/| | \ \/ /

            ___) |  __/ |   \ V /| | (_|  __/ |  | | |>   features:list

            State         Version                Name                                 Repository

            spring                               karaf-2.0.0

            spring-dm                            karaf-2.0.0

            wrapper                              karaf-2.0.0

            obr                                  karaf-2.0.0

            http                                 karaf-2.0.0

            war                                  karaf-2.0.0

            webconsole                           karaf-2.0.0

            ssh                                  karaf-2.0.0

            management                           karaf-2.0.0

            spring                               repo-0

            spring-dm                            repo-0

            http                                 repo-0

            camel                                repo-0

            camel-core                           repo-0

            camel-spring                         repo-0

            camel-blueprint                      repo-0

            camel-test                           repo-0

            camel-cxf                            repo-0

            camel-cache                          repo-0

            camel-castor                         repo-0

            camel-crypto                         repo-0

            camel-http                           repo-0

            camel-http4                          repo-0

            camel-mina                           repo-0

            camel-jetty                          repo-0

            camel-servlet                        repo-0

            camel-jms                            repo-0

            camel-amqp                           repo-0

            camel-atom                           repo-0

            camel-bam                            repo-0

            camel-bindy                          repo-0

            camel-cometd                         repo-0

            camel-csv                            repo-0

            camel-dozer                          repo-0

            camel-flatpack                       repo-0

            camel-freemarker                     repo-0

            camel-ftp                            repo-0

            camel-guice                          repo-0

            camel-groovy                         repo-0

            camel-hl7                            repo-0

            camel-hawtdb                         repo-0

            camel-ibatis                         repo-0

            camel-irc                            repo-0

            camel-jackson                        repo-0

            camel-jaxb                           repo-0

            camel-jcr                            repo-0

            camel-jing                           repo-0

            camel-jdbc                           repo-0

            camel-josql                          repo-0

            camel-jpa                            repo-0

            camel-jxpath                         repo-0

            camel-juel                           repo-0

            camel-ldap                           repo-0

            camel-lucene                         repo-0

            camel-mail                           repo-0

            camel-msv                            repo-0

            camel-mvel                           repo-0

            camel-nagios                         repo-0

            camel-netty                          repo-0

            camel-ognl                           repo-0

            camel-printer                        repo-0

            camel-protobuf                       repo-0

            camel-quartz                         repo-0

            camel-restlet                        repo-0

            camel-rmi                            repo-0

            camel-rss                            repo-0

            camel-saxon                          repo-0

            camel-scala                          repo-0

            camel-script                         repo-0

            camel-smpp                           repo-0

            camel-snmp                           repo-0

            camel-soap                           repo-0

            camel-spring-integration             repo-0

            camel-spring-javaconfig              repo-0

            camel-spring-security                repo-0

            camel-sql                            repo-0

            camel-stream                         repo-0

            camel-string-template                repo-0

            camel-tagsoup                        repo-0

            camel-velocity                       repo-0

            camel-xmlbeans                       repo-0

            camel-xmlsecurity                    repo-0

            camel-xmpp                           repo-0

            camel-xstream                        repo-0

            camel-bean-validator                 repo-0

            ode-core-deps                        repo-0

            ode-core                             repo-0

            ode-hib-deps                         repo-0

            ode-jpa-deps                         repo-0

            ode-derby-deps                       repo-0

            ode-sqlserver-deps                   repo-0

            ode-oracle-deps                      repo-0

            ode                                  repo-0

            ode-hib-oracle                       repo-0

            ode-hib-sqlserver                    repo-0

            examples-ode-ping-pong               repo-0

            connector                            repo-0

            cxf                                  repo-0

            cxf-osgi                             repo-0

            cxf-jaxrs                            repo-0

            cxf-nmr                              repo-0

            camel-nmr                            repo-0

            camel-activemq                       repo-0

            examples-cxf-osgi                    repo-0

            examples-cxf-jaxrs                   repo-0

            examples-cxf-nmr                     repo-0

            examples-camel-osgi                  repo-0

            examples-camel-nmr                   repo-0

            examples-cxf-camel-nmr               repo-0

            examples-cxf-ws-addressing           repo-0

            examples-cxf-wsdl-first-osgi-package repo-0

            examples-cxf-ws-security-osgi        repo-0

            jpa-hibernate                        repo-0

            examples-jpa-osgi                    repo-0

            examples-cxf-ws-rm                   repo-0

            servicemix-shared                    repo-0

            servicemix-cxf-bc                    repo-0

            servicemix-file                      repo-0

            servicemix-ftp                       repo-0

            servicemix-http                      repo-0

            servicemix-jms                       repo-0

            servicemix-mail                      repo-0

            servicemix-bean                      repo-0

            servicemix-camel                     repo-0

            servicemix-drools                    repo-0

            servicemix-cxf-se                    repo-0

            servicemix-eip                       repo-0

            servicemix-osworkflow                repo-0

            servicemix-quartz                    repo-0

            servicemix-scripting                 repo-0

            servicemix-validation                repo-0

            servicemix-saxon                     repo-0

            servicemix-wsn2005                   repo-0

            activemq-broker                      repo-0

            activemq                             activemq-5.4.0-fuse-00-00

            activemq-spring                      activemq-5.4.0-fuse-00-00

            activemq-blueprint                   activemq-5.4.0-fuse-00-00

            activemq-web-console                 activemq-5.4.0-fuse-00-00

            naming                               repo-0

            transaction                          repo-0

            document                             repo-0

            nmr                                  repo-0

            nmr-audit                            repo-0

            jbi                                  repo-0

            jbi-cluster                          repo-0

            examples-nmr                         repo-0

            woodstox                             repo-0

            karaf@root> 2010-09-17 02:45:38.781:INFO::Logging to STDERR via org.mortbay.log.StdErrLog

            cls

            Error executing command: Command not found:  *:cls

            karaf@root> features:list -i

            State         Version                Name                  Repository

            spring                karaf-2.0.0

            spring-dm             karaf-2.0.0

            spring                repo-0

            spring-dm             repo-0

            camel                 repo-0

            camel-core            repo-0

            camel-spring          repo-0

            cxf                   repo-0

            servicemix-shared     repo-0

            servicemix-cxf-bc     repo-0

            servicemix-file       repo-0

            servicemix-ftp        repo-0

            servicemix-http       repo-0

            servicemix-jms        repo-0

            servicemix-mail       repo-0

            servicemix-bean       repo-0

            servicemix-camel      repo-0

            servicemix-drools     repo-0

            servicemix-cxf-se     repo-0

            servicemix-eip        repo-0

            servicemix-osworkflow repo-0

            servicemix-quartz     repo-0

            servicemix-scripting  repo-0

            servicemix-validation repo-0

            servicemix-saxon      repo-0

            servicemix-wsn2005    repo-0

            activemq-broker       repo-0

            activemq              activemq-5.4.0-fuse-00-00

            activemq-blueprint    activemq-5.4.0-fuse-00-00

            naming                repo-0

            transaction           repo-0

            document              repo-0

            nmr                   repo-0

            jbi                   repo-0

            jbi-cluster           repo-0

            woodstox              repo-0

            karaf@root> features:install examples-cxf-osgi

            Refreshing bundles org.springframework.beans (59)

            ERROR: JarContent: Unable to read bytes. (java.lang.IllegalStateException: zip file closed)

            java.lang.IllegalStateException: zip file closed

                    at java.util.zip.ZipFile.ensureOpen(ZipFile.java:403)

                    at java.util.zip.ZipFile.getEntry(ZipFile.java:148)

                    at java.util.jar.JarFile.getEntry(JarFile.java:206)

                    at org.apache.felix.framework.util.JarFileX.getEntry(JarFileX.java:61)

                    at org.apache.felix.framework.cache.JarContent.getEntryAsBytes(JarContent.java:120)

                    at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1733)

                    at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:716)

                    at org.apache.felix.framework.ModuleImpl.access$200(ModuleImpl.java:73)

                    at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1685)

                    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

                    at org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:634)

                    at org.apache.felix.framework.resolver.WireImpl.getClass(WireImpl.java:99)

                    at org.apache.felix.framework.ModuleImpl.searchImports(ModuleImpl.java:1345)

                    at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:711)

                    at org.apache.felix.framework.ModuleImpl.access$200(ModuleImpl.java:73)

                    at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1685)

                    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

                    at org.apache.cxf.bus.spring.BusApplicationListener.onApplicationEvent(BusApplicationListener.java:62)

                    at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMult

            icaster.java:97)

                    at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:3

            03)

                    at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1007)

                    at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.doClose(AbstractOsgiBundleAppli

            cationContext.java:197)

                    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$501(AbstractDele

            gatedExecutionApplicationContext.java:69)

                    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$2.run(AbstractDelegated

            ExecutionApplicationContext.java:214)

                    at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)

                    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.normalClose(AbstractDel

            egatedExecutionApplicationContext.java:210)

                    at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.cl

            ose(DependencyWaiterApplicationContextExecutor.java:379)

                    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.doClose(AbstractDelegat

            edExecutionApplicationContext.java:236)

                    at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:970)

                    at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$1.run(ContextLoaderListener.java:5

            24)

                    at org.springframework.osgi.extender.internal.util.concurrent.RunnableTimedExecution$MonitoredRunnable.run(Runna

            bleTimedExecution.java:60)

                    at org.springframework.scheduling.timer.DelegatingTimerTask.run(DelegatingTimerTask.java:70)

                    at java.util.TimerThread.mainLoop(Timer.java:512)

                    at java.util.TimerThread.run(Timer.java:462)

            ERROR: JarContent: Unable to read bytes. (java.lang.IllegalStateException: zip file closed)

            java.lang.IllegalStateException: zip file closed

                    at java.util.zip.ZipFile.ensureOpen(ZipFile.java:403)

                    at java.util.zip.ZipFile.getEntry(ZipFile.java:148)

                    at java.util.jar.JarFile.getEntry(JarFile.java:206)

                    at org.apache.felix.framework.util.JarFileX.getEntry(JarFileX.java:61)

                    at org.apache.felix.framework.cache.JarContent.getEntryAsBytes(JarContent.java:120)

                    at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1733)

                    at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:716)

                    at org.apache.felix.framework.ModuleImpl.access$200(ModuleImpl.java:73)

                    at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1685)

                    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

                    at org.apache.log4j.OsgiThrowableRenderer.doRender(OsgiThrowableRenderer.java:79)

                    at org.apache.log4j.OsgiThrowableRenderer.doRender(OsgiThrowableRenderer.java:53)

                    at org.apache.log4j.spi.ThrowableInformation.getThrowableStrRep(ThrowableInformation.java:89)

                    at org.apache.log4j.spi.LoggingEvent.getThrowableStrRep(LoggingEvent.java:413)

                    at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:313)

                    at org.apache.log4j.RollingFileAppender.subAppend(RollingFileAppender.java:276)

                    at org.apache.log4j.WriterAppender.append(WriterAppender.java:162)

                    at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)

                    at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)

                    at org.apache.log4j.Category.callAppenders(Category.java:206)

                    at org.apache.log4j.Category.forcedLog(Category.java:391)

                    at org.apache.log4j.Category.log(Category.java:856)

                    at org.ops4j.pax.logging.service.internal.PaxLoggerImpl.warn(PaxLoggerImpl.java:144)

                    at org.ops4j.pax.logging.internal.TrackingLogger.warn(TrackingLogger.java:91)

                    at org.apache.commons.logging.internal.JclLogger.warn(JclLogger.java:151)

                    at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1010)

                    at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.doClose(AbstractOsgiBundleAppli

            cationContext.java:197)

                    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$501(AbstractDele

            gatedExecutionApplicationContext.java:69)

                    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$2.run(AbstractDelegated

            ExecutionApplicationContext.java:214)

                    at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)

                    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.normalClose(AbstractDel

            egatedExecutionApplicationContext.java:210)

                    at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.cl

            ose(DependencyWaiterApplicationContextExecutor.java:379)

                    at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.doClose(AbstractDelegat

            edExecutionApplicationContext.java:236)

                    at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:970)

                    at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$1.run(ContextLoaderListener.java:5

            24)

                    at org.springframework.osgi.extender.internal.util.concurrent.RunnableTimedExecution$MonitoredRunnable.run(Runna

            bleTimedExecution.java:60)

                    at org.springframework.scheduling.timer.DelegatingTimerTask.run(DelegatingTimerTask.java:70)

                    at java.util.TimerThread.mainLoop(Timer.java:512)

                    at java.util.TimerThread.run(Timer.java:462)

             

            Edited by: gmui on Sep 17, 2010 6:51 AM

            • 3. Re: ServiceMix 4.3: it throws exceptions on some features (out of the box)
              gmui

              Just tried the exact same thing on Fuse ESB 4.2 and it seemed to work ok.

              • 4. Re: ServiceMix 4.3: it throws exceptions on some features (out of the box)
                ffang

                Hi,

                 

                You need remove $SMXP_HOME/data folder after you comment out such bundles(the workaround suggestion)

                 

                Or you can use 4.3.0-fuse-01-00[1], which already fix that issue in 4.3.0-fuse-00-00

                 

                http://repo.open.iona.com/maven2/org/apache/servicemix/apache-servicemix/4.3.0-fuse-01-00/

                 

                Freeman