2013-01-24 2 views
5

Ich entwickle eine Desktop-Anwendung mit Netbeans, Winterschlaf und Firebird.NullPointerException in Netbeans Hibernate Mapping-Dateien und POJOs Assistenten aus Firebird Datenbank

Der Assistent gibt mir nicht Probleme beim Erstellen von Dateien hibernate.cfg.xml, oder HibernateUtil.java

Aber indem man versucht: Neu -> Sonstiges -> Ruhezustand -> Hibernate Mapping-Dateien und POJOs aus der Datenbank, mit mein hibernate.cfg.xml und hibernate.reveng.xml der Assistent führen die Ausnahme:

Hibernate-Konfiguration mit der Meldung fehlschlägt: java.lang.NullPointerException Ausnahme für Details message.log zu sehen.

Ich verwende

Produktversion: NetBeans IDE 7.2.1 (Build 201.210.100.934)
Java: 1.7.0_11; Java HotSpot (TM) Client VM 23.6-b04
System: Windows XP Version 5.1 läuft auf x86; Cp1252; es_ES (nb)
Firebird-Version: 2.1.1

hibernate.cfg.xml

<?xml version="1.0" encoding="UTF-8"?> 
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> 
<hibernate-configuration> 
    <session-factory> 
    <property name="hibernate.dialect">org.hibernate.dialect.FirebirdDialect</property> 
    <property name="hibernate.connection.driver_class">org.firebirdsql.jdbc.FBDriver</property> 
    <property name="hibernate.connection.url">jdbc:firebirdsql://ip_from_my_server:3050/path_to_my_database.gdb</property> 
    <property name="hibernate.connection.username">sysdba</property> 
    <property name="hibernate.connection.password">masterkey</property> 
    </session-factory> 
</hibernate-configuration> 

HibernateUtil.java

/* 
* To change this template, choose Tools | Templates 
* and open the template in the editor. 
*/ 
package mypackage.util; 

import org.hibernate.cfg.AnnotationConfiguration; 
import org.hibernate.SessionFactory; 

/** 
* Hibernate Utility class with a convenient method to get Session Factory 
* object. 
* 
*/ 
public class HibernateUtil { 

    private static final SessionFactory sessionFactory; 

    static { 
     try { 
      // Create the SessionFactory from standard (hibernate.cfg.xml) 
      // config file. 
      sessionFactory = new AnnotationConfiguration().configure().buildSessionFactory(); 
     } catch (Throwable ex) { 
      // Log the exception. 
      System.err.println("Initial SessionFactory creation failed." + ex); 
      throw new ExceptionInInitializerError(ex); 
     } 
    } 

    public static SessionFactory getSessionFactory() { 
     return sessionFactory; 
    } 
} 

hibernate.reveng.xml

Dies ist die Datei ansehen, loggen ide

