title: java - Apache POI SXSSFWorkbook Unable to create sheets
body: <p>In a much bigger code flow in my project I am trying to create a blank SXSSFWorkbook and create sheets and write data to it but I am unable to as its giving me a Runtime Exception of : No such file or directory. I do not understand why that is happening. I went through the code and could not find any reason. </p>
  
  <p>Jars used:</p>
  
  <pre><code>poi-3.10-FINAL.jar
  poi-ooxml-3.10-FINAL.jar
  </code></pre>
  
  <blockquote>
    <p>java.lang.RuntimeException: java.io.IOException: No such file or directory
      at org.apache.poi.xssf.streaming.SXSSFWorkbook.createAndRegisterSXSSFSheet(SXSSFWorkbook.java:568)
      at org.apache.poi.xssf.streaming.SXSSFWorkbook.createSheet(SXSSFWorkbook.java:584)</p>
  </blockquote>
  
  <p>Code :</p>
  
  <pre><code>csvDataWorkbook = new SXSSFWorkbook(-1);
  Sheet sheet = csvDataWorkbook.createSheet("csvDataSheet");
  </code></pre>
  
  <p>The second line above throws that exception. Might sound weird but this was working fine till yesterday, but has stopped from today.</p>
  
  <p>POM.xml</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
  
      &lt;groupId&gt;com.company&lt;/groupId&gt;
      &lt;artifactId&gt;project&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;war&lt;/packaging&gt;
  
  
      &lt;dependencies&gt;
          .......
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.poi&lt;/groupId&gt;
              &lt;artifactId&gt;poi&lt;/artifactId&gt;
              &lt;version&gt;3.10-FINAL&lt;/version&gt;
          &lt;/dependency&gt;
  
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.poi&lt;/groupId&gt;
              &lt;artifactId&gt;poi-scratchpad&lt;/artifactId&gt;
              &lt;version&gt;3.10-FINAL&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.poi&lt;/groupId&gt;
              &lt;artifactId&gt;poi-ooxml&lt;/artifactId&gt;
              &lt;version&gt;3.10-FINAL&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;dom4j&lt;/groupId&gt;
              &lt;artifactId&gt;dom4j&lt;/artifactId&gt;
              &lt;version&gt;1.6.1&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.poi&lt;/groupId&gt;
              &lt;artifactId&gt;poi-ooxml-schemas&lt;/artifactId&gt;
              &lt;version&gt;3.10-FINAL&lt;/version&gt;
          &lt;/dependency&gt;
  
  
  
      &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>