Custom Java Action

2
I have solved the problem it seems that when mendix stores the location of the java action that the _ gets misinterpreted and removed from the action name, causing a failure when a microflow activity tries to call the java action with a different name. Will this be fixed? Hi I am experiencing a strange error when creating a custom java action my action isn't very complex and should just return a string value. Eclipse Version: Luna Service Release 1a (4.4.1) Build id: 20150109-0600 Whenever I edit my java actions and on initial creation I get the following error when it is called from a microflow : com.mendix.modules.microflowengine.MicroflowException: java.util.NoSuchElementException: key not found: facebookintegration.jarequestlongtermaccesstoken at FacebookIntegration.ATRequireLongTermToken (JavaAction : 'JA_RequestLongTermAccessToken') Advanced stacktrace: at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:158) Caused by: com.mendix.core.CoreException: java.util.NoSuchElementException: key not found: facebookintegration.ja_requestlongtermaccesstoken at com.mendix.core.component.InternalCore.execute(InternalCore.java:275) Caused by: java.util.NoSuchElementException: key not found: facebookintegration.ja_requestlongtermaccesstoken at scala.collection.MapLike$class.default(MapLike.scala:228) at scala.collection.AbstractMap.default(Map.scala:59) at scala.collection.mutable.HashMap.apply(HashMap.scala:65) at com.mendix.core.actionmanagement.ActionRegistry.getUserActionClass(ActionRegistry.scala:30) at com.mendix.core.action.ActionFactory.createJavaAction(ActionFactory.scala:28) at com.mendix.core.action.ActionFactory.createUserAction(ActionFactory.scala:94) at com.mendix.core.component.InternalCore.execute(InternalCore.java:262) at com.mendix.modules.microflowengine.actions.actioncall.JavaAction.execute(JavaAction.scala:42) at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.java:49) at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.java:193) at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.java:148) at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:53) at com.mendix.core.actionmanagement.CoreAction.doCall(CoreAction.java:291) at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:276) at com.mendix.core.actionmanagement.ActionManager$1.execute(ActionManager.java:204) at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:37) at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:199) at com.mendix.core.component.InternalCore.execute(InternalCore.java:263) at com.mendix.webui.actions.client.ExecuteAction.execute(ExecuteAction.java:135) at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply$mcV$sp(ClientRequestHandler.scala:300) at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:293) at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:293) at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2$$anon$1.execute(ActionDispatching.scala:151) at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:37) at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2.apply(ActionDispatching.scala:153) at scala.util.Try$.apply(Try.scala:191) at com.mendix.core.session.Worker$$anonfun$receive$3.applyOrElse(ActionDispatching.scala:147) at akka.actor.Actor$class.aroundReceive(Actor.scala:465) at com.mendix.core.session.Worker.aroundReceive(ActionDispatching.scala:140) at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516) at akka.actor.ActorCell.invoke(ActorCell.scala:487) at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238) at akka.dispatch.Mailbox.run(Mailbox.scala:220) at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393) at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) Could someone please help me as I have no idea what might be causing this problem, is it eclipse?
asked
2 answers
0

It doesn't seem to be able to find the action called facebookintegration.ja_requestlongtermaccesstoken, I can't really tell you why not though. What did you do with the Java action? Can you give us some more information on when this occurs?

answered
0

I got that error when Eclipse built the project in Java 8 which is not yet supported by Mendix.

answered