Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error initializing tooling instance in Mule Anypoint Studio

I am new to Mule and was following the official tutorial in using the Anypoint Studio. I was trying to test the connection of a database connector when I found that there was an issue with the tooling instance, in which the following message was given.

Error-Test_DB_Connection

I went to check the status of the tooling instance, and it was not started. Then I tried to restart the tooling instance, but it failed as shown below.

Error-Restart_instance_failed

Below is the corresponding error message (in Workspace/.metadata/.log). Kindly see if there are any insights, thanks.

!ENTRY org.mule.tooling.core 4 0 2018-05-16 15:23:25.104
!MESSAGE There was an error initializing tooling instance
!STACK 0
org.mule.tooling.runtime.controller.MuleControllerException: Timeout while starting mule instance
at org.mule.tooling.runtime.controller.MuleController.start(MuleController.java:143)
at org.mule.tooling.client.startup.ToolingManager.restart(ToolingManager.java:154)
at org.mule.tooling.client.ui.preferences.ToolingClientPreferencesPage$1.run(ToolingClientPreferencesPage.java:127)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
Caused by: org.awaitility.core.ConditionTimeoutException: Condition with lambda expression in org.mule.tooling.runtime.controller.MuleController was not fulfilled within 90 seconds.
at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:104)
at org.awaitility.core.CallableCondition.await(CallableCondition.java:79)
at org.awaitility.core.CallableCondition.await(CallableCondition.java:27)
at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:809)
at org.awaitility.core.ConditionFactory.until(ConditionFactory.java:785)
at org.mule.tooling.runtime.controller.MuleController.start(MuleController.java:127)
... 3 more

[Environment information]
Platform: macOS 10.13.4
AnyPoint Studio version: 7.1.2
Mule runtime version: 4.1.1 EE
JDK version: 1.8.0_172
Port 3306 outbound connection is open

like image 618
Patrick C. Avatar asked Jul 01 '26 01:07

Patrick C.


2 Answers

Hey no above solutions worked for me.

But what I am going to share did work for me.

  1. Check your MAVEN_HOME path which should be set to "C:\Program Files\Apache\maven"
  2. Check your JAVA_HOME path which should be set to "C:\Program Files\Java\jdk1.8.0_172"
  3. Check your "PATH" in system variables which should kept the "C:\Program Files\Java\jdk1.8.0_172\bin" and at FIRST PLACE like C:\Program Files\Java\jdk1.8.0_172\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;. .. . .
  4. In Anypoint studio, windows->Preference->Java->installed JRE and change path to "C:\Program Files\Java\jdk1.8.0_172".
  5. Update anypoint studio from check for updates.
  6. Restart the anypoint studio and it will work.

Note mentioned path could be different for you and Java path is of JDK not for JRE.

like image 72
Anuj_Garg Avatar answered Jul 04 '26 02:07

Anuj_Garg


I had same issue in my MacOS and resolved it by following the below steps

  1. goto Window > Preferences -> Anypoint Studio -> Tooling

Click here to see Tooling screen shot

  1. Click Check status button (can be found under Life cycle) if you don't see "Tooling instance is running) then try restart instance or restart your Anypoint studio.

  2. if you keep experience this issue on your current project, try opening another project.

For me, the moment I tried in another project (follows all above 3 steps) , I was a able to test connection successfully.

like image 42
Venkatesan Natarajan Avatar answered Jul 04 '26 02:07

Venkatesan Natarajan