Closed Jethril closed 7 years ago
Can you try 5.2.10.Final?
On Fri, Jul 14, 2017 at 12:19 PM, EclipseOnFire notifications@github.com wrote:
Hibernate 5.2.0.Final is throwing a org.hibernate.MappingException:
org.hibernate.MappingException: Could not determine type for: com.github.thealchemist.pg_hibernate.InetAddressType, at table: connection, for columns: [org.hibernate.mapping.Column(ip_address)] at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:410) at org.hibernate.tuple.PropertyFactory.buildStandardProperty(PropertyFactory.java:267) at org.hibernate.tuple.component.ComponentMetamodel.
(ComponentMetamodel.java:58) at org.hibernate.mapping.Component.getType(Component.java:169) at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:383) at org.hibernate.mapping.RootClass.validate(RootClass.java:266) at org.hibernate.boot.internal.MetadataImpl.validate(MetadataImpl.java:329) at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build( SessionFactoryBuilderImpl.java:475) at org.hibernate.jpa.boot.internal. EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:888) at org.hibernate.jpa.HibernatePersistenceProvider. createContainerEntityManagerFactory(HibernatePersistenceProvider.java:151) at org.glassfish.persistence.jpa.PersistenceUnitLoader.loadPU( PersistenceUnitLoader.java:199) at org.glassfish.persistence.jpa. PersistenceUnitLoader. (PersistenceUnitLoader.java:107) at org.glassfish.persistence.jpa.JPADeployer$1.visitPUD(JPADeployer.java:223) at org.glassfish.persistence.jpa.JPADeployer$ PersistenceUnitDescriptorIterator.iteratePUDs(JPADeployer.java:510) at org.glassfish.persistence.jpa.JPADeployer.createEMFs(JPADeployer.java:230) at org.glassfish.persistence.jpa.JPADeployer.prepare(JPADeployer.java:168) at com.sun.enterprise.v3.server.ApplicationLifecycle.prepareModule(ApplicationLifecycle.java:925) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:434) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219) at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491) at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:539) at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:535) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:360) at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:534) at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:565) at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:557) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:360) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:556) at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1464) at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:109) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1846) at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1722) at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534) at com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224) at org.glassfish.grizzly.http.server.StaticHttpHandlerBase. service(StaticHttpHandlerBase.java:189) at com.sun.enterprise.v3. services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459) at com.sun.enterprise.v3.services.impl.ContainerMapper. service(ContainerMapper.java:167) at org.glassfish.grizzly.http. server.HttpHandler.runService(HttpHandler.java:206) at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180) at org.glassfish.grizzly.http.server.HttpServerFilter. handleRead(HttpServerFilter.java:235) at org.glassfish.grizzly. filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:283) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200) at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:132) at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:111) at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) at org.glassfish.grizzly.nio.transport.TCPNIOTransport. fireIOEvent(TCPNIOTransport.java:536) at org.glassfish.grizzly. strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0( WorkerThreadIOStrategy.java:117) at org.glassfish.grizzly.strategies. WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$ WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137) at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:591) at org.glassfish.grizzly.threadpool.AbstractThreadPool$ Worker.run(AbstractThreadPool.java:571) at java.lang.Thread.run(Thread. java:745) Here's my class: ` @entity https://github.com/entity @table https://github.com/table(name = "connection") @typedef https://github.com/typedef(name = "inet", typeClass = InetAddressType.class) public class Connection implements Serializable {
@Id @Column(name = "\"timestamp\"") private ZonedDateTime timestamp;
@Id @Column(name = "ip_address") @Type(type = "inet") private InetAddress ipAddress;
@ManyToOne @JoinColumn(name = "\"user\"", nullable = false) private User user;
//...
} `
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/The-Alchemist/hibernate-postgresql/issues/8, or mute the thread https://github.com/notifications/unsubscribe-auth/AAxk_8jjrZEFxmgmVTaXjAQhZfUBe-O1ks5sN5UPgaJpZM4OYc12 .
-- Karl
I get exactly the same error with 5.2.10.Final.
I don't wanna sound like a pain, but could you write up a test case?
There's no problem! What do you want me to test? I create another project with clean entities to try in another context?
Issue resolved creating another project. Seems to be a problem with the JSF version used. Thanks!
Wow, it's crazy that JSF had that kind of impact :-\
Hello,
Hibernate 5.2.0.Final is throwing a
org.hibernate.MappingException
:Here's my class:
I'm on Java 8 / Hibernate 5.2.0.Final / GlassFish 4.1 / using the last version of your lib (1.0.18).
Thanks!