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 129302 - OK button has no effect on "Add Import" screen
Summary: OK button has no effect on "Add Import" screen
Status: RESOLVED WONTFIX
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-05 15:03 UTC by chiappone
Modified: 2016-07-07 09:56 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NetBeans window with Projects and Files panels (120.58 KB, image/jpeg)
2008-03-17 15:49 UTC, chiappone
Details
No problems for me (357.45 KB, image/png)
2008-03-17 22:10 UTC, tonybeckham
Details

Note You need to log in before you can comment on or make changes to this bug.
Description chiappone 2008-03-05 15:03:24 UTC
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.
Comment 1 chiappone 2008-03-05 15:13:14 UTC
Version 6.0.1
Comment 2 Petr Jiricka 2008-03-06 16:28:26 UTC
Changing category to XML.
Comment 3 tonybeckham 2008-03-07 08:42:08 UTC
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)
Comment 4 chiappone 2008-03-07 14:31:57 UTC
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)
Comment 5 Samaresh Panda 2008-03-10 17:35:49 UTC
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.

Comment 6 chiappone 2008-03-11 15:10:26 UTC
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?
Comment 7 Samaresh Panda 2008-03-11 16:55:34 UTC
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.
Comment 8 chiappone 2008-03-12 18:20:29 UTC
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?
Comment 9 Samaresh Panda 2008-03-13 05:29:57 UTC
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.
Comment 10 Mikhail Matveev 2008-03-13 13:22:16 UTC
I can't reproduce this too (WinXP, JDK1.6). Also, the namespace textfield remain empty (is doesn't correspond to your
description).
Comment 11 tonybeckham 2008-03-13 17:22:29 UTC
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.
Comment 12 Samaresh Panda 2008-03-13 17:58:56 UTC
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.
Comment 13 Srividhya Narayanan 2008-03-13 18:29:40 UTC
since unable to reproduce. Pls provide instruction to do so.
Comment 14 chiappone 2008-03-17 15:49:42 UTC
Created attachment 58494 [details]
NetBeans window with Projects and Files panels
Comment 15 chiappone 2008-03-17 15:50:27 UTC
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.
Comment 16 tonybeckham 2008-03-17 22:08:39 UTC
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.
Comment 17 tonybeckham 2008-03-17 22:10:13 UTC
Created attachment 58524 [details]
No problems for me
Comment 18 chiappone 2008-03-18 14:13:02 UTC
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.
Comment 19 Samaresh Panda 2008-12-04 22:33:41 UTC
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".
Comment 20 Martin Balin 2016-07-07 09:56:59 UTC
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