Getting InitialContext without explicitly passing the System Properties fails.
------------------------------------------------------------------------------

                 Key: GERONIMO-3313
                 URL: https://issues.apache.org/jira/browse/GERONIMO-3313
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
    Affects Versions: 1.2
         Environment: Kubuntu Linux 2.6.20-16-generic #2 SMP Wed May 23 
01:46:23 UTC 2007 i686 GNU/Linux
Java java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Server VM (build 1.6.0-b105, mixed mode)
            Reporter: Francisco Borges


Geronimo1.2 will *fail* if:

1. From a sample application (outside Geronimo) trying to connect to a EJB in 
the server;
2. I try to get the InitialContext without explicitly passing the System 
properties:

jndiCntx = new InitialContext();

 [java] javax.naming.AuthenticationException: Cannot read the response from the 
server (OEJP/2.0) : null; nested exception is:
     [java]     java.io.EOFException
     [java]     at 
org.apache.openejb.client.JNDIContext.authenticate(JNDIContext.java:178)
     [java]     at 
org.apache.openejb.client.JNDIContext.getInitialContext(JNDIContext.java:163)
     [java]     at 
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
     [java]     at 
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
     [java]     at javax.naming.InitialContext.init(InitialContext.java:223)
     [java]     at javax.naming.InitialContext.<init>(InitialContext.java:175)
     [java]     at 
com.xhive.j2eesamples.XhiveSampleSessionTest.<init>(XhiveSampleSessionTest.java:38)
     [java]     at 
com.xhive.j2eesamples.XhiveSampleSessionTest.main(XhiveSampleSessionTest.java:80)

If I use:

 InitialContext jndiCntx = new InitialContext(System.getProperties()); 

The code behaves as expected. I don't know for sure if this is Geronimo's 
fault or OpenEjb but it certainly happens, and is perfectly reproducible.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to