Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1749 ProjectViewer do not support broken config

closed-fixed
Alan Ezust
8
2013-11-14
2013-11-13
No

Hi, for some unknown reason (probably a problem on my disk), the pv.xml was corrupted giving that exception.
ProjectViewer was unable to recover itself.
The reason is that in ProjectManager at line 193 when the parsing fails, ProjectViewer throws a RuntimeException. I think it should log the error but not throw that exception

11:08:14 [AWT-EventQueue-0] [error] ProjectManager: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 2; Fin prématurée du fichier.
11:08:14 [AWT-EventQueue-0] [error] ProjectManager: at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:198)
11:08:14 [AWT-EventQueue-0] [error] ProjectManager: at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177)
11:08:14 [AWT-EventQueue-0] [error] ProjectManager: at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:441)
11:08:14 [AWT-EventQueue-0] [error] ProjectManager: at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:368)
11:08:14 [AWT-EventQueue-0] [error] ProjectManager: at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1436)
11:08:14 [AWT-EventQueue-0] [error] ProjectManager: at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1019)
11:08:14 [AWT-EventQueue-0] [error] ProjectManager: at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
11:08:14 [AWT-EventQueue-0] [error] ProjectManager: at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:117)
11:08:14 [AWT-EventQueue-0] [error] ProjectManager: at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
11:08:14 [AWT-EventQueue-0] [error] ProjectManager: at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
11:08:14 [AWT-EventQueue-0] [error] ProjectManager: at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
11:08:14 [AWT-EventQueue-0] [error] ProjectManager: at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
11:08:14 [AWT-EventQueue-0] [error] ProjectManager: at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
11:08:14 [AWT-EventQueue-0] [error] ProjectManager: at projectviewer.ProjectManager.loadConfig(ProjectManager.java:188)
11:08:14 [AWT-EventQueue-0] [error] ProjectManager: at projectviewer.ProjectManager.<init>(ProjectManager.java:132)
11:08:14 [AWT-EventQueue-0] [error] ProjectManager: at projectviewer.ProjectManager.getInstance(ProjectManager.java:103)

Discussion

  • Alan Ezust
    Alan Ezust
    2013-11-14

    fixed in c77f6af54733866230422b2dd30ac6c827c36de2

     
  • Alan Ezust
    Alan Ezust
    2013-11-14

    • assigned_to: nobody --> ezust
    • status: open --> closed-fixed