assemblits / eru

The open JavaFX SCADA
GNU General Public License v3.0
14 stars 9 forks source link

Postgres ERROR: column am.amcanorder does not exist #17

Closed marl0rd closed 7 years ago

marl0rd commented 7 years ago

When eru is starting, despite it uses the postgresql, there is an exception sayng:

2017-08-14 17:26:47,202 ERROR [SqlExceptionHelper] - ERROR: column am.amcanorder does not exist
  Position: 427
2017-08-14 17:26:47,203 ERROR [SchemaUpdate] - HHH000299: Could not complete schema update
java.lang.NullPointerException
    at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:125)
    at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:110)
    at org.hibernate.tool.hbm2ddl.DatabaseMetadata.getTableMetadata(DatabaseMetadata.java:129)
    at org.hibernate.cfg.Configuration.generateSchemaUpdateScript(Configuration.java:1133)
    at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:212)
    at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:178)
    at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:492)
    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1744)
    at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:94)
    at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:905)
    at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:890)
    at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:57)
    at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)
    at com.eru.util.JpaUtil.createEntityManagerFactory(JpaUtil.java:59)
    at com.eru.util.JpaUtil.createEntityManagerFactory(JpaUtil.java:49)
    at com.eru.util.JpaUtil.getGlobalEntityManager(JpaUtil.java:40)
    at com.eru.gui.App.<init>(App.java:38)

Hint: https://stackoverflow.com/questions/38427585/postgresql-error-column-am-amcanorder-doesnt-exist