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 81717 - IDE hangs on pasting element
Summary: IDE hangs on pasting element
Status: VERIFIED WORKSFORME
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-08-02 16:23 UTC by kozlov
Modified: 2006-08-31 11:08 UTC (History)
3 users (show)

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 kozlov 2006-08-02 16:23:35 UTC
Reproduced in build 060730.

To reproduce the bug:

- create a new schema;
- create a 'loanApplication' schema;
- copy 'autoLoanApplication' element;
- paste 'autoLoanApplication' element to new schema.

IDE hangs.
Comment 1 Nathan Fiedler 2006-08-02 19:07:37 UTC
I cannot reproduce this bug on either Windows XP or Solaris 10 with build
060730. Nor does the bug appear to be in the latest code.
Comment 2 kozlov 2006-08-03 16:22:43 UTC
Bug reproduced in build060802. All actions was done in Schema view.
Comment 3 Nathan Fiedler 2006-08-03 20:14:14 UTC
Here are the steps I am following, using Windows XP with JDK 1.5.0_07:

  1. Download .zip from balui main/build060802
  2. Unzip to a temporary directory
  3. Delete all userdirs (rmdir /s/q ~/.netbeans)
  4. Start IDE via nb.exe
  5. Create new Java project (no main class)
  6. Create empty schema (newXMLSchema.xsd) in Java project default package
  7. Create loan app (newLoanApplication.xsd) in Java project default package
  8. Click on Elements category node in 1st column
  9. Right-click on autoLoanApplication in 2nd column, select Copy
  10. Click newXMLSchema.xsd tab
  11. Right-click on Elements category node in 1st column, select Paste

No hang. Same goes for toolbar copy/paste and Edit menu items.

Are you using a different JDK or IDE build, perhaps?
Comment 4 htt 2006-08-03 20:26:03 UTC
Seems the bug's in the Copy/Paste action (icons) from the toolbar (rather than
the context menu).  Updated steps:

- create a new schema;
- create a 'loanApplication' schema;
- in LoanApp, in Schema view, expand Elements, select 'autoLoanApplication'
- on the main toolbar, click on the Copy icon
- in new schema, in Schema view, select Elements
- on the main toolbar, click on the Paste icon ==> IDE hangs.
Comment 5 Nathan Fiedler 2006-08-04 20:34:24 UTC
I have tried repeatedly to reproduce this issue. I used Solaris 10 x86 with JDK
1.5.0_07, Windows XP version 2002 SP2 (Build 2600) with JDK 1.5.0_07 and JDK
1.6.0 beta 2, with cokebeta builds and release55 branch builds. I have tried
using the Edit menu items, the toolbar buttons, and the columns view context
menu. At no point can I get the IDE to hang.

What I need from anyone that can reproduce are one of two things:

A. A stack trace showing the threads in the JVM at the point where the IDE is
hung. Start the IDE from the command line, get it to hang, then in the command
window press Ctrl-Pause/Break. Collect the output and attach it to this issue.

B. Create a Flash demo (you can use DebugMode Wink for this) that shows the
following information: 1) Windows version, 2) JDK version, 3) the Detail panel
of the IDE About dialog, 4) the project you created that contains the schema
files, 5) how you created the schema files, 6) the actions you took to reproduce
the bug, 7) the actual hang of the IDE. Host the file somewhere and post the URL
to this issue.

I am sure the bug must exist since two people are seeing it. The difficulty is,
if I cannot reproduce it, I cannot fix it. There must be some information that I
have not gotten that I need to reproduce this. Hopefully that information will
be forthcoming before the final beta freeze.
Comment 6 htt 2006-08-09 22:19:05 UTC
While troubleshoothing some other issues, we were finally able to reproduce this
issue consistently with these steps:
  open PO schema
    expand Complex type
    right-click USAddress, select Refactor > Rename
    in Rename dialog box, enter new name, click Next
    Do Refactoring
  open LoanApp schema
    expand Elements
    select autoLoanApp
    click Copy on the toolbar
  open the new schema
    select Elements
    click Paste on the toolbar
Comment 7 Nathan Fiedler 2006-08-30 19:07:01 UTC
I have fixed a similar bug (see issue 83708). Since I have never been able to
reproduce this problem, could someone try reproducing this? I'll mark it
worksforme for the time being, feel free to re-open if this bug is still
happening. Thanks
Comment 8 kozlov 2006-08-31 11:08:46 UTC
Verified in build060831.