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

Тема в разделе "Остальные БД", создана пользователем jCoder, 3 июл 2009.

  1. jCoder

    jCoder Гость

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

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

    etc Гость

    Так как написано в документации. а?
     
  3. BOPOHA

    BOPOHA Well-Known Member

    Регистрация:
    26 апр 2006
    Сообщения:
    118
    Симпатии:
    0
    Без кода, который это порождает, сказать что-либо не представляется возможным.
     
  4. jCoder

    jCoder Гость

    Давай я вышлю тебе трассировку стека вызовов методов, и исходники подключения к БД, и может ты посмотришь и найдешь в чем проблема..! Значит приложение для работы с базай пишу на 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)
     
  5. jCoder

    jCoder Гость

    Давай я вышлю тебе трассировку стека вызовов методов, и исходники подключения к БД, и может ты посмотришь и найдешь в чем проблема..! Значит приложение для работы с базай пишу на 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)
     

    Вложения:

    • DM.txt
      Размер файла:
      4,5 КБ
      Просмотров:
      7
    • EditClient.txt
      Размер файла:
      9,9 КБ
      Просмотров:
      11
  6. etc

    etc Гость

    D:\SANCHESS\JBPROJECT\SimpleManager\Real

    Вот это вот че такое?
     
  7. jCoder

    jCoder Гость

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

Поделиться этой страницей