Tomcat: 4.1.29
Java: j2sdk1.4.2_02
Server: SunOS 5.8 Generic_108528-14 sun4u sparc SUNW,Ultra-5_10
We've been using SourceJammer for 1-2 years now, generally without complaint. Recently, SourceJammer began refusing to read one project folder from our archive (all other projects read fine). The error message is:
Unable to access File information. org.xml.sax.SAXParseException: Premature end of file.
The following stack traces were produced in the logs:
org.sourcejammer.util.ConfigurationException: org.xml.sax.SAXParseException: Premature end of file. Premature end of file. org
.xml.sax.SAXParseException: Premature end of file. Premature end of file. org.sourcejammer.project.model.FileAccessException: org.xml.
sax.SAXParseException: Premature end of file. Premature end of file. org.xml.sax.SAXParseException: Premature end of file.
at org.sourcejammer.project.model.filesys.ProjectNodeDeserializer.deserialize(Unknown Source)
at org.sourcejammer.project.model.filesys.XMLUtilFS.xmlToProject(Unknown Source)
at org.sourcejammer.project.model.filesys.Util.readProjectNode(Unknown Source)
at org.sourcejammer.project.model.filesys.NodeLibraryFS.getProjectNode(Unknown Source)
at org.sourcejammer.project.controller.ProjectController.projectNodeToProject(Unknown Source)
at org.sourcejammer.project.controller.ProjectController.getProject(Unknown Source)
at org.sourcejammer.project.view.MasterControlProgram.getProjectInfo(Unknown Source)
org.sourcejammer.project.model.FileAccessException: org.xml.sax.SAXParseException: Premature end of file. Premature end of fil
e. org.xml.sax.SAXParseException: Premature end of file.
at org.sourcejammer.project.model.filesys.NodeLibraryFS.getProjectChildName(Unknown Source)
at org.sourcejammer.project.model.filesys.ProjectNodeDeserializer.setChildren(Unknown Source)
at org.sourcejammer.project.model.filesys.ProjectNodeDeserializer.deserialize(Unknown Source)
at org.sourcejammer.project.model.filesys.XMLUtilFS.xmlToProject(Unknown Source)
at org.sourcejammer.project.model.filesys.Util.readProjectNode(Unknown Source)
at org.sourcejammer.project.model.filesys.NodeLibraryFS.getProjectNode(Unknown Source)
at org.sourcejammer.project.controller.ProjectController.projectNodeToProject(Unknown Source)
at org.sourcejammer.project.controller.ProjectController.getProject(Unknown Source)
at org.sourcejammer.project.view.MasterControlProgram.getProjectInfo(Unknown Source)
org.xml.sax.SAXParseException: Premature end of file.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at org.sourcejammer.xml.XMLUtil.getXMLDoc(Unknown Source)
at org.sourcejammer.xml.XMLUtil.getXMLDoc(Unknown Source)
at org.sourcejammer.project.model.filesys.Util.readXMLDocFromFileSys(Unknown Source)
at org.sourcejammer.project.model.filesys.Util.readNodeName(Unknown Source)
at org.sourcejammer.project.model.filesys.NodeLibraryFS.getProjectChildName(Unknown Source)
at org.sourcejammer.project.model.filesys.ProjectNodeDeserializer.setChildren(Unknown Source)
at org.sourcejammer.project.model.filesys.ProjectNodeDeserializer.deserialize(Unknown Source)
at org.sourcejammer.project.model.filesys.XMLUtilFS.xmlToProject(Unknown Source)
at org.sourcejammer.project.model.filesys.Util.readProjectNode(Unknown Source)
at org.sourcejammer.project.model.filesys.NodeLibraryFS.getProjectNode(Unknown Source)
at org.sourcejammer.project.controller.ProjectController.projectNodeToProject(Unknown Source)
at org.sourcejammer.project.controller.ProjectController.getProject(Unknown Source)
at org.sourcejammer.project.view.MasterControlProgram.getProjectInfo(Unknown Source)
I attempted to edit the parent file for the project folder (under the archive project file)--but this caused SourceJammer to lose track of _all_ projects in the archive (a quick restore of the original file brought the projects back).
Is there any simple way to track down which file is causing the problems? And is there any simple/safe way to fix the file once we identify the problem?
David Rickard
Software Engineer
TechBooks/GTS
Your Single Source Solution!
Los Angeles CA * York, PA * Boston,MA * New Delhi, India
Visit us on the World Wide Web http://www.techbooks.com
[EMAIL PROTECTED]
5650 Jillson St., Los Angeles, CA 90040
(323) 888-8889 x331
(323) 888-1849 (Fax)