Skip to main content
Niraj Bende が「#MuleSoft」で質問

When I deploy mule app to cloudhub 2.0 on runtime 4.9.7.x , i can see below error.  error:  Optional[api-config]` has flow mappings but they are not iterable, the model `APIKit` must have changed incompatibly    Upon researching on this the suggested solution I found is either revert app to 4.9.6 or use latest version of api kit router like1.11.8 or higher.    Does anyone knows if we have anyother solution rather upgrading each time api kit router version?   

1 件の回答
  1. 9月29日 7:01

    Hi Niraj!

    This looks like a compatibility issue between the Mule runtime 4.9.7.x and the APIKit model used by the application. If the application was built with an older APIKit Router version, the runtime can fail while interpreting the APIKit flow mappings. 

     

    Apart from downgrading the runtime or manually upgrading the APIKit Router, I’d check whether the application is inheriting an older APIKit dependency through the project’s pom.xml or Exchange dependencies. Running a Maven dependency tree can help identify which APIKit version is actually being packaged.

    If the APIKit Router version is being resolved transitively, explicitly pinning a compatible version in the project dependency management may avoid having to update it individually across applications. 

     

    For a large number of apps, it may also be worth standardizing the APIKit version through the Maven parent/dependency-management configuration so future runtime upgrades don’t require changing every project separately.

0/9000