syrotas / openconcerto

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

Commande Client - Facture intermediaire ne génère pas de document #83

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Créer une commande client (Gestion --> Liste des commandes --> Ajouter)
2. Sélectionner la commande puis Créer une facture intermédiaire (menu 
contextuel)
3. Saisir 'Montant à facturer' puis Ajouter
4. Message d'erreur : "Impossible de trouver le modèle Vente Facture, le 
modèle par défaut sera utilisé" et 2 fenêtres s'ouvrent avec des messages 
d'erreur plus détaillés (voir message #1 et #2 ci-dessous)
5. La facture est bien créé (visible dans Gestion --> Liste des factures)
   Les écritures sont également crées (Etat --> Liste des Ecritures)
   Mais impossible de générer le document facture
6. Meme problème avec la fonction 'Facturer le solde'

Dans Préféŕences de l'ordinateur, emplacement des modèles, j'ai indiqué le 
répertoire où se trouvent tous les modèles par défaut : 
./Configuration/Template/Default

What is the expected output? What do you see instead?
Générer le document Facture et ne pas avoir de message d'erreur

What version of the product are you using? On what operating system?
OpenConcerto 1.3b5; Client multiposte Linux Mint 15; DB Postgresql 8.4 sur 
serveur Ubuntu 10.04

Please provide any additional information below.

Message #1
Erreur lors de la création du fichier Facture_2O13011
org.openconcerto.utils.ExceptionHandler: Erreur lors de la création du fichier 
Facture_2O13011
    at org.openconcerto.utils.ExceptionHandler.handle(ExceptionHandler.java:99)
    at org.openconcerto.utils.ExceptionHandler.handle(ExceptionHandler.java:103)
    at org.openconcerto.erp.generationDoc.OOgenerationXML$3.run(OOgenerationXML.java:188)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
    at java.awt.EventQueue.access$200(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:694)
    at java.awt.EventQueue$3.run(EventQueue.java:692)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:154)
    at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:182)
    at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:221)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:219)
    at java.awt.Dialog.show(Dialog.java:1082)
    at javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:870)
    at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:667)
    at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:638)
    at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:609)
    at org.openconcerto.erp.generationDoc.AbstractSheetXml$1$1.run(AbstractSheetXml.java:56)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
    at java.awt.EventQueue.access$200(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:694)
    at java.awt.EventQueue$3.run(EventQueue.java:692)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:154)
    at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:182)
    at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:221)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:219)
    at java.awt.Dialog.show(Dialog.java:1082)
    at java.awt.Component.show(Component.java:1651)
    at java.awt.Component.setVisible(Component.java:1603)
    at java.awt.Window.setVisible(Window.java:1014)
    at java.awt.Dialog.setVisible(Dialog.java:1005)
    at org.openconcerto.utils.ExceptionHandler.showMsg(ExceptionHandler.java:403)
    at org.openconcerto.utils.ExceptionHandler.display(ExceptionHandler.java:150)
    at org.openconcerto.utils.ExceptionHandler.<init>(ExceptionHandler.java:432)
    at org.openconcerto.utils.ExceptionHandler.handle(ExceptionHandler.java:99)
    at org.openconcerto.utils.ExceptionHandler.handle(ExceptionHandler.java:103)
    at org.openconcerto.utils.ExceptionHandler.handle(ExceptionHandler.java:107)
    at org.openconcerto.erp.generationDoc.SheetXml.showPrintAndExport(SheetXml.java:126)
    at org.openconcerto.erp.generationDoc.SheetXml.showPrintAndExport(SheetXml.java:115)
    at org.openconcerto.erp.core.sales.account.VenteFactureSituationSQLComponent.insert(VenteFactureSituationSQLComponent.java:250)
    at org.openconcerto.sql.element.BaseSQLComponent.insert(BaseSQLComponent.java:621)
    at org.openconcerto.sql.view.EditPanel.ajouter(EditPanel.java:468)
    at org.openconcerto.sql.view.EditPanel.actionPerformed(EditPanel.java:432)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
    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.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
    at java.awt.Component.processMouseEvent(Component.java:6505)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3312)
    at java.awt.Component.processEvent(Component.java:6270)
    at java.awt.Container.processEvent(Container.java:2229)
    at java.awt.Component.dispatchEventImpl(Component.java:4861)
    at java.awt.Container.dispatchEventImpl(Container.java:2287)
    at java.awt.Component.dispatchEvent(Component.java:4687)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
    at java.awt.Container.dispatchEventImpl(Container.java:2273)
    at java.awt.Window.dispatchEventImpl(Window.java:2719)
    at java.awt.Component.dispatchEvent(Component.java:4687)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
    at java.awt.EventQueue.access$200(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:694)
    at java.awt.EventQueue$3.run(EventQueue.java:692)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
    at java.awt.EventQueue$4.run(EventQueue.java:708)
    at java.awt.EventQueue$4.run(EventQueue.java:706)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Caused by: java.net.MalformedURLException
    at java.net.URL.<init>(URL.java:619)
    at java.net.URL.<init>(URL.java:482)
    at java.net.URL.<init>(URL.java:431)
    at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:606)
    at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:189)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:799)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1210)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:568)
    at org.jdom.input.SAXBuilder.build(SAXBuilder.java:518)
    at org.jdom.input.SAXBuilder.build(SAXBuilder.java:865)
    at org.openconcerto.erp.generationDoc.OOgenerationXML.createDocument(OOgenerationXML.java:141)
    at org.openconcerto.erp.generationDoc.AbstractSheetXml$1.call(AbstractSheetXml.java:62)
    at org.openconcerto.erp.generationDoc.AbstractSheetXml$1.call(AbstractSheetXml.java:1)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:724)
