I get the NullPointerException from Pramati  (EJB Server)  generated
HomeImplementation of the Employee EJB..
Could anybody tell me what is wrong with this code.



   EmployeeHome myEmployeeHome = null;
    myEmployeeHome = (EmployeeHome)
ctx.lookup("java:comp/env/ejb/Employee");
    if (myEmployeeHome != null ) {
        System.out.println(myEmployeeHome.toString());
                myEmployee = (Employee) myEmployeeHome.findByPrimaryKey(employeeNo);
//findByPrimaryKey
            System.out.println("Trace Just after getting handle on Employee");
    }
    else {
            System.out.println("myEmployeeHome is null");
    }




Requisition
Exception occurred The name of the exception is
etips.uiRequisition.RequisitionLoadingException: Unable to retrieve Employee
: Trace Just before getting handle on Employee,Trace Just before getting
handle on Employee,javax.transaction.TransactionRolledbackException:
java.lang.NullPointerException at
etips.employee.EmployeeHomeImplEmployeeBean.findByPrimaryKey(EmployeeHomeImp
lEmployeeBean.java:108) at
etips.uiRequisition.requisitionBean.addRequestedBy(requisitionBean.java:228)
at proton.jsp.generated.requisition._jspService(requisition.java:67) at
proton.jsp.HttpJspSuper.service(HttpJspSuper.java:93) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:639) at
proton.servlet.core.JspServlet.response(JspServlet.java:82) at
proton.servlet.core.JspServlet.service(JspServlet.java:69) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:639) at
proton.servlet.core.ServletRequestManager.process(ServletRequestManager.java
:228) at
proton.servlet.core.ServletRequestManager.processRequest(ServletRequestManag
er.java:83) at
proton.servlet.runtime.ServletServiceThread.process(ServletServiceThread.jav
a:40) at proton.servlet.runtime.ServiceThread.run(ServiceThread.java:81)

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to