Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

failed to coerce [Lburp.IHttpRequestResponse; to burp.IHttpRequestResponse

HAHWUL Aug 01, 2018 06:24AM UTC

Hi everyone.
I writing burp extender code using Jruby. and... come in error :(
Plz help me...

[ Error ]
failed to coerce [Lburp.IHttpRequestResponse; to burp.IHttpRequestResponse

[ Code line ]
def createMenuItems(invocation)
....
requestResponse = invocation.getSelectedMessages
....
Blahblah~~ @callbacks.saveBuffersToTempFiles(requestResponse) # I think, error in this line
end

[ Question ]
- invocation on createMenuItems(IContextMenu) is Java Object?
- How to casting Java object to Ruby object?
- Um.. Just save me.


HAHWUL Aug 01, 2018 08:35AM UTC
Sorry.. I fixed it.

requestResponse = invocation.getSelectedMessages

=>

requestResponse = invocation.getSelectedMessages
requestResponse.each do | m |
blahblah~~~
end

Post Your public answer

Your name
Your email address
Answer