Pessoal tenho uma aplicação distribuida (cliente,servidor), onde uso RMI, porem estou com um problema, quando acontece essa exception:
14:06:34.708 ERROR [ComunicacaoTerminais.VerificaEvento] [JDBCExceptionReporter] - ORA-01400: cannot insert NULL into ("DESSULFURACAO"."DESTINO_CT"."DEST_CT_DESC")
14:06:34.709 ERROR [ComunicacaoTerminais.VerificaEvento] [JDBCExceptionReporter] - ORA-01400: cannot insert NULL into ("DESSULFURACAO"."DESTINO_CT"."DEST_CT_DESC")
14:06:34.710 ERROR [ComunicacaoTerminais.VerificaEvento] [AbstractFlushingEventListener] - Could not synchronize database state with session
org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:96)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:275)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:179)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1206)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:375)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:137)
at com.aplicacao.servidor.hibernateutil.HibernateGeneric.save(HibernateGeneric.java:21)
at com.aplicacao.servidor.dao.DestinoCtDao.salvar(DestinoCtDao.java:41)
at com.aplicacao.servidor.model.destinocarrotorpedo.DestinoCarroTorpedoModel.cadastrarDestinoCarroTorpedo(DestinoCarroTorpedoModel.java:109)
at com.aplicacao.servidor.ComunicacaoTerminais.processaEvento(ComunicacaoTerminais.java:379)
at com.aplicacao.framework.kernel.ProcessoComunicacaoTerminais.recebeEvento(ProcessoComunicacaoTerminais.java:271)
at com.framework.base.processo.ProcessoBase$VerificaEvento.run(ProcessoBase.java:529)
Caused by: java.sql.BatchUpdateException: ORA-01400: cannot insert NULL into ("DESSULFURACAO"."DESTINO_CT"."DEST_CT_DESC")
at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:367)
at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:8739)
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeBatch(NewProxyPreparedStatement.java:1723)
at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:70)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:268)
... 13 more
14:06:34.730 ERROR [ComunicacaoTerminais.VerificaEvento] [HibernateGeneric] - Erro ao salvar os dados na tabela DestinoCt{destCtId=20, destCtCod=132, destCtDesc=}. Erro: org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
14:06:34.733 ERROR [ComunicacaoTerminais.VerificaEvento] [DestinoCarroTorpedoModel] - Destino Carro Torpedo já cadastrado no sistema
14:07:09.006 INFO [Timer-0] [ComunicacaoTerminais] - DADOS DO PROCESSO =>>>> Partida [Tue Dec 13 11:55:07 BRST 2011] PID [5972] Memória utilizada [19820] Memória livre [10737] Memória total [253440].
14:06:34.708 ERROR [ComunicacaoTerminais.VerificaEvento] [JDBCExceptionReporter] - ORA-01400: cannot insert NULL into ("DESSULFURACAO"."DESTINO_CT"."DEST_CT_DESC")
14:06:34.709 ERROR [ComunicacaoTerminais.VerificaEvento] [JDBCExceptionReporter] - ORA-01400: cannot insert NULL into ("DESSULFURACAO"."DESTINO_CT"."DEST_CT_DESC")
14:06:34.710 ERROR [ComunicacaoTerminais.VerificaEvento] [AbstractFlushingEventListener] - Could not synchronize database state with session
org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:96)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:275)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:179)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1206)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:375)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:137)
at com.aplicacao.servidor.hibernateutil.HibernateGeneric.save(HibernateGeneric.java:21)
at com.aplicacao.servidor.dao.DestinoCtDao.salvar(DestinoCtDao.java:41)
at com.aplicacao.servidor.model.destinocarrotorpedo.DestinoCarroTorpedoModel.cadastrarDestinoCarroTorpedo(DestinoCarroTorpedoModel.java:109)
at com.aplicacao.servidor.ComunicacaoTerminais.processaEvento(ComunicacaoTerminais.java:379)
at com.aplicacao.framework.kernel.ProcessoComunicacaoTerminais.recebeEvento(ProcessoComunicacaoTerminais.java:271)
at com.aplicacao.framework.base.processo.ProcessoBase$VerificaEvento.run(ProcessoBase.java:529)
Caused by: java.sql.BatchUpdateException: ORA-01400: cannot insert NULL into ("DESSULFURACAO"."DESTINO_CT"."DEST_CT_DESC")
at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:367)
at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:8739)
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeBatch(NewProxyPreparedStatement.java:1723)
at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:70)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:268)
... 13 more
14:06:34.730 ERROR [ComunicacaoTerminais.VerificaEvento] [HibernateGeneric] - Erro ao salvar os dados na tabela DestinoCt{destCtId=20, destCtCod=132, destCtDesc=}. Erro: org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
14:06:34.733 ERROR [ComunicacaoTerminais.VerificaEvento] [DestinoCarroTorpedoModel] - Destino Carro Torpedo já cadastrado no sistema
meu servidor trava, não deixa eu fazer mais nada no banco de dados, alguem sabe o porque? Sei que o problema é porque tento gravar um registro no banco porem ele não pode ser nulo e estou passando um valor nulo, estou usando o oracle 10g.