Neste código está ocorrendo este erro:
ocorre quando tento pegar o session do hibernate.
Exception in thread “AWT-EventQueue-0” java.lang.ExceptionInInitializerError
at utils.ConnectDB.(ConnectDB.java:36)
at dao.FreteHibernateDAO.consultarTabela(FreteHibernateDAO.java:59)
at gui.JanelaCadastrarFrete.initComponents(JanelaCadastrarFrete.java:62)
at gui.JanelaCadastrarFrete.(JanelaCadastrarFrete.java:31)
at teste.TesteHibernate$1.run(TesteHibernate.java:33)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Caused by: java.lang.NoClassDefFoundError: org/hibernate/engine/query/sql/NativeSQLQueryReturn
at org.hibernate.cfg.annotations.QueryBinder.bindSqlResultsetMapping(QueryBinder.java:295)
at org.hibernate.cfg.AnnotationBinder.bindQueries(AnnotationBinder.java:239)
at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:404)
at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:452)
at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:268)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1168)
at utils.ConnectDB.(ConnectDB.java:34)
… 11 more
O que pode ser?