Emissor de nota fiscal eletronica NFE

Iniciado por SIDARTA, 16 de Março de 2011, 19:36

tópico anterior - próximo tópico

SIDARTA

Estava com o nfe rodando direitinho no meu ubuntu 10.10. apos uma atualizaçao do sistema pelo gerenciador de atualzaçoes do synaptic ele apresenta o seguinte erro ao tentar salvar uma nota fiscal

javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: could not get or update next value
   at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:630)
   at org.hibernate.ejb.AbstractEntityManagerImpl.merge(AbstractEntityManagerImpl.java:237)
   at br.gov.sp.fazenda.dsge.model.dao.DSGEBaseDAO.update(DSGEBaseDAO.java:78)
   at br.gov.sp.fazenda.dsen.model.business.NotaFiscalBusiness.alterarSemTransaction(NotaFiscalBusiness.java:519)
   at br.gov.sp.fazenda.dsen.model.business.NotaFiscalBusiness$$EnhancerByCGLIB$$2f067748.CGLIB$alterarSemTransaction$15(<generated>)
   at br.gov.sp.fazenda.dsen.model.business.NotaFiscalBusiness$$EnhancerByCGLIB$$2f067748$$FastClassByCGLIB$$1f917a09.invoke(<generated>)
   at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:167)
   at br.gov.sp.fazenda.dsge.model.dao.util.DSGEDAOInterceptorHelper.intercept(DSGEDAOInterceptorHelper.java:66)
   at br.gov.sp.fazenda.dsen.model.business.NotaFiscalBusiness$$EnhancerByCGLIB$$2f067748.alterarSemTransaction(<generated>)
   at br.gov.sp.fazenda.dsen.model.business.NotaFiscalBusiness.salvarSemTransaction(NotaFiscalBusiness.java:477)
   at br.gov.sp.fazenda.dsen.model.business.NotaFiscalBusiness$$EnhancerByCGLIB$$2f067748.CGLIB$salvarSemTransaction$42(<generated>)
   at br.gov.sp.fazenda.dsen.model.business.NotaFiscalBusiness$$EnhancerByCGLIB$$2f067748$$FastClassByCGLIB$$1f917a09.invoke(<generated>)
   at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:167)
   at br.gov.sp.fazenda.dsge.model.dao.util.DSGEDAOInterceptorHelper.intercept(DSGEDAOInterceptorHelper.java:66)
   at br.gov.sp.fazenda.dsen.model.business.NotaFiscalBusiness$$EnhancerByCGLIB$$2f067748.salvarSemTransaction(<generated>)
   at br.gov.sp.fazenda.dsen.model.business.NotaFiscalBusiness.salvar(NotaFiscalBusiness.java:449)
   at br.gov.sp.fazenda.dsen.model.business.NotaFiscalBusiness$$EnhancerByCGLIB$$2f067748.CGLIB$salvar$6(<generated>)
   at br.gov.sp.fazenda.dsen.model.business.NotaFiscalBusiness$$EnhancerByCGLIB$$2f067748$$FastClassByCGLIB$$1f917a09.invoke(<generated>)
   at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:167)
   at br.gov.sp.fazenda.dsge.model.dao.util.DSGEDAOInterceptorHelper.intercept(DSGEDAOInterceptorHelper.java:55)
   at br.gov.sp.fazenda.dsen.model.business.NotaFiscalBusiness$$EnhancerByCGLIB$$2f067748.salvar(<generated>)
   at br.gov.sp.fazenda.dsen.model.facade.NotaFiscalFacade.salvarNotaFiscal(NotaFiscalFacade.java:208)
   at br.gov.sp.fazenda.dsen.controller.nfe.ManterNotaFiscalController.a(ManterNotaFiscalController.java:299)
   at br.gov.sp.fazenda.dsen.controller.nfe.ManterNotaFiscalController.actionPerformed(ManterNotaFiscalController.java:572)
   at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
   at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
   at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
   at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
   at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
   at java.awt.Component.processMouseEvent(Component.java:6289)
   at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
   at java.awt.Component.processEvent(Component.java:6054)
   at java.awt.Container.processEvent(Container.java:2041)
   at java.awt.Component.dispatchEventImpl(Component.java:4652)
   at java.awt.Container.dispatchEventImpl(Container.java:2099)
   at java.awt.Component.dispatchEvent(Component.java:4482)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
   at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
   at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
   at java.awt.Container.dispatchEventImpl(Container.java:2085)
   at java.awt.Window.dispatchEventImpl(Window.java:2478)
   at java.awt.Component.dispatchEvent(Component.java:4482)
   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
   at java.awt.EventQueue.access$000(EventQueue.java:85)
   at java.awt.EventQueue$1.run(EventQueue.java:603)
   at java.awt.EventQueue$1.run(EventQueue.java:601)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
   at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
   at java.awt.EventQueue$2.run(EventQueue.java:617)
   at java.awt.EventQueue$2.run(EventQueue.java:615)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: org.hibernate.exception.GenericJDBCException: could not get or update next value
   at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
   at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
   at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
   at org.hibernate.engine.TransactionHelper$1Work.doWork(TransactionHelper.java:41)
   at org.hibernate.engine.transaction.Isolater$JdbcDelegate.delegateWork(Isolater.java:187)
   at org.hibernate.engine.transaction.Isolater.doIsolatedWork(Isolater.java:43)
   at org.hibernate.engine.TransactionHelper.doWorkInNewTransaction(TransactionHelper.java:51)
   at org.hibernate.id.MultipleHiLoPerTableGenerator.generate(MultipleHiLoPerTableGenerator.java:186)
   at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:99)
   at org.hibernate.ejb.event.EJB3MergeEventListener.saveWithGeneratedId(EJB3MergeEventListener.java:43)
   at org.hibernate.event.def.DefaultMergeEventListener.entityIsTransient(DefaultMergeEventListener.java:186)
   at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:123)
   at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:53)
   at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:677)
   at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:661)
   at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:665)
   at org.hibernate.ejb.AbstractEntityManagerImpl.merge(AbstractEntityManagerImpl.java:228)
   ... 58 more
