Skip to main content

#MuleSoft Anypoint Studio토론 중인 항목 3개

Questions and answers about MuleSoft Anypoint Studio, best practices, and use cases.

It seems as if we can (no longer?) import API Specifications from Exchange that are published as Development versions?  We also can not import from Design Center Projects. 

 

This actually impedes our development process as we don't have a truly Stable version of an API until the code is also Stable (and ready for production).  In addition, there does not appear to be a way that a published asset retains links to a branch in its source Design Center project which would be helpful in correlating various API 'versions' with their source - yes, you can 'view the source,' but there is no way to use that to update or identify the actual, editable specification. 

 

How can Anypoint Studio import API Specs in Development state? 

 

#MuleSoft Design Center / API Designer  #MuleSoft Anypoint Studio

0/9000

Environment & Setup:

  • System API (SAPI): Port 8081 
  • Process API (PAPI): Port 8083 (Calls SAPI via HTTP Request component)

Issue Description:

 When running both APIs locally in debug mode, both applications deploy successfully. However, when PAPI sends an HTTP request to SAPI, execution does not trigger the breakpoints set in SAPI. 

 

Troubleshooting Steps Taken:

  • Reinstalled to the latest version of Anypoint Studio.
  • Created a fresh workspace and re-imported the projects.

#MuleSoft Anypoint Studio

답변 1개
  1. Khyati Mehta (InfinySkills) Forum Ambassador
    9월 11일 오후 4:41

    Hello Abhijeet, 

     

    This usually happens because Anypoint Studio treats the two local APIs as separate applications/JVMs, so debugging PAPI doesn’t automatically attach the debugger to SAPI. Even though both apps are running in debug mode, the HTTP call from PAPI to localhost:8081 is just a normal HTTP request, and the SAPI debugger needs to be properly attached to the SAPI runtime for its breakpoints to trigger. I’d first check that SAPI is actually launched with Debug As - Mule Application, that the debugger is attached to the correct SAPI process, and that the breakpoint is placed on an executable Mule component rather than something that isn’t being executed. Also verify that PAPI is really calling

    http://localhost:8081 and not another configured endpoint. If both projects are using the same workspace/runtime, restarting Studio and launching SAPI in debug first, then PAPI can also help. Hope this helps!

0/9000

I am not able to install anypoint studio, I am getting below error when clicking on the download link. It's not a network or device specific issue because I have tried with different network and devices. 

 

Not able to download Anypoint Studio

 

 

 

#MuleSoft Anypoint Studio

답변 3개
  1. Eric Burté (DEVOTEAM) Forum Ambassador
    3월 17일 오후 9:38

    @Aditya Chasta

    it seems ok for me. Maybe try to upload your Chrome web browser first 

    And tray again in a normal Chrome window.

    it seems ok for me. Maybe try to upload your Chrome web browser first And tray again in a normal Chrome window.

    Good luck 

    Eric 

0/9000

I don't have the encryption key with me. In the runtime, its protected and is just having an option to replace the values. The developer is no longer working with us so would not be able to get the data from him. All the credentials are encrypted and I'm not aware of few of the credentials. How to decrypt the values now.  And while trying to run in my local, I'm getting an error  "You need to increment your key size. The minimum allowed key size is: 16, but your key size is: 10 ". Upon checking the jar file has a key of size 10 and not 16.   

답변 3개
0/9000

Hi,

 

I am new to this forum getting my skills updated with the training material.I tried to download any point studio zip folder and when i tried to unzip it it is giving an error .However i changed the zip folder name to short name but when unzipping it is giving error for few files when copying which is the same error path too long.could you please let us know how to set environment variables for JDk

답변 15개
  1. 2월 24일 오전 7:22

    I recommend using the Long Path Tool to resolve this issue.

0/9000

getting following error while running as Mule Application

 

[INFO] Scanning for projects...

