Oracle Weblogic Server (MOSC)

MOSC Banner

StackOverFlowError initializing InitialContext on Sun Machine

edited Sep 23, 2009 11:10AM in Oracle Weblogic Server (MOSC) 1 commentAnswered
Hi,
First of all, sorry for my english. I'm trying to send a message from my localhost (Windows XP) to a Weblogic Server (Sun Machine) using a simple client. When I tried to send a message, the Java app throws me a StackOverFlowError on line 189. The lines before are:


////////////////////////////////////////////////////////////////////////////////////////////////
 public static Context CrearConexionWeblogic() {
          Context ctx = null;
          try {
            Properties prop = new Properties();
            prop.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,
                     "weblogic.jndi.WLInitialContextFactory");
            prop.put(javax.naming.Context.PROVIDER_URL, DIRECCION_PROVEEDOR);

            ctx = new InitialContext(prop);
            return ctx;
          }catch(Exception e){
              e.printStackTrace();
          }
          return ctx;
      }
////////////////////////////////////////////////////////////////////////////////////////////////


The line that throws that exception is

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center