http 560 error after upgrading SAP XSUAA Connector from 2.0.0 to 2.1.2

1
Hi there, I have just upgrade my app to Mendix 8.17 and I am almost finished with upgrading the modules. I am stuck at SAP XSUAA Connector which after upgrading to 2.1.2 when logging in via XSUAA it results in a http 560 error. The app itself is running fine I have been investigating the log file but I could not find out the cause of problem. In the previous version of the module there was no Sapuser. In the newer version there is and it's a specialization of system.user. 2.0.0 2.1.2 Any tips how to solve or proceed?   Thanks in advance, Zef 2021-02-11T19:00:42.469+0000 [APP/PROC/WEB/0] OUT INFO - XSUAA_SSO: User exists - resetting roles and logging in ... 2021-02-11T19:00:42.471+0000 [APP/PROC/WEB/0] OUT ERROR - Connector: com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.IllegalArgumentException: The given object is not a SapAuthentication.SapUser 2021-02-11T19:00:42.471+0000 [APP/PROC/WEB/0] OUT at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:30) 2021-02-11T19:00:42.471+0000 [APP/PROC/WEB/0] OUT Caused by: java.lang.IllegalArgumentException: The given object is not a SapAuthentication.SapUser 2021-02-11T19:00:42.471+0000 [APP/PROC/WEB/0] OUT at sapauthentication.proxies.SapUser.<init>(SapUser.java:59) 2021-02-11T19:00:42.471+0000 [APP/PROC/WEB/0] OUT at sapauthentication.proxies.SapUser.initialize(SapUser.java:77) 2021-02-11T19:00:42.471+0000 [APP/PROC/WEB/0] OUT at sapauthentication.actions.StartXsuaaIntegration.createOrUpdateUser(StartXsuaaIntegration.java:314) 2021-02-11T19:00:42.472+0000 [RTR/32] OUT APP-dev.cfapps.eu10.hana.ondemand.com - [2021-02-11T19:00:42.032735638Z] "GET /xsauaacallback/?code=xxxxxxxxxx HTTP/1.1" 560 0 0 "https://XXX.authentication.eu10.hana.ondemand.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) >>>>>>>>>>>>>>>>>>>>> 2021-02-11T19:00:42.472+0000 [APP/PROC/WEB/0] OUT at sapauthentication.actions.StartXsuaaIntegration$2.processRequest(StartXsuaaIntegration.java:112) 2021-02-11T19:00:42.472+0000 [APP/PROC/WEB/0] OUT at com.mendix.externalinterface.connector.RequestHandler.doProcessRequest(RequestHandler.java:46) 2021-02-11T19:00:42.472+0000 [APP/PROC/WEB/0] OUT at com.mendix.external.connector.MxRuntimeConnector$1.execute(MxRuntimeConnector.java:76) 2021-02-11T19:00:42.472+0000 [APP/PROC/WEB/0] OUT at com.mendix.external.connector.MxRuntimeConnector$1.execute(MxRuntimeConnector.java:73) 2021-02-11T19:00:42.472+0000 [APP/PROC/WEB/0] OUT at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:26) 2021-02-11T19:00:42.472+0000 [APP/PROC/WEB/0] OUT at com.mendix.external.connector.MxRuntimeConnector.processRequest(MxRuntimeConnector.java:79) 2021-02-11T19:00:42.472+0000 [APP/PROC/WEB/0] OUT at com.mendix.basis.impl.MxRuntimeImplBase.processRequest(MxRuntimeImplBase.java:894) 2021-02-11T19:00:42.472+0000 [APP/PROC/WEB/0] OUT at com.mendix.m2ee.appcontainer.server.handler.RuntimeServlet.service(RuntimeServlet.java:42) 2021-02-11T19:00:42.472+0000 [APP/PROC/WEB/0] OUT at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) 2021-02-11T19:00:42.472+0000 [APP/PROC/WEB/0] OUT at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:763) 2021-02-11T19:00:42.472+0000 [APP/PROC/WEB/0] OUT at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1631) 2021-02-11T19:00:42.473+0000 [APP/PROC/WEB/0] OUT at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:226) 2021-02-11T19:00:42.473+0000 [APP/PROC/WEB/0] OUT at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1618) 2021-02-11T19:00:42.473+0000 [APP/PROC/WEB/0] OUT at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:549) 2021-02-11T19:00:42.473+0000 [APP/PROC/WEB/0] OUT at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) 2021-02-11T19:00:42.473+0000 [APP/PROC/WEB/0] OUT at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1610) 2021-02-11T19:00:42.473+0000 [APP/PROC/WEB/0] OUT at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) 2021-02-11T19:00:42.473+0000 [APP/PROC/WEB/0] OUT at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1369) 2021-02-11T19:00:42.473+0000 [APP/PROC/WEB/0] OUT at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) 2021-02-11T19:00:42.473+0000 [APP/PROC/WEB/0] OUT at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:489) 2021-02-11T19:00:42.473+0000 [APP/PROC/WEB/0] OUT at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1580) 2021-02-11T19:00:42.473+0000 [APP/PROC/WEB/0] OUT at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) 2021-02-11T19:00:42.474+0000 [APP/PROC/WEB/0] OUT at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1284) 2021-02-11T19:00:42.474+0000 [APP/PROC/WEB/0] OUT at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) 2021-02-11T19:00:42.474+0000 [APP/PROC/WEB/0] OUT at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) 2021-02-11T19:00:42.474+0000 [APP/PROC/WEB/0] OUT at org.eclipse.jetty.server.Server.handle(Server.java:501) 2021-02-11T19:00:42.474+0000 [APP/PROC/WEB/0] OUT at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383) 2021-02-11T19:00:42.474+0000 [APP/PROC/WEB/0] OUT at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:556) 2021-02-11T19:00:42.474+0000 [APP/PROC/WEB/0] OUT at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375) 2021-02-11T19:00:42.474+0000 [APP/PROC/WEB/0] OUT at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:272) 2021-02-11T19:00:42.474+0000 [APP/PROC/WEB/0] OUT at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) 2021-02-11T19:00:42.474+0000 [APP/PROC/WEB/0] OUT at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) 2021-02-11T19:00:42.474+0000 [APP/PROC/WEB/0] OUT at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) 2021-02-11T19:00:42.474+0000 [APP/PROC/WEB/0] OUT at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336) 2021-02-11T19:00:42.475+0000 [APP/PROC/WEB/0] OUT at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313) 2021-02-11T19:00:42.475+0000 [APP/PROC/WEB/0] OUT at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171) 2021-02-11T19:00:42.475+0000 [APP/PROC/WEB/0] OUT at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129) 2021-02-11T19:00:42.475+0000 [APP/PROC/WEB/0] OUT at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375) 2021-02-11T19:00:42.475+0000 [APP/PROC/WEB/0] OUT at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806) 2021-02-11T19:00:42.475+0000 [APP/PROC/WEB/0] OUT at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938) 2021-02-11T19:00:42.475+0000 [APP/PROC/WEB/0] OUT at java.base/java.lang.Thread.run(Unknown Source)  
asked
1 answers
1

So, we had the same problem when we updated the XSUAA Connector in our app.

The problem: User X could no longer sign into the app after the module update.

The solution: Remove the Account of User X

Why: The new module wants to create a SapUser object when User X signs in for the first time after the update. But it can't, because there is already an Account with the same Name. Both Account and SapUser are specializations of System.User and there can be no two objects with the same Name.

Why we went back to the old XSUAA Connector for the moment: Removing all Accounts caused some microflows to stop working, because in them are retrieves based on Account. We have to migrate those microflows (and some pages) from Account to SapUser before we can deploy the app with the new XSUAA Connector.

 

answered