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 188530 - IllegalArgumentException: Cannot invoke instance method on a class type
Summary: IllegalArgumentException: Cannot invoke instance method on a class type
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All All
: P1 normal (vote)
Assignee: Michal Skvor
URL:
Keywords:
Depends on:
Blocks: 173187
  Show dependency tree
 
Reported: 2010-07-09 10:50 UTC by Alexandr Scherbatiy
Modified: 2010-07-16 12:25 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 171275


Attachments
stacktrace (4.50 KB, text/plain)
2010-07-09 10:50 UTC, Alexandr Scherbatiy
Details
JavaFX project (179.29 KB, application/zip)
2010-07-09 11:01 UTC, Alexandr Scherbatiy
Details
stacktrace (7.07 KB, text/plain)
2010-07-12 09:00 UTC, Alexandr Scherbatiy
Details
IDE screenshot (143.64 KB, image/png)
2010-07-12 09:06 UTC, Alexandr Scherbatiy
Details
stacktrace (4.33 KB, text/plain)
2010-07-12 16:15 UTC, Andrei Chistiakov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2010-07-09 10:50:13 UTC
Build: NetBeans IDE Dev (Build 201007090001)
VM: Java HotSpot(TM) Client VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02
OS: Windows XP

Stacktrace: 
java.lang.IllegalArgumentException: Cannot invoke instance method on a class type
   at com.sun.tools.jdi.ClassTypeImpl.validateMethodInvocation(ClassTypeImpl.java:348)
   at com.sun.tools.jdi.ClassTypeImpl.invokeMethod(ClassTypeImpl.java:205)
   at com.sun.javafx.jdi.FXClassType.invokeMethod(FXClassType.java:67)
   at com.sun.javafx.jdi.FXReferenceType.getValue(FXReferenceType.java:380)
   at org.netbeans.modules.javafx.debugger.models.ScriptObjectVariable.getInnerValue(ScriptObjectVariable.java:92)
   at org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.getType(AbstractObjectVariable.java:545)
Comment 1 Alexandr Scherbatiy 2010-07-09 10:50:17 UTC
Created attachment 100722 [details]
stacktrace
Comment 2 Alexandr Scherbatiy 2010-07-09 10:59:59 UTC
Steps to reproduce:
- Open the attached project 
- Open the mathematics.multidimensional.shape2.MDUniverse2 class
- Set a breakpoint to the line 31 (' carcass.show();' in reset() function)
- Debug the project
- Expand the Script node in the Variables window

The IllegalArgumentException pops up
Comment 3 Alexandr Scherbatiy 2010-07-09 11:01:02 UTC
Created attachment 100723 [details]
JavaFX project
Comment 4 Alexandr Scherbatiy 2010-07-12 09:00:22 UTC
Created attachment 100756 [details]
stacktrace

Steps to reproduce:

- Create Media Box Sample
- Open the com.sun.mediabox.controls.PlayControlBehavior class
- Set a breakpoint to the 90 line ('playControl.fire();' from mouseClicked()
- Debug the project
- Expand the script node in the Variables window

The IDE is hanging and the exception pops up.
Comment 5 Alexandr Scherbatiy 2010-07-12 09:06:36 UTC
Created attachment 100757 [details]
IDE screenshot
Comment 6 Andrei Chistiakov 2010-07-12 16:15:21 UTC
Created attachment 100782 [details]
stacktrace

- expanded +Script node in Variables window
After that UI becomes almost frozen until the debugger is stopped
Comment 7 Alexandr Scherbatiy 2010-07-14 09:55:11 UTC
Main feature is broken and IDE becomes extremely slow.
Comment 8 Michal Skvor 2010-07-15 13:22:17 UTC
Fixed.
changeset   : 4227:11c559cfc2e3
Comment 9 Andrei Chistiakov 2010-07-16 12:25:49 UTC
Verified with NetBeans IDE 6.9.1 Dev (Build 201007152301)