Hello,
i have a problem in following lines of code:
LDAPSearchResults searchResults = lc.search(p_myUrl);
lc.disconnect();

while (searchResults.hasMore())
{

LDAPEntry nextEntry = searchResults.next();

System.out.println("\n" + nextEntry.getDN());

LDAPAttributeSet attributeSet = nextEntry.getAttributeSet();

Iterator allAttributes = attributeSet.iterator();

while (allAttributes.hasNext())
{
System.out.println(" Attribute(s): ");

LDAPAttribute attribute = (LDAPAttribute)
allAttributes.next();

String attributeName = attribute.getName();

Enumeration allValues = attribute.getStringValues();

while (allValues.hasMoreElements())
{

String Value = (String) allValues.nextElement();

System.out.println(" " + attributeName

+ ": " + Value);

}

}

}

}

Versions:
I am using "openldap-2.3.34" and the jar file of
"novell-jldap-devel-2006.09.28-1netware_windows.exe". My problem even
occured with the windows version of Ldap
"openldap-2.2.29-db-4.3.29-openssl-0.9.8a-win32_Setup.exe"

The problem:
I get the following output ending with exception:
ldap://localhost:389/cn=James Smith,o=jndiTest?*??(objectClass=*)
ldap%3a%2f%2flocalhost%2fcn%3dJames%20Smith,o%3djn diTest%3f*%3fbase%3f(objectClass%3d*)
attributes to return: *
searchScope: 0
searchFilter: (objectClass=*)

cn=James Smith,o=jndiTest
Attribute(s):
sn: Smith
Attribute(s):
cn: James Smith
cn: Jim Smith
cn: Jimmy Smith
Attribute(s):
mail: JSmith@Acme.com
Attribute(s):
objectClass: inetOrgPerson
Attribute(s):
givenName: James
givenName: Jim
givenName: Jimmy
Attribute(s):
userPassword: newpassword
Attribute(s):
telephoneNumber: 1 801 555 1212
Error: LDAPException: Connection closed by the application disconnecting
(91) Connect Error

Ldap log output (enabled all):
slapd starting
daemon: added 4r listener=(nil)
daemon: added 7r listener=0x9a0a1b8
daemon: added 8r listener=0x9a0a280
daemon: epoll: listen=7 active_threads=0 tvp=NULL
daemon: epoll: listen=8 active_threads=0 tvp=NULL
daemon: activity on 1 descriptor
daemon: activity on:
>>> slap_listener(ldap:///)

daemon: listen=8, new connection on 12
daemon: added 12r (active) listener=(nil)
conn=0 fd=12 ACCEPT from IP=192.168.10.89:1535 (IP=0.0.0.0:389)
daemon: epoll: listen=7 active_threads=0 tvp=NULL
daemon: epoll: listen=8 active_threads=0 tvp=NULL
daemon: activity on 1 descriptor
daemon: activity on: 12r
daemon: read active on 12
connection_get(12)
connection_get(12): got connid=0
connection_read(12): checking for input on id=0
ber_get_next
ldap_read: want=8, got=8
0000: 30 27 02 01 01 60 22 02 0'...`".
ldap_read: want=33, got=33
0000: 01 03 04 15 63 6e 3d 4d 61 6e 61 67 65 72 2c 6f ....cn=Manager,o
0010: 3d 6a 6e 64 69 54 65 73 74 80 06 73 65 63 72 65 =jndiTest..secre
0020: 74 t
ber_get_next: tag 0x30 len 39 contents:
ber_dump: buf=0x09a7db68 ptr=0x09a7db68 end=0x09a7db8f len=39
0000: 02 01 01 60 22 02 01 03 04 15 63 6e 3d 4d 61 6e ...`".....cn=Man
0010: 61 67 65 72 2c 6f 3d 6a 6e 64 69 54 65 73 74 80 ager,o=jndiTest.
0020: 06 73 65 63 72 65 74 .secret
ber_get_next
ldap_read: want=8 error=Resource temporarily unavailable
daemon: epoll: listen=7 active_threads=0 tvp=NULL
daemon: epoll: listen=8 active_threads=0 tvp=NULL
do_bind
ber_scanf fmt ({imt) ber:
ber_dump: buf=0x09a7db68 ptr=0x09a7db6b end=0x09a7db8f len=36
0000: 60 22 02 01 03 04 15 63 6e 3d 4d 61 6e 61 67 65 `".....cn=Manage
0010: 72 2c 6f 3d 6a 6e 64 69 54 65 73 74 80 06 73 65 r,o=jndiTest..se
0020: 63 72 65 74 cret
ber_scanf fmt (m}) ber:
ber_dump: buf=0x09a7db68 ptr=0x09a7db87 end=0x09a7db8f len=8
0000: 00 06 73 65 63 72 65 74 ..secret
>>> dnPrettyNormal: <cn=Manager,o=jndiTest>

