Page 1 sur 1

Erreur accès "sociétés"

Posté : mar. sept. 20, 2016 10:59 am
par caubey
Bonjour,

J'ai l'erreur suivante lorsque je souhaite accéder aux détails d'une société :

Code : Tout sélectionner

Erreur d'initialisation

unknown field ORG_PROTECTION_SOCIAL_ID in SOCIETE_COMMON. The table SOCIETE_COMMON contains the followins fields: [ID, DATABASE_NAME, NOM, NUM_SIRET, NUM_NII, NUM_APE, ID_EXERCICE_COMMON, NUM_TEL, NUM_FAX, MAIL, ID_ADRESSE_COMMON, TYPE, ORDRE, ARCHIVE, NUMERO_URSSAF, RCS, CAPITAL, ID_DEVISE]
org.openconcerto.utils.ExceptionHandler: Erreur d'initialisation
	at org.openconcerto.utils.ExceptionHandler.handle(ExceptionHandler.java:121)
	at org.openconcerto.utils.ExceptionHandler.handle(ExceptionHandler.java:125)
	at org.openconcerto.sql.view.EditPanel.<init>(EditPanel.java:212)
	at org.openconcerto.sql.view.EditPanel.<init>(EditPanel.java:142)
	at org.openconcerto.sql.view.EditFrame.<init>(EditFrame.java:97)
	at org.openconcerto.sql.view.EditFrame.<init>(EditFrame.java:79)
	at org.openconcerto.sql.view.ListeAddPanel.getEditFrame(ListeAddPanel.java:82)
	at org.openconcerto.sql.view.ListeAddPanel.handleAction(ListeAddPanel.java:62)
	at org.openconcerto.sql.view.IListPanel.actionPerformed(IListPanel.java:459)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
	at java.awt.Component.processMouseEvent(Component.java:6533)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
	at java.awt.Component.processEvent(Component.java:6298)
	at java.awt.Container.processEvent(Container.java:2236)
	at java.awt.Component.dispatchEventImpl(Component.java:4889)
	at java.awt.Container.dispatchEventImpl(Container.java:2294)
	at java.awt.Component.dispatchEvent(Component.java:4711)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
	at java.awt.Container.dispatchEventImpl(Container.java:2280)
	at java.awt.Window.dispatchEventImpl(Window.java:2746)
	at java.awt.Component.dispatchEvent(Component.java:4711)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.awt.EventQueue$4.run(EventQueue.java:731)
	at java.awt.EventQueue$4.run(EventQueue.java:729)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.lang.IllegalArgumentException: unknown field ORG_PROTECTION_SOCIAL_ID in SOCIETE_COMMON. The table SOCIETE_COMMON contains the followins fields: [ID, DATABASE_NAME, NOM, NUM_SIRET, NUM_NII, NUM_APE, ID_EXERCICE_COMMON, NUM_TEL, NUM_FAX, MAIL, ID_ADRESSE_COMMON, TYPE, ORDRE, ARCHIVE, NUMERO_URSSAF, RCS, CAPITAL, ID_DEVISE]
	at org.openconcerto.sql.model.SQLTable.getField(SQLTable.java:917)
	at org.openconcerto.sql.element.BaseSQLComponent.getField(BaseSQLComponent.java:177)
	at org.openconcerto.sql.element.BaseSQLComponent.addView(BaseSQLComponent.java:277)
	at org.openconcerto.sql.element.BaseSQLComponent.addView(BaseSQLComponent.java:269)
	at org.openconcerto.erp.core.common.component.SocieteCommonSQLElement$1.addViews(SocieteCommonSQLElement.java:237)
	at org.openconcerto.sql.element.SQLComponent.uiInit(SQLComponent.java:209)
	at org.openconcerto.sql.view.EditPanel.<init>(EditPanel.java:205)
	... 42 more
Je suis sous mac Os 10.11.6 avec Openconcerto 1.4.2
Je penche vraiment sur un gros bug de java sur ma machine (erreurs d'import/export, modules qui n'apparaissent pas ...). Pour info, OpenConcerto m'indique cette version : Version 1.8.0_101-b13

Re: Erreur accès "sociétés"

Posté : mar. sept. 20, 2016 12:10 pm
par olivierGBS
Bonjour,

est ce que vous avez mis à jour la base de donnée via l'outil de configuration d'openconcerto ?

