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 99041 - IllegalArgumentException d&dropping listbox, table, radiobuttongroup
Summary: IllegalArgumentException d&dropping listbox, table, radiobuttongroup
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Pavel Flaska
URL:
Keywords:
: 99295 (view as bug list)
Depends on:
Blocks: 98171 99045
  Show dependency tree
 
Reported: 2007-03-26 22:04 UTC by _ krystyna
Modified: 2007-03-28 22:46 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
corrupted page appears after opening a project (90.20 KB, application/octet-stream)
2007-03-27 22:38 UTC, John Baker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ krystyna 2007-03-26 22:04:31 UTC
NB 
0325,
VWP 0326

WinXP, JDk1.6

-Created 1.4 Tomcat (or EE5 AppSerer) Visual Web project
- drag and drop listbox or radiobuttongroup  get Exception dialog every time 
with IllegalArgumentException (see below)
-drag and drop table, get the same exception only on first d&drop.



java.lang.IllegalArgumentException: Illegal values: from = 2642; to = 2615.
	at org.netbeans.modules.java.source.save.CasualDiff.copyTo
(CasualDiff.java:2690)
	at org.netbeans.modules.java.source.save.CasualDiff.diffListImports
(CasualDiff.java:1968)
	at org.netbeans.modules.java.source.save.CasualDiff.diffClassDef
(CasualDiff.java:384)
	at org.netbeans.modules.java.source.save.CasualDiff.diffTree
(CasualDiff.java:2269)
	at org.netbeans.modules.java.source.save.CasualDiff.diffList
(CasualDiff.java:1814)
	at org.netbeans.modules.java.source.save.CasualDiff.diffTopLevel
(CasualDiff.java:178)
	at org.netbeans.modules.java.source.save.CasualDiff.diffTree
(CasualDiff.java:2263)
	at org.netbeans.modules.java.source.save.CasualDiff.diff
(CasualDiff.java:115)
	at org.netbeans.modules.java.source.save.Commit.commit(Commit.java:242)
	at org.netbeans.modules.java.source.save.Commit.visitCompilationUnit
(Commit.java:173)
	at org.netbeans.modules.java.source.save.Commit.visitCompilationUnit
(Commit.java:63)
	at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept
(JCTree.java:476)
	at org.netbeans.modules.java.source.engine.RootTree.accept
(RootTree.java:60)
	at org.netbeans.api.java.source.query.Query.apply(Query.java:125)
	at org.netbeans.modules.java.source.save.Commit.commit(Commit.java:116)
	at org.netbeans.api.java.source.WorkingCopy.getChanges
(WorkingCopy.java:201)
	at org.netbeans.api.java.source.JavaSource.runModificationTask
(JavaSource.java:558)
	at org.netbeans.modules.visualweb.insync.java.WriteTaskWrapper.execute
(WriteTaskWrapper.java:70)
	at org.netbeans.modules.visualweb.insync.java.WriteTaskWrapper.execute
(WriteTaskWrapper.java:58)
	at org.netbeans.modules.visualweb.insync.java.JavaClass.renameProperty
(JavaClass.java:251)
	at org.netbeans.modules.visualweb.insync.beans.Bean.setName
(Bean.java:289)
	at 
org.netbeans.modules.visualweb.insync.live.BeansDesignBean.setInstanceName
(BeansDesignBean.java:169)
	at 
org.netbeans.modules.visualweb.web.ui.dt.component.SelectorDesignInfo.beanCreate
dSetup(SelectorDesignInfo.java:69)
	at org.netbeans.modules.visualweb.insync.models.FacesModel.beanCreated
(FacesModel.java:1120)
	at 
org.netbeans.modules.visualweb.designer.jsf.FacesDndSupport.beansCreated
(FacesDndSupport.java:564)
	at 
org.netbeans.modules.visualweb.designer.jsf.FacesDndSupport.importBean
(FacesDndSupport.java:524)
	at 
org.netbeans.modules.visualweb.designer.jsf.FacesDndSupport.importData
(FacesDndSupport.java:324)
	at 
org.netbeans.modules.visualweb.designer.jsf.FacesDndSupport.importData
(FacesDndSupport.java:3452)
	at org.netbeans.modules.visualweb.designer.jsf.DndSupport.importData
(DndSupport.java:503)
	at 
org.netbeans.modules.visualweb.designer.jsf.HtmlDomProviderImpl.importData
(HtmlDomProviderImpl.java:1016)
	at org.netbeans.modules.visualweb.designer.WebForm.importData
(WebForm.java:2091)
	at org.netbeans.modules.visualweb.designer.DndHandler.importDataDelayed
(DndHandler.java:423)
	at org.netbeans.modules.visualweb.designer.DndHandler.access$000
(DndHandler.java:67)
[catch] at org.netbeans.modules.visualweb.designer.DndHandler$1.run
(DndHandler.java:323)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	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)
Comment 1 _ jimdavidson 2007-03-26 22:45:01 UTC
See the message that deva sent to rave-dev, quoted below.  This looks like the
same thing. Assigning to him to investigate.

"There are couple of issues related to retouche in the recent netbeans builds.
1) Some of the editor fold comments are repeated in the Java source everytime
there is a modification to Java source.
2) IllegalArgumentException when you drag and drop components which require
renaming of component name. I see that this exception is not causing anything to
fail. If you press ok, everything seems to be working fine.

I will work with retouche engineers to find out more about these issues.

SEVERE [global]: Error during generating!
java.lang.IllegalArgumentException: Illegal values: from = 3000; to = 2973.
   at org.netbeans.modules.java.source.save.CasualDiff.copyTo(CasualDiff.java:2690)
   at
org.netbeans.modules.java.source.save.CasualDiff.diffListImports(CasualDiff.java:1968)"
Comment 2 _ deva 2007-03-27 01:55:24 UTC
I did more investigation and I suspect that this is introduced because of 
changes to org.netbeans.modules.java.source.save.CasualDiff made on 03/22/07
(Version 1.90). I will check with Pavel about my findings.
Comment 3 Lark Fitzgerald 2007-03-27 18:15:29 UTC
Is the component still usable after this error?
Comment 4 _ deva 2007-03-27 19:55:53 UTC
Pavel is aware of this issue and it has been fixed in trunk and I am not sure 
if this fix is integrated into M8. I will assign it to Pavel.

To answer Larks's question - No, the components are not usable once you get 
this exception
Comment 5 John Baker 2007-03-27 22:34:06 UTC
Same issue when d&d'ing database tables.

Also when opening the project, the project pages are corrupted  see attached
screenshot
Comment 6 John Baker 2007-03-27 22:38:01 UTC
Same issue when d&d'ing database tables.

Also when opening the project, the project pages are corrupted  see attached
screenshot
Comment 7 John Baker 2007-03-27 22:38:53 UTC
Created attachment 40060 [details]
corrupted page appears after opening a project
Comment 8 Pavel Flaska 2007-03-28 14:13:06 UTC
Is it still reproducible? As Deva noted, I made fixes yesterday. Fix was
integrated to release60-m8 branch too.
Comment 9 Ch Nguyen 2007-03-28 16:14:35 UTC
Which release60-m8 build that has your fix?
Comment 10 _ deva 2007-03-28 17:16:15 UTC
Verified that this issue is indeed fixed in M8
Comment 11 _ krystyna 2007-03-28 18:13:04 UTC
verified fixed using nbi/milestone-13a-200703281830/ 
Comment 12 _ deva 2007-03-28 22:46:19 UTC
*** Issue 99295 has been marked as a duplicate of this issue. ***