Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 82389

Accessing deploy API through REST call returns security error

$
0
0

I try to access the deploy API through Call REST actions in Mendix 6.6.0. However, I get a security exception (see stacktrace below). Is there a workaround for this without using the REST module?

com.mendix.modules.microflowengine.MicroflowException: Error calling REST service
    at TeamServerWatch.DS_GetAppsForMendixUser (CallRest : 'Call REST (GET)')

Advanced stacktrace:
    at com.mendix.integration.actions.microflow.RestCallAction.executeRequest(RestCallAction.scala:58)

Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: java.security.PrivilegedActionException: javax.net.ssl.SSLException: hostname in certificate didn't match: <deploy.mendix.com> != <*.mendixcloud.com> OR <*.mendixcloud.com> OR <mendixcloud.com>
    at com.mendix.integration.util.PrivilegedUtil$.withPrivileged(PrivilegedUtil.scala:15)

Caused by: java.security.PrivilegedActionException: null
    at java.security.AccessController.doPrivileged(Native Method)
    at com.mendix.integration.util.PrivilegedUtil$.withPrivileged(PrivilegedUtil.scala:11)
    at com.mendix.integration.http.DefaultHttpClient$class.execute(DefaultHttpClient.scala:14)
    at com.mendix.integration.http.HttpRequest$$anon$1.com$mendix$integration$http$LoggableHttpClient$$super$execute(HttpRequest.scala:12)
    at com.mendix.integration.http.LoggableHttpClient$class.executeRequest(LoggableHttpClient.scala:22)
    at com.mendix.integration.http.LoggableHttpClient$class.execute(LoggableHttpClient.scala:16)
    at com.mendix.integration.http.HttpRequest$$anon$1.execute(HttpRequest.scala:12)
    at com.mendix.integration.http.HttpRequest.execute(HttpRequest.scala:33)
    at com.mendix.integration.actions.microflow.RestCallAction.executeRequest(RestCallAction.scala:55)
    at com.mendix.integration.actions.microflow.RestCallAction.execute(RestCallAction.scala:41)
    at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.java:47)
    at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.java:192)
    at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.java:149)
    at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:49)
    at com.mendix.core.actionmanagement.CoreAction.doCall(CoreAction.java:260)
    at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:248)
    at com.mendix.core.actionmanagement.ActionManager$1.execute(ActionManager.java:168)
    at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32)
    at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:174)
    at com.mendix.core.component.InternalCore.execute(InternalCore.java:377)
    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:282)
    at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:277)
    at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:277)
    at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2$$anon$1.execute(ActionDispatching.scala:144)
    at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32)
    at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2.apply(ActionDispatching.scala:146)
    at scala.util.Try$.apply(Try.scala:192)
    at com.mendix.core.session.Worker$$anonfun$receive$3.applyOrElse(ActionDispatching.scala:140)
    at akka.actor.Actor$class.aroundReceive(Actor.scala:465)
    at com.mendix.core.session.Worker.aroundReceive(ActionDispatching.scala:136)
    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)

Caused by: javax.net.ssl.SSLException: hostname in certificate didn't match: <deploy.mendix.com> != <*.mendixcloud.com> OR <*.mendixcloud.com> OR <mendixcloud.com>
    at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:238)
    at org.apache.http.conn.ssl.BrowserCompatHostnameVerifier.verify(BrowserCompatHostnameVerifier.java:54)
    at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:159)
    at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:140)
    at org.apache.http.conn.ssl.SSLSocketFactory.verifyHostname(SSLSocketFactory.java:561)
    at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:536)
    at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:403)
    at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:177)
    at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:304)
    at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:611)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446)
    at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)
    at com.mendix.integration.http.DefaultHttpClient$$anonfun$execute$1.apply(DefaultHttpClient.scala:14)
    at com.mendix.integration.http.DefaultHttpClient$$anonfun$execute$1.apply(DefaultHttpClient.scala:14)
    at com.mendix.integration.util.PrivilegedUtil$$anon$1.run(PrivilegedUtil.scala:12)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.mendix.integration.util.PrivilegedUtil$.withPrivileged(PrivilegedUtil.scala:11)
    at com.mendix.integration.http.DefaultHttpClient$class.execute(DefaultHttpClient.scala:14)
    at com.mendix.integration.http.HttpRequest$$anon$1.com$mendix$integration$http$LoggableHttpClient$$super$execute(HttpRequest.scala:12)
    at com.mendix.integration.http.LoggableHttpClient$class.executeRequest(LoggableHttpClient.scala:22)
    at com.mendix.integration.http.LoggableHttpClient$class.execute(LoggableHttpClient.scala:16)
    at com.mendix.integration.http.HttpRequest$$anon$1.execute(HttpRequest.scala:12)
    at com.mendix.integration.http.HttpRequest.execute(HttpRequest.scala:33)
    at com.mendix.integration.actions.microflow.RestCallAction.executeRequest(RestCallAction.scala:55)
    at com.mendix.integration.actions.microflow.RestCallAction.execute(RestCallAction.scala:41)
    at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.java:47)
    at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAfterBreakingIfNecessary(MicroflowImpl.java:192)
    at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.executeAction(MicroflowImpl.java:149)
    at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:49)
    at com.mendix.core.actionmanagement.CoreAction.doCall(CoreAction.java:260)
    at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:248)
    at com.mendix.core.actionmanagement.ActionManager$1.execute(ActionManager.java:168)
    at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32)
    at com.mendix.core.actionmanagement.ActionManager.executeSync(ActionManager.java:174)
    at com.mendix.core.component.InternalCore.execute(InternalCore.java:377)
    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:282)
    at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:277)
    at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:277)
    at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2$$anon$1.execute(ActionDispatching.scala:144)
    at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32)
    at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2.apply(ActionDispatching.scala:146)
    at scala.util.Try$.apply(Try.scala:192)
    at com.mendix.core.session.Worker$$anonfun$receive$3.applyOrElse(ActionDispatching.scala:140)
    at akka.actor.Actor$class.aroundReceive(Actor.scala:465)
    at com.mendix.core.session.Worker.aroundReceive(ActionDispatching.scala:136)
    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)

Viewing all articles
Browse latest Browse all 82389

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>