Caused by: java.lang.NullPointerException
    at java.net.URL.<init>(URL.java:524)
    ... 19 more

Message #2
Fichier généré manquant: /home/ac2s-software/OpenConcerto/AC2S 
Software-49/Factures/2013/Facture_2O13011.ods
org.openconcerto.utils.ExceptionHandler: Fichier généré manquant: 
/home/ac2s-software/OpenConcerto/AC2S 
Software-49/Factures/2013/Facture_2O13011.ods
    at org.openconcerto.utils.ExceptionHandler.handle(ExceptionHandler.java:99)
    at org.openconcerto.utils.ExceptionHandler.handle(ExceptionHandler.java:103)
    at org.openconcerto.utils.ExceptionHandler.handle(ExceptionHandler.java:107)
    at org.openconcerto.erp.generationDoc.SheetXml.showPrintAndExport(SheetXml.java:126)
    at org.openconcerto.erp.generationDoc.SheetXml.showPrintAndExport(SheetXml.java:115)
    at org.openconcerto.erp.core.sales.account.VenteFactureSituationSQLComponent.insert(VenteFactureSituationSQLComponent.java:250)
    at org.openconcerto.sql.element.BaseSQLComponent.insert(BaseSQLComponent.java:621)
    at org.openconcerto.sql.view.EditPanel.ajouter(EditPanel.java:468)
    at org.openconcerto.sql.view.EditPanel.actionPerformed(EditPanel.java:432)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
    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.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
    at java.awt.Component.processMouseEvent(Component.java:6505)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3312)
    at java.awt.Component.processEvent(Component.java:6270)
    at java.awt.Container.processEvent(Container.java:2229)
    at java.awt.Component.dispatchEventImpl(Component.java:4861)
    at java.awt.Container.dispatchEventImpl(Container.java:2287)
    at java.awt.Component.dispatchEvent(Component.java:4687)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
    at java.awt.Container.dispatchEventImpl(Container.java:2273)
    at java.awt.Window.dispatchEventImpl(Window.java:2719)
    at java.awt.Component.dispatchEvent(Component.java:4687)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
    at java.awt.EventQueue.access$200(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:694)
    at java.awt.EventQueue$3.run(EventQueue.java:692)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
    at java.awt.EventQueue$4.run(EventQueue.java:708)
    at java.awt.EventQueue$4.run(EventQueue.java:706)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

Original issue reported on code.google.com by ac2ssoft...@gmail.com on 28 Dec 2013 at 6:05

GoogleCodeExporter commented 9 years ago
Il semble que ce soit lié à l'absence du modèle VenteFactureSituation.xml 
dans le répertoire de modèle par défaut de l'installation v1.3.

 No SQLInjector defined for /COMMANDE_CLIENT_ELEMENT/ , /SAISIE_VENTE_FACTURE_ELEMENT/. SQLInjector created automatically.
CommandeFactureClientSQLInjector.merge():COMMANDE_CLIENT_ELEMENT[16]
ModeDeReglementNGSQLComponent.setComponentModeEnabled() 2
SQLInjector.commitTransfert() : transfert from COMMANDE_CLIENT to 
SAISIE_VENTE_FACTURE
********* init GeneRation
Error: no file:C:\Program Files 
(x86)\OpenConcerto\Configuration\Template\Default\VenteFactureSituation.xml
java.io.FileNotFoundException: 
Configuration\Template\Default\VenteFactureSituation.xml (Le fichier spécifié 
est introuvable)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(Unknown Source)
    at org.openconcerto.erp.generationDoc.AbstractLocalTemplateProvider.getInputStream(AbstractLocalTemplateProvider.java:37)
    at org.openconcerto.erp.generationDoc.AbstractLocalTemplateProvider.getTemplateConfiguration(AbstractLocalTemplateProvider.java:87)
    at org.openconcerto.erp.generationDoc.TemplateManager.getTemplateConfiguration(TemplateManager.java:124)
    at org.openconcerto.erp.generationDoc.OOgenerationXML.needAnnexe(OOgenerationXML.java:878)
    at org.openconcerto.erp.generationDoc.OOgenerationXML.createDocument(OOgenerationXML.java:128)
    at org.openconcerto.erp.generationDoc.AbstractSheetXml$1.call(AbstractSheetXml.java:62)
    at org.openconcerto.erp.generationDoc.AbstractSheetXml$1.call(AbstractSheetXml.java:1)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

Original comment by brieuc.m...@gmail.com on 12 Mar 2014 at 3:22

GoogleCodeExporter commented 9 years ago
les fichiers sont sur 
http://code.google.com/p/openconcerto/source/browse/#svn%2Ftrunk%2FOpenConcerto%
2FConfiguration%2FTemplate%2FDefault

Original comment by brieuc.m...@gmail.com on 13 Mar 2014 at 11:39