=> ldap_bv2dn(cn=Manager,o=jndiTest,0)
<= ldap_bv2dn(cn=Manager,o=jndiTest)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=Manager,o=jndiTest)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=manager,o=jnditest)=0
<<< dnPrettyNormal: <cn=Manager,o=jndiTest>, <cn=manager,o=jnditest>
do_bind: version=3 dn="cn=Manager,o=jndiTest" method=128
conn=0 op=0 BIND dn="cn=Manager,o=jndiTest" method=128
==> bdb_bind: dn: cn=Manager,o=jndiTest
conn=0 op=0 BIND dn="cn=Manager,o=jndiTest" mech=SIMPLE ssf=0
do_bind: v3 bind: "cn=Manager,o=jndiTest" to "cn=Manager,o=jndiTest"
send_ldap_result: conn=0 op=0 p=3
send_ldap_result: err=0 matched="" text=""
send_ldap_response: msgid=1 tag=97 err=0
ber_flush: 14 bytes to sd 12
0000: 30 0c 02 01 01 61 07 0a 01 00 04 00 04 00 0....a........
ldap_write: want=14, written=14
0000: 30 0c 02 01 01 61 07 0a 01 00 04 00 04 00 0....a........
conn=0 op=0 RESULT tag=97 err=0 text=
daemon: activity on 1 descriptor
daemon: activity on: 12r
daemon: read active on 12
connection_get(12)
connection_get(12): got connid=0
connection_read(12): checking for input on id=0
ber_get_next
ldap_read: want=8, got=7
0000: 30 05 02 01 03 42 00 0....B.
ber_get_next: tag 0x30 len 5 contents:
ber_dump: buf=0x09a7d460 ptr=0x09a7d460 end=0x09a7d465 len=5
0000: 02 01 03 42 00 ...B.
ber_get_next
ldap_read: want=8, got=0

ber_get_next on fd 12 failed errno=0 (Success)
connection_read(12): input error=-2 id=0, closing.
connection_closing: readying conn=0 sd=12 for close
connection_close: deferring conn=0 sd=12
daemon: epoll: listen=7 active_threads=0 tvp=NULL
daemon: epoll: listen=8 active_threads=0 tvp=NULL
daemon: activity on 1 descriptor
daemon: activity on:
daemon: epoll: listen=7 active_threads=0 tvp=NULL
daemon: epoll: listen=8 active_threads=0 tvp=NULL
do_unbind
conn=0 op=1 UNBIND
connection_resched: attempting closing conn=0 sd=12
connection_close: conn=0 sd=12
daemon: removing 12
conn=0 fd=12 closed

Why that:error=Resource temporarily unavailable?

Logging with Wireshark network analyser gives me a lot of Checksum errors.
This might be from Checksum overloading. So i disabled Checksum overloading
in Registry. But the exception is still there.

Would appreciate any help!
Best regards and sorry for the long description.