Results 1 to 1 of 1
- 01-04-2010, 04:56 PM #1
Member
- Join Date
- Dec 2009
- Posts
- 9
- Rep Power
- 0
ClassCastException in a simple CORBA application
I get the following error while casting NamingContext type to NamingContextExt type.
java.lang.ClassCastException: org.omg.CosNaming._NamingContextStub
Statement causing the error is:
I am using jre 1.6.Java Code:NamingContextExt ctx2 = (NamingContextExt)ctx.bind_new_context(name2);
This example is from Corba tutorial of SUN:
java.sun.com/j2se/1.4.2/docs/guide/idl/jidlNaming.html#example3
For me it looks like a valid casting, what might be the reason?
How can the problem be solved?
Similar Threads
-
Need help for creating simple jsp web application
By ogi.za.forum in forum Java AppletsReplies: 0Last Post: 08-15-2009, 04:52 PM -
New simple application using a simple database
By webbusiness23 in forum New To JavaReplies: 9Last Post: 08-03-2009, 02:55 AM -
JSP simple application
By Ms.Ranjan in forum JavaServer Pages (JSP) and JSTLReplies: 4Last Post: 10-04-2008, 10:08 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks