Menu

#73 RuntimeException: unexpected inline var length type: LONG

closed
None
5
2012-10-04
2011-02-14
John
No

Modified Jackedit and I\'m using it as a tester to write to MS money data files. Looks like there\'s problems writing for a bunch of types including LONG. I see the same exception for GUID, SHORT_DATE_TIME and DOUBLE types. Not sure if there are others.

Problem write to table SEC. Attaching table info if it helps.

Exception in thread \"AWT-EventQueue-0\" java.lang.RuntimeException: unexpected inline var length type: LONG
at com.healthmarketscience.jackcess.Column.write(Column.java:1122)
at com.healthmarketscience.jackcess.Column.write(Column.java:1065)
at com.healthmarketscience.jackcess.Table.createRow(Table.java:1692)
at com.healthmarketscience.jackcess.Table.updateRow(Table.java:1416)
at com.healthmarketscience.jackcess.Cursor.updateCurrentRow(Cursor.java:544)
at com.healthmarketscience.jackcess.Table.updateCurrentRow(Table.java:1382)
at jackedit.components.EditTable$1.tableChanged(EditTable.java:126)
at javax.swing.table.AbstractTableModel.fireTableChanged(AbstractTableModel.java:280)
at javax.swing.table.AbstractTableModel.fireTableCellUpdated(AbstractTableModel.java:259)
at javax.swing.table.DefaultTableModel.setValueAt(DefaultTableModel.java:650)
at javax.swing.JTable.setValueAt(JTable.java:2710)
at javax.swing.JTable.editingStopped(JTable.java:4712)
at javax.swing.AbstractCellEditor.fireEditingStopped(AbstractCellEditor.java:125)
at javax.swing.DefaultCellEditor$EditorDelegate.stopCellEditing(DefaultCellEditor.java:350)
at javax.swing.DefaultCellEditor.stopCellEditing(DefaultCellEditor.java:215)
at javax.swing.JTable$GenericEditor.stopCellEditing(JTable.java:5466)
at javax.swing.DefaultCellEditor$EditorDelegate.actionPerformed(DefaultCellEditor.java:367)
at javax.swing.JTextField.fireActionPerformed(JTextField.java:492)
at javax.swing.JTextField.postActionEvent(JTextField.java:705)
at javax.swing.JTextField$NotifyAction.actionPerformed(JTextField.java:820)
at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1639)
at javax.swing.JComponent.processKeyBinding(JComponent.java:2851)
at javax.swing.JComponent.processKeyBindings(JComponent.java:2886)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2814)
at java.awt.Component.processEvent(Component.java:6044)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1850)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:712)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:990)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:855)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:676)
at java.awt.Component.dispatchEventImpl(Component.java:4502)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
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)

Discussion

  • John

    John - 2011-02-14
     
  • Hung Le

    Hung Le - 2011-02-15

    Don't you hate it. After I look again, found a way to add comment. Give me a button that says "Add Comment" ;-)

    Anyway: https://sourceforge.net/projects/jackcess/forums/forum/456474/topic/4361481

     
  • James Ahlborn

    James Ahlborn - 2011-02-15

    yeah, guess i should go ahead and fix this one for good. there are "fixed length" columns and "variable length" columns in access. at least, that is how access uses the columns. however, other applications like to abuse these, and turn all the "fixed length" types into "variable length" types. i've made fixes in the past for specific types, but i should just go ahead and add support for handling all the "fixed length" types as "variable length" as well.

     

Log in to post a comment.