Friday, February 19, 2016 hangs when using wrong JDK

Trying to connect from Eclipse to a WLS, Java client for EJB, using 2 way SSL and t3s, we get a stuck thread on this:

"main" #1 prio=5 os_prio=0 tid=0x000000000263f000 nid=0x12900 in Object.wait() [0x0000000002a6d000]
   java.lang.Thread.State: WAITING (on object monitor)
 at java.lang.Object.wait(Native Method)
 - waiting on <0x00000000d8d00d00> (a java.lang.Object)
 at java.lang.Object.wait(
 - locked <0x00000000d8d00d00> (a java.lang.Object)
 at Method)
 at weblogic.jndi.WLSJNDIEnvironmentImpl.(
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(
 at weblogic.jndi.internal.JNDIEnvironment.getJNDIEnvironment(
 at weblogic.jndi.Environment.(


The issue was solved changing JDK


hdohlmann said...

I have the exact same issue.
Am running jdk
Which JDK did you switch to?

Pierluigi Vernetto said...

I have switched to JDK 7... must be Update 91 or so...

hdohlmann said...

Downgraded from 8?
Hmm, not an option. Must look for other solutions...

Dániel Kovács said...

Got the same error (with Java8 and Java7), the underlying issue is that no SubjectManager is installed yet, and then there is a "wait" on the thread, until somebody installs one...

The solution for me was to include a component in the classpath that installs a SubjectManager -- and it must be *before* WebLogic in the classpath.

Magic, in 2016 :)

Jivi said...

That worked for me.
Thanks a lot for pointing me in the right direction Daniel!