Hi,

    I am having intermittent problems w/ a java application that hangs 
on a ldap read which occurs are part of the VM startup.  Here is current 
the env:        
                iplanet dir 5.1
                 netscape ldap sdk 4.1
                java 1.3.1 03

        NOTE: the hangs have occured w/ older versions

Here are the symptoms:

Based on a specific set of ldap entries, the application won't hang and 
then after the addition of several entries, the application will hang. 
it will hang on a different read each time.  Usually it hangs on one of 
several specific entries.   I can query the records using a ldapsearch. 
Deletion of those entries will result in the elimination of the java hang.

   Does anyone have any suggestions?

   The NT task list shows 11 threads.  The "classic" dump shows 6 and 
the new shows 9 threads.  The new dump also shows: "VM Periodic Task 
Thread" prio=10 tid=0x7682c0 nid=0x4dc waiting on monitor   but does not 
identify the monitor....

Here are the thread dumps in the "classic" format and the new format.

Thanks and please respond to [EMAIL PROTECTED]

Rob


---------------------------------------------------
classic:
---------------------------------------------------

Full thread dump Classic VM (1.3.1_03-b03, native threads):

     "LDAPConnThread metis:390" (TID:0x1ee6a68, sys_thread_t:0x856110, 
state:R, native ID:0x2ab) prio=5
        at java.net.SocketInputStream.socketRead(Native Method)
        at java.net.SocketInputStream.read(SocketInputStream.java:85)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:181)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:199)
        at netscape.ldap.ber.stream.BERElement.getElement(BERElement.java:101)
        at netscape.ldap.LDAPConnThread.run(LDAPConnThread.java:420)

     "LDAPConnThread metis:390" (TID:0x1edd7b8, sys_thread_t:0x80fee0, 
state:CW, native ID:0x1af) prio=5
        at java.lang.Object.wait(Native Method)
        at java.lang.Object.wait(Object.java:415)
        at netscape.ldap.LDAPConnThread.checkBacklog(LDAPConnThread.java:381)
        at netscape.ldap.LDAPConnThread.run(LDAPConnThread.java:418)

     "Finalizer" (TID:0x1eb9528, sys_thread_t:0x77b970, state:CW, native 
ID:0x580) prio=8
        at java.lang.Object.wait(Native Method)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:103)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
        at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:157)

     "Reference Handler" (TID:0x1eb9300, sys_thread_t:0x7790a0, 
state:CW, native ID:0x4dc) prio=10
        at java.lang.Object.wait(Native Method)
        at java.lang.Object.wait(Object.java:415)
        at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:105)
        
     "Signal dispatcher" (TID:0x1eb9330, sys_thread_t:0x779480, state:R, 
native ID:0x4d5) prio=5

     "main" (TID:0x1eb91b0, sys_thread_t:0x7611a0, state:CW, native 
ID:0x1c7) prio=5
        at java.lang.Object.wait(Native Method)
        at java.lang.Object.wait(Object.java:415)
        at netscape.ldap.LDAPMessageQueue.waitForMessage(LDAPMessageQueue.java:179)
        at netscape.ldap.LDAPMessageQueue.nextMessage(LDAPMessageQueue.java:101)
        at netscape.ldap.LDAPSearchListener.nextMessage(LDAPSearchListener.java:86)
        at netscape.ldap.LDAPConnection.search(LDAPConnection.java:2584)
        at netscape.ldap.LDAPConnection.read(LDAPConnection.java:2104)
        at netscape.ldap.LDAPConnection.read(LDAPConnection.java:2098)
        at 
com.bankofny.bds.arch.ldaputil.LDAPConnectionSet.read(LDAPConnectionSet.java:606)
        at 
com.bankofny.bds.arch.ldapadapter.LDAPObjectClassAdapter.initialize(LDAPObjectClassAdapter.java:456)
        at 
com.bankofny.bds.arch.ldapadapter.LDAPCapabilityAdapter.getInstance(LDAPCapabilityAdapter.java:143)
        at java.lang.reflect.Method.invoke(Native Method)
        at 
com.bankofny.bds.arch.ldapadapter.LDAPObjectClassAdapter.invokeGetInstances(LDAPObjectClassAdapter.java:703)
        at 
com.bankofny.bds.arch.ldapadapter.LDAPObjectClassAdapter.getRelated(LDAPObjectClassAdapter.java:1175)
        at com.bankofny.bds.arch.ssocoredist.Group.getCapabilities(Group.java:576)
        at 
