<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Error when open SessionFacoty in Eclipse's Hibernate Perspective
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/spring.liao">spring liao</a> in <i>JBoss Tools</i> - <a href="https://community.jboss.org/docs/DOC-47469">View the full document</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hi,</p><p>Following is my application/development enviroment:</p><p>1.Eclipse 3.7.2/Indigo SR2</p><p>2.jboss tools 3.3.1.Final</p><p>3.hibernate-orm 4.1.7.Final</p><p>4.Joda Time 2.1</p><p>5.usertype 3.0.0.CR3</p><p>  </p><p>My domain class use joda time LocalDateTime type and UserType annotation:</p><p>  </p><p>@Column(name = "START")</p><p>@Type(type = "org.jadira.usertype.dateandtime.joda.PersistentLocalDateTime")</p><p>private org.joda.time.LocalDateTime start;</p><p>  </p><p>Both my application and development enviroment work properly except the only one issue:</p><p>When I open Hibernate Perspective in Eclipse then click SessionFactory to open it</p><p>, the following exception raised and failed to open.</p><p>I am not sure it is jboss tools or usertype problem ?</p><p>--------------------------------begin error log--------------------------------</p><p>!ENTRY org.hibernate.eclipse.console 4 4 2012-09-24 15:06:26.609</p><p>!MESSAGE Problems while creating sessionfactory</p><p>!SUBENTRY 1 org.hibernate.eclipse.console 4 150 2012-09-24 15:06:26.609</p><p>!MESSAGE java.lang.VerifyError: (class: org/jadira/usertype/spi/shared/AbstractTimestampColumnMapper, method: getHibernateType signature: ()Lorg/hibernate/type/AbstractStandardBasicType;) Wrong return type in function</p><p>!STACK 0</p><p>java.lang.VerifyError: (class: org/jadira/usertype/spi/shared/AbstractTimestampColumnMapper, method: getHibernateType signature: ()Lorg/hibernate/type/AbstractStandardBasicType;) Wrong return type in function</p><p> at java.lang.Class.getDeclaredConstructors0(Native Method)</p><p> at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)</p><p> at java.lang.Class.getConstructor0(Class.java:2699)</p><p> at java.lang.Class.newInstance0(Class.java:326)</p><p> at java.lang.Class.newInstance(Class.java:308)</p><p> at org.jadira.usertype.spi.shared.AbstractSingleColumnUserType.<init>(AbstractSingleColumnUserType.java:41)</p><p> at org.jadira.usertype.dateandtime.joda.PersistentLocalDateTime.<init>(PersistentLocalDateTime.java:31)</p><p> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)</p><p> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)</p><p> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)</p><p> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)</p><p> at java.lang.Class.newInstance0(Class.java:355)</p><p> at java.lang.Class.newInstance(Class.java:308)</p><p> at org.hibernate.type.CustomType.<init>(CustomType.java:75)</p><p> at org.hibernate.type.TypeFactory.heuristicType(TypeFactory.java:301)</p><p> at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:282)</p><p> at org.hibernate.tuple.PropertyFactory.buildStandardProperty(PropertyFactory.java:143)</p><p> at org.hibernate.tuple.component.ComponentMetamodel.<init>(ComponentMetamodel.java:68)</p><p> at org.hibernate.mapping.Component.buildType(Component.java:183)</p><p> at org.hibernate.mapping.Component.getType(Component.java:176)</p><p> at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:275)</p><p> at org.hibernate.mapping.Collection.validate(Collection.java:301)</p><p> at org.hibernate.mapping.Set.validate(Set.java:42)</p><p> at org.hibernate.cfg.Configuration.validate(Configuration.java:1197)</p><p> at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1378)</p><p> at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:954)</p><p> at org.hibernate.console.ConsoleConfiguration$5.execute(ConsoleConfiguration.java:278)</p><p> at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)</p><p> at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:107)</p><p> at org.hibernate.console.ConsoleConfiguration.buildSessionFactory(ConsoleConfiguration.java:273)</p><p> at org.hibernate.eclipse.console.workbench.LazySessionFactoryAdapter.getChildren(LazySessionFactoryAdapter.java:43)</p><p> at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:100)</p><p> at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:106)</p><p> at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:235)</p><p> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)</p><p>!SUBENTRY 2 org.hibernate.eclipse.console 4 150 2012-09-24 15:06:26.625</p><p>!MESSAGE java.lang.VerifyError: (class: org/jadira/usertype/spi/shared/AbstractTimestampColumnMapper, method: getHibernateType signature: ()Lorg/hibernate/type/AbstractStandardBasicType;) Wrong return type in function</p><p>!STACK 0</p><p>java.lang.VerifyError: (class: org/jadira/usertype/spi/shared/AbstractTimestampColumnMapper, method: getHibernateType signature: ()Lorg/hibernate/type/AbstractStandardBasicType;) Wrong return type in function</p><p> at java.lang.Class.getDeclaredConstructors0(Native Method)</p><p> at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)</p><p> at java.lang.Class.getConstructor0(Class.java:2699)</p><p> at java.lang.Class.newInstance0(Class.java:326)</p><p> at java.lang.Class.newInstance(Class.java:308)</p><p> at org.jadira.usertype.spi.shared.AbstractSingleColumnUserType.<init>(AbstractSingleColumnUserType.java:41)</p><p> at org.jadira.usertype.dateandtime.joda.PersistentLocalDateTime.<init>(PersistentLocalDateTime.java:31)</p><p> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)</p><p> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)</p><p> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)</p><p> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)</p><p> at java.lang.Class.newInstance0(Class.java:355)</p><p> at java.lang.Class.newInstance(Class.java:308)</p><p> at org.hibernate.type.CustomType.<init>(CustomType.java:75)</p><p> at org.hibernate.type.TypeFactory.heuristicType(TypeFactory.java:301)</p><p> at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:282)</p><p> at org.hibernate.tuple.PropertyFactory.buildStandardProperty(PropertyFactory.java:143)</p><p> at org.hibernate.tuple.component.ComponentMetamodel.<init>(ComponentMetamodel.java:68)</p><p> at org.hibernate.mapping.Component.buildType(Component.java:183)</p><p> at org.hibernate.mapping.Component.getType(Component.java:176)</p><p> at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:275)</p><p> at org.hibernate.mapping.Collection.validate(Collection.java:301)</p><p> at org.hibernate.mapping.Set.validate(Set.java:42)</p><p> at org.hibernate.cfg.Configuration.validate(Configuration.java:1197)</p><p> at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1378)</p><p> at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:954)</p><p> at org.hibernate.console.ConsoleConfiguration$5.execute(ConsoleConfiguration.java:278)</p><p> at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)</p><p> at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:107)</p><p> at org.hibernate.console.ConsoleConfiguration.buildSessionFactory(ConsoleConfiguration.java:273)</p><p> at org.hibernate.eclipse.console.workbench.LazySessionFactoryAdapter.getChildren(LazySessionFactoryAdapter.java:43)</p><p> at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:100)</p><p> at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:106)</p><p> at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:235)</p><p> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)</p><p>---------------------------------end error log---------------------------------</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Comment by <a href="https://community.jboss.org/docs/DOC-47469">going to Community</a></p>
        <p style="margin: 0;">Create a new document in JBoss Tools at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=102&containerType=14&container=2128">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>