The Burp Suite User Forum was discontinued on the 1st November 2024.

Burp Suite User Forum

For support requests, go to the Support Center. To discuss with other Burp users, head to our Discord page.

SUPPORT CENTER DISCORD

applyMarker in Ruby - java Class Cast Exception

BullKing | Last updated: Sep 21, 2016 06:58PM UTC

I am using Ruby to develop an extender, that do passive scan for a particular string in response. Everything is working fine apart from applyMarkers. When applyMarkers method is called I am receive the below error. Any Idea how to fix this ? How to Cast? what is [I in java ? Error: java.lang.RuntimeException: java.lang.ClassCastException: org.jruby.RubyArray cannot be cast to [I Thanks

PortSwigger Agent | Last updated: Sep 22, 2016 08:08AM UTC

The meaning of [I in the Java error message is a native array of int values. It looks like whatever you are doing in your Ruby code is causing JRuby to pass a RubyArray object to the Java API, rather than an int[] object.

Burp User | Last updated: Sep 22, 2016 07:55PM UTC