| Author |
BUG: Apache DS does not work on Windows XP (most likely other forms of windows too)
|
|
| Marc Boorshtein 2005-06-06, 7:47 am |
| I've been running into this bug for a while, and it
looks like an issue with nio on windows. Here's the
problem:
C:\Documents and
Settings\mboorshtei002\Desktop\downloads
\apacheds-0.8>java
-jar
apacheds-main-0.8.jar
server: using default properties ...
org.apache.ldap.common.exception.LdapConfigurationException:
Failed to initializ
e the frontend subsystem! [Root exception is
java.io.IOException: Unable to esta
blish loopback connection]
at
org.apache.ldap.server.jndi.ServerContextFactory.startUpWireProtocol(
ServerContextFactory.java:557)
at
org.apache.ldap.server.jndi.ServerContextFactory.getInitialContext(Se
rverContextFactory.java:228)
at
javax.naming.spi.NamingManager.getInitialContext(Unknown
Source)
at
javax.naming.InitialContext.getDefaultInitCtx(Unknown
Source)
at javax.naming.InitialContext.init(Unknown
Source)
at javax.naming.InitialContext.<init>(Unknown
Source)
at
javax.naming.directory.InitialDirContext.<init>(Unknown
Source)
at
org.apache.ldap.server.ServerMain.main(ServerMain.java:86)
Caused by: java.io.IOException: Unable to establish
loopback connection
at sun.nio.ch.PipeImpl$Initializer.run(Unknown
Source)
at
java.security.AccessController.doPrivileged(Native
Method)
at sun.nio.ch.PipeImpl.<init>(Unknown Source)
at
sun.nio.ch.SelectorProviderImpl.openPipe(Unknown
Source)
at java.nio.channels.Pipe.open(Unknown Source)
at
sun.nio.ch.WindowsSelectorImpl.<init>(Unknown Source)
at
sun.nio.ch.WindowsSelectorProvider.openSelector(Unknown
Source)
at java.nio.channels.Selector.open(Unknown
Source)
at
org.apache.apseda.listener.TCPListenerManager.<init>(TCPListenerManag
er.java:88)
at
org.apache.apseda.DefaultFrontendFactory.createTCPListenerManager(Def
aultFrontendFactory.java:185)
at
org.apache.apseda.DefaultFrontendFactory.create(DefaultFrontendFactor
y.java:83)
at
org.apache.ldap.server.jndi.ServerContextFactory.startUpWireProtocol(
ServerContextFactory.java:552)
... 7 more
Caused by: java.io.IOException: An existing connection
was forcibly closed by th
e remote host
at sun.nio.ch.SocketDispatcher.read0(Native
Method)
at sun.nio.ch.SocketDispatcher.read(Unknown
Source)
at
sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)
at sun.nio.ch.IOUtil.read(Unknown Source)
at sun.nio.ch.SocketChannelImpl.read(Unknown
Source)
... 19 more
server: started in 1092 milliseconds
I get similar erros when trying to run "maven
multiproject:install" from subversion. It doesn't
appear to be firewall related and there are several
threads on the issue without a lot of resolution. I
am still reading though them. I've got no experience
with NIO, so I am affraid I will not be of much help
fix this issue. here's my Java -version:
java version "1.4.2_03"
Java(TM) 2 Runtime Environment, Standard Edition
(build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed
mode)
Here's the current thread I'm reading through:
http://forum.java.sun.com/thread.js...459338&start=60
Marc Boorshtein
| |
| Chris Betts 2005-06-06, 7:47 am |
| My 2c - I'm still unable to *build* on windows XP, due to the test
failing, but I can *run* on XP fine using 0.9 jar files downloaded
directly from the apache site...
- Chris
On 02/05/2005, at 1:14 PM, Marc Boorshtein wrote:
> I've been running into this bug for a while, and it
> looks like an issue with nio on windows. Here's the
> problem:
>
> C:\Documents and
> Settings\mboorshtei002\Desktop\downloads
\apacheds-0.8>java
> -jar
> apacheds-main-0.8.jar
> server: using default properties ...
> org.apache.ldap.common.exception.LdapConfigurationException:
> Failed to initializ
> e the frontend subsystem! [Root exception is
> java.io.IOException: Unable to esta
> blish loopback connection]
> at
> org.apache.ldap.server.jndi.ServerContextFactory.startUpWireProtocol(
> ServerContextFactory.java:557)
> at
> org.apache.ldap.server.jndi.ServerContextFactory.getInitialContext(Se
> rverContextFactory.java:228)
> at
> javax.naming.spi.NamingManager.getInitialContext(Unknown
> Source)
> at
> javax.naming.InitialContext.getDefaultInitCtx(Unknown
> Source)
> at javax.naming.InitialContext.init(Unknown
> Source)
> at javax.naming.InitialContext.<init>(Unknown
> Source)
> at
> javax.naming.directory.InitialDirContext.<init>(Unknown
> Source)
> at
> org.apache.ldap.server.ServerMain.main(ServerMain.java:86)
> Caused by: java.io.IOException: Unable to establish
> loopback connection
> at sun.nio.ch.PipeImpl$Initializer.run(Unknown
> Source)
> at
> java.security.AccessController.doPrivileged(Native
> Method)
> at sun.nio.ch.PipeImpl.<init>(Unknown Source)
> at
> sun.nio.ch.SelectorProviderImpl.openPipe(Unknown
> Source)
> at java.nio.channels.Pipe.open(Unknown Source)
> at
> sun.nio.ch.WindowsSelectorImpl.<init>(Unknown Source)
> at
> sun.nio.ch.WindowsSelectorProvider.openSelector(Unknown
> Source)
> at java.nio.channels.Selector.open(Unknown
> Source)
> at
> org.apache.apseda.listener.TCPListenerManager.<init>(TCPListenerManag
> er.java:88)
> at
> org.apache.apseda.DefaultFrontendFactory.createTCPListenerManager(Def
> aultFrontendFactory.java:185)
> at
> org.apache.apseda.DefaultFrontendFactory.create(DefaultFrontendFactor
> y.java:83)
> at
> org.apache.ldap.server.jndi.ServerContextFactory.startUpWireProtocol(
> ServerContextFactory.java:552)
> ... 7 more
> Caused by: java.io.IOException: An existing connection
> was forcibly closed by th
> e remote host
> at sun.nio.ch.SocketDispatcher.read0(Native
> Method)
> at sun.nio.ch.SocketDispatcher.read(Unknown
> Source)
> at
> sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)
> at sun.nio.ch.IOUtil.read(Unknown Source)
> at sun.nio.ch.SocketChannelImpl.read(Unknown
> Source)
> ... 19 more
> server: started in 1092 milliseconds
>
> I get similar erros when trying to run "maven
> multiproject:install" from subversion. It doesn't
> appear to be firewall related and there are several
> threads on the issue without a lot of resolution. I
> am still reading though them. I've got no experience
> with NIO, so I am affraid I will not be of much help
> fix this issue. here's my Java -version:
> Java version "1.4.2_03"
> Java(TM) 2 Runtime Environment, Standard Edition
> (build 1.4.2_03-b02)
> Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed
> mode)
>
> Here's the current thread I'm reading through:
> http://forum.java.sun.com/thread.js...459338&start=60
>
> Marc Boorshtein
>
| |
| Marc Boorshtein 2005-06-06, 7:47 am |
| how do u skip the tests?
--- Brett Porter <brett-1oDqGaOF3Lkdnm+yROfE0A@public.gmane.org> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Are you getting test errors about "unable to delete
> master.lg" in core?
>
> That is all I get - no problem with loopback devices
> (JDK 1.4.2_08,
> ZoneAlarm firewall requests permission to start a
> server on port 1024).
> If I skip the tests, it builds and runs just fine.
>
> Cheers,
> Brett
>
> Chris Betts wrote:
>
> due to the test
> failing, but I can *run* on XP fine using 0.9 jar
> files downloaded
> directly from the apache site...
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.0 (Cygwin)
> Comment: Using GnuPG with Thunderbird -
> http://enigmail.mozdev.org
>
>
iD8DBQFCdZ9jOb5RoQhMkRMRAmYIAJoCrkhvB5cK
LbKZQ3CU/eKDsnyG3gCgj3gq
> GZLoSrS/dadjKSKBDOqRBMk=
> =4yQ8
> -----END PGP SIGNATURE-----
>
>
| |
| Marc Boorshtein 2005-06-06, 7:47 am |
| cool...this should make things easier in the short
term, but should be figured out at somepoint.
marc
--- Brett Porter <brett-1oDqGaOF3Lkdnm+yROfE0A@public.gmane.org> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> - -Dmaven.test.skip=true
>
>
http://maven.apache.org/reference/p...properties.html
>
http://maven.apache.org/faq.html#ignoring-broken-tests
>
> Cheers,
> Brett
>
> Marc Boorshtein wrote:
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.0 (Cygwin)
> Comment: Using GnuPG with Thunderbird -
> http://enigmail.mozdev.org
>
>
iD8DBQFCdaGAOb5RoQhMkRMRAvRNAJ9GV/ Mojn9k9mXj9HpmyKZwxitKnwCgv8Mr
> Wuf180kKmmg53ynUPqkdZPc=
> =WPW/
> -----END PGP SIGNATURE-----
>
>
| |
| Chris Betts 2005-06-06, 7:47 am |
| Ooooooh.... lookeedat...
[proud owner of shiny new apacheds-main-0.9-SNAPSHOT.jar file]
- Chris
P.S. I think someone mentioned skipping the tests like this the other
day, but I forgot to try it...
On 02/05/2005, at 1:41 PM, Brett Porter wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> - -Dmaven.test.skip=true
>
> http://maven.apache.org/reference/p...properties.html
> http://maven.apache.org/faq.html#ignoring-broken-tests
>
> Cheers,
> Brett
>
> Marc Boorshtein wrote:
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.0 (Cygwin)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
> iD8DBQFCdaGAOb5RoQhMkRMRAvRNAJ9GV/Mojn9k9mXj9HpmyKZwxitKnwCgv8Mr
> Wuf180kKmmg53ynUPqkdZPc=
> =WPW/
> -----END PGP SIGNATURE-----
>
| |
| Marc Boorshtein 2005-06-06, 7:47 am |
| SP 1
--- Berin Loritsch <bloritsch-5k/Kb+RhvWVAfugRpC6u6w@public.gmane.org> wrote:
> Marc Boorshtein wrote:
> it
> the
>
Settings\mboorshtei002\Desktop\downloads
\apacheds-0.8>java
>
org.apache.ldap.common.exception. LdapConfigurationException:
>
> Question: are you running plain XP or with service
> packs applied? The
> Subversion folks found that the plain XP has issues
> in the networking
> code that causes things to get jumbled in
> transit--but that bug was
> fixed in the first service pack.
>
>
>
> --
> --
>
> "Verbal profession minus moral persistance is self
> deception."
>
> Alistair Begg
>
| |
| Marc Boorshtein 2005-06-06, 7:47 am |
| the odd thing is that it runs perfectly on fedora core
3 running on vmware on the same box....though vmware
has it's own networking layer.
--- Berin Loritsch <bloritsch-5k/Kb+RhvWVAfugRpC6u6w@public.gmane.org> wrote:
> Marc Boorshtein wrote:
> it
> the
>
Settings\mboorshtei002\Desktop\downloads
\apacheds-0.8>java
>
org.apache.ldap.common.exception. LdapConfigurationException:
>
> Question: are you running plain XP or with service
> packs applied? The
> Subversion folks found that the plain XP has issues
> in the networking
> code that causes things to get jumbled in
> transit--but that bug was
> fixed in the first service pack.
>
>
>
> --
> --
>
> "Verbal profession minus moral persistance is self
> deception."
>
> Alistair Begg
>
| |
| Marc Boorshtein 2005-06-06, 7:47 am |
| no firewall. it seems to be an nio related issue from
what i've been reading about people having similar
problems on xp. with other Java absed network apps
marc
--- Berin Loritsch <bloritsch-5k/Kb+RhvWVAfugRpC6u6w@public.gmane.org> wrote:
> Marc Boorshtein wrote:
> core
> vmware
>
> The next question is one of firewalls. I know Linux
> tends to block most
> ports even from localhost. If you are using XP's
> internal firewall you
> shouldn't have much to worry about as it lets all
> traffic on localhost
> (incoming and outgoing) through. If you have a
> stricter firewall then
> it is likely you are facing some issues with needing
> to poke a hole to
> allow the tests to run.
>
> Ideally we can get the unit tests to run without
> making socket
> connections, but integration tests will need them.
>
> --
>
> "Verbal profession minus moral persistance is self
> deception."
>
> Alistair Begg
>
|
|
|
|