I am attempting to create a client application using Websphere Advanced Edition 3.5. However, when I try to
test it against the Websphere Server, I receive the following output/error message:
properties for Initial Context = {java.naming.factory.initial=com.ibm.ejs.ns.jndi.CNInitialContextFactory, java.naming.provider.url=iiop://172.16.200.201:900}
Appempting to narrow object of class com.ibm.rmi.iiop.CDRInputStream$1 to EJBHome class com.convergents.ets.ppms.service.vendor.VendorSessHome
java.lang.ClassCastException
at java.lang.Throwable.<init>(Throwable.java:84)
at java.lang.Exception.<init>(Exception.java:35)
at java.lang.RuntimeException.<init>(RuntimeException.java:39)
at java.lang.ClassCastException.<init>(ClassCastException.java:38)
at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:324)
at com.convergents.ets.ppms.workflow.PPMSEJBHelper.lookupTargetHome(PPMSEJBHelper.java:187)
at com.convergents.ets.ppms.workflow.PPMSEJBHelper.getTargetHome(PPMSEJBHelper.java:165)
at com.convergents.ets.ppms.workflow.vendor.VendorApp.initialize(VendorApp.java:569)
at com.convergents.ets.ppms.workflow.vendor.VendorApp.<init>(VendorApp.java:45)
at com.convergents.ets.ppms.workflow.vendor.VendorApp.main(VendorApp.java:588)
--------- UNCAUGHT EXCEPTION ---------
java.lang.NullPointerException
at com.convergents.ets.ppms.workflow.vendor.VendorApp.initialize(VendorApp.java:570)
at com.convergents.ets.ppms.workflow.vendor.VendorApp.<init>(VendorApp.java:45)
at com.convergents.ets.ppms.workflow.vendor.VendorApp.main(VendorApp.java:588)
The code that generates this message is:
Why does the JNDI lookup return an IBM anonymous inner class when it should return an instance of the Home Class? What am I doing wrong that would cause this error?