Erro de

2 respostas
G

Estou tentando fazer um cadastro, meu mapeamento é hibernate… Na hora de salvar da essa exceção.

Exception in thread AWT-EventQueue-0 org.hibernate.exception.GenericJDBCException: Cannot open connection

at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126)

at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:114)

at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)

at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:52)

at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:449)

at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)

at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:142)

at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:85)

at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1353)

at persistencia.PersistenciaSisMudaJDBC.salvarEntrada(PersistenciaSisMudaJDBC.java:90)

at negocio.ControladorCadastro.cadastrarEntrada(ControladorCadastro.java:22)

at negocio.SisMudaFacade.cadastrarEntrada(SisMudaFacade.java:23)

at apresentacao.TelaCadastro.jButton1ActionPerformed(TelaCadastro.java:206)

at apresentacao.TelaCadastro.access$200(TelaCadastro.java:21)

at apresentacao.TelaCadastro$3.actionPerformed(TelaCadastro.java:82)

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:6038)

at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)

at java.awt.Component.processEvent(Component.java:5803)

at java.awt.Container.processEvent(Container.java:2058)

at java.awt.Component.dispatchEventImpl(Component.java:4410)

at java.awt.Container.dispatchEventImpl(Container.java:2116)

at java.awt.Component.dispatchEvent(Component.java:4240)

at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)

at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)

at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)

at java.awt.Container.dispatchEventImpl(Container.java:2102)

at java.awt.Window.dispatchEventImpl(Window.java:2429)

at java.awt.Component.dispatchEvent(Component.java:4240)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)

at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

Caused by: org.firebirdsql.jdbc.FBSQLException: Resource Exception. I/O error for file CreateFile (open) C:/MUDANCA.FDB

Error while trying to open file

null

Reason: I/O error for file CreateFile (open) C:/MUDANCA.FDB

Error while trying to open file

null

at org.firebirdsql.jdbc.FBDataSource.getConnection(FBDataSource.java:112)

at org.firebirdsql.jdbc.FBDriver.connect(FBDriver.java:189)

at java.sql.DriverManager.getConnection(DriverManager.java:582)

at java.sql.DriverManager.getConnection(DriverManager.java:154)

at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:133)

at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)

 35 more

Álguem pode me ajudar?

2 Respostas

G

Problema resolvido!

T

G?sica

Como foi resolvido???

Criado 2 de junho de 2009
Ultima resposta 4 de jul. de 2011
Respostas 2
Participantes 2