>Log Session: Thursday, January 24, 2013 12:09:08 PM CET 
>System Info: 
    Product Version   = NetBeans IDE 7.2.1 (Build 201210100934) (#a183c5e41a19) 
    Operating System  = Windows XP version 5.1 running on x86 
    Java; VM; Vendor  = 1.7.0_11; Java HotSpot(TM) Client VM 23.6-b04; Oracle Corporation 
    Runtime     = Java(TM) SE Runtime Environment 1.7.0_11-b21 
    Java Home    = C:\Archivos de programa\Java\jdk1.7.0_11\jre 
    System Locale; Encoding = es_ES (nb); Cp1252 
    Home Directory   = C:\Documents and Settings\miusuario 
    Current Directory  = C:\Archivos de programa\NetBeans 7.2.1 
    User Directory   = C:\Documents and Settings\miusuario\Datos de programa\NetBeans\7.2.1 
    Cache Directory   = C:\Documents and Settings\miusuario\Configuraci?n local\Datos de programa\NetBeans\Cache\7.2.1 
    Installation   = C:\Archivos de programa\NetBeans 7.2.1\nb 
          C:\Archivos de programa\NetBeans 7.2.1\ide 
          C:\Archivos de programa\NetBeans 7.2.1\java 
          C:\Archivos de programa\NetBeans 7.2.1\apisupport 
          C:\Archivos de programa\NetBeans 7.2.1\webcommon 
          C:\Archivos de programa\NetBeans 7.2.1\websvccommon 
          C:\Archivos de programa\NetBeans 7.2.1\enterprise 
          C:\Archivos de programa\NetBeans 7.2.1\profiler 
          C:\Archivos de programa\NetBeans 7.2.1\harness 
          C:\Archivos de programa\NetBeans 7.2.1\javafx 
          C:\Archivos de programa\NetBeans 7.2.1\platform 
    Boot & Ext. Classpath = C:\Archivos de programa\Java\jdk1.7.0_11\jre\lib\resources.jar;C:\Archivos de programa\Java\jdk1.7.0_11\jre\lib\rt.jar;C:\Archivos de programa\Java\jdk1.7.0_11\jre\lib\sunrsasign.jar;C:\Archivos de programa\Java\jdk1.7.0_11\jre\lib\jsse.jar;C:\Archivos de programa\Java\jdk1.7.0_11\jre\lib\jce.jar;C:\Archivos de programa\Java\jdk1.7.0_11\jre\lib\charsets.jar;C:\Archivos de programa\Java\jdk1.7.0_11\jre\lib\jfr.jar;C:\Archivos de programa\Java\jdk1.7.0_11\jre\classes;C:\Archivos de programa\Java\jdk1.7.0_11\jre\lib\ext\access-bridge.jar;C:\Archivos de programa\Java\jdk1.7.0_11\jre\lib\ext\dnsns.jar;C:\Archivos de programa\Java\jdk1.7.0_11\jre\lib\ext\jaccess.jar;C:\Archivos de programa\Java\jdk1.7.0_11\jre\lib\ext\localedata.jar;C:\Archivos de programa\Java\jdk1.7.0_11\jre\lib\ext\sunec.jar;C:\Archivos de programa\Java\jdk1.7.0_11\jre\lib\ext\sunjce_provider.jar;C:\Archivos de programa\Java\jdk1.7.0_11\jre\lib\ext\sunmscapi.jar;C:\Archivos de programa\Java\jdk1.7.0_11\jre\lib\ext\sunpkcs11.jar;C:\Archivos de programa\Java\jdk1.7.0_11\jre\lib\ext\zipfs.jar 
    Application Classpath = C:\Archivos de programa\NetBeans 7.2.1\platform\lib\boot.jar;C:\Archivos de programa\NetBeans 7.2.1\platform\lib\org-openide-modules.jar;C:\Archivos de programa\NetBeans 7.2.1\platform\lib\org-openide-util-lookup.jar;C:\Archivos de programa\NetBeans 7.2.1\platform\lib\org-openide-util.jar;C:\Archivos de programa\NetBeans 7.2.1\platform\lib\locale\boot_ja.jar;C:\Archivos de programa\NetBeans 7.2.1\platform\lib\locale\boot_pt_BR.jar;C:\Archivos de programa\NetBeans 7.2.1\platform\lib\locale\boot_ru.jar;C:\Archivos de programa\NetBeans 7.2.1\platform\lib\locale\boot_zh_CN.jar;C:\Archivos de programa\NetBeans 7.2.1\platform\lib\locale\org-openide-modules_ja.jar;C:\Archivos de programa\NetBeans 7.2.1\platform\lib\locale\org-openide-modules_pt_BR.jar;C:\Archivos de programa\NetBeans 7.2.1\platform\lib\locale\org-openide-modules_ru.jar;C:\Archivos de programa\NetBeans 7.2.1\platform\lib\locale\org-openide-modules_zh_CN.jar;C:\Archivos de programa\NetBeans 7.2.1\platform\lib\locale\org-openide-util-lookup_ja.jar;C:\Archivos de programa\NetBeans 7.2.1\platform\lib\locale\org-openide-util-lookup_pt_BR.jar;C:\Archivos de programa\NetBeans 7.2.1\platform\lib\locale\org-openide-util-lookup_ru.jar;C:\Archivos de programa\NetBeans 7.2.1\platform\lib\locale\org-openide-util-lookup_zh_CN.jar;C:\Archivos de programa\NetBeans 7.2.1\platform\lib\locale\org-openide-util_ja.jar;C:\Archivos de programa\NetBeans 7.2.1\platform\lib\locale\org-openide-util_pt_BR.jar;C:\Archivos de programa\NetBeans 7.2.1\platform\lib\locale\org-openide-util_ru.jar;C:\Archivos de programa\NetBeans 7.2.1\platform\lib\locale\org-openide-util_zh_CN.jar;C:\Archivos de programa\Java\jdk1.7.0_11\lib\dt.jar;C:\Archivos de programa\Java\jdk1.7.0_11\lib\tools.jar 
    Startup Classpath  = C:\Archivos de programa\NetBeans 7.2.1\platform\core\core.jar;C:\Archivos de programa\NetBeans 7.2.1\platform\core\org-openide-filesystems.jar;C:\Archivos de programa\NetBeans 7.2.1\platform\core\locale\core_ja.jar;C:\Archivos de programa\NetBeans 7.2.1\platform\core\locale\core_pt_BR.jar;C:\Archivos de programa\NetBeans 7.2.1\platform\core\locale\core_ru.jar;C:\Archivos de programa\NetBeans 7.2.1\platform\core\locale\core_zh_CN.jar;C:\Archivos de programa\NetBeans 7.2.1\platform\core\locale\org-openide-filesystems_ja.jar;C:\Archivos de programa\NetBeans 7.2.1\platform\core\locale\org-openide-filesystems_pt_BR.jar;C:\Archivos de programa\NetBeans 7.2.1\platform\core\locale\org-openide-filesystems_ru.jar;C:\Archivos de programa\NetBeans 7.2.1\platform\core\locale\org-openide-filesystems_zh_CN.jar;C:\Archivos de programa\NetBeans 7.2.1\nb\core\org-netbeans-upgrader.jar;C:\Archivos de programa\NetBeans 7.2.1\nb\core\locale\core_nb.jar;C:\Archivos de programa\NetBeans 7.2.1\nb\core\locale\core_nb_ja.jar;C:\Archivos de programa\NetBeans 7.2.1\nb\core\locale\core_nb_pt_BR.jar;C:\Archivos de programa\NetBeans 7.2.1\nb\core\locale\core_nb_ru.jar;C:\Archivos de programa\NetBeans 7.2.1\nb\core\locale\core_nb_zh_CN.jar;C:\Archivos de programa\NetBeans 7.2.1\nb\core\locale\org-netbeans-upgrader_ja.jar;C:\Archivos de programa\NetBeans 7.2.1\nb\core\locale\org-netbeans-upgrader_pt_BR.jar;C:\Archivos de programa\NetBeans 7.2.1\nb\core\locale\org-netbeans-upgrader_ru.jar;C:\Archivos de programa\NetBeans 7.2.1\nb\core\locale\org-netbeans-upgrader_zh_CN.jar 
------------------------------------------------------------------------------- 
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: file:/C:/proyectos/NetBeans.7.1.2/HibernateFirebird/build/classes/ 
INFO [org.hibernate.cfg.Configuration]: configuring from file: hibernate.cfg.xml 
INFO [org.hibernate.cfg.Configuration]: Configured SessionFactory: null 
INFO [org.hibernate.cfg.reveng.OverrideRepository]: Override file: C:\proyectos\NetBeans.7.1.2\HibernateFirebird\src\hibernate.reveng.xml 
INFO [org.netbeans.modules.hibernate.util.HibernateUtil]: Found pre-existing database connection. 
INFO [org.netbeans.modules.hibernate.util.HibernateUtil]: Database Connection is pre-established. Returning the conneciton. 
INFO [org.hibernate.connection.ConnectionProviderFactory]: Initializing connection provider: org.netbeans.modules.hibernate.util.CustomJDBCConnectionProvider 
INFO [org.netbeans.modules.hibernate.util.CustomJDBCConnectionProvider]: Loaded JDBC driver 
INFO [org.netbeans.modules.hibernate.util.CustomJDBCConnectionProvider]: Got connection.. returning 
INFO [org.netbeans.modules.hibernate.wizards.HibernateCodeGenWizardDescriptor]: access to hibernate fails. 
java.lang.NullPointerException 
    at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:86) 
    at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2005) 
    at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:40) 
    at org.netbeans.modules.hibernate.wizards.HibernateCodeGenWizardDescriptor.checkConfig(HibernateCodeGenWizardDescriptor.java:282) 
