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.
Some virtual machines do not support Method.bytecodes(): java.lang.UnsupportedOperationException at com.sun.tools.jdi.JDWPException.toJDIException(JDWPException.java:38) at com.sun.tools.jdi.ConcreteMethodImpl.bytecodes(ConcreteMethodImpl.java:241) at org.netbeans.modules.debugger.jpda.ExpressionPool.createExpressionAt(ExpressionPool.java:135) at org.netbeans.modules.debugger.jpda.ExpressionPool.getExpressionAt(ExpressionPool.java:87) at org.netbeans.modules.debugger.jpda.actions.StepActionProvider.setLastOperation(StepActionProvider.java:349) at org.netbeans.modules.debugger.jpda.actions.StepActionProvider.exec(StepActionProvider.java:264) at org.netbeans.modules.debugger.jpda.util.Operator$1.run(Operator.java:265) [catch] at java.lang.Thread.run(Thread.java:619)
We need to check VirtualMachine.canGetBytecodes().
The problem is fixed in trunk: /shared/data/ccvs/repository/debuggerjpda/src/org/netbeans/modules/debugger/jpda/ExpressionPool.java,v <-- ExpressionPool.java new revision: 1.5; previous revision: 1.4
Increasing priority to P1 since this is important issue that should be fixed in NB 6.0 otherwise users will need to use older version to debug the latest phone stack delivered by Sun.
Verified in dev build. http://bits.netbeans.org/download/trunk/nightly/latest/start.html?bundles/netbeans-trunk-nightly-200711250000-mobility-windows.exe
Agreed with WTK team - this is stopper for NB 6.0. mentlicher, please prepare the patch for release60 branch and ask for review. Thanks in advance.
Created attachment 53473 [details] The patch
I reviewed the patch. The patch is simple and seems to solve the described problem without any side effect.
Thanks for the review, the fix is merged into release60 branch: /shared/data/ccvs/repository/debuggerjpda/src/org/netbeans/modules/debugger/jpda/ExpressionPool.java,v <-- ExpressionPool.java new revision: 1.4.4.1; previous revision: 1.4
Thank you Martin for your fast and professional solution.