karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jb@nanthrax.net" ...@nanthrax.net>
Subject Re: StandardFeaturesTest.installSSHFeature() problem (trunk)
Date Wed, 04 Dec 2013 08:10:20 GMT
As I said, it's the plan, not the current situation.

We can plan Java 8 full support for Karaf 3.1.0 (or 3.0.x depending of the impacts).

Regards
JB

--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://wwx.talend.com

----- Reply message -----
From: "Achim Nierbeck" <bcanhome@googlemail.com>
To: "dev@karaf.apache.org" <dev@karaf.apache.org>
Subject: StandardFeaturesTest.installSSHFeature() problem (trunk)
Date: Wed, Dec 4, 2013 8:55 am


hmm, interesting since Karaf 3 doesn't work with Java 8 :/
so I guess we need to alter this to
Karaf 3.x Java 7 only?

regards, Achim


2013/12/3 Jean-Baptiste Onofré <jb@nanthrax.net>

> The plan is:
>
> - Karaf 2.x: Java 6 & Java 7
> - Karaf 3.x: Java 7 & Java 8
>
> Regards
> JB
>
>
> On 12/03/2013 05:45 PM, David Bosschaert wrote:
>
>> Java 6 is no more support for Karaf 3.0.0
>>>
>>
>> Oh, really? I wasn't aware of that :)
>> I'm still using Java 6 on my mac because it sometimes catches out
>> issues that you otherwise don't find.
>>
>> Ok - I'll move on to Java 7.
>>
>> Thanks,
>>
>> David
>>
>> On 3 December 2013 16:42, Jean-Baptiste Onofré <jb@nanthrax.net> wrote:
>>
>>> Hi David,
>>>
>>> Java 6 is no more support for Karaf 3.0.0, you have to use Java 7 (Java
>>> 6 is
>>> EOL now).
>>>
>>> I guess that you run with Java 6.
>>>
>>> Regards
>>> JB
>>>
>>>
>>> On 12/03/2013 04:58 PM, David Bosschaert wrote:
>>>
>>>>
>>>> Hi all,
>>>>
>>>> When I'm running the following test on trunk (which is part of the
>>>> itests) StandardFeaturesTest.
>>>> installSSHFeature() I get an error message on the console and the ssh
>>>> functionality is not actually available. What's worrying is that the
>>>> test actually passes, I would have thought that it should fail...
>>>>
>>>> Anyway, I'm looking for similar functionality for another test (I want
>>>> to install the 'ssh' feature for that itest) and am wondering what is
>>>> needed to get the 'ssh' feature to properly install. I think the key
>>>> error here is:
>>>> Caused by: java.lang.NoClassDefFoundError:
>>>> org/apache/mina/core/service/IoHandler
>>>>
>>>> Anyone an idea?
>>>>
>>>> Thanks,
>>>>
>>>> David
>>>>
>>>> The full log is:
>>>>
>>>>>
>>>>>> installSSHFeature(org.apache.karaf.itests.features.
>>>>>> StandardFeaturesTest)
>>>>>> <<<<<
>>>>>>
>>>>>
>>>> 15:50:49,928 | INFO  |
>>>> apache.karaf.features.internal.FeaturesServiceImpl | Installing
>>>> feature ssh 3.0.0-SNAPSHOT
>>>> 15:50:50,082 | INFO  | org.apache.sshd.common.util.SecurityUtils
>>>>      | BouncyCastle not registered, using the default JCE provider
>>>> 15:50:50,346 | WARN  | org.apache.aries.blueprint.container.BeanRecipe
>>>>      | Object to be destroyed is not an instance of
>>>> UnwrapperedBeanHolder, type: null
>>>> 15:50:50,349 | ERROR |
>>>> e.aries.blueprint.container.BlueprintContainerImpl | Unable to start
>>>> blueprint container for bundle org.apache.karaf.shell.ssh
>>>> org.osgi.service.blueprint.container.ComponentDefinitionException:
>>>> Unable to initialize bean sshServerFactory
>>>> at
>>>> org.apache.aries.blueprint.container.BeanRecipe.
>>>> runBeanProcInit(BeanRecipe.java:714)
>>>> at
>>>> org.apache.aries.blueprint.container.BeanRecipe.
>>>> internalCreate2(BeanRecipe.java:824)
>>>> at
>>>> org.apache.aries.blueprint.container.BeanRecipe.
>>>> internalCreate(BeanRecipe.java:787)
>>>> at
>>>> org.apache.aries.blueprint.di.AbstractRecipe$1.call(
>>>> AbstractRecipe.java:79)
>>>> at
>>>> java.util.concurrent.FutureTask$Sync.innerRun(
>>>> FutureTask.java:303)[:1.6.0_65]
>>>> at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_65]
>>>> at
>>>> org.apache.aries.blueprint.di.AbstractRecipe.create(
>>>> AbstractRecipe.java:88)
>>>> at
>>>> org.apache.aries.blueprint.container.BlueprintRepository.
>>>> createInstances(BlueprintRepository.java:245)
>>>> at
>>>> org.apache.aries.blueprint.container.BlueprintRepository.
>>>> createAll(BlueprintRepository.java:183)
>>>> at
>>>> org.apache.aries.blueprint.container.BlueprintContainerImpl.
>>>> instantiateEagerComponents(BlueprintContainerImpl.java:681)
>>>> at
>>>> org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(
>>>> BlueprintContainerImpl.java:378)
>>>> at
>>>> org.apache.aries.blueprint.container.BlueprintContainerImpl.run(
>>>> BlueprintContainerImpl.java:269)
>>>> at
>>>> org.apache.aries.blueprint.container.BlueprintExtender.createContainer(
>>>> BlueprintExtender.java:276)
>>>> at
>>>> org.apache.aries.blueprint.container.BlueprintExtender.createContainer(
>>>> BlueprintExtender.java:245)
>>>> at
>>>> org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(
>>>> BlueprintExtender.java:235)
>>>> at
>>>> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$
>>>> Tracked.customizerModified(BundleHookBundleTracker.java:500)
>>>> at
>>>> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$
>>>> Tracked.customizerModified(BundleHookBundleTracker.java:433)
>>>> at
>>>> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$
>>>> AbstractTracked.track(BundleHookBundleTracker.java:725)
>>>> at
>>>> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$
>>>> Tracked.bundleChanged(BundleHookBundleTracker.java:463)
>>>> at
>>>> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$
>>>> BundleEventHook.event(BundleHookBundleTracker.java:422)
>>>> at
>>>> org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(
>>>> SecureAction.java:1103)
>>>> at
>>>> org.apache.felix.framework.util.EventDispatcher.
>>>> createWhitelistFromHooks(EventDispatcher.java:695)
>>>> at
>>>> org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(
>>>> EventDispatcher.java:483)
>>>> at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4403)
>>>> at org.apache.felix.framework.Felix.startBundle(Felix.java:2092)
>>>> at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955)
>>>> at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:942)
>>>> at
>>>> org.apache.karaf.features.internal.FeaturesServiceImpl.startBundle(
>>>> FeaturesServiceImpl.java:469)
>>>> at
>>>> org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(
>>>> FeaturesServiceImpl.java:428)
>>>> at
>>>> org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(
>>>> FeaturesServiceImpl.java:363)
>>>> at
>>>> org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(
>>>> FeaturesServiceImpl.java:352)
>>>> at
>>>> org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(
>>>> FeaturesServiceImpl.java:335)
>>>> at
>>>> org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(
>>>> FeaturesServiceImpl.java:313)
>>>> at Proxy90cbc3f4_536f_489a_a10b_79f29a0e4f07.installFeature(Unknown
>>>> Source)
>>>> at
>>>> org.apache.karaf.itests.KarafTestSupport.installAssertAndUninstallFeatu
>>>> re(KarafTestSupport.java:395)
>>>> at
>>>> org.apache.karaf.itests.features.StandardFeaturesTest.
>>>> installSSHFeature(StandardFeaturesTest.java:29)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>> Method)[:1.6.0_65]
>>>> at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
>>>> NativeMethodAccessorImpl.java:39)[:1.6.0_65]
>>>> at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(
>>>> DelegatingMethodAccessorImpl.java:25)[:1.6.0_65]
>>>> at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_65]
>>>> at
>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
>>>> FrameworkMethod.java:47)
>>>> at
>>>> org.junit.internal.runners.model.ReflectiveCallable.run(
>>>> ReflectiveCallable.java:12)
>>>> at
>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(
>>>> FrameworkMethod.java:44)
>>>> at
>>>> org.junit.internal.runners.statements.InvokeMethod.
>>>> evaluate(InvokeMethod.java:17)
>>>> at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
>>>> at org.junit.rules.RunRules.evaluate(RunRules.java:20)
>>>> at
>>>> org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)[74:org.
>>>> ops4j.pax.tipi.junit:4.11.0.1]
>>>> at
>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(
>>>> BlockJUnit4ClassRunner.java:70)
>>>> at
>>>> org.ops4j.pax.exam.invoker.junit.internal.ContainerTestRunner.runChild(
>>>> ContainerTestRunner.java:67)
>>>> at
>>>> org.ops4j.pax.exam.invoker.junit.internal.ContainerTestRunner.runChild(
>>>> ContainerTestRunner.java:37)
>>>> at
>>>> org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)[74:org.
>>>> ops4j.pax.tipi.junit:4.11.0.1]
>>>> at
>>>> org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)[74:org.
>>>> ops4j.pax.tipi.junit:4.11.0.1]
>>>> at
>>>> org.junit.runners.ParentRunner.runChildren(
>>>> ParentRunner.java:236)[74:org.ops4j.pax.tipi.junit:4.11.0.1]
>>>> at
>>>> org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)[74:org.
>>>> ops4j.pax.tipi.junit:4.11.0.1]
>>>> at
>>>> org.junit.runners.ParentRunner$2.evaluate(
>>>> ParentRunner.java:229)[74:org.ops4j.pax.tipi.junit:4.11.0.1]
>>>> at
>>>> org.junit.runners.ParentRunner.run(ParentRunner.
>>>> java:309)[74:org.ops4j.pax.tipi.junit:4.11.0.1]
>>>> at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
>>>> at org.junit.runner.JUnitCore.run(JUnitCore.java:138)
>>>> at
>>>> org.ops4j.pax.exam.invoker.junit.internal.JUnitProbeInvoker.
>>>> invokeViaJUnit(JUnitProbeInvoker.java:125)
>>>> at
>>>> org.ops4j.pax.exam.invoker.junit.internal.JUnitProbeInvoker.
>>>> findAndInvoke(JUnitProbeInvoker.java:98)
>>>> at
>>>> org.ops4j.pax.exam.invoker.junit.internal.JUnitProbeInvoker.call(
>>>> JUnitProbeInvoker.java:74)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>> Method)[:1.6.0_65]
>>>> at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
>>>> NativeMethodAccessorImpl.java:39)[:1.6.0_65]
>>>> at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(
>>>> DelegatingMethodAccessorImpl.java:25)[:1.6.0_65]
>>>> at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_65]
>>>> at
>>>> org.ops4j.pax.exam.rbc.internal.RemoteBundleContextImpl.remoteCall(
>>>> RemoteBundleContextImpl.java:80)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>> Method)[:1.6.0_65]
>>>> at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
>>>> NativeMethodAccessorImpl.java:39)[:1.6.0_65]
>>>> at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(
>>>> DelegatingMethodAccessorImpl.java:25)[:1.6.0_65]
>>>> at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_65]
>>>> at
>>>> sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:303)[:1.
>>>> 6.0_65]
>>>> at sun.rmi.transport.Transport$1.run(Transport.java:159)[:1.6.0_65]
>>>> at java.security.AccessController.doPrivileged(Native
>>>> Method)[:1.6.0_65]
>>>> at sun.rmi.transport.Transport.serviceCall(Transport.java:
>>>> 155)[:1.6.0_65]
>>>> at
>>>> sun.rmi.transport.tcp.TCPTransport.handleMessages(
>>>> TCPTransport.java:535)[:1.6.0_65]
>>>> at
>>>> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(
>>>> TCPTransport.java:790)[:1.6.0_65]
>>>> at
>>>> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(
>>>> TCPTransport.java:649)[:1.6.0_65]
>>>> at
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.
>>>> runTask(ThreadPoolExecutor.java:895)[:1.6.0_65]
>>>> at
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(
>>>> ThreadPoolExecutor.java:918)[:1.6.0_65]
>>>> at java.lang.Thread.run(Thread.java:695)[:1.6.0_65]
>>>> Caused by: java.lang.NoClassDefFoundError:
>>>> org/apache/mina/core/service/IoHandler
>>>> at java.lang.ClassLoader.defineClass1(Native Method)[:1.6.0_65]
>>>> at java.lang.ClassLoader.defineClassCond(ClassLoader.
>>>> java:637)[:1.6.0_65]
>>>> at java.lang.ClassLoader.defineClass(ClassLoader.java:621)[:1.6.0_65]
>>>> at
>>>> org.apache.felix.framework.BundleWiringImpl$
>>>> BundleClassLoader.findClass(BundleWiringImpl.java:2279)
>>>> at
>>>> org.apache.felix.framework.BundleWiringImpl.
>>>> findClassOrResourceByDelegation(BundleWiringImpl.java:1501)
>>>> at
>>>> org.apache.felix.framework.BundleWiringImpl.access$400(
>>>> BundleWiringImpl.java:75)
>>>> at
>>>> org.apache.felix.framework.BundleWiringImpl$
>>>> BundleClassLoader.loadClass(BundleWiringImpl.java:1955)
>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)[:1.6.0_65]
>>>> at
>>>> org.apache.sshd.common.io.mina.MinaServiceFactory.createAcceptor(
>>>> MinaServiceFactory.java:36)
>>>> at
>>>> org.apache.sshd.common.io.DefaultIoServiceFactory.createAcceptor(
>>>> DefaultIoServiceFactory.java:39)
>>>> at org.apache.sshd.SshServer.createAcceptor(SshServer.java:375)
>>>> at org.apache.sshd.SshServer.start(SshServer.java:301)
>>>> at
>>>> org.apache.karaf.shell.ssh.SshServerFactory.start(
>>>> SshServerFactory.java:58)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>> Method)[:1.6.0_65]
>>>> at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
>>>> NativeMethodAccessorImpl.java:39)[:1.6.0_65]
>>>> at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(
>>>> DelegatingMethodAccessorImpl.java:25)[:1.6.0_65]
>>>> at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_65]
>>>> at
>>>> org.apache.aries.blueprint.utils.ReflectionUtils.invoke(
>>>> ReflectionUtils.java:297)
>>>> at
>>>> org.apache.aries.blueprint.container.BeanRecipe.invoke(
>>>> BeanRecipe.java:958)
>>>> at
>>>> org.apache.aries.blueprint.container.BeanRecipe.
>>>> runBeanProcInit(BeanRecipe.java:712)
>>>> ... 79 more
>>>> Caused by: java.lang.ClassNotFoundException:
>>>> org.apache.mina.core.service.IoHandler not found by
>>>> org.apache.sshd.core [16]
>>>> at
>>>> org.apache.felix.framework.BundleWiringImpl.
>>>> findClassOrResourceByDelegation(BundleWiringImpl.java:1532)
>>>> at
>>>> org.apache.felix.framework.BundleWiringImpl.access$400(
>>>> BundleWiringImpl.java:75)
>>>> at
>>>> org.apache.felix.framework.BundleWiringImpl$
>>>> BundleClassLoader.loadClass(BundleWiringImpl.java:1955)
>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)[:1.6.0_65]
>>>> ... 99 more
>>>> Uninstalling ssh
>>>> 15:50:50,377 | INFO  |
>>>> apache.aries.blueprint.container.BlueprintExtender | Destroying
>>>> BlueprintContainer for bundle org.apache.karaf.shell.ssh
>>>> [org.ops4j.pax.exam.spi.reactors.ReactorManager] : suite finished
>>>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 9.134
>>>> sec
>>>>
>>>> Results :
>>>>
>>>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
>>>>
>>>>
>>> --
>>> Jean-Baptiste Onofré
>>> jbonofre@apache.org
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>>
>>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>



-- 

Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home>
Commiter & Project Lead
blog <http://notizblog.nierbeck.de/>
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message