<-- Back

How to solve error: cannot find symbol in Studio Pro

Introduction

Most Marketplace components include embedded Java actions that rely on Mendix Runtime Java APIs. The set of supported Java APIs can change depending on the Studio Pro version. After upgrading Studio Pro, existing Marketplace modules in the project can still reference Java APIs that were supported in the previous Studio Pro version, but are deprecated in the current version, which can prevent Studio Pro from running successfully. It is possible to recognise this by finding the following line in the log: error: cannot find symbol.

Environment

Studio Pro (all versions)

Instructions/Procedure

After upgrading the Studio Pro version, when the run button is clicked for the first time, a pop-up will appear identifying the deprecated Mendix Runtime Java APIs, and the application will not start successfully. 

To solve the errors:

  1. Identify the Marketplace component that is causing the issue and upgrade it to the latest version, as the newer version may be using supported APIs. The error details indicate the exact location where the deprecated API is referenced. 
    1. After upgrading the component, run the project.
  2. If the Marketplace component is already on the latest version, the developers of the component have to update the deprecated APIs with the supported APIs in the next release.
    1. If it is platform supported, create a ticket with Mendix Support. 
    2. If it is community supported, reach out to the development team of the component, which can be found in the Marketplace.
  3. The error can also originate from custom Java actions that are created by the developer of the project, which include the Mendix Runtime Java API. In such cases, the affected Java actions should be updated in accordance with the Deprecated API guidelines.

Outcome

If the Marketplace component is not up to date, upgrading it should resolve the issue. If the error persists after the upgrade, the component’s developers will need to address and fix the problem.

Internal information related

  • 248878, 269537, 270372, 271274
  • WC-3293, MCDEP-3932
  • C0161C11YH1/p1769523635741469, CJZ85RLTA/p1770822103465999

Additional information

Have more questions? Submit a request

0 Comments

Article is closed for comments.

To provide feedback, please open a ticket here. Don't forget to include the article's URL along with the feedback you would like to provide.