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.
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)
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)"
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.
Is the component still usable after this error?
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
Same issue when d&d'ing database tables. Also when opening the project, the project pages are corrupted see attached screenshot
Created attachment 40060 [details] corrupted page appears after opening a project
Is it still reproducible? As Deva noted, I made fixes yesterday. Fix was integrated to release60-m8 branch too.
Which release60-m8 build that has your fix?
Verified that this issue is indeed fixed in M8
verified fixed using nbi/milestone-13a-200703281830/
*** Issue 99295 has been marked as a duplicate of this issue. ***