java.lang.IllegalStateException: cannot change the configuration while the transaction manager is running

Stack Overflow | Ivano Scifoni | 4 months ago
  1. 0

    Configuring bitronix transaction manager on spring boot to connect oracle db

    Stack Overflow | 4 months ago | Ivano Scifoni
    java.lang.IllegalStateException: cannot change the configuration while the transaction manager is running
  2. 0

    Creating bitronix transaction manager in spring-boot

    Stack Overflow | 2 years ago | mangusbrother
    java.lang.IllegalStateException: cannot change the configuration while the transaction manager is running
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Failure: http://builds.cask.co/browse/CDAP-DUT3208-JOB1-3/test/case/37302225 Seems like there were a couple of exceptions while running the query: {code} $ cat cdap-gateway/target/surefire-reports/co.cask.cdap.gateway.handlers.metrics.MetricsHandlerTestRun-output.txt 2015-11-23 10:30:37,951 - ERROR [metrics-collection] [metrics-collection:c.c.c.m.c.AggregatedMetricsCollectionService@106] - Failed in publishing metrics for timestamp 1448274637. java.lang.IllegalStateException: Transaction Manager is not running. at com.google.common.base.Preconditions.checkState(Preconditions.java:149) ~[guava-13.0.1.jar:na] at co.cask.tephra.TransactionManager.ensureAvailable(TransactionManager.java:707) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.TransactionManager.startTx(TransactionManager.java:766) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.TransactionManager.startShort(TransactionManager.java:726) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.TransactionManager.startShort(TransactionManager.java:714) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.inmemory.InMemoryTxSystemClient.startShort(InMemoryTxSystemClient.java:58) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.TransactionContext.start(TransactionContext.java:89) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.DefaultTransactionExecutor.executeOnce(DefaultTransactionExecutor.java:133) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.DefaultTransactionExecutor.executeWithRetry(DefaultTransactionExecutor.java:115) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:72) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:79) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.AbstractTransactionExecutor.executeUnchecked(AbstractTransactionExecutor.java:53) ~[tephra-core-0.6.3.jar:na] at co.cask.cdap.data2.metadata.store.DefaultMetadataStore.execute(DefaultMetadataStore.java:492) ~[classes/:na] at co.cask.cdap.data2.metadata.store.DefaultMetadataStore.setPropertiesNoPublish(DefaultMetadataStore.java:124) ~[classes/:na] at co.cask.cdap.data2.metadata.store.DefaultMetadataStore.setProperties(DefaultMetadataStore.java:85) ~[classes/:na] at co.cask.cdap.data2.metadata.store.SystemMetadataWriter.update(SystemMetadataWriter.java:85) ~[classes/:na] at co.cask.cdap.data2.metadata.writer.LineageWriterDatasetFramework.addInstance(LineageWriterDatasetFramework.java:97) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.createIfNotExists(DatasetsUtil.java:67) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.getOrCreateDataset(DatasetsUtil.java:54) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricDatasetFactory.getOrCreateMetricsTable(DefaultMetricDatasetFactory.java:123) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricDatasetFactory.access$000(DefaultMetricDatasetFactory.java:51) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricDatasetFactory$1.get(DefaultMetricDatasetFactory.java:75) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricDatasetFactory$1.get(DefaultMetricDatasetFactory.java:69) ~[classes/:na] at com.google.common.base.Suppliers$MemoizingSupplier.get(Suppliers.java:116) ~[guava-13.0.1.jar:na] at co.cask.cdap.metrics.store.DefaultMetricDatasetFactory.getOrCreateFactTable(DefaultMetricDatasetFactory.java:100) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricStore$1.get(DefaultMetricStore.java:213) ~[classes/:na] at co.cask.cdap.data2.dataset2.lib.cube.DefaultCube.<init>(DefaultCube.java:77) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricStore$2.get(DefaultMetricStore.java:219) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricStore$2.get(DefaultMetricStore.java:216) ~[classes/:na] at com.google.common.base.Suppliers$MemoizingSupplier.get(Suppliers.java:116) ~[guava-13.0.1.jar:na] at co.cask.cdap.metrics.store.DefaultMetricStore.add(DefaultMetricStore.java:254) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricStore.add(DefaultMetricStore.java:233) ~[classes/:na] at co.cask.cdap.metrics.collect.LocalMetricsCollectionService.publish(LocalMetricsCollectionService.java:60) ~[classes/:na] at co.cask.cdap.metrics.collect.AggregatedMetricsCollectionService.publishMetrics(AggregatedMetricsCollectionService.java:104) [classes/:na] at co.cask.cdap.metrics.collect.AggregatedMetricsCollectionService.runOneIteration(AggregatedMetricsCollectionService.java:99) [classes/:na] at com.google.common.util.concurrent.AbstractScheduledService$1$1.run(AbstractScheduledService.java:170) [guava-13.0.1.jar:na] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_51] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) [na:1.7.0_51] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) [na:1.7.0_51] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] 2015-11-23 10:30:38,544 - ERROR [metrics-collection] [metrics-collection:c.c.c.m.c.AggregatedMetricsCollectionService@106] - Failed in publishing metrics for timestamp 1448274638. java.lang.IllegalStateException: Transaction Manager is not running. at com.google.common.base.Preconditions.checkState(Preconditions.java:149) ~[guava-13.0.1.jar:na] at co.cask.tephra.TransactionManager.ensureAvailable(TransactionManager.java:707) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.TransactionManager.startTx(TransactionManager.java:766) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.TransactionManager.startShort(TransactionManager.java:726) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.TransactionManager.startShort(TransactionManager.java:714) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.inmemory.InMemoryTxSystemClient.startShort(InMemoryTxSystemClient.java:58) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.TransactionContext.start(TransactionContext.java:89) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.DefaultTransactionExecutor.executeOnce(DefaultTransactionExecutor.java:133) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.DefaultTransactionExecutor.executeWithRetry(DefaultTransactionExecutor.java:115) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:72) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:79) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.AbstractTransactionExecutor.executeUnchecked(AbstractTransactionExecutor.java:53) ~[tephra-core-0.6.3.jar:na] at co.cask.cdap.data2.metadata.store.DefaultMetadataStore.execute(DefaultMetadataStore.java:492) ~[classes/:na] at co.cask.cdap.data2.metadata.store.DefaultMetadataStore.setPropertiesNoPublish(DefaultMetadataStore.java:124) ~[classes/:na] at co.cask.cdap.data2.metadata.store.DefaultMetadataStore.setProperties(DefaultMetadataStore.java:85) ~[classes/:na] at co.cask.cdap.data2.metadata.store.SystemMetadataWriter.update(SystemMetadataWriter.java:85) ~[classes/:na] at co.cask.cdap.data2.metadata.writer.LineageWriterDatasetFramework.addInstance(LineageWriterDatasetFramework.java:97) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.createIfNotExists(DatasetsUtil.java:67) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.getOrCreateDataset(DatasetsUtil.java:54) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricDatasetFactory.getOrCreateMetricsTable(DefaultMetricDatasetFactory.java:123) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricDatasetFactory.getOrCreateFactTable(DefaultMetricDatasetFactory.java:98) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricStore$1.get(DefaultMetricStore.java:213) ~[classes/:na] at co.cask.cdap.data2.dataset2.lib.cube.DefaultCube.<init>(DefaultCube.java:77) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricStore$2.get(DefaultMetricStore.java:219) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricStore$2.get(DefaultMetricStore.java:216) ~[classes/:na] at com.google.common.base.Suppliers$MemoizingSupplier.get(Suppliers.java:116) ~[guava-13.0.1.jar:na] at co.cask.cdap.metrics.store.DefaultMetricStore.add(DefaultMetricStore.java:254) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricStore.add(DefaultMetricStore.java:233) ~[classes/:na] at co.cask.cdap.metrics.collect.LocalMetricsCollectionService.publish(LocalMetricsCollectionService.java:60) ~[classes/:na] at co.cask.cdap.metrics.collect.AggregatedMetricsCollectionService.publishMetrics(AggregatedMetricsCollectionService.java:104) [classes/:na] at co.cask.cdap.metrics.collect.AggregatedMetricsCollectionService.runOneIteration(AggregatedMetricsCollectionService.java:99) [classes/:na] at com.google.common.util.concurrent.AbstractScheduledService$1$1.run(AbstractScheduledService.java:170) [guava-13.0.1.jar:na] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_51] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) [na:1.7.0_51] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) [na:1.7.0_51] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] 2015-11-23 10:30:39,554 - ERROR [metrics-collection] [metrics-collection:c.c.c.m.c.AggregatedMetricsCollectionService@106] - Failed in publishing metrics for timestamp 1448274639. java.lang.IllegalStateException: Transaction Manager is not running. at com.google.common.base.Preconditions.checkState(Preconditions.java:149) ~[guava-13.0.1.jar:na] at co.cask.tephra.TransactionManager.ensureAvailable(TransactionManager.java:707) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.TransactionManager.startTx(TransactionManager.java:766) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.TransactionManager.startShort(TransactionManager.java:726) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.TransactionManager.startShort(TransactionManager.java:714) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.inmemory.InMemoryTxSystemClient.startShort(InMemoryTxSystemClient.java:58) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.TransactionContext.start(TransactionContext.java:89) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.DefaultTransactionExecutor.executeOnce(DefaultTransactionExecutor.java:133) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.DefaultTransactionExecutor.executeWithRetry(DefaultTransactionExecutor.java:115) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:72) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:79) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.AbstractTransactionExecutor.executeUnchecked(AbstractTransactionExecutor.java:53) ~[tephra-core-0.6.3.jar:na] at co.cask.cdap.data2.metadata.store.DefaultMetadataStore.execute(DefaultMetadataStore.java:492) ~[classes/:na] at co.cask.cdap.data2.metadata.store.DefaultMetadataStore.setPropertiesNoPublish(DefaultMetadataStore.java:124) ~[classes/:na] at co.cask.cdap.data2.metadata.store.DefaultMetadataStore.setProperties(DefaultMetadataStore.java:85) ~[classes/:na] at co.cask.cdap.data2.metadata.store.SystemMetadataWriter.update(SystemMetadataWriter.java:85) ~[classes/:na] at co.cask.cdap.data2.metadata.writer.LineageWriterDatasetFramework.addInstance(LineageWriterDatasetFramework.java:97) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.createIfNotExists(DatasetsUtil.java:67) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.getOrCreateDataset(DatasetsUtil.java:54) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricDatasetFactory.getOrCreateMetricsTable(DefaultMetricDatasetFactory.java:123) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricDatasetFactory.getOrCreateFactTable(DefaultMetricDatasetFactory.java:98) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricStore$1.get(DefaultMetricStore.java:213) ~[classes/:na] at co.cask.cdap.data2.dataset2.lib.cube.DefaultCube.<init>(DefaultCube.java:77) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricStore$2.get(DefaultMetricStore.java:219) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricStore$2.get(DefaultMetricStore.java:216) ~[classes/:na] at com.google.common.base.Suppliers$MemoizingSupplier.get(Suppliers.java:116) ~[guava-13.0.1.jar:na] at co.cask.cdap.metrics.store.DefaultMetricStore.add(DefaultMetricStore.java:254) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricStore.add(DefaultMetricStore.java:233) ~[classes/:na] at co.cask.cdap.metrics.collect.LocalMetricsCollectionService.publish(LocalMetricsCollectionService.java:60) ~[classes/:na] at co.cask.cdap.metrics.collect.AggregatedMetricsCollectionService.publishMetrics(AggregatedMetricsCollectionService.java:104) [classes/:na] at co.cask.cdap.metrics.collect.AggregatedMetricsCollectionService.runOneIteration(AggregatedMetricsCollectionService.java:99) [classes/:na] at com.google.common.util.concurrent.AbstractScheduledService$1$1.run(AbstractScheduledService.java:170) [guava-13.0.1.jar:na] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_51] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) [na:1.7.0_51] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) [na:1.7.0_51] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] 2015-11-23 10:30:40,553 - ERROR [metrics-collection] [metrics-collection:c.c.c.m.c.AggregatedMetricsCollectionService@106] - Failed in publishing metrics for timestamp 1448274640. java.lang.IllegalStateException: Transaction Manager is not running. at com.google.common.base.Preconditions.checkState(Preconditions.java:149) ~[guava-13.0.1.jar:na] at co.cask.tephra.TransactionManager.ensureAvailable(TransactionManager.java:707) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.TransactionManager.startTx(TransactionManager.java:766) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.TransactionManager.startShort(TransactionManager.java:726) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.TransactionManager.startShort(TransactionManager.java:714) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.inmemory.InMemoryTxSystemClient.startShort(InMemoryTxSystemClient.java:58) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.TransactionContext.start(TransactionContext.java:89) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.DefaultTransactionExecutor.executeOnce(DefaultTransactionExecutor.java:133) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.DefaultTransactionExecutor.executeWithRetry(DefaultTransactionExecutor.java:115) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:72) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:79) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.AbstractTransactionExecutor.executeUnchecked(AbstractTransactionExecutor.java:53) ~[tephra-core-0.6.3.jar:na] at co.cask.cdap.data2.metadata.store.DefaultMetadataStore.execute(DefaultMetadataStore.java:492) ~[classes/:na] at co.cask.cdap.data2.metadata.store.DefaultMetadataStore.setPropertiesNoPublish(DefaultMetadataStore.java:124) ~[classes/:na] at co.cask.cdap.data2.metadata.store.DefaultMetadataStore.setProperties(DefaultMetadataStore.java:85) ~[classes/:na] at co.cask.cdap.data2.metadata.store.SystemMetadataWriter.update(SystemMetadataWriter.java:85) ~[classes/:na] at co.cask.cdap.data2.metadata.writer.LineageWriterDatasetFramework.addInstance(LineageWriterDatasetFramework.java:97) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.createIfNotExists(DatasetsUtil.java:67) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.getOrCreateDataset(DatasetsUtil.java:54) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricDatasetFactory.getOrCreateMetricsTable(DefaultMetricDatasetFactory.java:123) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricDatasetFactory.getOrCreateFactTable(DefaultMetricDatasetFactory.java:98) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricStore$1.get(DefaultMetricStore.java:213) ~[classes/:na] at co.cask.cdap.data2.dataset2.lib.cube.DefaultCube.<init>(DefaultCube.java:77) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricStore$2.get(DefaultMetricStore.java:219) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricStore$2.get(DefaultMetricStore.java:216) ~[classes/:na] at com.google.common.base.Suppliers$MemoizingSupplier.get(Suppliers.java:116) ~[guava-13.0.1.jar:na] at co.cask.cdap.metrics.store.DefaultMetricStore.add(DefaultMetricStore.java:254) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricStore.add(DefaultMetricStore.java:233) ~[classes/:na] at co.cask.cdap.metrics.collect.LocalMetricsCollectionService.publish(LocalMetricsCollectionService.java:60) ~[classes/:na] at co.cask.cdap.metrics.collect.AggregatedMetricsCollectionService.publishMetrics(AggregatedMetricsCollectionService.java:104) [classes/:na] at co.cask.cdap.metrics.collect.AggregatedMetricsCollectionService.runOneIteration(AggregatedMetricsCollectionService.java:99) [classes/:na] at com.google.common.util.concurrent.AbstractScheduledService$1$1.run(AbstractScheduledService.java:170) [guava-13.0.1.jar:na] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_51] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) [na:1.7.0_51] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) [na:1.7.0_51] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] 2015-11-23 10:31:02,229 - WARN [executor-8] [executor-8:c.c.c.m.q.MetricsHandler@211] - Invalid request java.lang.IllegalArgumentException: Missing metrics parameter in the query at co.cask.cdap.metrics.query.MetricsHandler.executeQuery(MetricsHandler.java:331) [classes/:na] at co.cask.cdap.metrics.query.MetricsHandler.executeBatchQueries(MetricsHandler.java:207) [classes/:na] at co.cask.cdap.metrics.query.MetricsHandler.query(MetricsHandler.java:188) [classes/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_51] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_51] at co.cask.http.HttpMethodInfo.invoke(HttpMethodInfo.java:80) [netty-http-0.13.0.jar:na] at co.cask.http.HttpDispatcher.messageReceived(HttpDispatcher.java:38) [netty-http-0.13.0.jar:na] at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43) [netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67) [netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314) [netty-3.6.6.Final.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] 2015-11-23 10:31:02,235 - WARN [executor-13] [executor-13:c.c.c.m.q.MetricsHandler@240] - Invalid request java.lang.IllegalArgumentException: Missing metrics parameter in the query at co.cask.cdap.metrics.query.MetricsHandler.executeQuery(MetricsHandler.java:331) [classes/:na] at co.cask.cdap.metrics.query.MetricsHandler.executeQuery(MetricsHandler.java:252) [classes/:na] at co.cask.cdap.metrics.query.MetricsHandler.tagsQuerying(MetricsHandler.java:238) [classes/:na] at co.cask.cdap.metrics.query.MetricsHandler.query(MetricsHandler.java:192) [classes/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_51] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_51] at co.cask.http.HttpMethodInfo.invoke(HttpMethodInfo.java:80) [netty-http-0.13.0.jar:na] at co.cask.http.HttpDispatcher.messageReceived(HttpDispatcher.java:38) [netty-http-0.13.0.jar:na] at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43) [netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67) [netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314) [netty-3.6.6.Final.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] 2015-11-23 10:31:02,241 - WARN [executor-15] [executor-15:c.c.c.m.q.MetricsHandler@240] - Invalid request java.lang.IllegalArgumentException: Missing metrics parameter in the query at co.cask.cdap.metrics.query.MetricsHandler.executeQuery(MetricsHandler.java:331) [classes/:na] at co.cask.cdap.metrics.query.MetricsHandler.executeQuery(MetricsHandler.java:252) [classes/:na] at co.cask.cdap.metrics.query.MetricsHandler.tagsQuerying(MetricsHandler.java:238) [classes/:na] at co.cask.cdap.metrics.query.MetricsHandler.query(MetricsHandler.java:192) [classes/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_51] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_51] at co.cask.http.HttpMethodInfo.invoke(HttpMethodInfo.java:80) [netty-http-0.13.0.jar:na] at co.cask.http.HttpDispatcher.messageReceived(HttpDispatcher.java:38) [netty-http-0.13.0.jar:na] at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43) [netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67) [netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314) [netty-3.6.6.Final.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] {code} However, the 'metric' parameter is present in the query, so this needs more investigation.

    Cask Community Issue Tracker | 1 year ago | Bhooshan Mogal
    java.lang.IllegalStateException: Transaction Manager is not running.
  5. 0

    Failure: http://builds.cask.co/browse/CDAP-DUT3208-JOB1-3/test/case/37302225 Seems like there were a couple of exceptions while running the query: {code} $ cat cdap-gateway/target/surefire-reports/co.cask.cdap.gateway.handlers.metrics.MetricsHandlerTestRun-output.txt 2015-11-23 10:30:37,951 - ERROR [metrics-collection] [metrics-collection:c.c.c.m.c.AggregatedMetricsCollectionService@106] - Failed in publishing metrics for timestamp 1448274637. java.lang.IllegalStateException: Transaction Manager is not running. at com.google.common.base.Preconditions.checkState(Preconditions.java:149) ~[guava-13.0.1.jar:na] at co.cask.tephra.TransactionManager.ensureAvailable(TransactionManager.java:707) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.TransactionManager.startTx(TransactionManager.java:766) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.TransactionManager.startShort(TransactionManager.java:726) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.TransactionManager.startShort(TransactionManager.java:714) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.inmemory.InMemoryTxSystemClient.startShort(InMemoryTxSystemClient.java:58) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.TransactionContext.start(TransactionContext.java:89) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.DefaultTransactionExecutor.executeOnce(DefaultTransactionExecutor.java:133) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.DefaultTransactionExecutor.executeWithRetry(DefaultTransactionExecutor.java:115) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:72) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:79) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.AbstractTransactionExecutor.executeUnchecked(AbstractTransactionExecutor.java:53) ~[tephra-core-0.6.3.jar:na] at co.cask.cdap.data2.metadata.store.DefaultMetadataStore.execute(DefaultMetadataStore.java:492) ~[classes/:na] at co.cask.cdap.data2.metadata.store.DefaultMetadataStore.setPropertiesNoPublish(DefaultMetadataStore.java:124) ~[classes/:na] at co.cask.cdap.data2.metadata.store.DefaultMetadataStore.setProperties(DefaultMetadataStore.java:85) ~[classes/:na] at co.cask.cdap.data2.metadata.store.SystemMetadataWriter.update(SystemMetadataWriter.java:85) ~[classes/:na] at co.cask.cdap.data2.metadata.writer.LineageWriterDatasetFramework.addInstance(LineageWriterDatasetFramework.java:97) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.createIfNotExists(DatasetsUtil.java:67) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.getOrCreateDataset(DatasetsUtil.java:54) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricDatasetFactory.getOrCreateMetricsTable(DefaultMetricDatasetFactory.java:123) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricDatasetFactory.access$000(DefaultMetricDatasetFactory.java:51) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricDatasetFactory$1.get(DefaultMetricDatasetFactory.java:75) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricDatasetFactory$1.get(DefaultMetricDatasetFactory.java:69) ~[classes/:na] at com.google.common.base.Suppliers$MemoizingSupplier.get(Suppliers.java:116) ~[guava-13.0.1.jar:na] at co.cask.cdap.metrics.store.DefaultMetricDatasetFactory.getOrCreateFactTable(DefaultMetricDatasetFactory.java:100) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricStore$1.get(DefaultMetricStore.java:213) ~[classes/:na] at co.cask.cdap.data2.dataset2.lib.cube.DefaultCube.<init>(DefaultCube.java:77) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricStore$2.get(DefaultMetricStore.java:219) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricStore$2.get(DefaultMetricStore.java:216) ~[classes/:na] at com.google.common.base.Suppliers$MemoizingSupplier.get(Suppliers.java:116) ~[guava-13.0.1.jar:na] at co.cask.cdap.metrics.store.DefaultMetricStore.add(DefaultMetricStore.java:254) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricStore.add(DefaultMetricStore.java:233) ~[classes/:na] at co.cask.cdap.metrics.collect.LocalMetricsCollectionService.publish(LocalMetricsCollectionService.java:60) ~[classes/:na] at co.cask.cdap.metrics.collect.AggregatedMetricsCollectionService.publishMetrics(AggregatedMetricsCollectionService.java:104) [classes/:na] at co.cask.cdap.metrics.collect.AggregatedMetricsCollectionService.runOneIteration(AggregatedMetricsCollectionService.java:99) [classes/:na] at com.google.common.util.concurrent.AbstractScheduledService$1$1.run(AbstractScheduledService.java:170) [guava-13.0.1.jar:na] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_51] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) [na:1.7.0_51] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) [na:1.7.0_51] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] 2015-11-23 10:30:38,544 - ERROR [metrics-collection] [metrics-collection:c.c.c.m.c.AggregatedMetricsCollectionService@106] - Failed in publishing metrics for timestamp 1448274638. java.lang.IllegalStateException: Transaction Manager is not running. at com.google.common.base.Preconditions.checkState(Preconditions.java:149) ~[guava-13.0.1.jar:na] at co.cask.tephra.TransactionManager.ensureAvailable(TransactionManager.java:707) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.TransactionManager.startTx(TransactionManager.java:766) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.TransactionManager.startShort(TransactionManager.java:726) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.TransactionManager.startShort(TransactionManager.java:714) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.inmemory.InMemoryTxSystemClient.startShort(InMemoryTxSystemClient.java:58) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.TransactionContext.start(TransactionContext.java:89) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.DefaultTransactionExecutor.executeOnce(DefaultTransactionExecutor.java:133) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.DefaultTransactionExecutor.executeWithRetry(DefaultTransactionExecutor.java:115) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:72) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:79) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.AbstractTransactionExecutor.executeUnchecked(AbstractTransactionExecutor.java:53) ~[tephra-core-0.6.3.jar:na] at co.cask.cdap.data2.metadata.store.DefaultMetadataStore.execute(DefaultMetadataStore.java:492) ~[classes/:na] at co.cask.cdap.data2.metadata.store.DefaultMetadataStore.setPropertiesNoPublish(DefaultMetadataStore.java:124) ~[classes/:na] at co.cask.cdap.data2.metadata.store.DefaultMetadataStore.setProperties(DefaultMetadataStore.java:85) ~[classes/:na] at co.cask.cdap.data2.metadata.store.SystemMetadataWriter.update(SystemMetadataWriter.java:85) ~[classes/:na] at co.cask.cdap.data2.metadata.writer.LineageWriterDatasetFramework.addInstance(LineageWriterDatasetFramework.java:97) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.createIfNotExists(DatasetsUtil.java:67) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.getOrCreateDataset(DatasetsUtil.java:54) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricDatasetFactory.getOrCreateMetricsTable(DefaultMetricDatasetFactory.java:123) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricDatasetFactory.getOrCreateFactTable(DefaultMetricDatasetFactory.java:98) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricStore$1.get(DefaultMetricStore.java:213) ~[classes/:na] at co.cask.cdap.data2.dataset2.lib.cube.DefaultCube.<init>(DefaultCube.java:77) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricStore$2.get(DefaultMetricStore.java:219) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricStore$2.get(DefaultMetricStore.java:216) ~[classes/:na] at com.google.common.base.Suppliers$MemoizingSupplier.get(Suppliers.java:116) ~[guava-13.0.1.jar:na] at co.cask.cdap.metrics.store.DefaultMetricStore.add(DefaultMetricStore.java:254) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricStore.add(DefaultMetricStore.java:233) ~[classes/:na] at co.cask.cdap.metrics.collect.LocalMetricsCollectionService.publish(LocalMetricsCollectionService.java:60) ~[classes/:na] at co.cask.cdap.metrics.collect.AggregatedMetricsCollectionService.publishMetrics(AggregatedMetricsCollectionService.java:104) [classes/:na] at co.cask.cdap.metrics.collect.AggregatedMetricsCollectionService.runOneIteration(AggregatedMetricsCollectionService.java:99) [classes/:na] at com.google.common.util.concurrent.AbstractScheduledService$1$1.run(AbstractScheduledService.java:170) [guava-13.0.1.jar:na] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_51] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) [na:1.7.0_51] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) [na:1.7.0_51] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] 2015-11-23 10:30:39,554 - ERROR [metrics-collection] [metrics-collection:c.c.c.m.c.AggregatedMetricsCollectionService@106] - Failed in publishing metrics for timestamp 1448274639. java.lang.IllegalStateException: Transaction Manager is not running. at com.google.common.base.Preconditions.checkState(Preconditions.java:149) ~[guava-13.0.1.jar:na] at co.cask.tephra.TransactionManager.ensureAvailable(TransactionManager.java:707) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.TransactionManager.startTx(TransactionManager.java:766) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.TransactionManager.startShort(TransactionManager.java:726) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.TransactionManager.startShort(TransactionManager.java:714) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.inmemory.InMemoryTxSystemClient.startShort(InMemoryTxSystemClient.java:58) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.TransactionContext.start(TransactionContext.java:89) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.DefaultTransactionExecutor.executeOnce(DefaultTransactionExecutor.java:133) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.DefaultTransactionExecutor.executeWithRetry(DefaultTransactionExecutor.java:115) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:72) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:79) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.AbstractTransactionExecutor.executeUnchecked(AbstractTransactionExecutor.java:53) ~[tephra-core-0.6.3.jar:na] at co.cask.cdap.data2.metadata.store.DefaultMetadataStore.execute(DefaultMetadataStore.java:492) ~[classes/:na] at co.cask.cdap.data2.metadata.store.DefaultMetadataStore.setPropertiesNoPublish(DefaultMetadataStore.java:124) ~[classes/:na] at co.cask.cdap.data2.metadata.store.DefaultMetadataStore.setProperties(DefaultMetadataStore.java:85) ~[classes/:na] at co.cask.cdap.data2.metadata.store.SystemMetadataWriter.update(SystemMetadataWriter.java:85) ~[classes/:na] at co.cask.cdap.data2.metadata.writer.LineageWriterDatasetFramework.addInstance(LineageWriterDatasetFramework.java:97) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.createIfNotExists(DatasetsUtil.java:67) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.getOrCreateDataset(DatasetsUtil.java:54) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricDatasetFactory.getOrCreateMetricsTable(DefaultMetricDatasetFactory.java:123) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricDatasetFactory.getOrCreateFactTable(DefaultMetricDatasetFactory.java:98) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricStore$1.get(DefaultMetricStore.java:213) ~[classes/:na] at co.cask.cdap.data2.dataset2.lib.cube.DefaultCube.<init>(DefaultCube.java:77) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricStore$2.get(DefaultMetricStore.java:219) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricStore$2.get(DefaultMetricStore.java:216) ~[classes/:na] at com.google.common.base.Suppliers$MemoizingSupplier.get(Suppliers.java:116) ~[guava-13.0.1.jar:na] at co.cask.cdap.metrics.store.DefaultMetricStore.add(DefaultMetricStore.java:254) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricStore.add(DefaultMetricStore.java:233) ~[classes/:na] at co.cask.cdap.metrics.collect.LocalMetricsCollectionService.publish(LocalMetricsCollectionService.java:60) ~[classes/:na] at co.cask.cdap.metrics.collect.AggregatedMetricsCollectionService.publishMetrics(AggregatedMetricsCollectionService.java:104) [classes/:na] at co.cask.cdap.metrics.collect.AggregatedMetricsCollectionService.runOneIteration(AggregatedMetricsCollectionService.java:99) [classes/:na] at com.google.common.util.concurrent.AbstractScheduledService$1$1.run(AbstractScheduledService.java:170) [guava-13.0.1.jar:na] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_51] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) [na:1.7.0_51] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) [na:1.7.0_51] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] 2015-11-23 10:30:40,553 - ERROR [metrics-collection] [metrics-collection:c.c.c.m.c.AggregatedMetricsCollectionService@106] - Failed in publishing metrics for timestamp 1448274640. java.lang.IllegalStateException: Transaction Manager is not running. at com.google.common.base.Preconditions.checkState(Preconditions.java:149) ~[guava-13.0.1.jar:na] at co.cask.tephra.TransactionManager.ensureAvailable(TransactionManager.java:707) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.TransactionManager.startTx(TransactionManager.java:766) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.TransactionManager.startShort(TransactionManager.java:726) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.TransactionManager.startShort(TransactionManager.java:714) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.inmemory.InMemoryTxSystemClient.startShort(InMemoryTxSystemClient.java:58) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.TransactionContext.start(TransactionContext.java:89) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.DefaultTransactionExecutor.executeOnce(DefaultTransactionExecutor.java:133) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.DefaultTransactionExecutor.executeWithRetry(DefaultTransactionExecutor.java:115) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:72) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:79) ~[tephra-core-0.6.3.jar:na] at co.cask.tephra.AbstractTransactionExecutor.executeUnchecked(AbstractTransactionExecutor.java:53) ~[tephra-core-0.6.3.jar:na] at co.cask.cdap.data2.metadata.store.DefaultMetadataStore.execute(DefaultMetadataStore.java:492) ~[classes/:na] at co.cask.cdap.data2.metadata.store.DefaultMetadataStore.setPropertiesNoPublish(DefaultMetadataStore.java:124) ~[classes/:na] at co.cask.cdap.data2.metadata.store.DefaultMetadataStore.setProperties(DefaultMetadataStore.java:85) ~[classes/:na] at co.cask.cdap.data2.metadata.store.SystemMetadataWriter.update(SystemMetadataWriter.java:85) ~[classes/:na] at co.cask.cdap.data2.metadata.writer.LineageWriterDatasetFramework.addInstance(LineageWriterDatasetFramework.java:97) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.createIfNotExists(DatasetsUtil.java:67) ~[classes/:na] at co.cask.cdap.data2.datafabric.dataset.DatasetsUtil.getOrCreateDataset(DatasetsUtil.java:54) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricDatasetFactory.getOrCreateMetricsTable(DefaultMetricDatasetFactory.java:123) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricDatasetFactory.getOrCreateFactTable(DefaultMetricDatasetFactory.java:98) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricStore$1.get(DefaultMetricStore.java:213) ~[classes/:na] at co.cask.cdap.data2.dataset2.lib.cube.DefaultCube.<init>(DefaultCube.java:77) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricStore$2.get(DefaultMetricStore.java:219) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricStore$2.get(DefaultMetricStore.java:216) ~[classes/:na] at com.google.common.base.Suppliers$MemoizingSupplier.get(Suppliers.java:116) ~[guava-13.0.1.jar:na] at co.cask.cdap.metrics.store.DefaultMetricStore.add(DefaultMetricStore.java:254) ~[classes/:na] at co.cask.cdap.metrics.store.DefaultMetricStore.add(DefaultMetricStore.java:233) ~[classes/:na] at co.cask.cdap.metrics.collect.LocalMetricsCollectionService.publish(LocalMetricsCollectionService.java:60) ~[classes/:na] at co.cask.cdap.metrics.collect.AggregatedMetricsCollectionService.publishMetrics(AggregatedMetricsCollectionService.java:104) [classes/:na] at co.cask.cdap.metrics.collect.AggregatedMetricsCollectionService.runOneIteration(AggregatedMetricsCollectionService.java:99) [classes/:na] at com.google.common.util.concurrent.AbstractScheduledService$1$1.run(AbstractScheduledService.java:170) [guava-13.0.1.jar:na] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_51] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) [na:1.7.0_51] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) [na:1.7.0_51] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] 2015-11-23 10:31:02,229 - WARN [executor-8] [executor-8:c.c.c.m.q.MetricsHandler@211] - Invalid request java.lang.IllegalArgumentException: Missing metrics parameter in the query at co.cask.cdap.metrics.query.MetricsHandler.executeQuery(MetricsHandler.java:331) [classes/:na] at co.cask.cdap.metrics.query.MetricsHandler.executeBatchQueries(MetricsHandler.java:207) [classes/:na] at co.cask.cdap.metrics.query.MetricsHandler.query(MetricsHandler.java:188) [classes/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_51] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_51] at co.cask.http.HttpMethodInfo.invoke(HttpMethodInfo.java:80) [netty-http-0.13.0.jar:na] at co.cask.http.HttpDispatcher.messageReceived(HttpDispatcher.java:38) [netty-http-0.13.0.jar:na] at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43) [netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67) [netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314) [netty-3.6.6.Final.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] 2015-11-23 10:31:02,235 - WARN [executor-13] [executor-13:c.c.c.m.q.MetricsHandler@240] - Invalid request java.lang.IllegalArgumentException: Missing metrics parameter in the query at co.cask.cdap.metrics.query.MetricsHandler.executeQuery(MetricsHandler.java:331) [classes/:na] at co.cask.cdap.metrics.query.MetricsHandler.executeQuery(MetricsHandler.java:252) [classes/:na] at co.cask.cdap.metrics.query.MetricsHandler.tagsQuerying(MetricsHandler.java:238) [classes/:na] at co.cask.cdap.metrics.query.MetricsHandler.query(MetricsHandler.java:192) [classes/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_51] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_51] at co.cask.http.HttpMethodInfo.invoke(HttpMethodInfo.java:80) [netty-http-0.13.0.jar:na] at co.cask.http.HttpDispatcher.messageReceived(HttpDispatcher.java:38) [netty-http-0.13.0.jar:na] at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43) [netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67) [netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314) [netty-3.6.6.Final.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] 2015-11-23 10:31:02,241 - WARN [executor-15] [executor-15:c.c.c.m.q.MetricsHandler@240] - Invalid request java.lang.IllegalArgumentException: Missing metrics parameter in the query at co.cask.cdap.metrics.query.MetricsHandler.executeQuery(MetricsHandler.java:331) [classes/:na] at co.cask.cdap.metrics.query.MetricsHandler.executeQuery(MetricsHandler.java:252) [classes/:na] at co.cask.cdap.metrics.query.MetricsHandler.tagsQuerying(MetricsHandler.java:238) [classes/:na] at co.cask.cdap.metrics.query.MetricsHandler.query(MetricsHandler.java:192) [classes/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_51] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_51] at co.cask.http.HttpMethodInfo.invoke(HttpMethodInfo.java:80) [netty-http-0.13.0.jar:na] at co.cask.http.HttpDispatcher.messageReceived(HttpDispatcher.java:38) [netty-http-0.13.0.jar:na] at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.6.6.Final.jar:na] at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) [netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43) [netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67) [netty-3.6.6.Final.jar:na] at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314) [netty-3.6.6.Final.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_51] at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51] {code} However, the 'metric' parameter is present in the query, so this needs more investigation.

    Cask Community Issue Tracker | 1 year ago | Bhooshan Mogal
    java.lang.IllegalStateException: Transaction Manager is not running.

    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

      cannot change the configuration while the transaction manager is running

      at bitronix.tm.Configuration.checkNotStarted()
    2. Bitronix Transaction Manager :: Core
      Configuration.setLogPart1Filename
      1. bitronix.tm.Configuration.checkNotStarted(Configuration.java:699)[btm-2.1.4.jar:2.1.4]
      2. bitronix.tm.Configuration.setLogPart1Filename(Configuration.java:166)[btm-2.1.4.jar:2.1.4]
      2 frames
    3. org.springframework.boot
      BitronixJtaConfiguration$$EnhancerBySpringCGLIB$$a487082a$$FastClassBySpringCGLIB$$c66fa53d.invoke
      1. org.springframework.boot.autoconfigure.transaction.jta.BitronixJtaConfiguration.bitronixConfiguration(BitronixJtaConfiguration.java:69)[spring-boot-autoconfigure-1.3.7.RELEASE.jar:1.3.7.RELEASE]
      2. org.springframework.boot.autoconfigure.transaction.jta.BitronixJtaConfiguration$$EnhancerBySpringCGLIB$$a487082a.CGLIB$bitronixConfiguration$1(<generated>)[spring-boot-autoconfigure-1.3.7.RELEASE.jar:1.3.7.RELEASE]
      3. org.springframework.boot.autoconfigure.transaction.jta.BitronixJtaConfiguration$$EnhancerBySpringCGLIB$$a487082a$$FastClassBySpringCGLIB$$c66fa53d.invoke(<generated>)[spring-boot-autoconfigure-1.3.7.RELEASE.jar:1.3.7.RELEASE]
      3 frames
    4. Spring Core
      MethodProxy.invokeSuper
      1. org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)[spring-core-4.2.5.RELEASE.jar:4.2.5.RELEASE]
      1 frame
    5. Spring Context
      ConfigurationClassEnhancer$BeanMethodInterceptor.intercept
      1. org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:355)[spring-context-4.2.5.RELEASE.jar:4.2.5.RELEASE]
      1 frame
    6. org.springframework.boot
      BitronixJtaConfiguration$$EnhancerBySpringCGLIB$$a487082a.bitronixConfiguration
      1. org.springframework.boot.autoconfigure.transaction.jta.BitronixJtaConfiguration$$EnhancerBySpringCGLIB$$a487082a.bitronixConfiguration(<generated>)[spring-boot-autoconfigure-1.3.7.RELEASE.jar:1.3.7.RELEASE]
      1 frame
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_77]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_77]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_77]
      4. java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_77]
      4 frames
    8. Spring Beans
      SimpleInstantiationStrategy.instantiate
      1. org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
      1 frame