Недопустимое имя файла

  • Автор темы jCoder
  • Дата начала
J

jCoder

#1
Как правильно в этом случае задать имя файла, или исправить

java.sql.SQLException: [Microsoft][Драйвер ODBC Microsoft Access] Недопустимое имя файла.
 

BOPOHA

Well-known member
26.04.2006
118
0
#3
Без кода, который это порождает, сказать что-либо не представляется возможным.
 
J

jCoder

#4
Без кода, который это порождает, сказать что-либо не представляется возможным.
Давай я вышлю тебе трассировку стека вызовов методов, и исходники подключения к БД, и может ты посмотришь и найдешь в чем проблема..! Значит приложение для работы с базай пишу на Java, при этом для подключения к базе используется мост jdbc:eek:dbc.

Значит, при попытке сохранить изменения в базе (строка 62 в классе DM) возникает вот такая лажа, основные важные моменты я закоментировал.
Основной код для работы с БД приведен в классе DM (DataModule).

See com.borland.dx.sql.dataset.ResolutionException error code: BASE+3
com.borland.dx.sql.dataset.ResolutionException: An error occurred saving a change to the `"D:\SANCHESS\JBPROJECT\SimpleManager\Real"`.`tblCLIENTS` table
at com.borland.dx.sql.dataset.ResolutionException.a(Unknown Source)
at com.borland.dx.sql.dataset.ResolutionException.c(Unknown Source)
at com.borland.dx.sql.dataset.l.a(Unknown Source)
at com.borland.dx.sql.dataset.QueryResolver.updateRow(Unknown Source)
at com.borland.dx.sql.dataset.ResolutionManager.a(Unknown Source)
at com.borland.dx.sql.dataset.ResolutionManager.e(Unknown Source)
at com.borland.dx.sql.dataset.ResolutionManager.e(Unknown Source)
at com.borland.dx.sql.dataset.ResolutionManager.saveChanges(Unknown Source)
at com.borland.dx.sql.dataset.ResolutionManager.saveChanges(Unknown Source)
at com.borland.dx.sql.dataset.Database.saveChanges(Unknown Source)
at com.borland.dx.sql.dataset.QueryDataSet.saveChanges(Unknown Source)
at com.borland.dx.dataset.DataSet.saveChanges(Unknown Source)
//at soft_master.codebox.DM$1.calcFields(DM.java:62)
at com.borland.dx.dataset.StorageDataSet.a(Unknown Source)
at com.borland.dx.dataset.StorageDataSet.b(Unknown Source)
at com.borland.dx.dataset.DataSet.c(Unknown Source)
at com.borland.dx.dataset.DataSet.b(Unknown Source)
at com.borland.dx.dataset.ReadWriteRow.setString(Unknown Source)
//at soft_master.codebox.DM.setLastName(DM.java:106)
//at simplemanager.EditClient.actionPerformed(EditClient.java:167)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.jav
a:245)
at java.awt.Component.processMouseEvent(Component.java:5100)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:2
01)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151
)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Chained exception:
java.sql.SQLException: [Microsoft][Драйвер ODBC Microsoft Access] Недопустимое имя файла.
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115)
at sun.jdbc.odbc.JdbcOdbc.SQLExecute(JdbcOdbc.java:3150)
at sun.jdbc.odbc.JdbcOdbcPreparedStatement.execute(JdbcOdbcPreparedStatement.java:2
14)
at sun.jdbc.odbc.JdbcOdbcPreparedStatement.executeUpdate(JdbcOdbcPreparedStatement.
java:136)
at com.borland.dx.sql.dataset.j.c(Unknown Source)
at com.borland.dx.sql.dataset.l.a(Unknown Source)
at com.borland.dx.sql.dataset.QueryResolver.updateRow(Unknown Source)
at com.borland.dx.sql.dataset.ResolutionManager.a(Unknown Source)
at com.borland.dx.sql.dataset.ResolutionManager.e(Unknown Source)
at com.borland.dx.sql.dataset.ResolutionManager.e(Unknown Source)
at com.borland.dx.sql.dataset.ResolutionManager.saveChanges(Unknown Source)
at com.borland.dx.sql.dataset.ResolutionManager.saveChanges(Unknown Source)
at com.borland.dx.sql.dataset.Database.saveChanges(Unknown Source)
at com.borland.dx.sql.dataset.QueryDataSet.saveChanges(Unknown Source)
at com.borland.dx.dataset.DataSet.saveChanges(Unknown Source)
//at soft_master.codebox.DM$1.calcFields(DM.java:62)
at com.borland.dx.dataset.StorageDataSet.a(Unknown Source)
at com.borland.dx.dataset.StorageDataSet.b(Unknown Source)
at com.borland.dx.dataset.DataSet.c(Unknown Source)
at com.borland.dx.dataset.DataSet.b(Unknown Source)
at com.borland.dx.dataset.ReadWriteRow.setString(Unknown Source)
//at soft_master.codebox.DM.setLastName(DM.java:106)
//at simplemanager.EditClient.actionPerformed(EditClient.java:167)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.jav
a:245)
at java.awt.Component.processMouseEvent(Component.java:5100)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:2
01)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151
)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
 
