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.
... 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)
Could you please attach entire messages.log?
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.
Created attachment 68384 [details] ~/.netbeans/dev/var/log/messages.log
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
Fresh user dir: appears to have the same exception. messages.log attached.
Created attachment 68463 [details] messages.log from fresh user dir.
Can't seem to repeat the hang now, with or without fresh user dir.
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.
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...
Reassigned to new owner.
No more reports on recent NetBeans Dev (6.7) builds.