directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <elecha...@apache.org>
Subject Re: unable to get address of epoll functions, pre-2.6 kernel
Date Wed, 28 May 2008 21:12:55 GMT
Hi,

seems to be a pretty common error on Lunux with Java 6...

Have you tried with an more recent version of JDK? Sun JDK's current 
version is 1.6.0_06-b02, when JDK 1.6.0-b105 was the very first version 
of Java 6.

Fu-Tung Cheng wrote:
> Anyone get this error before?  It prevents apache-ds from loading as the web application.
>
> I see this in:
>
> # uname -r
> 2.6.23.14-grsec
>
> I have found that to fix it I can append:
>
> -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider
>
> but I'd prefer not to have to do this.  
>
> This is on java:
>
> $ java -version
> java version "1.6.0"
> Java(TM) SE Runtime Environment (build 1.6.0-b105)
> Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)
>
> Error stack trace
>
> SEVERE: Exception sending context initialized event to listener instance of class org.apache.directory.samples.embed.webapp.StartStopListener
> java.lang.InternalError: unable to get address of epoll functions, pre-2.6 kernel?
>         at sun.nio.ch.EPollArrayWrapper.init(Native Method)
>         at sun.nio.ch.EPollArrayWrapper.<clinit>(EPollArrayWrapper.java:227)
>         at sun.nio.ch.EPollSelectorImpl.<init>(EPollSelectorImpl.java:52)
>         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.SocketAcceptor.startupWorker(SocketAcceptor.java:172)
>         at org.apache.mina.transport.socket.nio.SocketAcceptor.bind(SocketAcceptor.java:140)
>         at org.apache.directory.server.jndi.ServerContextFactory.startLDAP0(ServerContextFactory.java:488)
>         at org.apache.directory.server.jndi.ServerContextFactory.startLDAP(ServerContextFactory.java:413)
>         at org.apache.directory.server.jndi.ServerContextFactory.afterStartup(ServerContextFactory.java:212)
>         at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:239)
>         at org.apache.directory.server.core.jndi.AbstractContextFactory.getInitialContext(AbstractContextFactory.java:118)
>         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
>         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
>         at javax.naming.InitialContext.init(InitialContext.java:223)
>         at javax.naming.InitialContext.<init>(InitialContext.java:197)
>         at javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:82)
>
>
>
>       
>
>
>   


-- 
--
cordialement, regards,
Emmanuel L├ęcharny
www.iktek.com
directory.apache.org



Mime
View raw message