mina-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doron Fediuck <dfedi...@redhat.com>
Subject UnsatisfiedLinkError: no net in java.library.path
Date Wed, 09 Nov 2011 12:08:21 GMT
Hi Guys,
I'm implementing SSH client using Mina SSHD, and I'm trying to figure out an
issue tracing into mina-core;

17:21:11,137 ERROR [SimpleIoProcessorPool] Failed to create a new instance of org.apache.mina.transport.socket.nio.NioProcessor:null
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.apache.mina.core.service.SimpleIoProcessorPool.<init>(SimpleIoProcessorPool.java:180)
        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)

.....

Caused by: java.lang.UnsatisfiedLinkError: no net in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1738)
        at java.lang.Runtime.loadLibrary0(Runtime.java:823)
        at java.lang.System.loadLibrary(System.java:1028)
        at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.nio.ch.Util.load(Util.java:462)
        at sun.nio.ch.EPollSelectorImpl.<clinit>(EPollSelectorImpl.java:183)
        at sun.nio.ch.EPollSelectorProvider.openSelector(EPollSelectorProvider.java:18)
        at java.nio.channels.Selector.open(Selector.java:209)
        at org.apache.mina.transport.socket.nio.NioProcessor.<init>(NioProcessor.java:57)

What I'm puzzled by is the "no net" error.
Diving into sun.nio.ch.Util.load I can see what it 's doing is:

            java.security.AccessController
                .doPrivileged(new sun.security.action.LoadLibraryAction("net"));

AFAICT "net" should come from rt.jar which is a part of the JDK (or am I wrong here?).
Some technical info:
- Mina SSHD version: 0.6.0
- Mina core version: 2.0.2
- JDK: 1.6.0_26,Sun Microsystems Inc.

Any idea what's the root cause of this issue?

Thanks!
Doron
-- 

/d

"Hi, my name is Any Key. Please don't hit me!"

Mime
View raw message