J

jCoder

#5
Без кода, который это порождает, сказать что-либо не представляется возможным.
Давай я вышлю тебе трассировку стека вызовов методов, и исходники подключения к БД, и может ты посмотришь и найдешь в чем проблема..! Значит приложение для работы с базай пишу на Java, при этом для подключения к базе используется мост jdbc:eek:dbc.

Значит, при попытке сохранить изменения в базе (строка 62 в классе DM) возникает вот такая лажа, основные важные моменты я закоментировал.
Основной код для работы с БД приведен в классе DM (DataModule).

See com.borland.dx.sql.dataset.ResolutionException error code: BASE+3
com.borland.dx.sql.dataset.ResolutionException: An error occurred saving a change to the `"D:\SANCHESS\JBPROJECT\SimpleManager\Real"`.`tblCLIENTS` table
at com.borland.dx.sql.dataset.ResolutionException.a(Unknown Source)
at com.borland.dx.sql.dataset.ResolutionException.c(Unknown Source)
at com.borland.dx.sql.dataset.l.a(Unknown Source)
at com.borland.dx.sql.dataset.QueryResolver.updateRow(Unknown Source)
at com.borland.dx.sql.dataset.ResolutionManager.a(Unknown Source)
at com.borland.dx.sql.dataset.ResolutionManager.e(Unknown Source)
at com.borland.dx.sql.dataset.ResolutionManager.e(Unknown Source)
at com.borland.dx.sql.dataset.ResolutionManager.saveChanges(Unknown Source)
at com.borland.dx.sql.dataset.ResolutionManager.saveChanges(Unknown Source)
at com.borland.dx.sql.dataset.Database.saveChanges(Unknown Source)
at com.borland.dx.sql.dataset.QueryDataSet.saveChanges(Unknown Source)
at com.borland.dx.dataset.DataSet.saveChanges(Unknown Source)
//at soft_master.codebox.DM$1.calcFields(DM.java:62)
at com.borland.dx.dataset.StorageDataSet.a(Unknown Source)
at com.borland.dx.dataset.StorageDataSet.b(Unknown Source)
at com.borland.dx.dataset.DataSet.c(Unknown Source)
at com.borland.dx.dataset.DataSet.b(Unknown Source)
at com.borland.dx.dataset.ReadWriteRow.setString(Unknown Source)
//at soft_master.codebox.DM.setLastName(DM.java:106)
//at simplemanager.EditClient.actionPerformed(EditClient.java:167)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.jav
a:245)
at java.awt.Component.processMouseEvent(Component.java:5100)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:2
01)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151
)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Chained exception:
java.sql.SQLException: [Microsoft][Драйвер ODBC Microsoft Access] Недопустимое имя файла.
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115)
at sun.jdbc.odbc.JdbcOdbc.SQLExecute(JdbcOdbc.java:3150)
at sun.jdbc.odbc.JdbcOdbcPreparedStatement.execute(JdbcOdbcPreparedStatement.java:2
14)
at sun.jdbc.odbc.JdbcOdbcPreparedStatement.executeUpdate(JdbcOdbcPreparedStatement.
java:136)
at com.borland.dx.sql.dataset.j.c(Unknown Source)
at com.borland.dx.sql.dataset.l.a(Unknown Source)
at com.borland.dx.sql.dataset.QueryResolver.updateRow(Unknown Source)
at com.borland.dx.sql.dataset.ResolutionManager.a(Unknown Source)
at com.borland.dx.sql.dataset.ResolutionManager.e(Unknown Source)
at com.borland.dx.sql.dataset.ResolutionManager.e(Unknown Source)
at com.borland.dx.sql.dataset.ResolutionManager.saveChanges(Unknown Source)
at com.borland.dx.sql.dataset.ResolutionManager.saveChanges(Unknown Source)
at com.borland.dx.sql.dataset.Database.saveChanges(Unknown Source)
at com.borland.dx.sql.dataset.QueryDataSet.saveChanges(Unknown Source)
at com.borland.dx.dataset.DataSet.saveChanges(Unknown Source)
//at soft_master.codebox.DM$1.calcFields(DM.java:62)
at com.borland.dx.dataset.StorageDataSet.a(Unknown Source)
at com.borland.dx.dataset.StorageDataSet.b(Unknown Source)
at com.borland.dx.dataset.DataSet.c(Unknown Source)
at com.borland.dx.dataset.DataSet.b(Unknown Source)
at com.borland.dx.dataset.ReadWriteRow.setString(Unknown Source)
//at soft_master.codebox.DM.setLastName(DM.java:106)
//at simplemanager.EditClient.actionPerformed(EditClient.java:167)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.jav
a:245)
at java.awt.Component.processMouseEvent(Component.java:5100)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:2
01)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151
)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
 

Вложения

J

jCoder

#7
D:\SANCHESS\JBPROJECT\SimpleManager\Real

Вот это вот че такое?
Это полный путь к БД, для коннекта с ней! Выслать тебе исходники, и полную трассировку стека вызовов, посмотришь, может ты сможешь мне помочь?
Приложение пишется на Java...