Bien cordialement,

Re: Erreur accès "sociétés"

Posté : mar. sept. 20, 2016 1:40 pm
par caubey
Bonjour OlivierGBS

Merci pour votre réponse. Oui je l'ai fait plusieurs fois, et malheureusement j'ai un autre soucis, je ne peux plus accéder à ma base clients :

Code : Tout sélectionner

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

unknown field OBSOLETE in CLIENT. The table CLIENT contains the followins fields: [ID, FORME_JURIDIQUE, NOM, CODE, TEL, MAIL, FAX, NUMERO_TVA, ID_ADRESSE, ARCHIVE, ORDRE, RESPONSABLE, ID_ADRESSE_L, INFOS, TEL_P, RESPONSABLE_TECH, TEL_P_TECH, TEL_TECH, MAIL_TECH, RESPONSABLE_COM, TEL_P_COM, MAIL_COM, TEL_COM, ID_MODE_REGLEMENT, ID_ADRESSE_F, FAX_TECH, FAX_COM, ID_COMPTE_PCE, SIRET, RIB, MARCHE_PUBLIC, MARCHE_PRIVE, AFFACTURAGE, MAX_FACTURE, COMPTANT, COMPTE_CLIENT_AUTO, MODIFICATION_DATE, ID_USER_COMMON_CREATE, ID_USER_COMMON_MODIFY, CREATION_DATE, ID_TARIF, ID_PAYS, ID_LANGUE, ID_DEVISE, BLOQUE_LIVRAISON, BLOQUE, ID_COMPTE_PCE_SERVICE, ID_COMPTE_PCE_PRODUIT, ENCOURS_MAX, CATEGORIES, NOTE_FINANCIERE, CENTRE_GESTION, METHODE_RELANCE, SITE_INTERNET, GROUPE, ID_COMMERCIAL, TIMBRE_FISCAL]
org.openconcerto.utils.ExceptionHandler: UncaughtException on thread Thread[AWT-EventQueue-0,6,main]
	at org.openconcerto.utils.ExceptionHandler.handle(ExceptionHandler.java:121)
	at org.openconcerto.utils.ExceptionHandler.handle(ExceptionHandler.java:125)
	at org.openconcerto.erp.config.Gestion$2.uncaughtException(Gestion.java:195)
	at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1057)
	at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1052)
	at java.awt.EventDispatchThread.processException(EventDispatchThread.java:223)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:215)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.lang.IllegalArgumentException: unknown field OBSOLETE in CLIENT. The table CLIENT contains the followins fields: [ID, FORME_JURIDIQUE, NOM, CODE, TEL, MAIL, FAX, NUMERO_TVA, ID_ADRESSE, ARCHIVE, ORDRE, RESPONSABLE, ID_ADRESSE_L, INFOS, TEL_P, RESPONSABLE_TECH, TEL_P_TECH, TEL_TECH, MAIL_TECH, RESPONSABLE_COM, TEL_P_COM, MAIL_COM, TEL_COM, ID_MODE_REGLEMENT, ID_ADRESSE_F, FAX_TECH, FAX_COM, ID_COMPTE_PCE, SIRET, RIB, MARCHE_PUBLIC, MARCHE_PRIVE, AFFACTURAGE, MAX_FACTURE, COMPTANT, COMPTE_CLIENT_AUTO, MODIFICATION_DATE, ID_USER_COMMON_CREATE, ID_USER_COMMON_MODIFY, CREATION_DATE, ID_TARIF, ID_PAYS, ID_LANGUE, ID_DEVISE, BLOQUE_LIVRAISON, BLOQUE, ID_COMPTE_PCE_SERVICE, ID_COMPTE_PCE_PRODUIT, ENCOURS_MAX, CATEGORIES, NOTE_FINANCIERE, CENTRE_GESTION, METHODE_RELANCE, SITE_INTERNET, GROUPE, ID_COMMERCIAL, TIMBRE_FISCAL]
	at org.openconcerto.sql.model.SQLTable.getField(SQLTable.java:917)
	at org.openconcerto.sql.request.ListSQLRequest.<init>(ListSQLRequest.java:57)
	at org.openconcerto.sql.element.SQLElement.instantiateListRequest(SQLElement.java:1645)
	at org.openconcerto.sql.element.SQLElement.createListRequest(SQLElement.java:1628)
	at org.openconcerto.sql.element.SQLElement.createListRequest(SQLElement.java:1615)
	at org.openconcerto.sql.element.SQLElement.createListRequest(SQLElement.java:1611)
	at org.openconcerto.sql.element.SQLElement.createTableSource(SQLElement.java:1714)
	at org.openconcerto.sql.element.SQLElement.createAndInitTableSource(SQLElement.java:1689)
	at org.openconcerto.sql.element.SQLElement.getTableSource(SQLElement.java:1675)
	at org.openconcerto.erp.core.customerrelationship.customer.action.ListeDesClientsAction.getTableSource(ListeDesClientsAction.java:47)
	at org.openconcerto.erp.core.customerrelationship.customer.action.ListeDesClientsAction.createFrame(ListeDesClientsAction.java:54)
	at org.openconcerto.erp.action.CreateFrameAbstractAction.actionPerformed(CreateFrameAbstractAction.java:42)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
	at com.apple.laf.ScreenMenuItem.actionPerformed(ScreenMenuItem.java:125)
	at java.awt.MenuItem.processActionEvent(MenuItem.java:669)
	at java.awt.MenuItem.processEvent(MenuItem.java:628)
	at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:351)
	at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:339)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:761)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.awt.EventQueue$4.run(EventQueue.java:731)
	at java.awt.EventQueue$4.run(EventQueue.java:729)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	... 5 more

