play.api.UnexpectedException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Error 503 when using mysql
    via GitHub by enmaku
    ,
  • About using MySQL Database
    via GitHub by romaar
    ,
  • Remote procedure call error
    via GitHub by MikeVienna
    ,
    • play.api.UnexpectedException: Unexpected exception[PersistenceException: [PersistenceUnit: production] Unable to build EntityManagerFactory] at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$1.apply(ApplicationProvider.scala:142)[play_2.10-2.1.1.jar:2.1.1] at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$1.apply(ApplicationProvider.scala:106)[play_2.10-2.1.1.jar:2.1.1] at scala.Option.map(Option.scala:145)[scala-library.jar:na] at play.core.ReloadableApplication$$anonfun$get$1.apply(ApplicationProvider.scala:106)[play_2.10-2.1.1.jar:2.1.1] at play.core.ReloadableApplication$$anonfun$get$1.apply(ApplicationProvider.scala:104)[play_2.10-2.1.1.jar:2.1.1] at scala.util.Either$RightProjection.flatMap(Either.scala:523)[scala-library.jar:na] Caused by: javax.persistence.PersistenceException: [PersistenceUnit: production] Unable to build EntityManagerFactory at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:930)[hibernate-entitymanager-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904)[hibernate-entitymanager-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:72)[hibernate-entitymanager-4.2.0.Final.jar:4.2.0.Final] at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)[hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final] at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47)[hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final] at play.db.jpa.JPAPlugin.onStart(JPAPlugin.java:35)[play-java-jpa_2.10-2.1.1.jar:2.1.1] Caused by: org.hibernate.HibernateException: Wrong column type in XXXXX for column YYYY. Found: varchar2, expected: raw(255) at org.hibernate.mapping.Table.validateColumns(Table.java:373)[hibernate-core-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.cfg.Configuration.validateSchema(Configuration.java:1265)[hibernate-core-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.tool.hbm2ddl.SchemaValidator.validate(SchemaValidator.java:155)[hibernate-core-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:508)[hibernate-core-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1750)[hibernate-core-4.2.0.Final.jar:4.2.0.Final] at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:94)[hibernate-entitymanager-4.2.0.Final.jar:4.2.0.Final]

    Users with the same issue

    nasimk
    2 times, last one,
    Unknown User
    8 times, last one,
    davidvanlaatum
    5 times, last one,
    Tahir
    4 times, last one,
    Unknown visitor2 times, last one,
    13 more bugmates