0 Replies Latest reply on Dec 15, 2011 9:45 AM by pedrocu

    EJB & Persistence

    pedrocu

      I have deployed one application on JBOSS 4.2.3 server. I want to save one record on MYSQL database, but I have the error I show you:

       

      2011-12-15 12:10:54,831 ERROR [STDERR] - java.lang.ClassCastException: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException cannot be cast to java.lang.Error

       

      This error happens when I execute:

       

      entityManager.persist(entity)

       

      I am working with JDK 1.6, JBOSS 4.2.3, MySQL 5.5.

       

      Anybody can help me?

       

      Thanks.