Mendix Native app project run failed. Runtime launcher failed to start.

0
Run project fails with an error. Details are shared below. Recently I have experienced many bugs in latest releases of Mendix 9. It is highly unstable.  Without any errors in project it is failing suddenly. Was working fine and only change I made is setting on click action of container to show a page. Reverted everything but still error occurs. Also tried restarting studio pro.  [rtlauncher:container$] INFO Container start took 3881. Ready to accept admin requests. Mendix Runtime launcher failed to start. For more information set 'MX_LOG_LEVEL' to 'i' (info) or 'v' (verbose) and try again. [rtlauncher:main$] ERROR Error while injecting 'class com.mendix.basis.actionmanagement.ActionRegistry' into class system.UserActionsRegistrar using 'bind method : 'registerActions'' (Warning: classloaders different: instance: project-userlib, implementation: platform-private): java.lang.reflect.InvocationTargetException. com.mendix.container.wiring.WiringError$InjectionError: Error while injecting 'class com.mendix.basis.actionmanagement.ActionRegistry' into class system.UserActionsRegistrar using 'bind method : 'registerActions'' (Warning: classloaders different: instance: project-userlib, implementation: platform-private): java.lang.reflect.InvocationTargetException. at com.mendix.container.wiring.InjectDependencyTask.$anonfun$execute$5(InjectDependencyTask.scala:25) at cats.data.Validated.leftMap(Validated.scala:584) at com.mendix.container.wiring.InjectDependencyTask.$anonfun$execute$4(InjectDependencyTask.scala:25) at scala.collection.immutable.List.map(List.scala:246) at com.mendix.container.wiring.InjectDependencyTask.$anonfun$execute$2(InjectDependencyTask.scala:19) at cats.data.Validated.andThen(Validated.scala:697) at com.mendix.container.wiring.InjectDependencyTask.execute(InjectDependencyTask.scala:18) at com.mendix.container.wiring.Wiring$.executeTasks(Wiring.scala:55) at com.mendix.container.wiring.Wiring$.$anonfun$doWireRuntime$6(Wiring.scala:28) at scala.util.Either.flatMap(Either.scala:352) at com.mendix.container.wiring.Wiring$.$anonfun$doWireRuntime$5(Wiring.scala:27) at scala.util.Either.flatMap(Either.scala:352) at com.mendix.container.wiring.Wiring$.doWireRuntime(Wiring.scala:23) at com.mendix.container.wiring.Wiring$.wireRuntime(Wiring.scala:15) at com.mendix.container.boot.Container$.$anonfun$doStart$10(Container.scala:118) at scala.util.Either.flatMap(Either.scala:352) at com.mendix.container.boot.Container$.doStart(Container.scala:114) at com.mendix.container.boot.Container$.doStart(Container.scala:97) at com.mendix.container.boot.Container$.$anonfun$startAndWaitForever$2(Container.scala:74) at scala.util.Either.flatMap(Either.scala:352) at com.mendix.container.boot.Container$.$anonfun$startAndWaitForever$1(Container.scala:73) at com.mendix.container.boot.Container$.time(Container.scala:156) at com.mendix.container.boot.Container$.startAndWaitForever(Container.scala:73) at com.mendix.container.boot.Main$.$anonfun$new$2(Main.scala:15) at scala.util.Either.flatMap(Either.scala:352) at com.mendix.container.boot.Main$.delayedEndpoint$com$mendix$container$boot$Main$1(Main.scala:14) at com.mendix.container.boot.Main$delayedInit$body.apply(Main.scala:11) at scala.Function0.apply$mcV$sp(Function0.scala:39) at scala.Function0.apply$mcV$sp$(Function0.scala:39) at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:17) at scala.App.$anonfun$main$1(App.scala:76) at scala.App.$anonfun$main$1$adapted(App.scala:76) at scala.collection.IterableOnceOps.foreach(IterableOnce.scala:563) at scala.collection.IterableOnceOps.foreach$(IterableOnce.scala:561) at scala.collection.AbstractIterable.foreach(Iterable.scala:919) at scala.App.main(App.scala:76) at scala.App.main$(App.scala:74) at com.mendix.container.boot.Main$.main(Main.scala:11) at com.mendix.container.boot.Main.main(Main.scala) Caused by: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at com.mendix.container.wiring.InjectDependencyTask$Reflect.$anonfun$call$1(InjectDependencyTask.scala:61) at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.scala:18) at cats.syntax.EitherObjectOps$.catchNonFatal$extension(either.scala:370) at com.mendix.container.wiring.InjectDependencyTask$Reflect.call(InjectDependencyTask.scala:60) at com.mendix.container.wiring.InjectDependencyTask.$anonfun$execute$4(InjectDependencyTask.scala:21) ... 36 more Caused by: java.lang.Error: Unresolved compilation problems: The method registerUserAction(Class<? extends UserAction<?>>) in the type IActionRegistrator is not applicable for the arguments (Class<VerifyPassword>) system.actions.VerifyPassword cannot be resolved to a type at system.UserActionsRegistrar.registerActions(UserActionsRegistrar.java:10) ... 45 more  
asked
2 answers
1

Issue resolved only after restarting Windows. Tried everything else like reverting all changes, clean deployment directory and restarting Studio Pro. 

answered
0

I would double check your userlib to check for double Jar files. Upgrading to 9 and renewing marketplace content is the probable cause. Untill Mendix fixes this (they are working on this issue) I would advise to always clean the userlib after major upgrades and renewing modules that have Java actions inside them.

Regards,

Ronald

 

answered