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.
dev build 200407151800 After adding a new library to the Library Manager I click OK to quit and I get the following exception: java.io.UTFDataFormatException: Invalid byte 1 of 1-byte UTF-8 sequence. at org.apache.xerces.impl.io.UTF8Reader.invalidByte(Unknown Source) at org.apache.xerces.impl.io.UTF8Reader.read(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source) at org.apache.xerces.impl.XMLEntityScanner.scanContent(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanContent(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.netbeans.modules.project.libraries.LibraryDeclarationParser.parse(LibraryDeclarationParser.java:235) at org.netbeans.modules.project.libraries.LibraryDeclarationParser.parse(LibraryDeclarationParser.java:185) at org.netbeans.modules.project.libraries.LibrariesStorage.readLibrary(LibrariesStorage.java:141) at org.netbeans.modules.project.libraries.LibrariesStorage.readLibrary(LibrariesStorage.java:132) at org.netbeans.modules.project.libraries.LibrariesStorage.fileDataCreated(LibrariesStorage.java:247) at org.openide.filesystems.FCLSupport.dispatchEvent(FCLSupport.java:69) at org.openide.filesystems.FileObject$ED.dispatch(FileObject.java:763) at org.openide.filesystems.EventControl.invokeDispatchers(EventControl.java:160) at org.openide.filesystems.EventControl.exitAtomicAction(EventControl.java:138) at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:91) at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:432) at org.netbeans.modules.project.libraries.LibrariesStorage.writeLibrary(LibrariesStorage.java:149) at org.netbeans.modules.project.libraries.LibrariesStorage.addLibrary(LibrariesStorage.java:225) at org.netbeans.modules.project.libraries.ui.LibrariesModel.apply(LibrariesModel.java:125) at org.netbeans.modules.project.libraries.ui.LibrariesCustomizer.apply(LibrariesCustomizer.java:96) at org.netbeans.api.project.libraries.LibrariesCustomizer.showCustomizer(LibrariesCustomizer.java:46) at org.netbeans.modules.web.project.ui.customizer.LibrariesChooser.editLibraries(LibrariesChooser.java:120) at org.netbeans.modules.web.project.ui.customizer.LibrariesChooser.access$100(LibrariesChooser.java:38) at org.netbeans.modules.web.project.ui.customizer.LibrariesChooser$1.actionPerformed(LibrariesChooser.java:103) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234) at java.awt.Component.processMouseEvent(Component.java:5488) at javax.swing.JComponent.processMouseEvent(JComponent.java:3093) at java.awt.Component.processEvent(Component.java:5253) at java.awt.Container.processEvent(Container.java:1966) at java.awt.Component.dispatchEventImpl(Component.java:3955) at java.awt.Container.dispatchEventImpl(Container.java:2024) at java.awt.Component.dispatchEvent(Component.java:3803) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822) at java.awt.Container.dispatchEventImpl(Container.java:2010) at java.awt.Window.dispatchEventImpl(Window.java:1766) at java.awt.Component.dispatchEvent(Component.java:3803) [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153) at java.awt.Dialog$1.run(Dialog.java:515) at java.awt.Dialog.show(Dialog.java:536) at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:721) at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:764) at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:752) at org.openide.util.Mutex.doEventAccess(Mutex.java:923) at org.openide.util.Mutex.readAccess(Mutex.java:158) at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:737) at java.awt.Component.show(Component.java:1300) at java.awt.Component.setVisible(Component.java:1253) at org.netbeans.modules.web.project.ui.customizer.VisualClasspathSupport$ClasspathSupportListener.actionPerformed(VisualClasspathSupport.java:333) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234) at java.awt.Component.processMouseEvent(Component.java:5488) at javax.swing.JComponent.processMouseEvent(JComponent.java:3093) at java.awt.Component.processEvent(Component.java:5253) at java.awt.Container.processEvent(Container.java:1966) at java.awt.Component.dispatchEventImpl(Component.java:3955) at java.awt.Container.dispatchEventImpl(Container.java:2024) at java.awt.Component.dispatchEvent(Component.java:3803) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822) at java.awt.Container.dispatchEventImpl(Container.java:2010) at java.awt.Window.dispatchEventImpl(Window.java:1766) at java.awt.Component.dispatchEvent(Component.java:3803) at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
I found out this is caused by the library name I used. I inserted the character 255 (hold "alt" then type "255" and let go) into the library name. The original dialog window did not complain but upon exiting it caused the aforementioned exception. Please resolve the problem either in the original dialog or in xerces.
Can you attach the XML file please? %USERDIR%\config\org-netbeans-api-project-libraries\Libraries\*.xml
Checking in src/org/netbeans/modules/project/libraries/LibrariesStorage.java; /cvs/projects/libraries/src/org/netbeans/modules/project/libraries/LibrariesStorage.java,v <-- LibrariesStorage.java new revision: 1.8; previous revision: 1.7 done
Thomas, Did you figure it out without me?
I have found one problem while storing the library. The Writer used OS default encoding, but the Reader used UTF-8. This is what I've fixed. But I would very much appreciate if you can test it on your OS. The fix should be available in today's night build.
This issue was solved long time ago. Because nobody has reopened it neither added comments, we are verifying/closing it now. If you are still able to reproduce the problem, please reopen. Thanks in advance.