Downloading: https://repository.mulesoft.org/nexus/content/repositories/releases/org/mule/tools/maven/mule-maven-plugin/3.1.1/mule-maven-plugin-3.1.1.pom

 

Downloading: https://repository.mulesoft.org/nexus/content/groups/public/org/mule/tools/maven/mule-maven-plugin/3.1.1/mule-maven-plugin-3.1.1.pom

 

Downloading: https://repository.mulesoft.org/nexus-ee/content/repositories/releases-ee/org/mule/tools/maven/mule-maven-plugin/3.1.1/mule-maven-plugin-3.1.1.pom

 

Downloading: https://repository.mulesoft.org/releases/org/mule/tools/maven/mule-maven-plugin/3.1.1/mule-maven-plugin-3.1.1.pom

 

Downloading: https://repo.maven.apache.org/maven2/org/mule/tools/maven/mule-maven-plugin/3.1.1/mule-maven-plugin-3.1.1.pom

 

[ERROR] [ERROR] Some problems were encountered while processing the POMs:

[ERROR] Unresolveable build extension: Plugin org.mule.tools.maven:mule-maven-plugin:3.1.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.mule.tools.maven:mule-maven-plugin:jar:3.1.1 @

[ERROR] Unknown packaging: mule-application @ line 9, column 13

@

[ERROR] The build could not read 1 project -> [Help 1]

[ERROR]

[ERROR] The project com.mycompany:velo-system-api:1.0.0-SNAPSHOT (C:\MuleSoft\AnyPointStudio\studio-workspace\doc-addr-check-accnt\pom.xml) has 2 errors

