java.lang.IllegalStateException: Primary key not available

Oracle Community | 807581 | 1 decade ago
  1. 0

    Second application using EJB with CMP cannot see SQL Server Tables.

    Oracle Community | 1 decade ago | 807581
    java.lang.IllegalStateException: Primary key not available
  2. 0

    problems with ejbCreate

    Oracle Community | 1 decade ago | 807581
    java.lang.IllegalStateException: Primary key not available
  3. 0

    java.lang.IllegalStateException when trying to get a entity bean

    Oracle Community | 1 decade ago | 807581
    java.lang.IllegalStateException: Primary key not available
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Any fix for jdo losing cmr related beans?

    Oracle Community | 1 decade ago | 807581
    java.lang.IllegalStateException: Primary key not available
  6. 0

    javax.ejb.EJBException: Null primary key returned by ejbCreate method

    Oracle Community | 1 decade ago | 843830
    java.lang.IllegalStateException: Primary key not available

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Primary key not available

      at com.sun.ejb.containers.EntityContextImpl.getPrimaryKey()
    2. Embedded GlassFish Web
      BaseContainer.postInvoke
      1. com.sun.ejb.containers.EntityContextImpl.getPrimaryKey(EntityContextImpl.java:159)
      2. com.sun.ejb.containers.EntityContainer.forceDestroyBean(EntityContainer.java:1314)
      3. com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:1827)
      4. com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:1642)
      5. com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:553)
      5 frames
    3. gwumc.edu.ejb
      StudentDeanSessionBean_LocalHomeImpl.create
      1. gwumc.edu.ejb.smhs.visitingstudent.StudentBean129315485_ConcreteImpl_LocalHomeImpl.findActiveByPassword(StudentBean129315485_ConcreteImpl_LocalHomeImpl.java:142)
      2. gwumc.edu.ejb.smhs.visitingstudent.StudentDeanSessionBean.ejbCreate(StudentDeanSessionBean.java:29)
      3. gwumc.edu.ejb.smhs.visitingstudent.StudentDeanSessionBean_LocalHomeImpl.create(StudentDeanSessionBean_LocalHomeImpl.java:27)
      3 frames
    4. gwumc.edu.smhs
      VisitingStudentDean.doPost
      1. gwumc.edu.smhs.servlet.VisitingStudentDeanModel.<init>(VisitingStudentDeanModel.java:18)
      2. gwumc.edu.smhs.servlet.VisitingStudentDean.doPost(VisitingStudentDean.java:27)
      2 frames
    5. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      2 frames
    6. Glassfish Core
      StandardWrapperValve$1.run
      1. org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
      2. org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
      3. org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
      3 frames
    7. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    8. Glassfish Core
      StandardPipeline.invoke
      1. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
      2. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
      3. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
      4. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
      5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
      6. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
      6 frames
    9. com.iplanet.ias
      WebContainer.service
      1. com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:158)
      2. com.iplanet.ias.web.WebContainer.service(WebContainer.java:850)
      2 frames