ekpindi / openconcerto

Automatically exported from code.google.com/p/openconcerto
0 stars 0 forks source link

Tri colonne dans Etat Liste des écritures - Message d'erreur #43

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Etats -> Liste des écritures
2. Clic sur l'entête de colonne "date" pour trier l'affichage par date
3. Un message d'erreur apparait :

UncaughtException on thread Thread[AWT-EventQueue-0,6,main]

Cannot format given Object as a Number
org.openconcerto.utils.ExceptionHandler: UncaughtException on thread 
Thread[AWT-EventQueue-0,6,main]
    at org.openconcerto.utils.ExceptionHandler.handle(ExceptionHandler.java:86)
    at org.openconcerto.utils.ExceptionHandler.handle(ExceptionHandler.java:90)
    at org.openconcerto.erp.config.Gestion$1.uncaughtException(Gestion.java:115)
    at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:981)
    at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:976)
    at apple.awt.CToolkit$EventQueueExceptionHandler.handle(CToolkit.java:81)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at java.awt.EventDispatchThread.handleException(EventDispatchThread.java:412)
    at java.awt.EventDispatchThread.processException(EventDispatchThread.java:318)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:312)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.lang.IllegalArgumentException: Cannot format given Object as a 
Number
    at java.text.DecimalFormat.format(DecimalFormat.java:486)
    at java.text.Format.format(Format.java:140)
    at org.openconcerto.utils.GestionDevise.currencyToString(GestionDevise.java:150)
    at org.openconcerto.erp.core.common.element.ComptaSQLConfElement$1.getTableCellRendererComponent(ComptaSQLConfElement.java:50)
    at org.openconcerto.erp.core.finance.accounting.ui.EcritureCheckedRenderer.getTableCellRendererComponent(EcritureCheckedRenderer.java:57)
    at org.openconcerto.ui.table.AlternateTableCellRenderer.getTableCellRendererComponent(AlternateTableCellRenderer.java:178)
    at javax.swing.JTable$AccessibleJTable.getAccessibleChild(JTable.java:7023)
    at javax.swing.JTable$AccessibleJTable.getAccessibleAt(JTable.java:7410)
    at javax.swing.JTable$AccessibleJTable.valueChanged(JTable.java:6923)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:167)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:147)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:194)
    at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:388)
    at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:398)
    at javax.swing.DefaultListSelectionModel.removeSelectionIntervalImpl(DefaultListSelectionModel.java:559)
    at javax.swing.DefaultListSelectionModel.clearSelection(DefaultListSelectionModel.java:403)
    at javax.swing.JTable.clearSelection(JTable.java:2080)
    at javax.swing.JTable.clearSelectionAndLeadAnchor(JTable.java:2088)
    at javax.swing.JTable.tableChanged(JTable.java:4433)
    at javax.swing.table.AbstractTableModel.fireTableChanged(AbstractTableModel.java:280)
    at javax.swing.table.AbstractTableModel.fireTableDataChanged(AbstractTableModel.java:182)
    at org.openconcerto.utils.TableSorter.sortingStatusChanged(TableSorter.java:217)
    at org.openconcerto.utils.TableSorter.sortingStatusChanged(TableSorter.java:211)
    at org.openconcerto.utils.TableSorter.setSortingStatus(TableSorter.java:232)
    at org.openconcerto.utils.TableSorter$MouseHandler.mouseClicked(TableSorter.java:483)
    at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:253)
    at java.awt.Component.processMouseEvent(Component.java:6385)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3275)
    at java.awt.Component.processEvent(Component.java:6147)
    at java.awt.Container.processEvent(Container.java:2083)
    at java.awt.Component.dispatchEventImpl(Component.java:4744)
    at java.awt.Container.dispatchEventImpl(Container.java:2141)
    at java.awt.Component.dispatchEvent(Component.java:4572)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4619)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4289)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4210)
    at java.awt.Container.dispatchEventImpl(Container.java:2127)
    at java.awt.Window.dispatchEventImpl(Window.java:2489)
    at java.awt.Component.dispatchEvent(Component.java:4572)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:704)
    at java.awt.EventQueue.access$400(EventQueue.java:82)
    at java.awt.EventQueue$2.run(EventQueue.java:663)
    at java.awt.EventQueue$2.run(EventQueue.java:661)
    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$3.run(EventQueue.java:677)
    at java.awt.EventQueue$3.run(EventQueue.java:675)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:674)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
    ... 5 more

What is the expected output? What do you see instead?
Pas de message d'erreur

What version of the product are you using? On what operating system?
openConcerto 1.3b2

Please provide any additional information below.

Original issue reported on code.google.com by ac2ssoft...@gmail.com on 11 Jan 2013 at 5:58

GoogleCodeExporter commented 8 years ago
Complément d'information :
OpenConcerto 1.3b2, MAC OS, Multiposte, BD Postgresql 8.4 sur serveur Ubuntu 
10.04

Original comment by ac2ssoft...@gmail.com on 11 Jan 2013 at 6:15

GoogleCodeExporter commented 8 years ago
Corrigé en 1.3b4

Original comment by guillaum...@gmail.com on 7 Sep 2013 at 11:10