PUBLISHED REST API ISSUE

0
Hello Experts, I have published an API where I enabled basic authentication (username and password) which will authenticate the logged in users and returns the response as “Success” if it is authenticated successfully. Here when I hit the API I am getting an error: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"type":"LoginAction","user":"L1"}', all database changes executed by this action were rolled back     at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.scala:110) Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"type":"LoginAction","user":"L1"}', all database changes executed by this action were rolled back     at com.mendix.util.classloading.Runner$.withContextClassLoader(Runner.scala:23) Caused by: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"type":"LoginAction","user":"L1"}', all database changes executed by this action were rolled back     at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.processErrorState(CoreActionHandlerImpl.scala:153) Caused by: java.lang.IllegalArgumentException: Invalid UUID string: value     at java.base/java.util.UUID.fromString(UUID.java:215)     at com.mendix.basis.session.SessionManager.$anonfun$getExistingSession$2(SessionManager.scala:383)     at scala.Option.flatMap(Option.scala:283)     at com.mendix.basis.session.SessionManager.getExistingSession(SessionManager.scala:383)     at com.mendix.basis.session.SessionManager.initializeSession(SessionManager.scala:198)     at com.mendix.basis.session.LoginManagerImpl.initializeSession(LoginManagerImpl.scala:92)     at com.mendix.basis.action.user.LoginActionHandlerImpl.doExecuteAction(LoginActionHandlerImpl.scala:34)     at com.mendix.basis.action.user.LoginActionHandlerImpl.executeAction(LoginActionHandlerImpl.scala:29)     at com.mendix.core.action.user.LoginAction.executeAction(LoginAction.java:44)     at com.mendix.core.action.user.LoginAction.executeAction(LoginAction.java:11)     at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:58)     at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:71)     at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:48)     at com.mendix.core.actionmanagement.internal.InternalCoreAction.call(InternalCoreAction.java:56)     at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.$anonfun$runMonitoredAction$1(CoreActionHandlerImpl.scala:59)     at com.mendix.basis.actionmanagement.ActionMonitoring$.$anonfun$monitor$1(ActionMonitoring.scala:49)     at com.mendix.util.classloading.Runner$.withContextClassLoader(Runner.scala:20)     at com.mendix.basis.actionmanagement.ActionMonitoring$.monitor(ActionMonitoring.scala:49)     at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.runMonitoredAction(CoreActionHandlerImpl.scala:59)     at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:46)     at com.mendix.core.actionmanagement.internal.InternalCoreAction.call(InternalCoreAction.java:56)     at com.mendix.basis.actionmanagement.ActionManager.$anonfun$executeSync$2(ActionManager.scala:106)     at com.mendix.util.classloading.Runner$.withContextClassLoader(Runner.scala:20)     at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.scala:105)     at com.mendix.basis.component.ExecutionCore.doExecuteSync(ExecutionCore.scala:147)     at com.mendix.basis.component.ExecutionCore.doExecuteSync$(ExecutionCore.scala:146)     at com.mendix.basis.component.InternalCore.doExecuteSync(InternalCore.scala:24)     at com.mendix.basis.component.SessionCore.login(SessionCore.scala:79)     at com.mendix.basis.component.SessionCore.login$(SessionCore.scala:78)     at com.mendix.basis.component.InternalCore.login(InternalCore.scala:24)     at com.mendix.basis.component.SessionCore.login(SessionCore.scala:129)     at com.mendix.basis.component.SessionCore.login(SessionCore.scala:88)     at com.mendix.basis.component.SessionCore.login$(SessionCore.scala:87)     at com.mendix.basis.component.InternalCore.login(InternalCore.scala:24)     at com.mendix.integration.authentication.BasicAuthenticator.$anonfun$authenticate$1(BasicAuthenticator.scala:12)     at scala.Option.map(Option.scala:242)     at com.mendix.integration.authentication.BasicAuthenticator.authenticate(BasicAuthenticator.scala:10)     at com.mendix.integration.authentication.Authenticator.authenticate(Authenticator.scala:28)     at com.mendix.integration.authentication.Authenticator.$anonfun$authenticate$1(Authenticator.scala:35)     at scala.collection.Iterator$$anon$10.nextCur(Iterator.scala:587)     at scala.collection.Iterator$$anon$10.hasNext(Iterator.scala:601)     at scala.collection.Iterator.nextOption(Iterator.scala:102)     at scala.collection.Iterator.nextOption$(Iterator.scala:102)     at scala.collection.AbstractIterator.nextOption(Iterator.scala:1293)     at com.mendix.integration.util.IteratorUtil$RichIterable$.firstDefined$extension(IteratorUtil.scala:27)     at com.mendix.integration.authentication.Authenticator.authenticate(Authenticator.scala:35)     at com.mendix.integration.service.rest.RestOperationProcessors.withAuthenticationContext(RestOperationProcessors.scala:153)     at com.mendix.integration.service.rest.RestOperationProcessors.$anonfun$operationResponse$3(RestOperationProcessors.scala:123)     at com.mendix.integration.service.rest.RestOperationProcessors.operationResponse(RestOperationProcessors.scala:125)     at com.mendix.integration.service.rest.RestOperationProcessors.processOperations(RestOperationProcessors.scala:84)     at com.mendix.integration.service.rest.RestOperationProcessors.$anonfun$createProcessor$1(RestOperationProcessors.scala:61)     at com.mendix.integration.service.PathProcessors.$anonfun$process$1(PathProcessors.scala:32)     at scala.collection.Iterator$$anon$10.nextCur(Iterator.scala:587)     at scala.collection.Iterator$$anon$10.hasNext(Iterator.scala:601)     at scala.collection.Iterator.nextOption(Iterator.scala:102)     at scala.collection.Iterator.nextOption$(Iterator.scala:102)     at scala.collection.AbstractIterator.nextOption(Iterator.scala:1293)     at com.mendix.integration.util.IteratorUtil$RichIterable$.firstDefined$extension(IteratorUtil.scala:27)     at com.mendix.integration.service.PathProcessors.process(PathProcessors.scala:28)     at com.mendix.integration.service.PathProcessors.process$(PathProcessors.scala:27)     at com.mendix.integration.service.rest.RestOperationProcessors.process(RestOperationProcessors.scala:41)     at com.mendix.integration.requesthandlers.RestRequestHandler.$anonfun$processRequest$1(RestRequestHandler.scala:38)     at scala.collection.Iterator$$anon$10.nextCur(Iterator.scala:587)     at scala.collection.Iterator$$anon$10.hasNext(Iterator.scala:601)     at scala.collection.Iterator.nextOption(Iterator.scala:102)     at scala.collection.Iterator.nextOption$(Iterator.scala:102)     at scala.collection.AbstractIterator.nextOption(Iterator.scala:1293)     at com.mendix.integration.util.IteratorUtil$RichIterable$.firstDefined$extension(IteratorUtil.scala:27)     at com.mendix.integration.requesthandlers.RestRequestHandler.processRequest(RestRequestHandler.scala:38)     at com.mendix.externalinterface.connector.RequestHandler.doProcessRequest(RequestHandler.java:37)     at com.mendix.external.connector.MxRuntimeConnector.$anonfun$processRequest$1(MxRuntimeConnector.scala:50)     at com.mendix.external.connector.MxRuntimeConnector.$anonfun$processRequest$1$adapted(MxRuntimeConnector.scala:50)     at com.mendix.util.classloading.Runner$.withContextClassLoader(Runner.scala:20)     at com.mendix.external.connector.MxRuntimeConnector.processRequest(MxRuntimeConnector.scala:50)     at com.mendix.basis.impl.MxRuntimeImpl.processRequest(MxRuntimeImpl.scala:223)     at com.mendix.m2ee.appcontainer.server.handler.RuntimeServlet.service(RuntimeServlet.scala:25)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)     at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799)     at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1631)     at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:230)     at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193)     at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)     at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:548)     at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)     at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)     at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)     at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1440)     at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)     at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501)     at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)     at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)     at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1355)     at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)     at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)     at org.eclipse.jetty.server.Server.handle(Server.java:516)     at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487)     at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732)     at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479)     at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)     at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)     at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)     at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)     at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)     at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)     at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)     at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:137)     at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)     at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)     at java.base/java.lang.Thread.run(Thread.java:834) Answers are really much appreciated!    
asked
1 answers
0

Hi Arun, 

Can you share some screenshot of your microflow

answered