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

SAML Module - Loader Constraint Violation

$
0
0

I have the SAML module installed in an existing app. Invoking the Startup microflow in this module, I get a hard error in the console and see the following stack trace:

java.lang.LinkageError: loader constraint violation: when resolving method
      "org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()Lorg/slf4j/ILoggerFactory;" 
       the class loader (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) 
       of the current class, org/slf4j/LoggerFactory, and the class loader
       (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) for the method's
        defining class, 
        org/slf4j/impl/StaticLoggerBinder, have different Class objects for the type org/slf4j/ILoggerFactory 
        used in the signature
at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:299)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:269)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)
at org.opensaml.DefaultBootstrap.getLogger(DefaultBootstrap.java:225)
at org.opensaml.DefaultBootstrap.initializeXMLSecurity(DefaultBootstrap.java:168)
at org.opensaml.DefaultBootstrap.bootstrap(DefaultBootstrap.java:90)
at saml20.implementation.SAMLRequestHandler.<init>(SAMLRequestHandler.java:62)
at saml20.implementation.SAMLRequestHandler.getInstance(SAMLRequestHandler.java:56)
at saml20.implementation.SSOServerConfiguration.start(SSOServerConfiguration.java:18)
at saml20.actions.StartSSO.executeAction(StartSSO.java:28)
at saml20.actions.StartSSO.executeAction(StartSSO.java:16)
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:383)
at com.mendix.modules.microflowengine.actions.actioncall.JavaAction.execute(JavaAction.scala:52)
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:383)
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:317)
at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:312)
at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:312)
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)

I created a test project with just the SAML module and didn't get this error. Any pointers on how to troubleshoot and correct the conflict in my project?

Thanks!


Viewing all articles
Browse latest Browse all 82397

Trending Articles