Error Running App

0
I tried to run my app locally but an error saying ‘Compilation of Java actions failed’ appears. I already tried cleaning deployment directory but it didn’t help. This are the error details: Buildfile: C:\Users\daniel.fbastos\Mendix\InnopointsMockService-main\deployment\build_core.xml compile:     [javac] Compiling 239 source files to C:\Users\daniel.fbastos\Mendix\InnopointsMockService-main\deployment\run\bin     [javac] C:\Users\daniel.fbastos\Mendix\InnopointsMockService-main\javasource\module\proxies\User.java:95: error: load(IContext,String) in User cannot hide load(IContext,String) in Account     [javac]     public static java.util.List<module.proxies.User> load(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String xpathConstraint) throws com.mendix.core.CoreException     [javac]                                                       ^     [javac]   return type List<User> is not compatible with List<Account>     [javac] Note: Some input files use or override a deprecated API.     [javac] Note: Recompile with -Xlint:deprecation for details.     [javac] Note: Some input files use unchecked or unsafe operations.     [javac] Note: Recompile with -Xlint:unchecked for details.     [javac] 1 error BUILD FAILED C:\Users\daniel.fbastos\Mendix\InnopointsMockService-main\deployment\build_core.xml:30: Compile failed; see the compiler error output for details. Total time: 6 seconds  
asked
1 answers
1

Hi Daniel,

It looks like you created or changed a java action to return a list of Account (in Studio Pro) but your java source code returns a list of User. 

An Account is (by default) a User by inheritance (specialization), but a User (generalization) is not always an Account. 

Deploy your project for Eclipse and change your Java source code accordingly. 

answered