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.
While adding a new import to an XSD, the OK button on "Add Import" simply doesn't do anything. You may click, hit enter or space on it, but absolutely nothing happens. To reproduce it, just open an XSD in the Schema view, right click on Referenced Schemas, point to Add and click Import. Select an XSD file (it will mark the check box on Import column and set the namespace as xs0). Click OK. Thank you, Fausto.
Version 6.0.1
Changing category to XML.
Unable to reproduce. System Info: Product Version: NetBeans IDE 6.0.1 (Build 200801291616) Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-119 System: Mac OS X version 10.5.2 running on i386; MacRoman; en_US (nb)
You should be able to. Is there any logs that I should check for exceptions while clicking on OK button? System Info: Product Version: NetBeans IDE 6.0.1 (Build 200801291616) Java: 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06 System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
You can find the log in $HOME/.netbeans/6.0.1/var/logs. I'm trying this with both 6.0 and 6.1, but both works fine. AFAIK, there has been no code change in this front for 6.0.1. I presume you're using windows xp.
Yes, I am. Like in my comment right above yours, this is my system information: Product Version: NetBeans IDE 6.0.1 (Build 200801291616) Java: 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06 System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb) Can this be related to windows or java version?
Do you have any other system? If yes, can you try the same and let us know? Did you find anything in the log file? If yes, please attach the log file.
This is the logged info after I click on OK button: SEVERE [global] java.lang.IllegalArgumentException: C:/fausto/Projects/E2718/EnterpriseDataModel/public/interfaces/DigitalLocker/CustomService.xsd is not in project source at org.netbeans.modules.xml.catalogsupport.DefaultProjectCatalogSupport.getReferenceURI(DefaultProjectCatalogSupport.java:200) at org.netbeans.modules.xml.xam.ui.customizer.ExternalReferenceCreator.getLocation(ExternalReferenceCreator.java:592) at org.netbeans.modules.xml.schema.ui.nodes.categorized.customizer.ImportCreator.applyChanges(ImportCreator.java:90) at org.netbeans.modules.xml.xam.ui.customizer.AbstractComponentCustomizer.apply(AbstractComponentCustomizer.java:88) at org.netbeans.modules.xml.schema.ui.basic.UIUtilities$2.actionPerformed(UIUtilities.java:257) at org.netbeans.core.windows.services.NbPresenter$ButtonListener.actionPerformed(NbPresenter.java:1084) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) at java.awt.Component.processMouseEvent(Component.java:6038) at javax.swing.JComponent.processMouseEvent(JComponent.java:3260) at java.awt.Component.processEvent(Component.java:5803) at java.awt.Container.processEvent(Container.java:2058) at java.awt.Component.dispatchEventImpl(Component.java:4410) at java.awt.Container.dispatchEventImpl(Container.java:2116) at java.awt.Component.dispatchEvent(Component.java:4240) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916) at java.awt.Container.dispatchEventImpl(Container.java:2102) at java.awt.Window.dispatchEventImpl(Window.java:2429) at java.awt.Component.dispatchEvent(Component.java:4240) at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) [catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177) at java.awt.Dialog$1.run(Dialog.java:1039) at java.awt.Dialog$3.run(Dialog.java:1091) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Dialog.show(Dialog.java:1089) at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:834) at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:868) at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:856) at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:104) at org.openide.util.Mutex.doEventAccess(Mutex.java:1223) at org.openide.util.Mutex.readAccess(Mutex.java:242) at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:841) at java.awt.Component.show(Component.java:1419) at java.awt.Component.setVisible(Component.java:1372) at java.awt.Window.setVisible(Window.java:801) at java.awt.Dialog.setVisible(Dialog.java:979) at org.netbeans.modules.xml.schema.ui.nodes.categorized.newtype.AdvancedSchemaComponentNewType.customize(AdvancedSchemaComponentNewType.java:264) at org.netbeans.modules.xml.schema.ui.nodes.categorized.newtype.AdvancedSchemaComponentNewType.create(AdvancedSchemaComponentNewType.java:118) at org.openide.actions.NewAction.performAction(NewAction.java:100) at org.openide.actions.NewAction.access$100(NewAction.java:64) at org.openide.actions.NewAction$ActSubMenuModel.performActionAt(NewAction.java:245) at org.openide.awt.Actions$ISubActionListener.actionPerformed(Actions.java:1080) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.AbstractButton.doClick(AbstractButton.java:357) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1216) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1257) at java.awt.Component.processMouseEvent(Component.java:6038) at javax.swing.JComponent.processMouseEvent(JComponent.java:3260) at java.awt.Component.processEvent(Component.java:5803) at java.awt.Container.processEvent(Container.java:2058) at java.awt.Component.dispatchEventImpl(Component.java:4410) at java.awt.Container.dispatchEventImpl(Container.java:2116) at java.awt.Component.dispatchEvent(Component.java:4240) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916) at java.awt.Container.dispatchEventImpl(Container.java:2102) at java.awt.Window.dispatchEventImpl(Window.java:2429) at java.awt.Component.dispatchEvent(Component.java:4240) at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160) at java.awt.EventDispatchThread.run(EventDispatchThread.java:121) For that, I right clicked in a folder > New > XML Schema, choose CustomService as name and went adding a new reference. Now, I opened an existing file and tried adding an import, and got this on the log: SEVERE [global] java.lang.IllegalArgumentException: C:/fausto/Projects/E2718/EnterpriseDataModel/public/interfaces/DigitalLocker/DigitalLockerCreateAccountRequest.xsd is not in project source at org.netbeans.modules.xml.catalogsupport.DefaultProjectCatalogSupport.getReferenceURI(DefaultProjectCatalogSupport.java:200) at org.netbeans.modules.xml.xam.ui.customizer.ExternalReferenceCreator.getLocation(ExternalReferenceCreator.java:592) at org.netbeans.modules.xml.schema.ui.nodes.categorized.customizer.ImportCreator.applyChanges(ImportCreator.java:90) at org.netbeans.modules.xml.xam.ui.customizer.AbstractComponentCustomizer.apply(AbstractComponentCustomizer.java:88) at org.netbeans.modules.xml.schema.ui.basic.UIUtilities$2.actionPerformed(UIUtilities.java:257) at org.netbeans.core.windows.services.NbPresenter$ButtonListener.actionPerformed(NbPresenter.java:1084) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) at java.awt.Component.processMouseEvent(Component.java:6038) at javax.swing.JComponent.processMouseEvent(JComponent.java:3260) at java.awt.Component.processEvent(Component.java:5803) at java.awt.Container.processEvent(Container.java:2058) at java.awt.Component.dispatchEventImpl(Component.java:4410) at java.awt.Container.dispatchEventImpl(Container.java:2116) at java.awt.Component.dispatchEvent(Component.java:4240) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916) at java.awt.Container.dispatchEventImpl(Container.java:2102) at java.awt.Window.dispatchEventImpl(Window.java:2429) at java.awt.Component.dispatchEvent(Component.java:4240) at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) [catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177) at java.awt.Dialog$1.run(Dialog.java:1039) at java.awt.Dialog$3.run(Dialog.java:1091) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Dialog.show(Dialog.java:1089) at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:834) at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:868) at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:856) at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:104) at org.openide.util.Mutex.doEventAccess(Mutex.java:1223) at org.openide.util.Mutex.readAccess(Mutex.java:242) at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:841) at java.awt.Component.show(Component.java:1419) at java.awt.Component.setVisible(Component.java:1372) at java.awt.Window.setVisible(Window.java:801) at java.awt.Dialog.setVisible(Dialog.java:979) at org.netbeans.modules.xml.schema.ui.nodes.categorized.newtype.AdvancedSchemaComponentNewType.customize(AdvancedSchemaComponentNewType.java:264) at org.netbeans.modules.xml.schema.ui.nodes.categorized.newtype.AdvancedSchemaComponentNewType.create(AdvancedSchemaComponentNewType.java:118) at org.openide.actions.NewAction.performAction(NewAction.java:100) at org.openide.actions.NewAction.access$100(NewAction.java:64) at org.openide.actions.NewAction$ActSubMenuModel.performActionAt(NewAction.java:245) at org.openide.awt.Actions$ISubActionListener.actionPerformed(Actions.java:1080) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.AbstractButton.doClick(AbstractButton.java:357) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1216) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1257) at java.awt.Component.processMouseEvent(Component.java:6038) at javax.swing.JComponent.processMouseEvent(JComponent.java:3260) at java.awt.Component.processEvent(Component.java:5803) at java.awt.Container.processEvent(Container.java:2058) at java.awt.Component.dispatchEventImpl(Component.java:4410) at java.awt.Container.dispatchEventImpl(Container.java:2116) at java.awt.Component.dispatchEvent(Component.java:4240) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916) at java.awt.Container.dispatchEventImpl(Container.java:2102) at java.awt.Window.dispatchEventImpl(Window.java:2429) at java.awt.Component.dispatchEvent(Component.java:4240) at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160) at java.awt.EventDispatchThread.run(EventDispatchThread.java:121) Those files are actually not visible on Project window, but they are on the Files window. I created a new "Java Project with Existing Sources" and selected a folder where I store all XSDs and WSDL for a web service project. It has no java source actually, but I want to use NetBeans to manage those files. Do you see any issue on that? Is there any way to add those XSD and WSDL files on the Project window, so I can try and see what happens?
I'm not sure what you're trying to do, but if I follow your instructions I'm able to create a project from existing source. In the "existing source" panel, I'm able to pick the folder that contains all schemas. They're visible in the new project and I'm able to import as well. If this is different from what you're doing, please add step-by-step instruction so that we can reproduce. As a last note, please do not paste such huge contents in the comments, but attach them as attachments to the issue.
I can't reproduce this too (WinXP, JDK1.6). Also, the namespace textfield remain empty (is doesn't correspond to your description).
Same result as Sam when following steps in desc9. I am able to create a java project from existing source then select a folder containing only schema, no java files. Those folders are included into the project and are visible in the projects view. Now creating a new schema and to that adding one of the schema as a reference I still see no issue. Regarding viewing of files in projects view, as I said for me, after adding them in the new projects wizard they were placed into the folder "JavaProject - Source Packages" in files view and are under "<default package>" in project view.
chiappone, please add a step-by-step instruction on how to reproduce this issue. None of us here have been able to reproduce this yet, based on your last comments. Also I'm downgrading this to a P3, however lets keep track of it.
since unable to reproduce. Pls provide instruction to do so.
Created attachment 58494 [details] NetBeans window with Projects and Files panels
Sorry for the long post and the late answer. The only difference I see on our cases is that I don't have a source folder with the XSDs inside. I had a folder structure with MS Word documents, XSDs, WSDL, MS Visio documents and all design information. All I did was create a new java project from existing sources, selected the root folder and clicked Finish. NetBeans did not add the XSDs on the Projects tab, maybe because I didn't select the folder where the XSDs are lying. But that does not answer my problem accordingly, right? Please, try doing that, and check if the same happens with you. If so, I believe this is a bug, because I don't think I did anything out of the line. Please, check the attachment and see how my NB is. I have hidden folder and file names because they induce business information.
I have done what you said and have the same results I described in desc12 (See screenshot). You may want to try and delete your user directory (.netbeans) and try again. This is working fine for others who have tried this.
Created attachment 58524 [details] No problems for me
Ok, I did like you said. But still, your screen is different than mine. I have right clicked the project on the Projects window > Properties, selected the Sources item on the tree at the left, clicked Add Folder, selected the root folder (E2718, the same where the project is lying, because, as I said, I don't have a single folder with all XSDs, like your screen does), and clicked OK. NetBeans created a DEEP package tree, representing all the subfolders I have there. Now I can use the OK button on the Add Import screen. So, I'm sorry, but I don't agree with your screen as doing the same as I did. Go to your project properties and remove the source package folder, than you will probably be on the same road as I am. Thank you, Fausto.
chiappone, did it ever work for you or not? Can you try this in 6.5? If works, please change the resolution to "works for me".
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss