Erreur dans l'historique client (menu Gestion)

Répondre
JacquesF
Messages : 121
Enregistré le : jeu. mars 14, 2019 10:44 am

dim. oct. 27, 2019 1:56 pm

Bonjour,
Quand un de mes clients a été facturé plusieurs fois (plusieurs factures visibles (et correctes) dans l'onglet "Articles facturés"), j'ai systématiquement l'erreur suivante lorsque je passe sur l'onglet "Ventes facture" :

Code : Tout sélectionner

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

TableSorter on ITableModel@233510014 for /SAISIE_VENTE_FACTURE/ couldn't get model index for view index 1 with 2 row(s) in our model
org.openconcerto.utils.ExceptionHandler: UncaughtException on thread Thread[AWT-EventQueue-0,6,main]
	at org.openconcerto.utils.ExceptionHandler.handle(ExceptionHandler.java:144)
	at org.openconcerto.utils.ExceptionHandler.handle(ExceptionHandler.java:151)
	at org.openconcerto.erp.config.Gestion$2.uncaughtException(Gestion.java:226)
	at java.lang.ThreadGroup.uncaughtException(Unknown Source)
	at java.lang.ThreadGroup.uncaughtException(Unknown Source)
	at java.awt.EventDispatchThread.processException(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.IllegalStateException: TableSorter on ITableModel@233510014 for /SAISIE_VENTE_FACTURE/ couldn't get model index for view index 1 with 2 row(s) in our model
	at org.openconcerto.utils.TableSorter.modelIndex(TableSorter.java:354)
	at org.openconcerto.sql.view.list.TableListStateModel.idFromIndex(TableListStateModel.java:53)
	at org.openconcerto.ui.list.selection.ListSelectionState.idFromIndex(ListSelectionState.java:227)
	at org.openconcerto.sql.view.list.IListe.idFromIndex(IListe.java:1015)
	at org.openconcerto.erp.core.reports.history.ui.ListeHistoriquePanel.getListId(ListeHistoriquePanel.java:589)
	at org.openconcerto.erp.core.reports.history.ui.HistoriqueClientFrame$5.tableChanged(HistoriqueClientFrame.java:102)
	at javax.swing.table.AbstractTableModel.fireTableChanged(Unknown Source)
	at org.openconcerto.sql.view.list.ITableModel.fireTableChanged(ITableModel.java:391)
	at javax.swing.table.AbstractTableModel.fireTableDataChanged(Unknown Source)
	at org.openconcerto.sql.view.list.ITableModel.setList(ITableModel.java:320)
	at org.openconcerto.sql.view.list.ListAccess.setList(ListAccess.java:36)
	at org.openconcerto.sql.view.list.search.SearchAll$1.run(SearchAll.java:39)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$500(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	... 6 more
Caused by: java.lang.ArrayIndexOutOfBoundsException
Bien entendu, la valeur des lignes varie selon le nombre de factures présentes dans le message "couldn't get model index for view index 1 with 2 row(s)"

Pas certain d'avoir utilisé cet affichage en 1.6.2 donc impossible de dire si c'est une régression, une erreur dans la base (mais on ne dirait pas vu le message).
Merci si je peux avoir quelques précisions.
Ceci dit, l'application continue de fonctionner si on choisit de fermer la fenêtre d'erreur.

Cordialement
Jacques
OpenConcerto v1.7.0
Configuration multiposte - Serveur Postgresql v11.11 sous Linux (Debian 10.9)
Clients Linux (Mageia & Kubuntu) & Windows (7 Pro et 10 Pro)
Avatar du membre
guillaume
Messages : 2429
Enregistré le : ven. févr. 11, 2011 7:15 pm

lun. oct. 28, 2019 9:40 pm

Bonjour,

Effectivement, voici le premier bug avéré de la 1.6.3. :(
Correctif en cours..

Cordialement,
Directeur technique d'OpenConcerto qui dans son temps libre s'occupe du forum.
Pour une assistance pro, nous sommes joignables à ILM Informatique contre quelques jetons.
Pensez aussi à lire le manuel !
JacquesF
Messages : 121
Enregistré le : jeu. mars 14, 2019 10:44 am

mar. oct. 29, 2019 9:06 am

La chasse aux bugs a toujours été une occupation de longue haleine ;)

Merci pour cet excellent produit en tout cas
Jacques
OpenConcerto v1.7.0
Configuration multiposte - Serveur Postgresql v11.11 sous Linux (Debian 10.9)
Clients Linux (Mageia & Kubuntu) & Windows (7 Pro et 10 Pro)
Morinus07
Messages : 4
Enregistré le : sam. sept. 30, 2017 5:24 pm

jeu. oct. 31, 2019 4:27 pm

Bonsoir, j'ai une petite erreur quand je convertir mes devis accéptés en facture:
est-ce un bug? je ne sais pas, si quelqu'un peu m'éclairer la-dessus, merci.

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

No convertor to class java.lang.String from class java.math.BigDecimal
org.openconcerto.utils.ExceptionHandler: UncaughtException on thread Thread[AWT-EventQueue-0,6,main]
at org.openconcerto.utils.ExceptionHandler.handle(ExceptionHandler.java:144)
at org.openconcerto.utils.ExceptionHandler.handle(ExceptionHandler.java:151)
at org.openconcerto.erp.config.Gestion$2.uncaughtException(Gestion.java:226)
at java.lang.ThreadGroup.uncaughtException(Unknown Source)
at java.lang.ThreadGroup.uncaughtException(Unknown Source)
at java.awt.EventDispatchThread.processException(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: No convertor to class java.lang.String from class java.math.BigDecimal
at org.openconcerto.sql.model.SQLRowValues.convert(SQLRowValues.java:1012)
at org.openconcerto.sql.model.SQLRowValues._put(SQLRowValues.java:1035)
at org.openconcerto.sql.model.SQLRowValues.put(SQLRowValues.java:996)
at org.openconcerto.sql.model.SQLRowValues.put(SQLRowValues.java:992)
at org.openconcerto.sql.model.SQLRowValues.put(SQLRowValues.java:988)
at org.openconcerto.sql.model.SQLInjector.merge(SQLInjector.java:166)
at org.openconcerto.sql.model.SQLInjector.merge(SQLInjector.java:160)
at org.openconcerto.erp.injector.DevisFactureSQLInjector.merge(DevisFactureSQLInjector.java:77)
at org.openconcerto.sql.model.SQLInjector.createRowValuesFrom(SQLInjector.java:103)
at org.openconcerto.erp.core.common.component.TransfertBaseSQLComponent.importFrom(TransfertBaseSQLComponent.java:102)
at org.openconcerto.erp.core.common.component.TransfertBaseSQLComponent.openTransfertFrame(TransfertBaseSQLComponent.java:200)
at org.openconcerto.erp.core.common.component.TransfertBaseSQLComponent.openTransfertFrame(TransfertBaseSQLComponent.java:147)
at org.openconcerto.erp.core.sales.quote.element.DevisSQLElement$11.actionPerformed(DevisSQLElement.java:386)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
... 6 more
Répondre