[catch] at org.netbeans.modules.hibernate.wizards.HibernateCodeGenWizardDescriptor.isValid(HibernateCodeGenWizardDescriptor.java:177) 
    at org.openide.WizardDescriptor.updateStateOpen(WizardDescriptor.java:900) 
    at org.openide.WizardDescriptor.updateState(WizardDescriptor.java:844) 
    at org.openide.loaders.TemplateWizard.updateState(TemplateWizard.java:732) 
    at org.netbeans.modules.project.ui.NewFileWizard.updateState(NewFileWizard.java:122) 
    at org.openide.WizardDescriptor$Listener.stateChanged(WizardDescriptor.java:2094) 
    at org.openide.util.WeakListenerImpl$Change.stateChanged(WeakListenerImpl.java:329) 
    at org.openide.util.ChangeSupport.fireChange(ChangeSupport.java:133) 
    at org.openide.util.ChangeSupport.fireChange(ChangeSupport.java:119) 
    at org.netbeans.modules.project.ui.TemplateChooserPanel.stateChanged(TemplateChooserPanel.java:182) 
    at org.openide.util.ChangeSupport.fireChange(ChangeSupport.java:133) 
    at org.openide.util.ChangeSupport.fireChange(ChangeSupport.java:119) 
    at org.netbeans.modules.project.ui.TemplateChooserPanelGUI.fireChange(TemplateChooserPanelGUI.java:164) 
    at org.netbeans.modules.project.ui.TemplateChooserPanelGUI.access$500(TemplateChooserPanelGUI.java:78) 
    at org.netbeans.modules.project.ui.TemplateChooserPanelGUI$FileChooserBuilder.fireChange(TemplateChooserPanelGUI.java:380) 
    at org.netbeans.modules.project.ui.TemplatesPanelGUI.propertyChange(TemplatesPanelGUI.java:329) 
    at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335) 
    at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:327) 
    at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:263) 
    at java.awt.Component.firePropertyChange(Component.java:8382) 
    at org.netbeans.modules.project.ui.TemplatesPanelGUI$ExplorerProviderPanel.access$900(TemplatesPanelGUI.java:460) 
    at org.netbeans.modules.project.ui.TemplatesPanelGUI$ExplorerProviderPanel$2.run(TemplatesPanelGUI.java:542) 
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251) 
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:721) 
    at java.awt.EventQueue.access$200(EventQueue.java:103) 
    at java.awt.EventQueue$3.run(EventQueue.java:682) 
    at java.awt.EventQueue$3.run(EventQueue.java:680) 
    at java.security.AccessController.doPrivileged(Native Method) 
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) 
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:691) 
    at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:158) 
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) 
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) 
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:154) 
    at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:182) 
    at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:221) 
    at java.security.AccessController.doPrivileged(Native Method) 
    at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:219) 
    at java.awt.Dialog.show(Dialog.java:1077) 
    at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:1074) 
    at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:1109) 
    at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:1096) 
    at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:126) 
    at org.openide.util.Mutex.doEventAccess(Mutex.java:1363) 
    at org.openide.util.Mutex.readAccess(Mutex.java:273) 
    at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:1081) 
    at java.awt.Component.show(Component.java:1651) 
    at java.awt.Component.setVisible(Component.java:1603) 
    at java.awt.Window.setVisible(Window.java:1014) 
    at java.awt.Dialog.setVisible(Dialog.java:1003) 
    at org.netbeans.core.windows.services.DialogDisplayerImpl$1AWTQuery.showDialog(DialogDisplayerImpl.java:260) 
    at org.netbeans.core.windows.services.DialogDisplayerImpl$1AWTQuery.run(DialogDisplayerImpl.java:186) 
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251) 
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:721) 
    at java.awt.EventQueue.access$200(EventQueue.java:103) 
    at java.awt.EventQueue$3.run(EventQueue.java:682) 
    at java.awt.EventQueue$3.run(EventQueue.java:680) 
    at java.security.AccessController.doPrivileged(Native Method) 
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) 
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:691) 
    at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:158) 
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) 
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) 
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) 
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) 
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) 
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91) 
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: Initializing Custom Classloader with classpath : 
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/C:/componentes/Jaybird-2.2.1JDK_1.7/jaybird-2.2.1.jar!/ 
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/C:/componentes/Jaybird-2.2.1JDK_1.7/jaybird-2.2.1-javadoc.jar!/ 
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/C:/componentes/Jaybird-2.2.1JDK_1.7/jaybird-2.2.1-sources.jar!/ 
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: jar:file:/C:/componentes/Jaybird-2.2.1JDK_1.7/jaybird-full-2.2.1.jar!/ 
INFO [org.netbeans.modules.hibernate.util.CustomClassLoader]: file:/C:/proyectos/NetBeans.7.1.2/HibernateFirebird/build/classes/ 
INFO [org.hibernate.cfg.Configuration]: configuring from file: hibernate.cfg.xml 
INFO [org.hibernate.cfg.Configuration]: Configured SessionFactory: null 
INFO [org.hibernate.cfg.reveng.OverrideRepository]: Override file: C:\proyectos\NetBeans.7.1.2\HibernateFirebird\src\hibernate.reveng.xml 
INFO [org.netbeans.modules.hibernate.util.HibernateUtil]: Found pre-existing database connection. 
INFO [org.netbeans.modules.hibernate.util.HibernateUtil]: Database Connection is pre-established. Returning the conneciton. 
INFO [org.hibernate.connection.ConnectionProviderFactory]: Initializing connection provider: org.netbeans.modules.hibernate.util.CustomJDBCConnectionProvider 
INFO [org.netbeans.modules.hibernate.util.CustomJDBCConnectionProvider]: Loaded JDBC driver 
INFO [org.netbeans.modules.hibernate.util.CustomJDBCConnectionProvider]: Got connection.. returning 
INFO [org.netbeans.modules.hibernate.wizards.HibernateCodeGenWizardDescriptor]: access to hibernate fails. 
java.lang.NullPointerException 
    at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:86) 
    at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2005) 
    at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:40) 
    at org.netbeans.modules.hibernate.wizards.HibernateCodeGenWizardDescriptor.checkConfig(HibernateCodeGenWizardDescriptor.java:282) 