[ERROR] Unresolveable build extension: Plugin org.mule.tools.maven:mule-maven-plugin:3.1.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.mule.tools.maven:mule-maven-plugin:jar:3.1.1: Could not transfer artifact org.mule.tools.maven:mule-maven-plugin:pom:3.1.1 from/to mule-public (https://repository.mulesoft.org/nexus/content/repositories/releases): Error transferring file: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target from https://repository.mulesoft.org/nexus/content/repositories/releases/org/mule/tools/maven/mule-maven-plugin/3.1.1/mule-maven-plugin-3.1.1.pom -> [Help 2]

[ERROR] Unknown packaging: mule-application @ line 9, column 13

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException

[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginManagerException

 

Here is my pom.xml( see attachment)

 

pomtxt.txt

 

답변 3개
  1. 2월 22일 오후 3:43

    SOLUTION

    1. Use the latest MUnit version and patch in pom.xml update in both <app.runtime> and <runtimeVersion>, as given below (Example):

    <app.runtime>4.3.0-20210609</app.runtime>

    <mule.maven.plugin.version>3.3.5</mule.maven.plugin.version>

    ......................

    ......................

    <groupId>com.mulesoft.munit.tools</groupId>

    <artifactId>munit-maven-plugin</artifactId>

    <version>${munit.version}</version>

    <runtimeVersion>4.4.0-20211227</runtimeVersion>

    ......................

    ......................

     

     

    For more details about MUnit Plugin, Refer

    MUnit Maven Plugin

     

     

    For the latest MUnit plugin, Refer

    MUnit Release Notes

     

     

    2. Clean the Project and re-run the scenario - Project -> Clean 

0/9000

this was the thing i am facing and could not get rid of it

even for a simple connection it is raising the same issueThere was an error running build on projectScreenshot (2)

답변 2개
  1. 2월 22일 오후 3:43

    SOLUTION

    1. Use the latest MUnit version and patch in pom.xml update in both <app.runtime> and <runtimeVersion>, as given below (Example):

    <app.runtime>4.3.0-20210609</app.runtime>

    <mule.maven.plugin.version>3.3.5</mule.maven.plugin.version>

    ......................

    ......................

    <groupId>com.mulesoft.munit.tools</groupId>

    <artifactId>munit-maven-plugin</artifactId>

    <version>${munit.version}</version>

    <runtimeVersion>4.4.0-20211227</runtimeVersion>

    ......................

    ......................

     

     

    For more details about MUnit Plugin, Refer

    MUnit Maven Plugin

     

     

    For the latest MUnit plugin, Refer

    MUnit Release Notes

     

     

    2. Clean the Project and re-run the scenario - Project -> Clean 

0/9000

Hi Team,

I can below Vulnerable Dependencies issues while generating SonarQube Scan Report. In this we are using only three jars which is activemq-broker-5.16.2.jar, activemq-client-5.16.0.jar, groovy-all-2.4.16-indy.jar, remaining and all we are not using in our application.

 

Please let us know how to resolve this issue. so that we can get Vulnerable Dependencies issues as null.

Please suggest us the version , if it required to update the version.

 

How to resolve this Vulnerable Dependencies issues which I am getting while generating report for sonarqube Scan?SonarqubeissuesPage1 

Regards,

Md Aamir Hassan

답변 1개
  1. 2월 18일 오후 8:54

    Did you get any resolution for the above query 

0/9000

Using Anypoint Studio 7.23 (Mule 4.10) on Windows 11, hot redeploy fails every time I save XML while the app is running. 

 

Studio shows: 

 

Project redeployment has been aborted due to an error 

 

Root error: 

 

java.nio.file.FileSystemException: ...jar: The process cannot access the file because it is being used by another process 

 

This happens while copying files into: 

 

<Studio>/plugins/org.mule.tooling.server.../mule/apps/<app>/repository/ 

 

 

What I tried: 

 

Workspace and Studio moved outside user folder 

 

Clean project, delete target + deployed app folder 

 

Restarted Studio and PC 

 

Result: 

App runs, but any save → redeploy fails → must stop/run manually. 

 

Has anyone faced this file-lock issue on Windows or found a fix? 

 

 

Anypoint Studio hot redeploy fails on save due to file lock on Windows

 

 

 

#MuleSoft Anypoint Studio

답변 2개
  1. Manish Kumar Yadav (Hitachi Energy) Forum Ambassador
    2월 3일 오후 10:22

    Hello, 

     

    One option to disable auto Build from Anypoint from Workspace , just search workspace and uncheck it 

     

    Hello, One option to disable auto Build from Anypoint from Workspace , just search workspace and uncheck it Another: - Try to run Studio with Admin Mode - Disable Antivirus - Add Exclusion for folder

     

     

    Another: 

    - Try to run Studio with Admin Mode 

    - Disable Antivirus 

    - Add Exclusion for folder location for Anypoint Installation and Workspace directory or Runtime Path in Windows defender 

     

    Thanks, 

    Manish Kumar Yadav 

    Trailblazer Community Forum Ambassadors 

     

0/9000

Hi  We are using JWT in some of our project and we are getting information from the JWT by using  authentication.properties.claims.preferred_username  After upgrading to J17 this is always returning null when running project locally.  But the same code is on Staging on Cloudhub and is working normal there.  For us it's really bad not to be able to test our code locally before pushing to staging and production.  I've tried several options  - All policies up2date  - Use Runtime 4.6, 4.9, 4.10  - Update all modules  But no luck the authentication object is always null (locally)    So the problem is  authentication object is ok on CloudHub  authentication object is null running locally   

답변 2개
  1. Manish Kumar Yadav (Hitachi Energy) Forum Ambassador
    1월 16일 오후 10:41

    Hello @Khyati Mehta

     

    First of all, I will never agree the answer you have provided , trust me. Please delete it or edit it.  

     

    @Sveinbjörn Geir Hlöðversson

    To give 100% working answer, First please check the below connection and let me know.:Based on your control Plane , your URLs for Anypoint Paltform for control would get change .  

     

    Hello , First of all, I will never agree the answer you have provided , trust me. Please delete it or edit it. , To give 100% working answer, First please check the below connection and let me know.

     

    Thanks, 

    Manish Kumar Yadav 

    Trailblazer Community Forum Ambassadors 

     

     

     

0/9000