org.pentaho.reportdesigner.crm.report.reportexporter.jfreereport.PublishException: Unable to extract or write properties.

Pentaho BI Platform Tracking | Kurtis Cruzada | 10 years ago
  1. 0

    When Spring XD is started as a service using {{service spring-xd-container start}} the deploy-working-dir in GemFire module is resolved to the top-most directory (on Linux "/"). This directory is not writable by spring-xd user under which the process is executed. When a stream using GemFire is created e.g. {{stream create --name gfTest --definition "time | gemfire-json-server ...}} following exception will be thrown: {code} [error 2015/03/24 15:55:20.798 GMT <DeploymentsPathChildrenCache-0> tid=0x34] Error when attempting to deploy JAR files on load. java.io.IOException: Unable to write to deploy directory at com.gemstone.gemfire.internal.JarDeployer.verifyWritableDeployDirectory(JarDeployer.java:589) at com.gemstone.gemfire.internal.JarDeployer.loadPreviouslyDeployedJars(JarDeployer.java:68) at com.gemstone.gemfire.internal.cache.GemFireCacheImpl.init(GemFireCacheImpl.java:839) at com.gemstone.gemfire.internal.cache.GemFireCacheImpl.create(GemFireCacheImpl.java:620) at com.gemstone.gemfire.cache.client.ClientCacheFactory.basicCreate(ClientCacheFactory.java:207) at com.gemstone.gemfire.cache.client.ClientCacheFactory.create(ClientCacheFactory.java:162) at org.springframework.data.gemfire.client.ClientCacheFactoryBean.createCache(ClientCacheFactoryBean.java:93) at org.springframework.data.gemfire.CacheFactoryBean.init(CacheFactoryBean.java:271) at org.springframework.data.gemfire.CacheFactoryBean.getObject(CacheFactoryBean.java:455) at org.springframework.data.gemfire.CacheFactoryBean.getObject(CacheFactoryBean.java:77) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:168) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103) at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1517) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:251) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1469) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:743) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:691) at org.springframework.boot.SpringApplication.run(SpringApplication.java:321) at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:139) at org.springframework.xd.module.core.SimpleModule.initialize(SimpleModule.java:214) at org.springframework.xd.dirt.module.ModuleDeployer.doDeploy(ModuleDeployer.java:217) at org.springframework.xd.dirt.module.ModuleDeployer.deploy(ModuleDeployer.java:200) at org.springframework.xd.dirt.server.DeploymentListener.deployModule(DeploymentListener.java:363) at org.springframework.xd.dirt.server.DeploymentListener.deployStreamModule(DeploymentListener.java:332) at org.springframework.xd.dirt.server.DeploymentListener.onChildAdded(DeploymentListener.java:179) at org.springframework.xd.dirt.server.DeploymentListener.childEvent(DeploymentListener.java:147) at org.apache.curator.framework.recipes.cache.PathChildrenCache$5.apply(PathChildrenCache.java:509) at org.apache.curator.framework.recipes.cache.PathChildrenCache$5.apply(PathChildrenCache.java:503) at org.apache.curator.framework.listen.ListenerContainer$1.run(ListenerContainer.java:92) at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:297) at org.apache.curator.framework.listen.ListenerContainer.forEach(ListenerContainer.java:83) at org.apache.curator.framework.recipes.cache.PathChildrenCache.callListeners(PathChildrenCache.java:500) at org.apache.curator.framework.recipes.cache.EventOperation.invoke(EventOperation.java:35) at org.apache.curator.framework.recipes.cache.PathChildrenCache$10.run(PathChildrenCache.java:762) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) {code} deploy-working-dir should be set to a directory which writable by spring-xd user (maybe java.io.tmpdir?).

    Spring JIRA | 2 years ago | Karol Dowbecki
    java.io.IOException: Unable to write to deploy directory
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    We are seeing intermittent errors on jobs using the Clone Workspace SCM Plugin. Job A kicks off dependent/downstream builds Job B, C, and D, and many times one of the dependent builds will fail with the following stack trace: Started by upstream project "synthetics-01-build_test_findbugs" build number 853 originally caused by: Started by remote host GitHub via SQS with note: SQS poll initiated on Nov 5, 2014 12:23:01 PM [EnvInject] - Loading node environment variables. Building remotely on synthetics-test-01 (synthetics-build) in workspace /home/jenkins/workspace/synthetics-02-docker-build-scheduler Restoring workspace from build #853 of project synthetics-01-build_test_findbugs java.io.IOException: remote file operation failed: /home/jenkins/workspace/synthetics-02-docker-build-scheduler at hudson.remoting.Channel@17aba278:synthetics-test-01: java.io.IOException: Failed to extract workspace.tar.gz at hudson.FilePath.act(FilePath.java:976) at hudson.FilePath.act(FilePath.java:958) at hudson.FilePath.untar(FilePath.java:518) at hudson.plugins.cloneworkspace.CloneWorkspacePublisher$WorkspaceSnapshotTar.restoreTo(CloneWorkspacePublisher.java:243) at hudson.plugins.cloneworkspace.CloneWorkspaceSCM$Snapshot.restoreTo(CloneWorkspaceSCM.java:396) at hudson.plugins.cloneworkspace.CloneWorkspaceSCM.checkout(CloneWorkspaceSCM.java:152) at hudson.model.AbstractProject.checkout(AbstractProject.java:1253) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:622) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528) at hudson.model.Run.execute(Run.java:1745) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Caused by: java.io.IOException: Failed to extract workspace.tar.gz at hudson.FilePath.readFromTar(FilePath.java:2198) at hudson.FilePath.access$400(FilePath.java:190) at hudson.FilePath$4.invoke(FilePath.java:520) at hudson.FilePath$4.invoke(FilePath.java:518) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2577) at hudson.remoting.UserRequest.perform(UserRequest.java:121) at hudson.remoting.UserRequest.perform(UserRequest.java:49) at hudson.remoting.Request$2.run(Request.java:324) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:266) 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) at ......remote call to synthetics-test-01(Native Method) at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1356) at hudson.remoting.UserResponse.retrieve(UserRequest.java:221) at hudson.remoting.Channel.call(Channel.java:752) at hudson.FilePath.act(FilePath.java:969) ... 13 more Caused by: java.io.IOException: incorrect header check at com.jcraft.jzlib.InflaterInputStream.read(InflaterInputStream.java:112) at org.apache.tools.tar.TarBuffer.readBlock(TarBuffer.java:257) at org.apache.tools.tar.TarBuffer.readRecord(TarBuffer.java:223) at hudson.org.apache.tools.tar.TarInputStream.getNextEntry(TarInputStream.java:228) at hudson.FilePath.readFromTar(FilePath.java:2175) at hudson.FilePath.access$400(FilePath.java:190) at hudson.FilePath$4.invoke(FilePath.java:520) at hudson.FilePath$4.invoke(FilePath.java:518) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2577) at hudson.remoting.UserRequest.perform(UserRequest.java:121) at hudson.remoting.UserRequest.perform(UserRequest.java:49) at hudson.remoting.Request$2.run(Request.java:324) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:266) 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) Warning: you have no plugins providing access control for builds, so falling back to legacy behavior of permitting any downstream builds to be triggered Notifying upstream projects of job completion Finished: FAILURE Things we checked: - Build #853 had a workspace at the time of this build. - Build #853 (the parent build, aka Job A) is configured not to begin a new build until all downstream builds have finished, so there shouldn't be any sort of workspace switching going on.

    Jenkins JIRA | 2 years ago | Alice Goldfuss
    java.io.IOException: remote file operation failed: /home/jenkins/workspace/synthetics-02-docker-build-scheduler at hudson.remoting.Channel@17aba278:synthetics-test-01: java.io.IOException: Failed to extract workspace.tar.gz
  4. 0

    We are seeing intermittent errors on jobs using the Clone Workspace SCM Plugin. Job A kicks off dependent/downstream builds Job B, C, and D, and many times one of the dependent builds will fail with the following stack trace: Started by upstream project "synthetics-01-build_test_findbugs" build number 853 originally caused by: Started by remote host GitHub via SQS with note: SQS poll initiated on Nov 5, 2014 12:23:01 PM [EnvInject] - Loading node environment variables. Building remotely on synthetics-test-01 (synthetics-build) in workspace /home/jenkins/workspace/synthetics-02-docker-build-scheduler Restoring workspace from build #853 of project synthetics-01-build_test_findbugs java.io.IOException: remote file operation failed: /home/jenkins/workspace/synthetics-02-docker-build-scheduler at hudson.remoting.Channel@17aba278:synthetics-test-01: java.io.IOException: Failed to extract workspace.tar.gz at hudson.FilePath.act(FilePath.java:976) at hudson.FilePath.act(FilePath.java:958) at hudson.FilePath.untar(FilePath.java:518) at hudson.plugins.cloneworkspace.CloneWorkspacePublisher$WorkspaceSnapshotTar.restoreTo(CloneWorkspacePublisher.java:243) at hudson.plugins.cloneworkspace.CloneWorkspaceSCM$Snapshot.restoreTo(CloneWorkspaceSCM.java:396) at hudson.plugins.cloneworkspace.CloneWorkspaceSCM.checkout(CloneWorkspaceSCM.java:152) at hudson.model.AbstractProject.checkout(AbstractProject.java:1253) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:622) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528) at hudson.model.Run.execute(Run.java:1745) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Caused by: java.io.IOException: Failed to extract workspace.tar.gz at hudson.FilePath.readFromTar(FilePath.java:2198) at hudson.FilePath.access$400(FilePath.java:190) at hudson.FilePath$4.invoke(FilePath.java:520) at hudson.FilePath$4.invoke(FilePath.java:518) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2577) at hudson.remoting.UserRequest.perform(UserRequest.java:121) at hudson.remoting.UserRequest.perform(UserRequest.java:49) at hudson.remoting.Request$2.run(Request.java:324) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:266) 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) at ......remote call to synthetics-test-01(Native Method) at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1356) at hudson.remoting.UserResponse.retrieve(UserRequest.java:221) at hudson.remoting.Channel.call(Channel.java:752) at hudson.FilePath.act(FilePath.java:969) ... 13 more Caused by: java.io.IOException: incorrect header check at com.jcraft.jzlib.InflaterInputStream.read(InflaterInputStream.java:112) at org.apache.tools.tar.TarBuffer.readBlock(TarBuffer.java:257) at org.apache.tools.tar.TarBuffer.readRecord(TarBuffer.java:223) at hudson.org.apache.tools.tar.TarInputStream.getNextEntry(TarInputStream.java:228) at hudson.FilePath.readFromTar(FilePath.java:2175) at hudson.FilePath.access$400(FilePath.java:190) at hudson.FilePath$4.invoke(FilePath.java:520) at hudson.FilePath$4.invoke(FilePath.java:518) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2577) at hudson.remoting.UserRequest.perform(UserRequest.java:121) at hudson.remoting.UserRequest.perform(UserRequest.java:49) at hudson.remoting.Request$2.run(Request.java:324) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:266) 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) Warning: you have no plugins providing access control for builds, so falling back to legacy behavior of permitting any downstream builds to be triggered Notifying upstream projects of job completion Finished: FAILURE Things we checked: - Build #853 had a workspace at the time of this build. - Build #853 (the parent build, aka Job A) is configured not to begin a new build until all downstream builds have finished, so there shouldn't be any sort of workspace switching going on.

    Jenkins JIRA | 2 years ago | Alice Goldfuss
    java.io.IOException: remote file operation failed: /home/jenkins/workspace/synthetics-02-docker-build-scheduler at hudson.remoting.Channel@17aba278:synthetics-test-01: java.io.IOException: Failed to extract workspace.tar.gz

    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.io.IOException

      Unable to extract or write properties.

      at org.jfree.report.modules.parser.extwriter.FunctionsWriter.writeExpressions()
    2. org.jfree.report
      ReportWriter.write
      1. org.jfree.report.modules.parser.extwriter.FunctionsWriter.writeExpressions(FunctionsWriter.java:178)
      2. org.jfree.report.modules.parser.extwriter.FunctionsWriter.write(FunctionsWriter.java:100)
      3. org.jfree.report.modules.parser.extwriter.ReportDefinitionWriter.write(ReportDefinitionWriter.java:132)
      4. org.jfree.report.modules.parser.extwriter.ReportWriter.write(ReportWriter.java:489)
      4 frames
    3. org.pentaho.reportdesigner
      PublishToLocationCommand$3.run
      1. org.pentaho.reportdesigner.crm.report.reportexporter.jfreereport.JFreeReportFileExporter.exportReport(JFreeReportFileExporter.java:167)
      2. org.pentaho.reportdesigner.crm.report.commands.PublishToLocationCommand$3.run(PublishToLocationCommand.java:311)
      2 frames
    4. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:595)
      1 frame