com.bankofny.bds.arch.ssocoredist.Group.getLaunchableApplications(Group.java:815)
        at 
com.bankofny.bds.arch.ssocoredist.Group.getLaunchableApplications(Group.java:788)
        at 
com.bankofny.bds.arch.ssofacade.PreLoadedCachingSSOFacade.preLoadLaunchableApplicationList(PreLoadedCachingSSOFacade.java:497)
        at 
com.bankofny.bds.arch.ssofacade.PreLoadedCachingSSOFacade.preLoadAppListsForVectorOfGroups(PreLoadedCachingSSOFacade.java:302)
        at 
com.bankofny.bds.arch.ssofacade.PreLoadedCachingSSOFacade.preLoadCache(PreLoadedCachingSSOFacade.java:140)
        at 
com.bankofny.bds.arch.ssofacade.PreLoadedCachingSSOFacade.<clinit>(PreLoadedCachingSSOFacade.java:123)
        at 
com.bankofny.bds.gcm.crosslayer.security.SecurityFacade.<clinit>(SecurityFacade.java:50)
        at 
com.bankofny.bds.gcm.beanimpl.triparty.DealHistoryImpl.<clinit>(DealHistoryImpl.java:78)
        at 
com.bankofny.bds.gcm.beanimpl.triparty.DealHistoryImplTest.testGetBeanImpl(DealHistoryImplTest.java:164)
        at java.lang.reflect.Method.invoke(Native Method)
        at junit.framework.TestCase.runTest(TestCase.java:156)
        at junit.framework.TestCase.runBare(TestCase.java:130)
        at junit.framework.TestResult$1.protect(TestResult.java:100)
        at junit.framework.TestResult.runProtected(TestResult.java:118)
        at junit.framework.TestResult.run(TestResult.java:103)
        at junit.framework.Test


---------------------------------------------------
new:
---------------------------------------------------

    Full thread dump:

"LDAPConnThread metis:390" daemon prio=5 tid=0x782a40 nid=0x401 runnable 
[0x98bf000..0x98bfdc0]
        at java.net.SocketInputStream.socketRead(Native Method)
        at java.net.SocketInputStream.read(SocketInputStream.java:85)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:181)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:199)
        - locked <36882c0> (a java.io.BufferedInputStream)
        at netscape.ldap.ber.stream.BERElement.getElement(BERElement.java:101)
        at netscape.ldap.LDAPConnThread.run(LDAPConnThread.java:420)

"LDAPConnThread metis:390" daemon prio=5 tid=0x77b470 nid=0x594 waiting 
on monitor [0x987f000..0x987fdc0]
        at java.lang.Object.wait(Native Method)
        - waiting on <367de70> (a netscape.ldap.LDAPConnThread)
        at java.lang.Object.wait(Object.java:415)
        at netscape.ldap.LDAPConnThread.checkBacklog(LDAPConnThread.java:381)
        - locked <367de70> (a netscape.ldap.LDAPConnThread)
        at netscape.ldap.LDAPConnThread.run(LDAPConnThread.java:418)

"Signal Dispatcher" daemon prio=10 tid=0x769230 nid=0x4d7 waiting on 
monitor [0..0]

"Finalizer" daemon prio=9 tid=0x767ec0 nid=0x59a waiting on monitor 
[0x96bf000..0x96bfdc0]
        at java.lang.Object.wait(Native Method)
        - waiting on <3638e30> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:103)
        - locked <3638e30> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
        at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:157)

"Reference Handler" daemon prio=10 tid=0x766c80 nid=0x590 waiting on 
monitor [0x967f000..0x967fdc0]
        at java.lang.Object.wait(Native Method)
        - waiting on <36350c8> (a java.lang.ref.Reference$Lock)
        at java.lang.Object.wait(Object.java:415)
        at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:105)
        - locked <36350c8> (a java.lang.ref.Reference$Lock)

