-
EJB problem
HI
i found some problem in EJB can any one help me to solve that problem it
i use CMP EJB on OC4J server and when i make EJB QL then it creates problem with rownum and with like statements so can any one try this
thanks
-
More Info Reqd.
Can U Give Me Some More Details?
I Can Give You Neccessary Ejb-ql
Shrinivas
-
java.lang.ClasscastException
hello
i need some help in EJB
DodAuthorisationHome dodAuthHome = (DodAuthorisationHome)PortableRemoteObject.narrow(context.lookup("DodAuthorisation"), DodAuthorisationHome.class);
DodAuthorisation dodAuthorisation;
now the first line shows the java.lang.ClassCastException
why it occurs tell me plsssssssssssss
-
Try the following and see what class you are actually returning.
Object object = PortableRemoteObject.narrow( context.lookup("DodAuthorisation"), DodAuthorisationHome.class);
System.out.println(object.getClass().getName().toString());
-
java.lang.ClasscastException
Hello sir
problem is in the :
DodAuthorisationHome dodAuthHome = (DodAuthorisationHome)PortableRemoteObject.narrow(ctx.lookup("DodAuthorisation"), DodAuthorisationHome.class);
line thats why nothing is printed
bcz the flow stops when it gets error message
so it will not run
System.out.println(dodAuthHome.getClass().getName().toString());
so tell me how to solve it and why this comes
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks