Resolved: java.lang.NoSuchMethodError on Staging Server
Posted: Wed Jan 11, 2023 8:10 pm
I have implemented Single-Sign-On, SSO with Azure AD in Servoy. This works perfectly in Developer, but when we deploy to staging the callback from Microsoft causes a 500 error.
Servoy 2021.12, Tomcat 9.0.58.
Any idea of what we need to look for?
Servoy 2021.12, Tomcat 9.0.58.
- Code: Select all
2023-01-11 17:56 Executor,uuid:48D7B71:4, clientid: BB49CBF2-D564-4F54-BD18-74DA2CE756E2 ERROR org.sablo.eventthread.EventDispatcher Exception in dispatch()
java.lang.NoSuchMethodError: 'com.fasterxml.jackson.core.util.JacksonFeatureSet com.fasterxml.jackson.core.JsonParser.getReadCapabilities()'
at com.fasterxml.jackson.databind.DeserializationContext.<init>(DeserializationContext.java:211) ~[?:?]
at com.fasterxml.jackson.databind.deser.DefaultDeserializationContext.<init>(DefaultDeserializationContext.java:50) ~[?:?]
at com.fasterxml.jackson.databind.deser.DefaultDeserializationContext$Impl.<init>(DefaultDeserializationContext.java:391) ~[?:?]
at com.fasterxml.jackson.databind.deser.DefaultDeserializationContext$Impl.createInstance(DefaultDeserializationContext.java:413) ~[?:?]
at com.fasterxml.jackson.databind.ObjectMapper.createDeserializationContext(ObjectMapper.java:4656) ~[?:?]
at com.fasterxml.jackson.databind.ObjectMapper._readTreeAndClose(ObjectMapper.java:4631) ~[?:?]
at com.fasterxml.jackson.databind.ObjectMapper.readTree(ObjectMapper.java:3042) ~[?:?]
at com.github.scribejava.core.extractors.OAuth2AccessTokenJsonExtractor.createToken(OAuth2AccessTokenJsonExtractor.java:83) ~[?:?]
at com.github.scribejava.core.extractors.OAuth2AccessTokenJsonExtractor.extract(OAuth2AccessTokenJsonExtractor.java:39) ~[?:?]
at com.github.scribejava.core.extractors.OAuth2AccessTokenJsonExtractor.extract(OAuth2AccessTokenJsonExtractor.java:17) ~[?:?]
at com.github.scribejava.core.oauth.OAuth20Service.sendAccessTokenRequestSync(OAuth20Service.java:157) ~[?:?]
at com.github.scribejava.core.oauth.OAuth20Service.getAccessToken(OAuth20Service.java:237) ~[?:?]
at com.github.scribejava.core.oauth.OAuth20Service.getAccessToken(OAuth20Service.java:232) ~[?:?]
at com.servoy.extensions.plugins.oauth.OAuthService.setAccessToken(OAuthService.java:112) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:166) ~[js.jar:?]
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:292) ~[js.jar:?]
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1487) ~[js.jar:?]
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815) ~[js.jar:?]
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109) ~[js.jar:?]
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:399) ~[js.jar:?]
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3534) ~[js.jar:?]
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:107) ~[js.jar:?]
at com.servoy.j2db.scripting.ScriptEngine.executeFunction(ScriptEngine.java:727) ~[j2db.jar:2021.12.2.3724]
at com.servoy.j2db.scripting.ScopesScope.executeGlobalFunction(ScopesScope.java:193) ~[j2db.jar:2021.12.2.3724]
at com.servoy.j2db.server.ngclient.NGFormManager.makeSolutionSettings(NGFormManager.java:263) ~[servoy_ngclient_2021.12.2.3724.jar:?]
at com.servoy.j2db.server.ngclient.NGFormManager$1.run(NGFormManager.java:412) ~[servoy_ngclient_2021.12.2.3724.jar:?]
at com.servoy.j2db.server.ngclient.NGFormManager.propertyChange(NGFormManager.java:417) ~[servoy_ngclient_2021.12.2.3724.jar:?]
at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:341) ~[?:?]
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333) ~[?:?]
at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:92) ~[?:?]
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:266) ~[?:?]
at com.servoy.j2db.J2DBGlobals.firePropertyChange(J2DBGlobals.java:107) ~[j2db.jar:2021.12.2.3724]
at com.servoy.j2db.server.ngclient.NGClient.lambda$1(NGClient.java:716) ~[servoy_ngclient_2021.12.2.3724.jar:?]
at com.servoy.j2db.server.ngclient.NGClient.runWhileShowingLoadingIndicator(NGClient.java:705) ~[servoy_ngclient_2021.12.2.3724.jar:?]
at com.servoy.j2db.server.ngclient.NGClient.loadSolution(NGClient.java:713) ~[servoy_ngclient_2021.12.2.3724.jar:?]
at com.servoy.j2db.server.ngclient.NGClient.loadSolution(NGClient.java:568) ~[servoy_ngclient_2021.12.2.3724.jar:?]
at com.servoy.j2db.server.ngclient.NGClientWebsocketSession$1.run(NGClientWebsocketSession.java:293) ~[servoy_ngclient_2021.12.2.3724.jar:?]
at org.sablo.eventthread.Event$1.run(Event.java:97) ~[sablo_2021.12.2.3724.jar:?]
at org.sablo.websocket.CurrentWindow.runForWindow(CurrentWindow.java:80) ~[sablo_2021.12.2.3724.jar:?]
at org.sablo.eventthread.Event.execute(Event.java:87) ~[sablo_2021.12.2.3724.jar:?]
at org.sablo.eventthread.EventDispatcher.addEvent(EventDispatcher.java:172) ~[sablo_2021.12.2.3724.jar:?]
at org.sablo.eventthread.EventDispatcher.addEvent(EventDispatcher.java:162) ~[sablo_2021.12.2.3724.jar:?]
at com.servoy.j2db.server.ngclient.NGClientWebsocketSession.onOpen(NGClientWebsocketSession.java:277) ~[servoy_ngclient_2021.12.2.3724.jar:?]
at org.sablo.websocket.WebsocketEndpoint$1.run(WebsocketEndpoint.java:180) ~[sablo_2021.12.2.3724.jar:?]
at org.sablo.eventthread.Event$1.run(Event.java:97) ~[sablo_2021.12.2.3724.jar:?]
at org.sablo.websocket.CurrentWindow.runForWindow(CurrentWindow.java:80) ~[sablo_2021.12.2.3724.jar:?]
at org.sablo.eventthread.Event.execute(Event.java:87) ~[sablo_2021.12.2.3724.jar:?]
at org.sablo.eventthread.EventDispatcher.dispatch(EventDispatcher.java:130) [sablo_2021.12.2.3724.jar:?]
at org.sablo.eventthread.EventDispatcher.run(EventDispatcher.java:89) [sablo_2021.12.2.3724.jar:?]
at com.servoy.j2db.server.ngclient.eventthread.NGEventDispatcher.run(NGEventDispatcher.java:57) [servoy_ngclient_2021.12.2.3724.jar:?]
at java.lang.Thread.run(Thread.java:829) [?:?]
Any idea of what we need to look for?