[catch] at org.netbeans.modules.hibernate.wizards.HibernateCodeGenWizardDescriptor.isValid(HibernateCodeGenWizardDescriptor.java:177) 
    at org.openide.WizardDescriptor.updateStateOpen(WizardDescriptor.java:900) 
    at org.openide.WizardDescriptor.updateState(WizardDescriptor.java:844) 
    at org.openide.loaders.TemplateWizard.updateState(TemplateWizard.java:732) 
    at org.netbeans.modules.project.ui.NewFileWizard.updateState(NewFileWizard.java:122) 
    at org.openide.WizardDescriptor$Listener.stateChanged(WizardDescriptor.java:2094) 
    at org.openide.util.WeakListenerImpl$Change.stateChanged(WeakListenerImpl.java:329) 
    at org.openide.util.ChangeSupport.fireChange(ChangeSupport.java:133) 
    at org.openide.util.ChangeSupport.fireChange(ChangeSupport.java:119) 
    at org.netbeans.modules.project.ui.TemplateChooserPanel.stateChanged(TemplateChooserPanel.java:182) 
    at org.openide.util.ChangeSupport.fireChange(ChangeSupport.java:133) 
    at org.openide.util.ChangeSupport.fireChange(ChangeSupport.java:119) 
    at org.netbeans.modules.project.ui.TemplateChooserPanelGUI.fireChange(TemplateChooserPanelGUI.java:164) 
    at org.netbeans.modules.project.ui.TemplateChooserPanelGUI.access$500(TemplateChooserPanelGUI.java:78) 
    at org.netbeans.modules.project.ui.TemplateChooserPanelGUI$FileChooserBuilder.fireChange(TemplateChooserPanelGUI.java:380) 
    at org.netbeans.modules.project.ui.TemplatesPanelGUI.propertyChange(TemplatesPanelGUI.java:329) 
    at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335) 
    at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:327) 
    at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:263) 
    at java.awt.Component.firePropertyChange(Component.java:8382) 
    at org.netbeans.modules.project.ui.TemplatesPanelGUI$ExplorerProviderPanel.access$900(TemplatesPanelGUI.java:460) 
    at org.netbeans.modules.project.ui.TemplatesPanelGUI$ExplorerProviderPanel$2.run(TemplatesPanelGUI.java:542) 
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251) 
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:721) 
    at java.awt.EventQueue.access$200(EventQueue.java:103) 
    at java.awt.EventQueue$3.run(EventQueue.java:682) 
    at java.awt.EventQueue$3.run(EventQueue.java:680) 
    at java.security.AccessController.doPrivileged(Native Method) 
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) 
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:691) 
    at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:158) 
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) 
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) 
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:154) 
    at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:182) 
    at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:221) 
    at java.security.AccessController.doPrivileged(Native Method) 
    at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:219) 
    at java.awt.Dialog.show(Dialog.java:1077) 
    at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:1074) 
    at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:1109) 
    at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:1096) 
    at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:126) 
    at org.openide.util.Mutex.doEventAccess(Mutex.java:1363) 
    at org.openide.util.Mutex.readAccess(Mutex.java:273) 
    at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:1081) 
    at java.awt.Component.show(Component.java:1651) 
    at java.awt.Component.setVisible(Component.java:1603) 
    at java.awt.Window.setVisible(Window.java:1014) 
    at java.awt.Dialog.setVisible(Dialog.java:1003) 
    at org.netbeans.core.windows.services.DialogDisplayerImpl$1AWTQuery.showDialog(DialogDisplayerImpl.java:260) 
    at org.netbeans.core.windows.services.DialogDisplayerImpl$1AWTQuery.run(DialogDisplayerImpl.java:186) 
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251) 
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:721) 
    at java.awt.EventQueue.access$200(EventQueue.java:103) 
    at java.awt.EventQueue$3.run(EventQueue.java:682) 
    at java.awt.EventQueue$3.run(EventQueue.java:680) 
    at java.security.AccessController.doPrivileged(Native Method) 
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) 
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:691) 
    at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:158) 
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) 
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) 
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) 
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) 
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) 
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91) 
+0

Können Sie auch die von Ihnen verwendete Hibernate- und Jaybird-Version verwenden? –

+0

Hibernate Version: 1.17.1.1 \t \t JayBird Jaybird-2.2.1JDK_1.7 jaybird-2.2.1.jar jaybird-2.2.1-javadoc.jar jaybird-2.2.1-sources.jar jaybird-full -2.2.1.jar – marchomal

+0

Sind Sie sicher über Ihre Hibernate-Version, die neueste ist 4.1.9, und ich kann einen Hibernate 1.17 nicht finden (und wenn es existierte wäre es +/- 10 Jahre alt). –

Antwort

1

Eine neue Frage über diese ausgelöst mich wieder zu untersuchen, das Problem ist eine Kombination aus, wie Jaybird lädt sich und eine benutzerdefinierte Classloader in Netbeans. Siehe https://stackoverflow.com/a/18920383/466862

+0

Thanks Mark. Perfekt arbeiten. – marchomal

0

löschen hibernate.cfg.xml und hibernate.reveng.xml; Und generieren Sie sie erneut mit Netbeans. Versuchen Sie danach, Entitätsklassen zu erstellen. Ich habe dieses Problem konfrontiert und dies funktioniert für mich