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 85323 - IllegalArgumentException when pasting numerous components between Schema views
Summary: IllegalArgumentException when pasting numerous components between Schema views
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P1 blocker (vote)
Assignee: Nathan Fiedler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-20 11:12 UTC by kozlov
Modified: 2006-09-27 11:38 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
movie (937.60 KB, application/octet-stream)
2006-09-20 11:15 UTC, kozlov
Details
Stack trace (85.34 KB, text/plain)
2006-09-20 11:19 UTC, kozlov
Details
NPE Exception movie (225.21 KB, application/octet-stream)
2006-09-26 14:35 UTC, kozlov
Details
NPE Stack Trace (26.98 KB, application/octet-stream)
2006-09-26 14:36 UTC, kozlov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kozlov 2006-09-20 11:12:45 UTC
Reproduced in build 060904.

To reproduce the bug:

- create 'newSchema';
- open 'OTA_TravelItinerary' schema;
- tile the two editors so they are side-by-side;
- select all Complex Types in 'OTA_TravelItinerary' schema and copy them;
- switch to 'newSchema' and invoke 'Paste' on Complex Types node.

Exception
Comment 1 kozlov 2006-09-20 11:15:45 UTC
Created attachment 34226 [details]
movie
Comment 2 kozlov 2006-09-20 11:19:27 UTC
Created attachment 34227 [details]
Stack trace
Comment 3 Nathan Fiedler 2006-09-20 19:26:04 UTC
In the fourth step, you mean "Cut" instead of "copy", I believe, as that is what
you did when you captured the screencast. Also, the exception shown in the
screencast (IllegalStateException) does not appear in the st.log file that is
attached to this issue. I am going to assume the issue is the
IllegalArgumentException that appears many times within the st.log file.

BTW, I still cannot reproduce this issue. The cut/paste works fine and no
exceptions occur. However, I can catch and ignore the exception, since it is
harmless anyway.

If you still get the IllegalStateException that appears in the screencast,
please enter a new bug, as that is in no way the same thing as the
IllegalArgumentException that I see in the st.log file.
Comment 4 Nathan Fiedler 2006-09-20 19:32:31 UTC
Fixed the IllegalArgumentException issue in release55 branch.

xamui/src/org/netbeans/modules/xml/xam/ui/multiview/ActivatedNodesMediator.java;
new revision: 1.1.2.4; previous revision: 1.1.2.3
Comment 5 kozlov 2006-09-26 14:35:05 UTC
Created attachment 34516 [details]
NPE Exception movie
Comment 6 kozlov 2006-09-26 14:36:56 UTC
Created attachment 34517 [details]
NPE Stack Trace
Comment 7 kozlov 2006-09-26 14:38:12 UTC
NPE reproduced.
Comment 8 Nathan Fiedler 2006-09-26 19:20:20 UTC
I have created a new issue for the reported NPE. That exception is occurring in
the schema model, not in the schema tools code. What's more, it is an entirely
different exception than the one originally reported.

Marking this as fixed again since the IAE has been addressed already.