hello,
    One error happend when i try a j2ee client, the code is example of book(Mastering 
EJB II, "hello world").
    when i put all file in one root (no use package), Hello.java, HelloBean.java, 
HelloHome.java, HelloLocal.java and HelloLocalHome.java.
compile it and deploy it in j2ee server.

java -classpath %classpath%;helloClient.jar HelloClient
output is right.

but whe i use package, add "package examples" in all file, then compile and deploy it 
in j2ee server.

java -classpath %classpath%;helloClient.jar examples.HelloClient
output error message:
------------------------------------------------------------------

examples.HelloClient
lookup hellohome..................
home narrow..................
home create..................
Exception in thread "main" java.rmi.RemoteException: CORBA BAD_OPERATION
0 No; nested exception is:
        org.omg.CORBA.BAD_OPERATION:   vmcid: 0x0  minor code: 0
completed: No
        at
com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.mapSystemException(ShutdownUtilDelegate.java:137)

        at javax.rmi.CORBA.Util.mapSystemException(Unknown Source)
        at examples._Hello_Stub.hello(Unknown Source)
        at examples.HelloClient.main(HelloClient.java:64)
Caused by: org.omg.CORBA.BAD_OPERATION:   vmcid: 0x0  minor code: 0
completed: No
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at java.lang.Class.newInstance0(Unknown Source)
        at java.lang.Class.newInstance(Unknown Source)
        at
com.sun.corba.ee.internal.iiop.messages.ReplyMessage_1_2.getSystemException(ReplyMessage_1_2.java:93)

        at
com.sun.corba.ee.internal.iiop.ClientResponseImpl.getSystemException(ClientResponseImpl.java:108)

        at
com.sun.corba.ee.internal.POA.GenericPOAClientSC.invoke(GenericPOAClientSC.java:132)

        at org.omg.CORBA.portable.ObjectImpl._invoke(Unknown Source)
        at examples._Hello_Stub.hello(Unknown Source)
        ... 1 more
---------------------------------------------------------------------
what error it is?
        at examples._Hello_Stub.hello(Unknown Source)
        at examples.HelloClient.main(HelloClient.java:64)
why Unknown Source?
please help me.

stone

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to