Burp Suite User Forum

Login to post

Montoya API NoSuchMethodError

Federico | Last updated: Mar 15, 2023 11:18AM UTC

When loading an extension that uses the burp.api.montoya.ui.menu.MenuItem.basicMenuItem method, I receive the following exception: java.lang.NoSuchMethodError: 'burp.api.montoya.ui.menu.BasicMenuItem burp.api.montoya.ui.menu.MenuItem.basicMenuItem(java.lang.String)' An example of line of code is the following one: BasicMenuItem numberOfDefaultColumnsMenuItem = MenuItem.basicMenuItem("# of added columns"); I'm using last version of Burp Professional and last version of Montoya API. Thank you

Hannah, PortSwigger Agent | Last updated: Mar 15, 2023 11:56AM UTC

Hi Could you tell me the specific versions of Burp Pro and the Montoya API you are using? I've just tested this with v2023.3 of Burp and the Montoya API, but have not encountered any issues.

Federico | Last updated: Mar 15, 2023 01:46PM UTC

Hi Hannah, I'm using Burp Suite v2023.2.3 (the last stable if I'm not wrong) and Montoya API v2023.3. Thank you for your help! Federico

Hannah, PortSwigger Agent | Last updated: Mar 15, 2023 02:22PM UTC

Hi Federico Could you try downgrading your Montoya version to v2023.2, or upgrading your Burp version to 2023.3 (Early Adopter) and see if that makes a difference? The MenuItem interfaces are also present in v2023.2 of the Montoya API, so your functionality shouldn't be affected by downgrading - https://github.com/PortSwigger/burp-extensions-montoya-api/blob/de3a71f60914b87f959257372f768d62f56c9754/src/main/java/burp/api/montoya/ui/menu The version number of the Montoya API represents the minimum version of Burp that the version is compatible with.

Federico | Last updated: Mar 15, 2023 02:28PM UTC

Hi Hannah, I tried with Burp Suite v2023.2.3 and Montoya API v2023.2 but I have the same error. I'm using Linux. Thank you for your help! Federico

Hannah, PortSwigger Agent | Last updated: Mar 15, 2023 04:23PM UTC

Hi Federico We've looked into this in some more detail, and it looks like this is due to a bug in the current Stable version. If you use the latest Early Adopter (v2023.3) with the Montoya API (either v2023.2 or 2023.3), then you should no longer encounter this issue. I'm sorry for the inconvenience.

Federico | Last updated: Mar 17, 2023 02:13PM UTC

Hi Hannah, With Burp Suite v2023.3 it works correctly. Thank you for your help! Federico

You need to Log in to post a reply. Or register here, for free.