activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guillaume Nodet <gno...@apache.org>
Subject Re: [DISCUSS/HELP] Help with ArtemisFeatureTest
Date Fri, 05 May 2017 06:24:47 GMT
This should be fixed now, sorry about those problems.

2017-05-05 1:09 GMT+02:00 Clebert Suconic <clebert.suconic@gmail.com>:

> Yeah.   But whenever I tweaked server-osgi the error moved to a different
> class  and I got stuck.
>
>
>
>
> On Thu, May 4, 2017 at 6:37 PM Guillaume Nodet <gnodet@apache.org> wrote:
>
> > I can see the following exception. Is that what you're seeing too ?
> >
> > java.lang.NoClassDefFoundError:
> > org/apache/activemq/artemis/jlibaio/LibaioContext
> >
> > at
> >
> > org.apache.activemq.artemis.core.io.aio.AIOSequentialFileFactory.
> isSupported(AIOSequentialFileFactory.java:110)
> >
> > at
> >
> > org.apache.activemq.artemis.core.deployers.impl.FileConfigurationParser.
> parseMainConfig(FileConfigurationParser.java:519)
> >
> > at
> >
> > org.apache.activemq.artemis.core.config.impl.FileConfiguration.parse(
> FileConfiguration.java:55)
> >
> > at
> >
> > org.apache.activemq.artemis.core.config.FileDeploymentManager.
> readConfiguration(FileDeploymentManager.java:86)
> >
> > at org.apache.activemq.artemis.osgi.OsgiBroker.activate(
> OsgiBroker.java:92)
> >
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)[:1.8.0_91]
> >
> > at
> >
> > sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:62)[:1.8.0_91]
> >
> > at
> >
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)[:1.8.0_91]
> >
> > at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_91]
> >
> > at
> >
> > org.apache.felix.scr.impl.inject.BaseMethod.
> invokeMethod(BaseMethod.java:224)[51:org.apache.felix.scr:2.0.6]
> >
> > at
> >
> > org.apache.felix.scr.impl.inject.BaseMethod.access$500(
> BaseMethod.java:39)[51:org.apache.felix.scr:2.0.6]
> >
> > at
> >
> > org.apache.felix.scr.impl.inject.BaseMethod$Resolved.
> invoke(BaseMethod.java:617)
> >
> > at
> >
> > org.apache.felix.scr.impl.inject.BaseMethod.invoke(
> BaseMethod.java:501)[51:org.apache.felix.scr:2.0.6]
> >
> > at
> >
> > org.apache.felix.scr.impl.inject.ActivateMethod.invoke(
> ActivateMethod.java:302)[51:org.apache.felix.scr:2.0.6]
> >
> > at
> >
> > org.apache.felix.scr.impl.inject.ActivateMethod.invoke(
> ActivateMethod.java:294)[51:org.apache.felix.scr:2.0.6]
> >
> > at
> >
> > org.apache.felix.scr.impl.manager.SingleComponentManager.
> createImplementationObject(SingleComponentManager.java:
> 297)[51:org.apache.felix.scr:2.0.6]
> >
> > at
> >
> > org.apache.felix.scr.impl.manager.SingleComponentManager.
> createComponent(SingleComponentManager.java:108)[51:org.apache.felix.scr:
> 2.0.6]
> >
> > at
> >
> > org.apache.felix.scr.impl.manager.SingleComponentManager.getService(
> SingleComponentManager.java:906)[51:org.apache.felix.scr:2.0.6]
> >
> > at
> >
> > org.apache.felix.scr.impl.manager.SingleComponentManager.
> getServiceInternal(SingleComponentManager.java:
> 879)[51:org.apache.felix.scr:2.0.6]
> >
> > at
> >
> > org.apache.felix.scr.impl.manager.AbstractComponentManager.
> activateInternal(AbstractComponentManager.java:
> 748)[51:org.apache.felix.scr:2.0.6]
> >
> > at
> >
> > org.apache.felix.scr.impl.manager.AbstractComponentManager.
> enableInternal(AbstractComponentManager.java:674)[51:org.apache.felix.scr:
> 2.0.6]
> >
> > at
> >
> > org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(
> AbstractComponentManager.java:429)[51:org.apache.felix.scr:2.0.6]
> >
> > at
> >
> > org.apache.felix.scr.impl.manager.ConfigurableComponentHolder.
> configurationUpdated(ConfigurableComponentHolder.
> java:431)[51:org.apache.felix.scr:2.0.6]
> >
> > at
> >
> > org.apache.felix.scr.impl.manager.RegionConfigurationSupport.
> configurationEvent(RegionConfigurationSupport.
> java:273)[51:org.apache.felix.scr:2.0.6]
> >
> > at
> >
> > org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.
> sendEvent(ConfigurationManager.java:2046)[3:org.apache.felix.
> configadmin:1.8.8]
> >
> > at
> >
> > org.apache.felix.cm.impl.ConfigurationManager$
> FireConfigurationEvent.run(ConfigurationManager.java:
> 2014)[3:org.apache.felix.configadmin:1.8.8]
> >
> > at
> >
> > org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:143)[3:org.
> apache.felix.configadmin:1.8.8]
> >
> > at
> >
> > org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.
> java:110)[3:org.apache.felix.configadmin:1.8.8]
> >
> > at java.lang.Thread.run(Thread.java:745)[:1.8.0_91]
> >
> > Caused by: java.lang.ClassNotFoundException:
> > org.apache.activemq.artemis.jlibaio.LibaioContext not found by
> > org.apache.activemq.artemis-server-osgi [31]
> >
> > at
> >
> > org.apache.felix.framework.BundleWiringImpl.
> findClassOrResourceByDelegation(BundleWiringImpl.java:1574)
> >
> > at
> >
> > org.apache.felix.framework.BundleWiringImpl.access$400(
> BundleWiringImpl.java:79)
> >
> > at
> >
> > org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(
> BundleWiringImpl.java:2018)
> >
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[:1.8.0_91]
> >
> > ... 29 more
> >
> >
> > 2017-05-04 23:56 GMT+02:00 Clebert Suconic <clebert.suconic@gmail.com>:
> >
> > > I still need help here..
> > >
> > > this is the last issue before I can release:
> > >
> > >
> > > By coincidence Guillaume Nodet did some work here:
> > >
> > > - https://issues.apache.org/jira/browse/ARTEMIS-1141
> > >
> > >
> > > TL;DR: ArtemisFeatureTest is now failing to load basic components..
> > > like our own internal libaio. I've tried tweaking the packages and I
> > > can't progress much.
> > >
> > >
> > >
> > > OSGI is an area where I need to gain expertise... but if someone could
> > > help now so I can finish the release before ApacheCon.. I need
> > > artemis-feature to build and ArtemisFeatureTest to build.
> > >
> > >
> > >
> > > On Tue, May 2, 2017 at 1:22 PM, Clebert Suconic
> > > <clebert.suconic@gmail.com> wrote:
> > > > thanks a lot...
> > > >
> > > >
> > > > this test is so weird.. I just cleared a box's repository and it
> fails
> > > > eventually.. but I think it's part of the test.. PaxExam seems
> > > > fragile...
> > > >
> > > > At least now I know it's an issue with the test (probably).. I will
> go
> > > > ahead with releasing..
> > > >
> > > >
> > > > thanks a lot.
> > > >
> > > > On Mon, May 1, 2017 at 11:29 PM, Michael André Pearce
> > > > <michael.andre.pearce@me.com> wrote:
> > > >> Just raised a PR.
> > > >>
> > > >> This particular test is running ok on local machine now. Let me know
> > if
> > > it doesn't resolve for you.
> > > >>
> > > >> I did have to clean build a couple times seems I had some previous
> 2.1
> > > snapshot cached locally that I needed to wipeout.
> > > >>
> > > >>
> > > >> Sent from my iPhone
> > > >>
> > > >>> On 1 May 2017, at 22:19, Clebert Suconic <
> clebert.suconic@gmail.com>
> > > wrote:
> > > >>>
> > > >>> I was going to release today, but ArtemisFeatureTest is failing
> *...
> > I
> > > >>> don't want to release with that failure (Karaf integration wouldn't
> > > >>> work).
> > > >>>
> > > >>> *=https://github.com/apache/activemq-artemis/blob/master/
> > > tests/integration-tests/src/test/java/org/apache/activemq/
> > > artemis/tests/integration/karaf/ArtemisFeatureTest.java
> > > >>>
> > > >>>
> > > >>>
> > > >>> The Current failure is because of the missing epoll package from
> > netty.
> > > >>>
> > > >>> org.osgi.service.resolver.ResolutionException: Unable to resolve
> > root:
> > > >>> missing requirement [root] osgi.identity; osgi.identity=artemis;
> > > >>> type=karaf.feature; version="[2.1.0.SNAPSHOT,2.1.0.SNAPSHOT]";
> > > >>> filter:="(&(osgi.identity=artemis)(type=karaf.feature)(
> > > version>=2.1.0.SNAPSHOT)(version<=2.1.0.SNAPSHOT))"
> > > >>> [caused by: Unable to resolve artemis/2.1.0.SNAPSHOT: missing
> > > >>> requirement [artemis/2.1.0.SNAPSHOT] osgi.identity;
> > > >>> osgi.identity=artemis-amqp; type=karaf.feature [caused by: Unable
> to
> > > >>> resolve artemis-amqp/2.1.0.SNAPSHOT: missing requirement
> > > >>> [artemis-amqp/2.1.0.SNAPSHOT] osgi.identity;
> > > >>> osgi.identity=org.apache.activemq.artemis-amqp-protocol;
> > > >>> type=osgi.bundle; version="[2.1.0.SNAPSHOT,2.1.0.SNAPSHOT]";
> > > >>> resolution:=mandatory [caused by: Unable to resolve
> > > >>> org.apache.activemq.artemis-amqp-protocol/2.1.0.SNAPSHOT: missing
> > > >>> requirement
> > [org.apache.activemq.artemis-amqp-protocol/2.1.0.SNAPSHOT]
> > > >>> osgi.wiring.package;
> > > >>> filter:="(osgi.wiring.package=org.apache.activemq.artemis.
> api.core)"
> > > >>> [caused by: Unable to resolve
> > > >>> org.apache.activemq.artemis-server-osgi/2.1.0.SNAPSHOT: missing
> > > >>> requirement [org.apache.activemq.artemis-
> server-osgi/2.1.0.SNAPSHOT]
> > > >>> osgi.wiring.package;
> > > >>> filter:="(osgi.wiring.package=io.netty.channel.epoll)"]]]]
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>> So, if I edited features.xml and add this:
> > > >>>
> > > >>> <bundle>mvn:io.netty/netty-transport-native-epoll/${
> > > netty.version}</bundle>
> > > >>>
> > > >>>
> > > >>>
> > > >>> I will get a different error... and I can't get past that...
> > > >>>
> > > >>>
> > > >>>
> > > >>> Anyone have any ideas... please?????
> > > >>>
> > > >>>
> > > >>>
> > > >>> org.osgi.service.resolver.ResolutionException: Uses constraint
> > > >>> violation. Unable to resolve resource
> > > >>> org.apache.activemq.artemis-server-osgi
> > > >>> [org.apache.activemq.artemis-server-osgi/2.1.0.SNAPSHOT] because
> it
> > is
> > > >>> exposed to package 'io.netty.buffer' from resources
> > > >>> org.apache.activemq.artemis-server-osgi
> > > >>> [org.apache.activemq.artemis-server-osgi/2.1.0.SNAPSHOT] and
> > > >>> io.netty.buffer [io.netty.buffer/4.1.10.Final] via two dependency
> > > >>> chains.
> > > >>>
> > > >>>
> > > >>> Chain 1:
> > > >>>
> > > >>>  org.apache.activemq.artemis-server-osgi
> > > >>> [org.apache.activemq.artemis-server-osgi/2.1.0.SNAPSHOT]
> > > >>>
> > > >>>    import: (&(osgi.wiring.package=io.
> netty.buffer)(version>=2.1.0)(
> > > !(version>=3.0.0)))
> > > >>>
> > > >>>     |
> > > >>>
> > > >>>    export: osgi.wiring.package: io.netty.buffer
> > > >>>
> > > >>>  org.apache.activemq.artemis-server-osgi
> > > >>> [org.apache.activemq.artemis-server-osgi/2.1.0.SNAPSHOT]
> > > >>>
> > > >>>
> > > >>> Chain 2:
> > > >>>
> > > >>>  org.apache.activemq.artemis-server-osgi
> > > >>> [org.apache.activemq.artemis-server-osgi/2.1.0.SNAPSHOT]
> > > >>>
> > > >>>    import: (osgi.wiring.package=io.netty.bootstrap)
> > > >>>
> > > >>>     |
> > > >>>
> > > >>>    export: osgi.wiring.package=io.netty.bootstrap;
> > > uses:=io.netty.buffer
> > > >>>
> > > >>>  io.netty.transport [io.netty.transport/4.1.10.Final]
> > > >>>
> > > >>>    import: (&(osgi.wiring.package=io.
> netty.buffer)(version>=4.1.0)(
> > > !(version>=5.0.0)))
> > > >>>
> > > >>>
> > > >>>
> > > >>> --
> > > >>> Clebert Suconic
> > > >
> > > >
> > > >
> > > > --
> > > > Clebert Suconic
> > >
> > >
> > >
> > > --
> > > Clebert Suconic
> > >
> >
> >
> >
> > --
> > ------------------------
> > Guillaume Nodet
> >
> --
> Clebert Suconic
>



-- 
------------------------
Guillaume Nodet

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message