Galera me ajuda aqui num negocio olha so eu to usando o hibernate 2 mas na hora de fazer uma inclussão ocorre o seguinte erro:
30/09/2003 11:39:24 net.sf.hibernate.cfg.Environment <clinit>
INFO: Hibernate 2.0.3
30/09/2003 11:39:25 net.sf.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
30/09/2003 11:39:25 net.sf.hibernate.cfg.Environment <clinit>
INFO: using CGLIB reflection optimizer
30/09/2003 11:39:25 net.sf.hibernate.cfg.Environment <clinit>
INFO: JVM proxy support: true
30/09/2003 11:39:25 net.sf.hibernate.cfg.Configuration getConfigurationInputStream
INFO: Configuration resource: /resource/sicla.cfg.xml
30/09/2003 11:39:26 net.sf.hibernate.cfg.Configuration addResource
INFO: Mapping resource: sic/sicla/dao/Usuario.hbm.xml
30/09/2003 11:39:35 net.sf.hibernate.cfg.Binder bindRootClass
INFO: Mapping class: sic.sicla.beans.Usuario -> TBUSUARIOS
30/09/2003 11:39:36 net.sf.hibernate.cfg.Configuration configure
INFO: Configured SessionFactory: null
30/09/2003 11:39:36 net.sf.hibernate.cfg.Configuration secondPassCompile
INFO: processing one-to-many association mappings
30/09/2003 11:39:36 net.sf.hibernate.cfg.Configuration secondPassCompile
INFO: processing foreign key constraints
30/09/2003 11:39:36 net.sf.hibernate.impl.SessionFactoryImpl <init>
INFO: building session factory
30/09/2003 11:39:36 net.sf.hibernate.dialect.Dialect <init>
INFO: Using dialect: net.sf.hibernate.dialect.InterbaseDialect
30/09/2003 11:39:36 net.sf.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Hibernate connection pool size: 1
30/09/2003 11:39:36 net.sf.hibernate.connection.DriverManagerConnectionProvider configure
INFO: using driver: org.firebirdsql.jdbc.FBDriver at URL: jdbc:firebirdsql:localhost/3050:c:/sic/sicla.gdb
30/09/2003 11:39:36 net.sf.hibernate.connection.DriverManagerConnectionProvider configure
INFO: connection properties: {user=sysdba, password=masterkey}
30/09/2003 11:39:36 net.sf.hibernate.ps.PreparedStatementCache <init>
INFO: prepared statement cache size: 25
30/09/2003 11:39:36 net.sf.hibernate.impl.SessionFactoryImpl <init>
INFO: Use outer join fetching: true
30/09/2003 11:39:38 net.sf.hibernate.impl.SessionFactoryImpl <init>
INFO: Use scrollable result sets: false
30/09/2003 11:39:38 net.sf.hibernate.impl.SessionFactoryImpl <init>
INFO: echoing all SQL to stdout
30/09/2003 11:39:39 net.sf.hibernate.impl.SessionFactoryObjectFactory addInstance
INFO: no JDNI name configured
30/09/2003 11:39:39 net.sf.hibernate.impl.SessionFactoryImpl <init>
INFO: Query language substitutions: {}
Hibernate: insert into TBUSUARIOS (NOME, SENHA, NIVEL, ID) values (?, ?, ?, ?)
java.lang.NullPointerException
30/09/2003 11:39:40 net.sf.hibernate.impl.SessionImpl finalize
WARNING: unclosed connection
Alguem pode me ajudar, dizendo oque esta acontecendo abaixo segue meu arquivo de mapeamento
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD//EN"
"http://hibernate.sourceforge.net/hibernate-mapping.dtd">
<hibernate-mapping>
<class name="sic.sicla.beans.Usuario" table="TBUSUARIOS">
<id name="Id" column="ID" type="integer">
<generator class="assigned"/>
</id>
<property name="Nome" column="NOME" type="string"/>
<property name="Senha" column="SENHA" type="string"/>
<property name="Nivel" column="NIVEL" type="string"/>
</class>
</hibernate-mapping>
e esse e meu arquivo de configuração
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">
<hibernate-configuration>
<!-- a SessionFactory instance listed as /jndi/name -->
<session-factory>
<!-- properties -->
<property name="dialect">net.sf.hibernate.dialect.InterbaseDialect</property>
<property name="connection.driver_class">org.firebirdsql.jdbc.FBDriver</property>
<property name="connection.url">jdbc:firebirdsql:localhost/3050:c:/sic/sicla.gdb</property>
<property name="connection.username">sysdba</property>
<property name="connection.password">masterkey</property>
<property name="connection.pool_size">1</property>
<property name="statement_cache.size">25</property>
<property name="show_sql">true</property>
<property name="use_outer_join">true</property>
<property name="jdbc.batch_size">0</property>
<property name="jdbc.use_streams_for_binary">true</property>
<property name="cglib.use_reflection_optimizer">false</property>
<!-- mapping files -->
<mapping resource="sic/sicla/dao/Usuario.hbm.xml"/>
</session-factory>
</hibernate-configuration>
Oque eu to fazendo de errado da uma luz ai pessoal :roll: