This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 145195 - file parsing exceptions don't indicate the file
Summary: file parsing exceptions don't indicate the file
Status: RESOLVED WORKSFORME
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-26 17:55 UTC by tbrunhoff
Modified: 2009-03-31 14:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
~/.netbeans/dev/var/log/messages.log (57.42 KB, text/plain)
2008-08-26 21:48 UTC, tbrunhoff
Details
messages.log from fresh user dir. (56.96 KB, text/plain)
2008-08-27 16:55 UTC, tbrunhoff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tbrunhoff 2008-08-26 17:55:36 UTC
... or line number.  At startup, these days, I get the exception below that suggests there is an XML parsing error, but
there appears to be no way to discover which file, or even which line number caused the parse error. So the issue is not
the exception or what caused it, but rather that the dialog that shows the exception does not include nearly enough
information for the end user to fix the problem.

org.xml.sax.SAXParseException: Premature end of file.
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
	at org.netbeans.core.xml.FileEntityResolver$DTDParser.parse(FileEntityResolver.java:430)
Caused: java.io.IOException: Parsing
MultiFileObject@4eaabc2d[Services/org-netbeans-modules-db-explorer-DatabaseOption.settings]: Premature end of file.
	at org.netbeans.core.xml.FileEntityResolver$DTDParser.parse(FileEntityResolver.java:443)
	at org.netbeans.core.xml.FileEntityResolver.getEnvForIDO(FileEntityResolver.java:171)
	at org.netbeans.core.xml.FileEntityResolver.getEnvironment(FileEntityResolver.java:164)
	at org.openide.loaders.Environment.findForOne(Environment.java:132)
	at org.openide.loaders.InstanceDataObject.getCookiesLookup(InstanceDataObject.java:635)
	at org.openide.loaders.InstanceDataObject.getCookiesLookup(InstanceDataObject.java:626)
	at org.openide.loaders.InstanceDataObject.getCookieFromEP(InstanceDataObject.java:557)
	at org.openide.loaders.InstanceDataObject.getCookie(InstanceDataObject.java:579)
	at org.openide.loaders.FolderInstance.acceptDataObject(FolderInstance.java:394)
	at org.openide.loaders.FolderInstance.defaultProcessObjects(FolderInstance.java:681)
	at org.openide.loaders.FolderInstance.access$000(FolderInstance.java:99)
	at org.openide.loaders.FolderInstance$2.run(FolderInstance.java:655)
	at org.openide.loaders.FolderLookup.postCreationTask(FolderLookup.java:257)
	at org.openide.loaders.FolderInstance.processObjects(FolderInstance.java:653)
	at org.openide.loaders.FolderInstance$Listener.finished(FolderInstance.java:934)
	at org.openide.loaders.FolderList.createBoth(FolderList.java:866)
	at org.openide.loaders.FolderList.getObjects(FolderList.java:555)
	at org.openide.loaders.FolderList.access$300(FolderList.java:74)
	at org.openide.loaders.FolderList$ListTask.computeResult(FolderList.java:948)
	at org.openide.loaders.FolderList$ListTask.run(FolderList.java:926)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
Comment 1 Peter Pis 2008-08-26 21:25:14 UTC
Could you please attach entire messages.log?
Comment 2 tbrunhoff 2008-08-26 21:45:11 UTC
Ah... didn't know about that.  The file appears to be
    ~/.netbeans/dev/config/Services/org-netbeans-modules-db-explorer-DatabaseOption.settings
which is indeed zero length.  Full log attached ~/.netbeans/dev/var/log/messages.log)

I should note that if I click on "show details" java and netbeans processes both hang.  I must click on cancel to survive.
Comment 3 tbrunhoff 2008-08-26 21:48:27 UTC
Created attachment 68384 [details]
~/.netbeans/dev/var/log/messages.log
Comment 4 Peter Pis 2008-08-27 07:41:23 UTC
Could you please try? (start nb with fresh user dir)
http://wiki.netbeans.org/FaqAlternateUserdir

And while hang occurs could you please do a thread dump?
http://wiki.netbeans.org/GenerateThreadDump
Comment 5 tbrunhoff 2008-08-27 16:45:31 UTC
Fresh user dir: appears to have the same exception.  messages.log attached.
Comment 6 tbrunhoff 2008-08-27 16:55:12 UTC
Created attachment 68463 [details]
messages.log from fresh user dir.
Comment 7 tbrunhoff 2008-08-27 16:56:02 UTC
Can't seem to repeat the hang now, with or without fresh user dir.
Comment 8 tbrunhoff 2008-08-28 01:09:46 UTC
When starting from a fresh user dir, I was saying "yes" to importing old settings from 6.1.  When I say "no" or move
that settings directory aside, the exception no longer occurs.

This would seem to be a settings compatibility problem.
Comment 9 David Vancouvering 2008-10-07 18:35:11 UTC
It looks like the DB options settings may have been corrupted?  Anyway, downgrading to a P3 and we'll see if we can
reproduce when we are in a place where we can start fixing bugs again.  Right now we're preparing for the 6.5 release so
this has to wait...
Comment 10 Jiri Rechtacek 2009-02-10 15:35:43 UTC
Reassigned to new owner.
Comment 11 Jiri Rechtacek 2009-03-31 14:50:20 UTC
No more reports on recent NetBeans Dev (6.7) builds.