Discussions

EJB programming & troubleshooting: PortableRemoteObject.narrow() returns null

  1. PortableRemoteObject.narrow() returns null (1 messages)

    hi,


    i am a newbie in j2ee and tried the tutorials in http://www.netbeans.org/download/docs/41/j2ee-tutorial/index.html specifically in the session bean section. i followed it step by step and was able to deploy the CartBean successfully. but i am having problems with the CartClient. the PortableRemoteObject.narrow() function always returns null that's why the home.create() method throws a NullException. do i have to configure the appserver? does anyone encounter this problem? i would really appreciate any inputs. thanks in advance.

    i am using the Sun AppServer and Netbeans IDE.

    regards,
    andrew
  2. yes i also face the same problem home = (EJBHome)PortableRemoteObject.narrow(obj, homeClass); this return null