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 160703 - Apisupport conflicts with Glassfish
Summary: Apisupport conflicts with Glassfish
Status: RESOLVED DUPLICATE of bug 160548
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-20 09:16 UTC by Peter Nabbefeld
Modified: 2009-03-20 19:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Nabbefeld 2009-03-20 09:16:27 UTC
Hello! When I'm going to run a module suite, I'm getting an exception, which is not reported in the "regular" IDE log.
It seems, the test start conflicts in handling of the configuration files (e.g. exclusive access in the starting IDE
rejects usage in the IDE to be started).

Here's the stack trace, copied from the exception window:

Annotation: From
nbfs://nbhost/SystemFileSystem/org-netbeans-api-project-libraries/Libraries/EclipseLink-GlassFish-v3-Prelude.xml
Annotation: From
nbfs://nbhost/SystemFileSystem/org-netbeans-api-project-libraries/Libraries/EclipseLink-GlassFish-v3-Prelude.xml
org.openide.ErrorManager$AnnException: From
nbfs://nbhost/SystemFileSystem/org-netbeans-api-project-libraries/Libraries/EclipseLink-GlassFish-v3-Prelude.xml
	at org.openide.ErrorManager$AnnException.findOrCreate(ErrorManager.java:863)
	at org.openide.ErrorManager$DelegatingErrorManager.annotate(ErrorManager.java:650)
	at org.netbeans.modules.project.libraries.LibrariesStorage.readLibrary(LibrariesStorage.java:235)
	at org.netbeans.modules.project.libraries.LibrariesStorage.loadFromStorage(LibrariesStorage.java:156)
	at org.netbeans.modules.project.libraries.LibrariesStorage.initStorage(LibrariesStorage.java:208)
	at org.netbeans.modules.project.libraries.LibrariesStorage.getLibraries(LibrariesStorage.java:311)
	at org.netbeans.modules.project.libraries.LibrariesModule.initProviders(LibrariesModule.java:63)
	at org.netbeans.modules.project.libraries.LibrariesModule.restored(LibrariesModule.java:58)
	at org.netbeans.core.startup.NbInstaller.loadCode(NbInstaller.java:423)
	at org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:344)
	at org.netbeans.ModuleManager.enable(ModuleManager.java:906)
	at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:431)
	at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:367)
	at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:276)
	at org.netbeans.core.startup.Main.getModuleSystem(Main.java:168)
	at org.netbeans.core.startup.Main.start(Main.java:309)
	at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:110)
	at java.lang.Thread.run(Thread.java:619)
From nbfs://nbhost/SystemFileSystem/org-netbeans-api-project-libraries/Libraries/EclipseLink-GlassFish-v3-Prelude.xml
Caused: org.xml.sax.SAXParseException: Premature end of file.
	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174)
	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)
	at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1411)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1044)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647)
	at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
	at org.netbeans.modules.project.libraries.LibraryDeclarationParser.parse(LibraryDeclarationParser.java:274)
	at org.netbeans.modules.project.libraries.LibraryDeclarationParser.parse(LibraryDeclarationParser.java:226)
	at org.netbeans.modules.project.libraries.LibrariesStorage.readLibrary(LibrariesStorage.java:233)
	at org.netbeans.modules.project.libraries.LibrariesStorage.loadFromStorage(LibrariesStorage.java:156)
	at org.netbeans.modules.project.libraries.LibrariesStorage.initStorage(LibrariesStorage.java:208)
	at org.netbeans.modules.project.libraries.LibrariesStorage.getLibraries(LibrariesStorage.java:311)
	at org.netbeans.modules.project.libraries.LibrariesModule.initProviders(LibrariesModule.java:63)
	at org.netbeans.modules.project.libraries.LibrariesModule.restored(LibrariesModule.java:58)
	at org.netbeans.core.startup.NbInstaller.loadCode(NbInstaller.java:423)
	at org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:344)
	at org.netbeans.ModuleManager.enable(ModuleManager.java:906)
	at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:431)
	at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:367)
	at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:276)
	at org.netbeans.core.startup.Main.getModuleSystem(Main.java:168)
	at org.netbeans.core.startup.Main.start(Main.java:309)
	at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:110)
[catch] at java.lang.Thread.run(Thread.java:619)
Comment 1 Vince Kraemer 2009-03-20 15:39:30 UTC
info on the build and JDK would be useful...

*** This issue has been marked as a duplicate of 160548 ***
Comment 2 Peter Nabbefeld 2009-03-20 19:30:43 UTC
- JDK is 1.6, latest daily NB build

- I'm not sure, if this is really a duplicate, as I get this exception only when starting a *concurrent* instance of the
IDE (the instance started with the module), bug #160548 doesn't mention any module project, though stack trace is
identical (and contains module references), but probably this also happens, when Glassfish is started before NetBeans.

- Problem seems to result from concurrent access to a non-sharable resource (EclipseLink-GlassFish-v3-Prelude.xml).
Probably there should exist a NB starter with an API to reference non-sharable FileObject instances by concurrently
running IDE instances or sth. other in this direction ...