求助:Hibernate Integer问题

来源:互联网 发布:中建七局南方公司知乎 编辑:程序博客网 时间:2024/05/22 01:43

Exception in thread "AWT-EventQueue-0" java.lang.NoSuchFieldError: INTEGER

at com.hxtt.support.hibernate.HxttDialect.<init>(HxttDialect.java:27)

at com.hxtt.support.hibernate.HxttAccessDialect.<init>(HxttAccessDialect.java:12)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

at java.lang.reflect.Constructor.newInstance(Unknown Source)

at java.lang.Class.newInstance0(Unknown Source)

at java.lang.Class.newInstance(Unknown Source)

at org.hibernate.dialect.resolver.DialectFactory.constructDialect(DialectFactory.java:156)

at org.hibernate.dialect.resolver.DialectFactory.buildDialect(DialectFactory.java:99)

at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:130)

at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2833)

at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2829)

at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1840)

at cmsdb.hibernate.HibernateSessionFactory.<clinit>(HibernateSessionFactory.java:29)

at cmsdb.hibernate.BaseDao.queryObject(BaseDao.java:22)

at cmsdb.hibernate.Dao.queryUser(Dao.java:107)

at cmsdb.gui.WelcomeFrame$LoginAction.check(WelcomeFrame.java:349)

at cmsdb.gui.WelcomeFrame$LoginAction.actionPerformed(WelcomeFrame.java:325)

at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

at javax.swing.AbstractButton.doClick(Unknown Source)

at javax.swing.plaf.basic.BasicRootPaneUI$Actions.actionPerformed(Unknown Source)

at javax.swing.SwingUtilities.notifyAction(Unknown Source)

at javax.swing.JComponent.processKeyBinding(Unknown Source)

at javax.swing.KeyboardManager.fireBinding(Unknown Source)

at javax.swing.KeyboardManager.fireKeyboardAction(Unknown Source)

at javax.swing.JComponent.processKeyBindingsForAllComponents(Unknown Source)

at javax.swing.JComponent.processKeyBindings(Unknown Source)

at javax.swing.JComponent.processKeyEvent(Unknown Source)

at java.awt.Component.processEvent(Unknown Source)

at java.awt.Container.processEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)

at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)

at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)

at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)

at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Window.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)




以上是使用hibernate-core-3.6.0.Final.jar 包的问题,改用以前的包 正常,不知是什么样原因?