<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>I'm getting a weird data type exception when issuing a request to the API manager running against a Postgres instance:</div>
<div>
<div>
<div><br>
</div>
<div>I'm using apiman 1.1.9 with the DDL for Postgres found here: <a href="https://raw.githubusercontent.com/apiman/apiman/apiman-1.1.9.Final/distro/wildfly8/src/main/resources/overlay/apiman/ddls/apiman_postgresql9.ddl">https://raw.githubusercontent.com/apiman/apiman/apiman-1.1.9.Final/distro/wildfly8/src/main/resources/overlay/apiman/ddls/apiman_postgresql9.ddl</a></div>
<div>
<div><br>
</div>
<div>The DDL does make that into a text column; I'm not sure why Hibernate doesn't like it and instead wants a VARCHAR that is too big for Postgres. This is on PostgreSQL 9.4.4; my driver configuration in the standalone-apiman.xml uses postgresql-9.3-1102-jdbc41.jar
and doesn't have any particular validation configuration.</div>
</div>
<div><br>
</div>
<div>Relevant stack:</div>
<div><br>
</div>
<div>UT005023: Exception handling request to /apiman/currentuser/info: org.jboss.resteasy.spi.UnhandledException: org.jboss.weld.exceptions.WeldException: WELD-000049: Unable to invoke public void io.apiman.manager.api.jpa.EntityManagerFactoryAccessor.postConstruct()
on io.apiman.manager.api.jpa.EntityManagerFactoryAccessor@325203f1</div>
</div>
<div>…</div>
<div>Caused by: javax.persistence.PersistenceException: Unable to build entity manager factory</div>
</div>
<div>…</div>
<div>
<div>Caused by: org.hibernate.HibernateException: Wrong column type in public.auditlog for column data. Found: text, expected</div>
<div>: varchar(2147483647)</div>
</div>
<div>
<div> at org.hibernate.mapping.Table.validateColumns(Table.java:372) [hibernate-core-4.3.7.Final.jar:4.3.7.Final]</div>
<div> at org.hibernate.cfg.Configuration.validateSchema(Configuration.java:1338) [hibernate-core-4.3.7.Final.jar:4.3.7</div>
<div>.Final]</div>
</div>
<div>…</div>
<div><br>
</div>
<div><br>
</div>
</body>
</html>