JPA-error "Missing Table" after upgrade from 1.2.1 to 1.2.2
820 views
Skip to first unread message
Pitr
unread,
Jul 31, 2011, 11:28:21 AM7/31/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to play-framework
Hi,
After an upgrade from play 1.2.1 to 1.2.2 I can no longer start my
play project. I am running the db=mem configuration. There are more
models (this happens to be the first alphabetically). Where should I
start debugging this issue? Below is the output after the first
request:
@679dclhmc
Internal Server Error (500) for request GET /
JPA error
A JPA error occurred (Unable to build EntityManagerFactory): Missing
table: BlockedIP
play.exceptions.JPAException: Unable to build EntityManagerFactory
at play.db.jpa.JPAPlugin.onApplicationStart(JPAPlugin.java:231)
at
play.plugins.PluginCollection.onApplicationStart(PluginCollection.java:
425)
at play.Play.start(Play.java:492)
at play.Play.detectChanges(Play.java:596)
at play.Invoker$Invocation.init(Invoker.java:186)
at Invocation.HTTP Request(Play!)
Caused by: org.hibernate.HibernateException: Missing table: BlockedIP
at org.hibernate.cfg.Configuration.validateSchema(Configuration.java:
1310)
at
org.hibernate.tool.hbm2ddl.SchemaValidator.validate(SchemaValidator.java:
139)
at
org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:
378)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:
1842)
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:
902)
at play.db.jpa.JPAPlugin.onApplicationStart(JPAPlugin.java:229)
... 5 more
17:20:26,006 ERROR ~
@679dclhmd
Internal Server Error (500) for request GET /favicon.ico
JPA error
A JPA error occurred (Unable to build EntityManagerFactory): Missing
table: BlockedIP
play.exceptions.JPAException: Unable to build EntityManagerFactory
at play.db.jpa.JPAPlugin.onApplicationStart(JPAPlugin.java:231)
at
play.plugins.PluginCollection.onApplicationStart(PluginCollection.java:
425)
at play.Play.start(Play.java:492)
at play.Play.detectChanges(Play.java:596)
at play.Invoker$Invocation.init(Invoker.java:186)
at Invocation.HTTP Request(Play!)
Caused by: org.hibernate.HibernateException: Missing table: BlockedIP
at org.hibernate.cfg.Configuration.validateSchema(Configuration.java:
1310)
at
org.hibernate.tool.hbm2ddl.SchemaValidator.validate(SchemaValidator.java:
139)
at
org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:
378)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:
1842)
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:
902)
at play.db.jpa.JPAPlugin.onApplicationStart(JPAPlugin.java:229)
... 5 more
Pitr
unread,
Jul 31, 2011, 11:37:47 AM7/31/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to play-framework
Addendum: after switching back to 1.2.1, the same problem re-appears.
It is not related to the upgrade, my mistake.
Alternately, does anyone have a pointer on how to debug this?
Kind regards,
Pieter
Pitr
unread,
Jul 31, 2011, 11:43:35 AM7/31/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to play-framework
Fixed! The schema was being validated before being created.