Re: Client : Communication error

2000-08-23 Thread Mr Shailesh Joshi

Hello Sridhar,

What  you can  try is

   Properties p = new Properties();


p.put(Context.INITIAL_CONTEXT_FACTORY,"com.evermind.server.ApplicationClient
InitialContextFactory");
p.put(Context.PROVIDER_URL,"ormi://localhost/ejbsamples");
p.put(Context.SECURITY_PRINCIPAL,"admin");
p.put(Context.SECURITY_CREDENTIALS,"123");

   Context context = new InitialContext(p);

in the CartClient application.


Shailesh


- Original Message -
From: Sridhar Manickam <[EMAIL PROTECTED]>
To: Orion-Interest <[EMAIL PROTECTED]>
Sent: Sunday, August 20, 2000 12:23 AM
Subject: Client : Communication error


> Hi,
>
> After successfully deploying the cart demo bean on the server, Iam
> running the CartClient and get the following error
>
> Communication error: Need to specify class name in environment or system
> property: java.naming.factory.initial
>
> Could someone tell me what Iam doing wrong. I pretty much followed the
> instructions from the orion docs.
>
>
> Thanks,
> -Sridhar





RE: Client : Communication error

2000-08-21 Thread Frank Eggink

Sridar,

It looks like yout client does not pickup the jndi properties from the 
jndi.properties file. If you add that file to your classpath things should 
be ok.

Frank

On Saturday, August 19, 2000 8:53 PM, Sridhar Manickam 
[SMTP:[EMAIL PROTECTED]] wrote:
> Hi,
>
> After successfully deploying the cart demo bean on the server, Iam
> running the CartClient and get the following error
>
> Communication error: Need to specify class name in environment or system
> property: java.naming.factory.initial
>
> Could someone tell me what Iam doing wrong. I pretty much followed the
> instructions from the orion docs.
>
>
> Thanks,
> -Sridhar
> 




Client : Communication error

2000-08-19 Thread Sridhar Manickam

Hi,

After successfully deploying the cart demo bean on the server, Iam
running the CartClient and get the following error

Communication error: Need to specify class name in environment or system
property: java.naming.factory.initial

Could someone tell me what Iam doing wrong. I pretty much followed the
instructions from the orion docs.


Thanks,
-Sridhar




Bug? - Client communication Error

2000-01-22 Thread Mike Fontenot

Has anyone see this problem? I have a orion server running on my NT box (JDK
1.3) and a client on the same machine. The client loops every 10 seconds and
calls the same method in the CartEJB on the server. I've added a database
lookup, etc to the CartEJB method. After about 125 exections I get this
error on the client:

java.lang.NullPointerException
at aq.invokeMethod(JAX)
at ah.invoke(JAX)
at Proxy0.create(Unknown Source)
at mikecart.test.CartClient.testOrion(CartClient.java:80)
at mikecart.test.CartClient.main(CartClient.java:22)

System/communication error: IO Error: Disconnected

The actual line it is erroring on is:

Cart cart = (Cart)PortableRemoteObject.narrow(home.create(), Cart.class);

The ejbserver system traces do not show any errors.



Mike Fontenot - Object Systems Architect
Polygon Network, Inc.
Golden, Colorado