MuleSoft Support often sees issues with Anypoint Studio that keep it from working as expected. The behavior can range from crashing randomly, to odd or unusual behavior, and warning or error messages appearing in the Studio log file. In addition, workspaces simply won't open.
These issues are usually not reproducible by MuleSoft Support or by the developer's colleagues, but are simply tied to an existing install of Anypoint Platform.
Anypoint Studio uses Eclipse under the covers, and the design of the Eclipse workspace means that there is a lot of change data that is stored behind the scenes. For example, looking into the <workspace dir>\.metadata directory will give you some idea of the information that is stored. As much of what is used when designing a Mule application are plug-ins to Eclipse, after time you end up with a workspace that is untidy and with unused, old, or incorrect references within it. Eventually, the metadata that is retained is irrelevant and causes unexplainable conflicts.
In order to prevent and/or reduce the chance to face these issues, you need to launch the app with "-clean", or define "osgi.clean=true" to make sure you clear any cached dependencies.
"any cached data used by the OSGi framework and eclipse runtime will be wiped clean. This will clean the caches used to store bundle dependency resolution and eclipse extension registry data. Using this option will force eclipse to reinitialize these caches."
To do so, please edit your %STUDIO_HOME%/AnypointStudio.ini (windows) or $STUDIO_HOME/Contents/Eclipse/AnypointStudio.ini (mac) file and add the following argument at the end of the file:
-Dosgi.clean=true
If using the above doesn't help, we recommend creating a new workspace.
Steps:
1) Export your preferences from the old workspace (assuming the old one is still accessible).
This can be done by going to:
File -> Export... -> General -> Preferences -> "To preference file", give the file a name -> Finish
To make sure you export all the preferences that you have, use the "Export All" option.
2) Create a new workspace:
How to create a new workspace in Anypoint Studio
Then, import your file:
File -> Import -> General -> Preferences -> "From preferences file" ->Select your file -> Import
3) To recover any old projects, please export/download them from the old workspace to your local machine, and import them into the new workspace.
To import:
File -> Import -> Anypoint Studio -> Anypoint Studio Project from External Location
Tips:
-Find the project root of the Project
-Import with the option "copy project into workspace" enabled -- without this last option, you will simply link to the old project in the old Workspace and it may still give you the same problem as before
Finally, what can be done, is start Anypoint Studio up with the clean option enabled all the time. This is not recommended as Studio will take longer to start each time. What is a good compromise is to have a shortcut to Anypoint Studio that does include the clean option, that is used periodically.
Please note that these solutions may not fix every workspace issue, but we do find that it does fix a majority of unusual issues. If you are still having issues, please contact MuleSoft Customer Support.
001114926

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.