"main" prio=5 tid=0x762900 nid=0x598 waiting on monitor [0x6e000..0x6fc34]
        at java.lang.Object.wait(Native Method)
        - waiting on <33a7d28> (a netscape.ldap.LDAPSearchListener)
        at java.lang.Object.wait(Object.java:415)
        at netscape.ldap.LDAPMessageQueue.waitForMessage(LDAPMessageQueue.java:179)
        - locked <33a7d28> (a netscape.ldap.LDAPSearchListener)
        at netscape.ldap.LDAPMessageQueue.nextMessage(LDAPMessageQueue.java:101)
        - locked <33a7d28> (a netscape.ldap.LDAPSearchListener)
        at netscape.ldap.LDAPSearchListener.nextMessage(LDAPSearchListener.java:86)
        at netscape.ldap.LDAPConnection.search(LDAPConnection.java:2584)
        at netscape.ldap.LDAPConnection.read(LDAPConnection.java:2104)
        at netscape.ldap.LDAPConnection.read(LDAPConnection.java:2098)
        at 
com.bankofny.bds.arch.ldaputil.LDAPConnectionSet.read(LDAPConnectionSet.java:606)
        at 
com.bankofny.bds.arch.ldapadapter.LDAPObjectClassAdapter.initialize(LDAPObjectClassAdapter.java:456)
        at 
com.bankofny.bds.arch.ldapadapter.LDAPLinkCapabilityAdapter.getInstance(LDAPLinkCapabilityAdapter.java:124)
        at java.lang.reflect.Method.invoke(Native Method)
        at 
com.bankofny.bds.arch.ldapadapter.LDAPObjectClassAdapter.invokeGetInstances(LDAPObjectClassAdapter.java:703)
        at 
com.bankofny.bds.arch.ldapadapter.LDAPObjectClassAdapter.getRelated(LDAPObjectClassAdapter.java:1175)
        at com.bankofny.bds.arch.ssocoredist.Group.getCapabilities(Group.java:576)
        at 
com.bankofny.bds.arch.ssocoredist.Group.getLaunchableApplications(Group.java:815)
        at 
com.bankofny.bds.arch.ssocoredist.Group.getLaunchableApplications(Group.java:788)
        at 
com.bankofny.bds.arch.ssofacade.PreLoadedCachingSSOFacade.preLoadLaunchableApplicationList(PreLoadedCachingSSOFacade.java:497)
        at 
com.bankofny.bds.arch.ssofacade.PreLoadedCachingSSOFacade.preLoadAppListsForVectorOfGroups(PreLoadedCachingSSOFacade.java:302)
        at 
com.bankofny.bds.arch.ssofacade.PreLoadedCachingSSOFacade.preLoadCache(PreLoadedCachingSSOFacade.java:140)
        at 
com.bankofny.bds.arch.ssofacade.PreLoadedCachingSSOFacade.<clinit>(PreLoadedCachingSSOFacade.java:123)
        at 
com.bankofny.bds.gcm.crosslayer.security.SecurityFacade.<clinit>(SecurityFacade.java:53)
        at 
com.bankofny.bds.gcm.beanimpl.triparty.DealHistoryImpl.<clinit>(DealHistoryImpl.java:84)
        at 
com.bankofny.bds.gcm.beanimpl.triparty.DealHistoryImplTest.testGetBeanImpl(DealHistoryImplTest.java:165)
        at java.lang.reflect.Method.invoke(Native Method)
        at junit.framework.TestCase.runTest(TestCase.java:156)
        at junit.framework.TestCase.runBare(TestCase.java:130)
        at junit.framework.TestResult$1.protect(TestResult.java:100)
        at junit.framework.TestResult.runProtected(TestResult.java:118)
        at junit.framework.TestResult.run(TestResult.java:103)
        at junit.framework.TestCase.run(TestCase.java:121)
        at junit.framework.TestSuite.runTest(TestSuite.java:149)
        at junit.framework.TestSuite.run(TestSuite.java:144)
        at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
        at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
        at junit.framework.TestResult.runProtected(TestResult.java:118)
        at junit.extensions.TestSetup.run(TestSetup.java:23)
        at junit.textui.TestRunner.doRun(TestRunner.java:63)
        at junit.textui.TestRunner.start(TestRunner.java:217)
        at junit.textui.TestRunner.main(TestRunner.java:89)
        at 
com.bankofny.bds.gcm.beanimpl.triparty.DealHistoryImplTest.main(DealHistoryImplTest.java:473)

"VM Thread" prio=5 tid=0x765f00 nid=0x261 runnable

"VM Periodic Task Thread" prio=10 tid=0x7682c0 nid=0x4dc waiting on monitor
"Suspend Checker Thread" prio=10 tid=0x768120 nid=0x1c7 runnable


Reply via email to