2 Replies Latest reply: May 7, 2013 12:03 AM by TimBenga RSS

    IDM Error java.lang.ClassCastException

    TimBenga
      Hi expert,

      i found error when i running java code include jndi connection. I found error in idm console like this :

      java.lang.ClassCastException: com.solution.dsms.ejb.SecurityManagerBean_m uhcb0_HomeImpl_814_WLStub
      at com.fes.ConnectionMthdDsms.connectionForDsms(ConnectionMthdDsms.java:46)

      error found in this code (line. 46) :

      46 securityHome = (SecurityManagerHome) ctx.lookup(SecurityManagerHome.JNDI_NAME);

      but when i try to running that code via eclipse, thats code seem right and successfull.

      i dont have any clue, can anyone help me out, please?

      env :
      OIM 11.1.1.5 bp 7
      Weblogic 10.3.5
      connection via t3
        • 1. Re: IDM Error java.lang.ClassCastException
          Le�ncio-Oracle
          Trying to help and troubleshoot it: Try to printout your context lookup before/after you get JNDI value and see what your server is showing into OIM logs. Also, if needed increase OIM logs to troubleshoot easily that.

          I hope it helps,
          Thiago Leoncio.
          • 2. Re: IDM Error java.lang.ClassCastException
            TimBenga
            i tried to re-run again include sysout env, context, dataset before JNDI

            ======
            env : {java.naming.provider.url=t3://ipaddress:port, java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory, java.naming.security.principal=*****, java.naming.security.credentials=*****}
            ======
            contex : ctx : javax.naming.InitialContext@
            ======
            dataset : ClusterableRemoteRef(-5573679184102641054S:ipaddress:[port,port,-1,-1,port,-1,-1,0,0]:appaddress:AppDomain:AppServer1 [-5573679184102641054S:ipaddress:[port,port,-1,-1,port,-1,-1,0,0]:ipaddress:AppDomain:AppServer1/282])/282
            ======

            but when run code,
            securityHome = (SecurityManagerHome)ctx.lookup(SecurityManagerHome.JNDI_NAME);
            security = (SecurityManager)securityHome.create();

            the error java.lang.ClassCastException still appears..
            i already to include weblogic.jar and wlfullclient.jar in my adapter and thirdparty

            any other ways to solve this problem?

            Edited by: TimBenga on May 6, 2013 10:03 PM

            Edited by: TimBenga on May 6, 2013 10:03 PM