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 200438 - IllegalArgumentException: frame method different than variable's method
Summary: IllegalArgumentException: frame method different than variable's method
Status: RESOLVED INCOMPLETE
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-27 15:08 UTC by gmorcos
Modified: 2011-09-19 15:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 180160


Attachments
stacktrace (2.18 KB, text/plain)
2011-07-27 15:08 UTC, gmorcos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gmorcos 2011-07-27 15:08:38 UTC
Build: NetBeans IDE 7.0 (Build 201104080000)
VM: Java HotSpot(TM) Client VM, 19.1-b02, Java(TM) SE Runtime Environment, 1.6.0_24-b07
OS: Windows XP

User Comments:
gmorcos: i was trying to view the value of a string attribute and updating it using the debugger




Stacktrace: 
java.lang.IllegalArgumentException: frame method different than variable's method
   at com.sun.tools.jdi.LocalVariableImpl.isVisible(LocalVariableImpl.java:105)
   at com.sun.tools.jdi.StackFrameImpl.setValue(StackFrameImpl.java:252)
   at org.netbeans.modules.debugger.jpda.jdi.StackFrameWrapper.setValue(StackFrameWrapper.java:318)
   at org.netbeans.modules.debugger.jpda.models.ObjectLocalVariable.setValue(ObjectLocalVariable.java:182)
   at org.netbeans.modules.debugger.jpda.models.AbstractVariable.setValue(AbstractVariable.java:245)
   at org.netbeans.modules.debugger.jpda.ui.models.VariablesTableModel.setValueAt(VariablesTableModel.java:264)
Comment 1 gmorcos 2011-07-27 15:08:43 UTC
Created attachment 109643 [details]
stacktrace
Comment 2 Martin Entlicher 2011-07-27 15:20:32 UTC
Do you have some sub-class in the method that has the string attribute?
From the exception it looks like the debugger is not suspended in the method that have the string parameter. Is it the case for you?
Comment 3 gmorcos 2011-07-27 15:34:22 UTC
i was using the debugger in the fooBean class cause i need to change a string attribute value before calling a method in the fooDataRetrieval class.
the string attribute is a local temp value and is not part of the fooBean.
Comment 4 Martin Entlicher 2011-09-19 15:57:51 UTC
Can you please provide some code snippet that can be used to reproduce this exception? I did not manage to reproduce it. But as the exception indicates that the local variable is in some different scope, it may not be possible to fix it.