0 Replies Latest reply on Aug 13, 2008 4:45 PM by shashi kumar

    avax.persistence.PersistenceException: org.hibernate.validator.InvalidStateException:

    shashi kumar Newbie

      Hai
      I a new to jboss seam...


      I have a fileUploadListener method  in SaasTenantsHome java class which is  called when the file is selected. from the front end screen using richfaces...



      em.presist(object) in  same SaasTenantsHome java class


      UploadItem upload;



      file equal upload.getFile();     putting file object to session..


      I have text fields with


      1.name -- string


      2.address -- string


      3.Image -- byte array


      ..etc



      I have submit button on click it get the value from from set to object and then i get the file object get the bytes and set to image byte array..


      when i call entityManager.presist(object) it throws exception ...



      please help me ...
      shashi


      javax.persistence.PersistenceException: org.hibernate.validator.InvalidStateException: validation failed for: com.camsoft.camera.tenantmanagement.entity.SaasTenants
             at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:527)