2 Replies Latest reply on Jun 12, 2003 9:38 PM by castnow

    create ejb error

    castnow

      I develop ejb under jboss,the column type of my oracle table is 'date type',but when I am creating ejb,
      there ocurrs error"HTTP ERROR: 500 EJBException:; nested exception is: javax.ejb.EJBException: create blacklist:Could not create entity:java.sql.SQLException: ORA-00957: ???? "
      my create code as such:
      SimpleDateFormat FORMAT = new SimpleDateFormat("dd.mm.yyyy hh:mm:ss");
      String crimeDate = FORMAT.format(java.sql.Timestamp.valueOf(blacklist.getCrimeDate()));
      String recordID = blacklistController.createBlacklist("001","50348589","shopid1",new java.sql.Date(FORMAT.parse(crimeDate).getTime()),
      blacklist.getCrimeRecord(), blacklist.getRemark());
      blacklistController is a sessionBean remote interface,in which call entityBean .