Caused by: java.sql.SQLException: An SQL data change is not permitted for a read-only connection, user or database.
   at org.apache.derby.client.am.SQLExceptionFactory40.getSQLException(Unknown Source)
   at org.apache.derby.client.am.SqlException.getSQLException(Unknown Source)
   at org.apache.derby.client.am.PreparedStatement.executeUpdate(Unknown Source)
   at org.hibernate.id.MultipleHiLoPerTableGenerator.doWorkInCurrentTransaction(MultipleHiLoPerTableGenerator.java:168)
   at org.hibernate.engine.TransactionHelper$1Work.doWork(TransactionHelper.java:38)
   ... 71 more
Caused by: org.apache.derby.client.am.SqlException: An SQL data change is not permitted for a read-only connection, user or database.
   at org.apache.derby.client.am.Statement.completeExecute(Unknown Source)
   at org.apache.derby.client.net.NetStatementReply.parseEXCSQLSTTreply(Unknown Source)
   at org.apache.derby.client.net.NetStatementReply.readExecute(Unknown Source)
   at org.apache.derby.client.net.StatementReply.readExecute(Unknown Source)
   at org.apache.derby.client.net.NetPreparedStatement.readExecute_(Unknown Source)
   at org.apache.derby.client.am.PreparedStatement.readExecute(Unknown Source)
   at org.apache.derby.client.am.PreparedStatement.flowExecute(Unknown Source)
   at org.apache.derby.client.am.PreparedStatement.executeUpdateX(Unknown Source)
   ... 74 more


se alguem poder me ajudar agradeço. aproveitando a deia se alguem conhecer um programa que reverte o sistema para antes da atualzaçao agradeço pois nao quero passar por isso novamente