java.lang.IllegalStateException: JBAS018786: Multiple deployment unit processors registered with priority 16386 and class class org.switchyard.as7.extension.deployment.SwitchYardModuleDependencyProcessor

hivmr.com | 4 months ago
  1. 0

    db:: 3.08::SwitchYard 0.7 BPEL howto s9

    hivmr.com | 4 months ago
    java.lang.IllegalStateException: JBAS018786: Multiple deployment unit processors registered with priority 16386 and class class org.switchyard.as7.extension.deployment.SwitchYardModuleDependencyProcessor
  2. 0

    [GSS](6.4.z) JBoss hits IllegalStateException upon reload after adding modcluster subsystem

    https://bugzilla.redhat.com/bugzilla/ | 1 year ago | Aaron Ogburn
    java.lang.IllegalStateException: JBAS018786: Multiple Deployment Unit registered processors with priority class 7170 and class org.jboss.as.modcluster.ModClusterServiceWebDependencyProcessor
  3. 0

    This is an interesting one. We are using JupyterHub with Python to connect to a Hadoop cluster to run Spark jobs and as the new Spark versions come out I compile them and add as new kernels to JupyterHub to be used. There are also some libraries we are using, like ojdbc to connect to an Oracle database. Now the interesting thing, that ojdbc worked fine in Spark 1.6.0 but suddenly "it cannot be found" in 1.6.1. Everything, all settings are the same when starting pyspark 1.6.1 and 1.6.0, so there is no reason for it not to work in 1.6.1 if it works in 1.6.0. This is the pysparjk code I am running in both 1.6.1 and 1.6.0: {quote} df = sqlContext.read.format('jdbc').options(url='jdbc:oracle:thin:'+connection_script+'', dbtable='bi.contact').load() print(df.count()){quote} And it throws this error in 1.6.1 only: {quote} java.lang.IllegalStateException: Did not find registered driver with class oracle.jdbc.OracleDriver at org.apache.spark.sql.execution.datasources.jdbc.JdbcUtils$$anonfun$createConnectionFactory$2$$anonfun$3.apply(JdbcUtils.scala:58) at org.apache.spark.sql.execution.datasources.jdbc.JdbcUtils$$anonfun$createConnectionFactory$2$$anonfun$3.apply(JdbcUtils.scala:58) at scala.Option.getOrElse(Option.scala:120) at org.apache.spark.sql.execution.datasources.jdbc.JdbcUtils$$anonfun$createConnectionFactory$2.apply(JdbcUtils.scala:57) at org.apache.spark.sql.execution.datasources.jdbc.JdbcUtils$$anonfun$createConnectionFactory$2.apply(JdbcUtils.scala:52) at org.apache.spark.sql.execution.datasources.jdbc.JDBCRDD$$anon$1.<init>(JDBCRDD.scala:347) at org.apache.spark.sql.execution.datasources.jdbc.JDBCRDD.compute(JDBCRDD.scala:339) at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:306) at org.apache.spark.rdd.RDD.iterator(RDD.scala:270) at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38) at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:306) at org.apache.spark.rdd.RDD.iterator(RDD.scala:270) at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38) at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:306) at org.apache.spark.rdd.RDD.iterator(RDD.scala:270) at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:73) at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:41) at org.apache.spark.scheduler.Task.run(Task.scala:89) at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:214) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745){quote} I know that this usually means that the ojdbc driver is not available on the executor, but it is. Spark is being started the exact same way in 1.6.1 as in 1.6.0 and it does find it on 1.6.0. I can steadily reproduce this, so the only conclusion that something must have changed between 1.6.0 and 1.6.1 causing this, but I have see no "depreciation" notice of anything what could cause this. Environment variables set when starting pyspark 1.6.1: {quote} "SPARK_HOME": "/usr/lib/spark-1.6.1-hive", "SCALA_HOME": "/usr/lib/scala", "HADOOP_CONF_DIR": "/etc/hadoop/venus-hadoop-conf", "HADOOP_HOME": "/usr/bin/hadoop", "HIVE_HOME": "/usr/bin/hive", "LD_LIBRARY_PATH": "/usr/local/hadoop/lib/native/:$LD_LIBRARY_PATH", "YARN_HOME": "", "SPARK_DIST_CLASSPATH": "/etc/hadoop/conf:/usr/lib/hadoop/lib/*:/usr/lib/hadoop/.//*:/usr/lib/hadoop-hdfs/./:/usr/lib/hadoop-hdfs/lib/*:/usr/lib/hadoop-hdfs/.//*:/usr/lib/hadoop-yarn/lib/*:/usr/lib/hadoop-yarn/.//*:/usr/lib/hadoop-mapreduce/lib/*:/usr/lib/hadoop-mapreduce/.//*", "SPARK_LIBRARY_PATH": "/usr/lib/hadoop/lib", "PATH": "/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/apps/home/zoltan.fedor/.local/bin:/apps/home/zoltan.fedor/bin:/usr/bin/hadoop/bin", "PYTHONPATH": "/usr/lib/spark-1.6.1-hive/python/:/usr/lib/spark-1.6.1-hive/python/lib/py4j-0.9-src.zip", "PYTHONSTARTUP": "/usr/lib/spark-1.6.1-hive/python/pyspark/shell.py", "PYSPARK_SUBMIT_ARGS": "--master yarn --deploy-mode client --name JupyterHub --executor-memory 2G --driver-memory 2G --queue root.frbdusers --num-executors 10 --executor-cores 2 --conf spark.executor.extraClassPath=/usr/lib/hadoop/lib,/apps/bin/oracle_ojdbc/ojdbc6.jar --driver-class-path /apps/bin/oracle_ojdbc/ojdbc6.jar --files /usr/lib/spark-1.6.1-hive/conf/hive-site.xml --jars /usr/lib/avro/avro-mapred.jar,/usr/lib/spark-1.6.1-hive/lib/spark-examples-1.6.1-hadoop2.5.0-cdh5.3.3.jar,/apps/bin/oracle_ojdbc/ojdbc6.jar,/usr/lib/spark-1.6.1-hive/lib/datanucleus-api-jdo-3.2.6.jar,/usr/lib/spark-1.6.1-hive/lib/datanucleus-core-3.2.10.jar,/usr/lib/spark-1.6.1-hive/lib/datanucleus-rdbms-3.2.9.jar pyspark-shell", "PYSPARK_PYTHON": "/hadoop/cloudera/parcels/Anaconda/bin/python", "PYTHON_DRIVER_PYTHON": "/apps/bin/anaconda/anaconda2/bin/ipython", "HIVE_CP": "/hadoop/coudera/parcels/CDH/lib/hive/lib/", "SPARK_YARN_USER_ENV": "PYTHONPATH=/usr/lib/spark-1.6.1-hive/python/:/usr/lib/spark-1.6.1-hive/python/lib/py4j-0.9-src.zip" {quote} And in 1.6.0: {quote} "SPARK_HOME": "/usr/lib/spark-1.6.0-hive", "SCALA_HOME": "/usr/lib/scala", "HADOOP_CONF_DIR": "/etc/hadoop/venus-hadoop-conf", "HADOOP_HOME": "/usr/bin/hadoop", "HIVE_HOME": "/usr/bin/hive", "LD_LIBRARY_PATH": "/usr/local/hadoop/lib/native/:$LD_LIBRARY_PATH", "YARN_HOME": "", "SPARK_DIST_CLASSPATH": "/etc/hadoop/conf:/usr/lib/hadoop/lib/*:/usr/lib/hadoop/.//*:/usr/lib/hadoop-hdfs/./:/usr/lib/hadoop-hdfs/lib/*:/usr/lib/hadoop-hdfs/.//*:/usr/lib/hadoop-yarn/lib/*:/usr/lib/hadoop-yarn/.//*:/usr/lib/hadoop-mapreduce/lib/*:/usr/lib/hadoop-mapreduce/.//*", "SPARK_LIBRARY_PATH": "/usr/lib/hadoop/lib", "PATH": "/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/apps/home/zoltan.fedor/.local/bin:/apps/home/zoltan.fedor/bin:/usr/bin/hadoop/bin", "PYTHONPATH": "/usr/lib/spark-1.6.0-hive/python/:/usr/lib/spark-1.6.0-hive/python/lib/py4j-0.9-src.zip", "PYTHONSTARTUP": "/usr/lib/spark-1.6.0-hive/python/pyspark/shell.py", "PYSPARK_SUBMIT_ARGS": "--master yarn --deploy-mode client --name JupyterHub --executor-memory 2G --driver-memory 2G --queue root.frbdusers --num-executors 10 --executor-cores 2 --conf spark.executor.extraClassPath=/usr/lib/hadoop/lib,/apps/bin/oracle_ojdbc/ojdbc6.jar --driver-class-path /apps/bin/oracle_ojdbc/ojdbc6.jar --files /usr/lib/spark-1.6.0-hive/conf/hive-site.xml --jars /usr/lib/avro/avro-mapred.jar,/usr/lib/spark-1.6.0-hive/lib/spark-examples-1.6.0-hadoop2.5.0-cdh5.3.3.jar,/apps/bin/oracle_ojdbc/ojdbc6.jar,/usr/lib/spark-1.6.0-hive/lib/datanucleus-api-jdo-3.2.6.jar,/usr/lib/spark-1.6.0-hive/lib/datanucleus-core-3.2.10.jar,/usr/lib/spark-1.6.0-hive/lib/datanucleus-rdbms-3.2.9.jar pyspark-shell", "PYSPARK_PYTHON": "/hadoop/cloudera/parcels/Anaconda/bin/python", "PYTHON_DRIVER_PYTHON": "/apps/bin/anaconda/anaconda2/bin/ipython", "HIVE_CP": "/hadoop/coudera/parcels/CDH/lib/hive/lib/", "SPARK_YARN_USER_ENV": "PYTHONPATH=/usr/lib/spark-1.6.0-hive/python/:/usr/lib/spark-1.6.0-hive/python/lib/py4j-0.8.2.1-src.zip" {quote}

    Apache's JIRA Issue Tracker | 8 months ago | Zoltan Fedor
    java.lang.IllegalStateException: Did not find registered driver with class oracle.jdbc.OracleDriver
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spark Did not find registered driver with class com.mysql.jdbc.Driver

    Stack Overflow | 7 months ago | Haseo
    java.lang.IllegalStateException: Did not find registered driver with class com.mysql.jdbc.Driver**
  6. 0

    Trouble setting up RestAssured framework with Spring Boot

    Stack Overflow | 5 months ago | socal_javaguy
    java.lang.IllegalStateException: Configuration error: found multiple declarations of @BootstrapWith on test class [EmployeeRestControllerTest] with values [class org.springframework.test.context.web.WebTestContextBootstrapper, class org.springframework.boot.test.WebAppIntegrationTestContextBootstrapper]

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      JBAS018786: Multiple deployment unit processors registered with priority 16386 and class class org.switchyard.as7.extension.deployment.SwitchYardModuleDependencyProcessor

      at org.jboss.as.server.DeployerChainAddHandler.addDeploymentProcessor()
    2. JBoss Application Server: Server
      AbstractDeploymentChainStep$1.addDeploymentProcessor
      1. org.jboss.as.server.DeployerChainAddHandler.addDeploymentProcessor(DeployerChainAddHandler.java:63)
      2. org.jboss.as.server.AbstractDeploymentChainStep$1.addDeploymentProcessor(AbstractDeploymentChainStep.java:40)
      2 frames
    3. org.switchyard.as7
      SwitchYardModuleAdd$1.execute
      1. org.switchyard.as7.extension.SwitchYardModuleAdd$1.execute(SwitchYardModuleAdd.java:99)
      1 frame
    4. JBoss Application Server: Server
      AbstractDeploymentChainStep.execute
      1. org.jboss.as.server.AbstractDeploymentChainStep.execute(AbstractDeploymentChainStep.java:50)
      1 frame
    5. JBoss Application Server: Controller Core
      ParallelBootOperationStepHandler$ParallelBootTask.run
      1. org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:607)[jboss-as-controller-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
      2. org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:485)[jboss-as-controller-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
      3. org.jboss.as.controller.AbstractOperationContext.completeStepInternal(AbstractOperationContext.java:282)[jboss-as-controller-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
      4. org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:277)[jboss-as-controller-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
      5. org.jboss.as.controller.ParallelBootOperationStepHandler$ParallelBootTask.run(ParallelBootOperationStepHandler.java:343)[jboss-as-controller-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
      5 frames
    6. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[rt.jar:1.7.0_55]
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[rt.jar:1.7.0_55]
      3. java.lang.Thread.run(Thread.java:745)[rt.jar:1.7.0_55]
      3 frames
    7. JBoss Threads
      JBossThread.run
      1. org.jboss.threads.JBossThread.run(JBossThread.java:122)[jboss-threads-2.1.1.Final-redhat-1.jar:2.1.1.Final-redhat-1]
      1 frame