1 Reply Latest reply: Jul 11, 2014 7:09 PM by Joe Weinstein-Oracle RSS

    weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception      at weblogic.jdbc.common.internal.RmiDataSource_922_WLStub.getConnection(Unknown Source)

    07ed3dde-acf5-427a-bed5-0ec6cf25d09f

      Hi guys,

       

      I'm working with a WebLogic application that contains a web-service application and I would like to try and get the command-line application use a pooled connection to the web-server's JDBC connection.


      Im trying in the below way,


      try {
        
      Context ctx = null;
        
      Hashtable ht = new Hashtable();
        ht
      .put(Context.INITIAL_CONTEXT_FACTORY,
        
      "weblogic.jndi.WLInitialContextFactory");
        ht
      .put(Context.PROVIDER_URL, "t3://localhost:7001");

        ctx
      = new InitialContext(ht);
        
      DataSource ds = (DataSource) ctx.lookup ("dbOracle");
        
      Connection conn = null;
        conn
      = ds.getConnection();  // <-- Exception raised here
        
      // conn = ds.getConnection(username, password); // (Also fails)

        
      // ...

      } catch (Exception e) {
        
      // Handle exception...
      }


      but am getting below exception :


      weblogic.rmi.extensions.RemoteRuntimeException: Unexpected Exception

           at weblogic.jdbc.common.internal.RmiDataSource_922_WLStub.getConnection(Unknown Source)


      need help guys....!!! Thanks in advance.... Help me...