You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Doron Fediuck <df...@redhat.com> on 2011/11/08 15:08:28 UTC

Underlying mina-core

Hi Guys,
I'm hitting (hard) a NPE coming from mina-core;

java.lang.NullPointerException
        at
org.apache.mina.core.service.SimpleIoProcessorPool.dispose(SimpleIoProcessorPool.java:289)
        at
org.apache.mina.core.service.SimpleIoProcessorPool.<init>(SimpleIoProcessorPool.java:229)
        at
org.apache.mina.core.service.SimpleIoProcessorPool.<init>(SimpleIoProcessorPool.java:123)
        at
org.apache.mina.core.polling.AbstractPollingIoConnector.<init>(AbstractPollingIoConnector.java:110)
        at
org.apache.mina.transport.socket.nio.NioSocketConnector.<init>(NioSocketConnector.java:66)
        at org.apache.sshd.SshClient.createAcceptor(SshClient.java:160)
        at org.apache.sshd.SshClient.start(SshClient.java:150)

This is happening in sshd version 0.6.0, mina-core 2.0.2.
I saw a post on how this should be fixed: http://osdir.com/ml/users/2011-01/msg06376.html
And it looks like mina-core fixed it in 2.0.4.
Is it possible for you to change the dependency to 2.0.4?

Thanks!
Doron

-- 

/d

"Forty-two," said Deep Thought, with infinite majesty and calm. --Douglas Adams, The Hitchhiker's Guide to the Galaxy

Re: Underlying mina-core

Posted by Emmanuel Lecharny <el...@gmail.com>.
On 11/8/11 3:08 PM, Doron Fediuck wrote:
> Hi Guys,
> I'm hitting (hard) a NPE coming from mina-core;
>
> java.lang.NullPointerException
>          at
> org.apache.mina.core.service.SimpleIoProcessorPool.dispose(SimpleIoProcessorPool.java:289)
>          at
> org.apache.mina.core.service.SimpleIoProcessorPool.<init>(SimpleIoProcessorPool.java:229)
>          at
> org.apache.mina.core.service.SimpleIoProcessorPool.<init>(SimpleIoProcessorPool.java:123)
>          at
> org.apache.mina.core.polling.AbstractPollingIoConnector.<init>(AbstractPollingIoConnector.java:110)
>          at
> org.apache.mina.transport.socket.nio.NioSocketConnector.<init>(NioSocketConnector.java:66)
>          at org.apache.sshd.SshClient.createAcceptor(SshClient.java:160)
>          at org.apache.sshd.SshClient.start(SshClient.java:150)
>
> This is happening in sshd version 0.6.0, mina-core 2.0.2.
> I saw a post on how this should be fixed: http://osdir.com/ml/users/2011-01/msg06376.html
> And it looks like mina-core fixed it in 2.0.4.
> Is it possible for you to change the dependency to 2.0.4?
>
> Thanks!
> Doron
I tried to upgrade to MINA 2.0.4, but I get a strange failure :

-------------------------------------------------------------------------------
Test set: org.apache.sshd.AbstractSessionTest
-------------------------------------------------------------------------------
Tests run: 7, Failures: 0, Errors: 7, Skipped: 0, Time elapsed: 0.032 
sec <<< FAILURE!
testReadIdentSimple(org.apache.sshd.AbstractSessionTest)  Time elapsed: 
0.004 sec <<< ERROR!
java.lang.IllegalStateException: org.slf4j.LoggerFactory could not be 
successfully initialized. See also 
http://www.slf4j.org/codes.html#unsuccessfulInit
         at 
org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:277)
         at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:241)
         at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:254)
         at 
org.apache.sshd.common.AbstractFactoryManager.<init>(AbstractFactoryManager.java:37)
         at org.apache.sshd.SshServer.<init>(SshServer.java:140)
         at org.apache.sshd.SshServer.setUpDefaultServer(SshServer.java:428)
         at 
org.apache.sshd.AbstractSessionTest$MySession.<init>(AbstractSessionTest.java:105)
         at 
org.apache.sshd.AbstractSessionTest.setUp(AbstractSessionTest.java:40)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at 
org.junit.internal.runners.MethodRoadie.runBefores(MethodRoadie.java:122)
         at 
org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:86)
         at 
org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
         at 
org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
         at 
org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
         at 
org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
         at 
org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
         at 
org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
         at 
org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
         at 
org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
         at 
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
         at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
         at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
         at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
         at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)

I'm investigation ...

-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com


Re: Underlying mina-core

Posted by Emmanuel Lecharny <el...@gmail.com>.
On 11/8/11 3:08 PM, Doron Fediuck wrote:
> Hi Guys,
> I'm hitting (hard) a NPE coming from mina-core;
>
> java.lang.NullPointerException
>          at
> org.apache.mina.core.service.SimpleIoProcessorPool.dispose(SimpleIoProcessorPool.java:289)
>          at
> org.apache.mina.core.service.SimpleIoProcessorPool.<init>(SimpleIoProcessorPool.java:229)
>          at
> org.apache.mina.core.service.SimpleIoProcessorPool.<init>(SimpleIoProcessorPool.java:123)
>          at
> org.apache.mina.core.polling.AbstractPollingIoConnector.<init>(AbstractPollingIoConnector.java:110)
>          at
> org.apache.mina.transport.socket.nio.NioSocketConnector.<init>(NioSocketConnector.java:66)
>          at org.apache.sshd.SshClient.createAcceptor(SshClient.java:160)
>          at org.apache.sshd.SshClient.start(SshClient.java:150)
>
> This is happening in sshd version 0.6.0, mina-core 2.0.2.
> I saw a post on how this should be fixed: http://osdir.com/ml/users/2011-01/msg06376.html
> And it looks like mina-core fixed it in 2.0.4.
> Is it possible for you to change the dependency to 2.0.4?
>
> Thanks!
> Doron
>
Ok, seems we have to upgrade to MINA 2.0.4 *and* to SLF4J 1.6.4, 
otherwise the tests aren't passing.

Guillaume, I have committed that in revision 1199261. Feel free to 
rollback if it breaks something !

-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com


Re: Underlying mina-core

Posted by Emmanuel Lecharny <el...@gmail.com>.
On 11/8/11 3:08 PM, Doron Fediuck wrote:
> Hi Guys,
> I'm hitting (hard) a NPE coming from mina-core;
>
> java.lang.NullPointerException
>          at
> org.apache.mina.core.service.SimpleIoProcessorPool.dispose(SimpleIoProcessorPool.java:289)
>          at
> org.apache.mina.core.service.SimpleIoProcessorPool.<init>(SimpleIoProcessorPool.java:229)
>          at
> org.apache.mina.core.service.SimpleIoProcessorPool.<init>(SimpleIoProcessorPool.java:123)
>          at
> org.apache.mina.core.polling.AbstractPollingIoConnector.<init>(AbstractPollingIoConnector.java:110)
>          at
> org.apache.mina.transport.socket.nio.NioSocketConnector.<init>(NioSocketConnector.java:66)
>          at org.apache.sshd.SshClient.createAcceptor(SshClient.java:160)
>          at org.apache.sshd.SshClient.start(SshClient.java:150)
>
> This is happening in sshd version 0.6.0, mina-core 2.0.2.
> I saw a post on how this should be fixed: http://osdir.com/ml/users/2011-01/msg06376.html
> And it looks like mina-core fixed it in 2.0.4.
> Is it possible for you to change the dependency to 2.0.4?

Committed in http://svn.apache.org/viewvc?rev=1199261&view=rev


-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com