• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Unable to locate Home Interface in WSS 3.5 AE

 
Bartender
Posts: 1844
Eclipse IDE Ruby Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Are you here to take over the surface world? Because this tiny ad will stop you!
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic