Hello,
I’m looking for the assistance on implimenting ReadOnlyIdentityProvider.
I have implemented the ReadOnlyIdentityProvider and override all the methods.when it comes close() method
i’m getting class cast exception
override def close(): Unit
I’m getting below exception :
com.test.identity.MyReadOnlyIdentityProvider cannot be cast to org.camunda.bpm.engine.impl.identity.db.DbReadOnlyIdentityServiceProvider
Can anyone help me to solve this.
Thanks in advance,
Sagari.
Hi Sagari,
A stacktrace would be helpful to understand the problem.
Cheers,
Thorben
Hello Thorben,
Please have a look at this;
Hi Sagari,
This isn’t the complete stacktrace. Please copy and paste it in text form from the log file.
Cheers,
Thorben
Hello Thorben,
Please check this,
[ERROR] [06/23/2018 05:04:58.058] [ScalaTest-run-running-CamundaDeployServiceTest] [o.c.b.e.context] - ENGINE-16004 Exception while closing command context: com.reactore.hf.processManager.ReactoreReadOnlyIdentityProvider cannot be cast to org.camunda.bpm.engine.impl.identity.db.DbReadOnlyIdentityServiceProvider
java.lang.ClassCastException: com.reactore.hf.processManager.ReactoreReadOnlyIdentityProvider cannot be cast to org.camunda.bpm.engine.impl.identity.db.DbReadOnlyIdentityServiceProvider
at org.camunda.bpm.engine.impl.identity.db.DbUserQueryImpl.getIdentityProvider(DbUserQueryImpl.java:54) ~[camunda-engine-7.9.0.jar:7.9.0]
at org.camunda.bpm.engine.impl.identity.db.DbUserQueryImpl.executeList(DbUserQueryImpl.java:49) ~[camunda-engine-7.9.0.jar:7.9.0]
at org.camunda.bpm.engine.impl.AbstractQuery.evaluateExpressionsAndExecuteList(AbstractQuery.java:186) [camunda-engine-7.9.0.jar:7.9.0]
at org.camunda.bpm.engine.impl.AbstractQuery.executeSingleResult(AbstractQuery.java:207) [camunda-engine-7.9.0.jar:7.9.0]
at org.camunda.bpm.engine.impl.AbstractQuery.execute(AbstractQuery.java:165) [camunda-engine-7.9.0.jar:7.9.0]
at org.camunda.bpm.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24) ~[camunda-engine-7.9.0.jar:7.9.0]
at org.camunda.bpm.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:104) ~[camunda-engine-7.9.0.jar:7.9.0]
at org.camunda.bpm.engine.impl.interceptor.ProcessApplicationContextInterceptor.execute(ProcessApplicationContextInterceptor.java:66) [camunda-engine-7.9.0.jar:7.9.0]
at org.camunda.bpm.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:30) [camunda-engine-7.9.0.jar:7.9.0]
at org.camunda.bpm.engine.impl.AbstractQuery.singleResult(AbstractQuery.java:128) [camunda-engine-7.9.0.jar:7.9.0]
at com.reactore.hf.camunda.deploy.CamundaDeployServiceTest$$anonfun$1$$anonfun$apply$mcV$sp$1.apply$mcV$sp(CamundaDeployServiceTest.scala:36) [test-classes/:na]
at com.reactore.hf.camunda.deploy.CamundaDeployServiceTest$$anonfun$1$$anonfun$apply$mcV$sp$1.apply(CamundaDeployServiceTest.scala:16) [test-classes/:na]
at com.reactore.hf.camunda.deploy.CamundaDeployServiceTest$$anonfun$1$$anonfun$apply$mcV$sp$1.apply(CamundaDeployServiceTest.scala:16) [test-classes/:na]
at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.Transformer.apply(Transformer.scala:22) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.Transformer.apply(Transformer.scala:20) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.WordSpecLike$$anon$1.apply(WordSpecLike.scala:1078) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.TestSuite$class.withFixture(TestSuite.scala:196) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.WordSpec.withFixture(WordSpec.scala:1881) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.WordSpecLike$class.invokeWithFixture$1(WordSpecLike.scala:1075) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.WordSpecLike$$anonfun$runTest$1.apply(WordSpecLike.scala:1088) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.WordSpecLike$$anonfun$runTest$1.apply(WordSpecLike.scala:1088) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.SuperEngine.runTestImpl(Engine.scala:289) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.WordSpecLike$class.runTest(WordSpecLike.scala:1088) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.WordSpec.runTest(WordSpec.scala:1881) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.WordSpecLike$$anonfun$runTests$1.apply(WordSpecLike.scala:1147) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.WordSpecLike$$anonfun$runTests$1.apply(WordSpecLike.scala:1147) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:396) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:384) [scalatest_2.11-3.0.1.jar:na]
at scala.collection.immutable.List.foreach(List.scala:381) [scala-library-2.11.7.jar:na]
at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:384) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.SuperEngine.org$scalatest$SuperEngine$$runTestsInBranch(Engine.scala:373) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:410) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:384) [scalatest_2.11-3.0.1.jar:na]
at scala.collection.immutable.List.foreach(List.scala:381) [scala-library-2.11.7.jar:na]
at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:384) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.SuperEngine.org$scalatest$SuperEngine$$runTestsInBranch(Engine.scala:379) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:461) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.WordSpecLike$class.runTests(WordSpecLike.scala:1147) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.WordSpec.runTests(WordSpec.scala:1881) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.Suite$class.run(Suite.scala:1147) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.WordSpec.org$scalatest$WordSpecLike$$super$run(WordSpec.scala:1881) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.WordSpecLike$$anonfun$run$1.apply(WordSpecLike.scala:1192) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.WordSpecLike$$anonfun$run$1.apply(WordSpecLike.scala:1192) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.SuperEngine.runImpl(Engine.scala:521) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.WordSpecLike$class.run(WordSpecLike.scala:1192) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.WordSpec.run(WordSpec.scala:1881) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.tools.SuiteRunner.run(SuiteRunner.scala:45) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.tools.Runner$$anonfun$doRunRunRunDaDoRunRun$1.apply(Runner.scala:1340) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.tools.Runner$$anonfun$doRunRunRunDaDoRunRun$1.apply(Runner.scala:1334) [scalatest_2.11-3.0.1.jar:na]
at scala.collection.immutable.List.foreach(List.scala:381) [scala-library-2.11.7.jar:na]
at org.scalatest.tools.Runner$.doRunRunRunDaDoRunRun(Runner.scala:1334) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.tools.Runner$$anonfun$runOptionallyWithPassFailReporter$2.apply(Runner.scala:1011) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.tools.Runner$$anonfun$runOptionallyWithPassFailReporter$2.apply(Runner.scala:1010) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.tools.Runner$.withClassLoaderAndDispatchReporter(Runner.scala:1500) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:1010) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.tools.Runner$.run(Runner.scala:850) [scalatest_2.11-3.0.1.jar:na]
at org.scalatest.tools.Runner.run(Runner.scala) [scalatest_2.11-3.0.1.jar:na]
at org.jetbrains.plugins.scala.testingSupport.scalaTest.ScalaTestRunner.runScalaTest2(ScalaTestRunner.java:131) [runners.jar:0.1-SNAPSHOT]
at org.jetbrains.plugins.scala.testingSupport.scalaTest.ScalaTestRunner.main(ScalaTestRunner.java:28) [runners.jar:0.1-SNAPSHOT]