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 247633 - IllegalStateException: Unexpected event. Expecting variable end tag.value
Summary: IllegalStateException: Unexpected event. Expecting variable end tag.value
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: issues@ruby
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-02 06:20 UTC by di97msgd
Modified: 2014-10-20 06:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 6149


Attachments
stacktrace (799 bytes, text/plain)
2014-10-02 06:20 UTC, di97msgd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description di97msgd 2014-10-02 06:20:31 UTC
Build: NetBeans IDE 8.0.1 (Build 201408251540)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: Linux

User Comments:
dkmd_nielsen: Attempting to debug into a method by calling the method's alias name.  It's been a while since I've encountered this error.  The method is new.  The project just initialized a Mercurial database.  These module changes are not yet committed.  There is nothing really new about this project I'm working on, except the above.

GUEST: Waiting for variables to display

di97msgd: I use the following:
Netbeans 8.0.1
CentOS
ruby-debug-ide-0.4.23.beta9

When stopping at breakpoint the following exception occurs in Netbeans:
java.lang.IllegalStateException: Unexpected event. Expecting variable end tag.value
at org.rubyforge.debugcommons.reader.XmlStreamReader.ensureEndTag(XmlStreamReader.java:41)
at org.rubyforge.debugcommons.reader.VariablesReader.parseVariables(VariablesReader.java:90)
at org.rubyforge.debugcommons.reader.VariablesReader.parse(VariablesReader.java:48)
at org.rubyforge.debugcommons.reader.VariablesReader.readVariables(VariablesReader.java:105)
at org.rubyforge.debugcommons.ReadersSupport.processElement(ReadersSupport.java:156)
at org.rubyforge.debugcommons.ReadersSupport.startXPPLoop(ReadersSupport.java:116)
at org.rubyforge.debugcommons.ReadersSupport.access$200(ReadersSupport.java:44)
[catch] at org.rubyforge.debugcommons.ReadersSupport$XPPLoop.run(ReadersSupport.java:271)

GUEST: NetBeans IDE 6.0.1, debugging an application.  I was attempting to look at the local variables window.  It disappeared, and this error popped up.

GUEST: I was debugging a Ruby project. I called debug on a Unit Test class, with a breakpoint in a method of a singleton class (called from within a test case method). The debugger stopped execution at the break point (as expected), but when I clicked on the tab to view the local variables, it gave me the waiting prompt for a while, and then the debugger closed with the above exception.




Stacktrace: 
java.lang.IllegalStateException: Unexpected event. Expecting variable end tag.value
   at org.rubyforge.debugcommons.reader.XmlStreamReader.ensureEndTag(XmlStreamReader.java:41)
   at org.rubyforge.debugcommons.reader.VariablesReader.parseVariables(VariablesReader.java:90)
   at org.rubyforge.debugcommons.reader.VariablesReader.parse(VariablesReader.java:48)
   at org.rubyforge.debugcommons.reader.VariablesReader.readVariables(VariablesReader.java:105)
   at org.rubyforge.debugcommons.ReadersSupport.processElement(ReadersSupport.java:156)
   at org.rubyforge.debugcommons.ReadersSupport.startXPPLoop(ReadersSupport.java:116)
Comment 1 di97msgd 2014-10-02 06:20:34 UTC
Created attachment 149662 [details]
stacktrace
Comment 2 di97msgd 2014-10-06 06:32:38 UTC
I reported this error to the author, Oleg Sukhodolsky os97673 on GitHub, of the ruby-debug-ide gem and he replied:

"We have extended the protocol (variable node contains value sub-node) which is supposed to be compatible from xml point of view but debugcommons (which is used by Netbeans) is not prepared for this change. So you should either use 0.4.23.beta1 or ask Netbeans team to fix debugcommons (I will be happy to help them if they need such help)"

https://github.com/ruby-debug/ruby-debug-ide/issues/61
Comment 3 di97msgd 2014-10-20 06:56:01 UTC
Is there anything more you need from me?

Regards Mats