Re: Erreur accès "sociétés"

Posté : mar. sept. 20, 2016 5:50 pm
par guillaume
Bonjour,

OpenConcerto se plaint de ne pas trouver le champs "OBSOLETE" dans la table "CLIENT" ce qui vous empeche d'accéder à vos clients.

La raison est simple, vous utilisez OpenConcerto 1.4.2 et votre base de données n'est pas à jour.
Mettez à jour LA BASE DE DONNEES avec la dernière version!

Cordialement,

Re: Erreur accès "sociétés"

Posté : ven. sept. 23, 2016 12:23 pm
par caubey
Bonjour,

J'ai finalement réussi à relancer le logiciel, en passant par un autre ordinateur ; par contre j'ai toujours mon soucis d'importation.

Code : Tout sélectionner

Erreur pendant l'importation

Index: 6, Size: 6
org.openconcerto.utils.ExceptionHandler: Erreur pendant l'importation
	at org.openconcerto.utils.ExceptionHandler.handle(ExceptionHandler.java:121)
	at org.openconcerto.utils.ExceptionHandler.handle(ExceptionHandler.java:125)
	at org.openconcerto.erp.core.finance.accounting.ui.ImportEcriturePanel$1$2$1.handle(ImportEcriturePanel.java:146)
	at org.openconcerto.sql.utils.SQLUtils$2.handle(SQLUtils.java:147)
	at org.openconcerto.sql.model.ConnectionHandler.compute(ConnectionHandler.java:59)
	at org.openconcerto.sql.model.SQLDataSource.useConnection(SQLDataSource.java:873)
	at org.openconcerto.sql.model.SQLDataSource.useConnection(SQLDataSource.java:837)
	at org.openconcerto.sql.utils.SQLUtils.executeAtomic(SQLUtils.java:125)
	at org.openconcerto.sql.utils.SQLUtils.executeAtomic(SQLUtils.java:97)
	at org.openconcerto.erp.core.finance.accounting.ui.ImportEcriturePanel$1$2.run(ImportEcriturePanel.java:135)
Caused by: java.lang.IndexOutOfBoundsException: Index: 6, Size: 6
	at java.util.ArrayList.rangeCheck(ArrayList.java:653)
	at java.util.ArrayList.get(ArrayList.java:429)
	at org.openconcerto.erp.importer.ArrayTableModel.getValueAt(ArrayTableModel.java:95)
	at org.openconcerto.erp.core.finance.accounting.ui.ImportEcriturePanel.importData(ImportEcriturePanel.java:206)
	at org.openconcerto.erp.core.finance.accounting.ui.ImportEcriturePanel$1$2$1.handle(ImportEcriturePanel.java:141)
	... 7 more

Re: Erreur accès "sociétés"

Posté : ven. sept. 23, 2016 2:33 pm
par guillaume
Bonjour,

Vous n'avez pas respecté le format de fichier... il manque une colonne...

Cordialement,