Yothin Phorn

Greenhorn
+ Follow
since Oct 18, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Yothin Phorn

Hi Mikalai,

Could you please send me the study guide & quiz pdf to me at yothin_p@hotmail.com

Thanks.
Yothin
Yes Vish. I have found the same problem like you.
I have already set ConverterAppClient.jar generated from j2ee's deploytool in my classpath and run ConverterClient.class using basically "java" command and I get the following output:
java.rmi.AccessException: CORBA NO_PERMISSION 0 No; nested exception is:
org.omg.CORBA.NO_PERMISSION: vmcid: 0x0 minor code: 0 completed: No
at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.mapSystemException(ShutdownUtilDelegate.java:98)
at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
at _ConverterHome_Stub.create(Unknown Source)
at ConverterClient.main(ConverterClient.java:18)
Caused by: org.omg.CORBA.NO_PERMISSION: vmcid: 0x0 minor code: 0 completed: No
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:306)
at java.lang.Class.newInstance(Class.java:259)
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(ObjectImpl.java:457)
at _ConverterHome_Stub.create(Unknown Source)
Anyone know how to fix this problem?
[ November 14, 2003: Message edited by: Yothin Pohn ]
Hi Kathy,
Thank for your help and I try following your comment.
This is my sourcecode:

and I got a result as follow:
obj = com.sun.corba.ee.internal.iiop.CDRInputStream_1_0$1:IOR:0000000000000023524d493a436f6e766572746572486f6d653a30303030303030303
0303030303030300000000000010000000000000160000102000000000e3139322e3136382e3
12e31303800085d0000003eafabcb0000000024abb28bd800000001000000000000000100000
00d5472616e7369656e74504f41000000000000000d7c76ca900000000000000001ff0a00000
0000005000000010000002000000000000100010000000205010001000100200001010900000
00100010100000000210000007c00000000000000010040000000000024000000200000
006600000000000000010000000e3139322e3136382e312e31303800085e0040004000000008
0606678102010101000000170401000806066781020101010000000764656661756c74000400
000000000000000000010000000806066781020101010000000f000000190000003200000000
0000002a687474703a2f2f796f7468696e3a393139312f436f6e766572746572417070436c69
656e742e6a61720000000000001f0000000400000003000000200000000400000001
Caught an unexpected exception!
java.lang.ClassCastException
at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:293)
at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:134)
at ConverterClient.main(ConverterClient.java:14)

That mean after looking up the jndi name, MyConverter, It doesn't get
ConverterHome object so the ClassCastException occurs.
Anyone can explain this?
[ November 05, 2003: Message edited by: Yothin Pohn ]
[ November 05, 2003: Message edited by: Yothin Pohn ]

Originally posted by Pradeep Bhat:

Have you checked samples that come with the server ?


It have no example coming with j2ee server that use Context.INITIAL_CONTEXT_FACTORY declaration since it use only runclientcommand.
So I don't know yet how to connect ejb without using runclient command.
Anyone can help me?
Hi valentin,
Pls help me to answer my question at
https://coderanch.com/t/158129/java-EJB-SCBCD/certification/connect-EJB-without-runclient
I think you are most expert in java here. so please help me.
Thanks for Mr. Weerawit. I think your suggest that is good approach but I think it still lack of something that is "Context.INITIAL_CONTEXT_FACTORY" and I don't know what is its value?.
Pradeep Bhat, your link or j2ee tutorial I have already read it and I don't find any sentence tell me about my question because j2ee tutorial use runclient command not java.
Somkiat, thanks for your comment but I have already read it too but I have not found anything helping me. It doesn't tell me what is value of Context.INITIAL_CONTEXT_FACTORY and Context.PROVIDER_URL and why?.
Oh I think there are a lot Thai Java Developer here (notice from name).
It's great.
Now I'm studying EJB using j2eesdk ri and when I test java application client to connect ejb, I will use "runclient" command of j2eesdk/bin. I want to know that I can use basically "java" command to connect ejb or not and How should I do?
Cool!
Pls send your summaries to me at
yothin_p@hotmail.com
21 years ago
Please send me a copy too.
Thanks
Yo.
It's great!!! Congratulations Alan.
-Yo-
22 years ago
Congrats Noman.
- Yo