Hi all, When I build a project I got error message as below. Then I decide to build for eclipse. it’s has error as picture .How can I fix ? javasource\sftp\actions\Connect.java:125: error: method execute in class Core cannot be applied to given types; [javac] result = Core.execute(getContext(), this.microflow, this.microflowArgument); [javac] ^ [javac] required: T [javac] found: IContext,String,IMendixObject [javac] reason: cannot infer type-variable(s) T,R [javac] (actual and formal argument lists differ in length) [javac] where T,R are type-variables: [javac] T extends CoreAction<R> declared in method <T,R>execute(T) [javac] R extends Object declared in method <T,R>execute(T)
“ We removed the deprecated <R> R execute(IContext context, String name, Object... params) throws CoreException, <R> R execute(IContext context, String microflowName, Map<String, Object> params), and <R> R execute(IContext context, String microflowName, boolean executeInTransaction, Map<String, Object> params) methods from the Core. Use Core.microflowCall and Core.userActionCall methods instead. ”
So you will need to rewrite the Java code to use different methods. Otherwise, you can send a message to the maintainer of the module, with the request to make it compatible with Mendix 9.
If you can’t wait on the developer, you can fix this yourself with a few steps:
Look for the Connect JavaAction in Mendix Studio Pro from the Sftp module.
Add a String parameter to the Connect JavaAction (I used “inputParameterName”).
You now get a few errors because you have to specify an inputParameterName name everywhere the Connect JavaAction is used. Use the Variable name of the microflowParameter parameter you pass to the JavaAction in the microflow. So use “Explore” as inputParameterName in the IVK_Open microflow for example.
Do a “Deploy for Eclips” in Mendix Studio Pro → App → Deploy for Eclipse.
Open Connect.java in the javasource\sftp\actions folder of your project with a text editor.