title: Apache POI Parsing error
body: <p>I know this question has been asked often, but couldn't find a suitable solution.
  When working with </p>
  
  <pre><code>XWPFDocument xdoc = new XWPFDocument(srcFile);
  </code></pre>
  
  <p>or </p>
  
  <pre><code>XSSFWorkbook workbook = new XSSFWorkbook(srcFile);
  </code></pre>
  
  <p>I always end up with the following error:</p>
  
  <pre><code>Exception in thread "main" java.lang.IllegalAccessError: tried to access method org.apache.poi.util.POILogger.log(ILjava/lang/Object;)V from class org.apache.poi.openxml4j.opc.PackageRelationshipCollection
      at org.apache.poi.openxml4j.opc.PackageRelationshipCollection.parseRelationshipsPart(PackageRelationshipCollection.java:313)
      at org.apache.poi.openxml4j.opc.PackageRelationshipCollection.&lt;init&gt;(PackageRelationshipCollection.java:163)
      at org.apache.poi.openxml4j.opc.PackageRelationshipCollection.&lt;init&gt;(PackageRelationshipCollection.java:131)
      at org.apache.poi.openxml4j.opc.PackagePart.loadRelationships(PackagePart.java:561)
      at org.apache.poi.openxml4j.opc.PackagePart.&lt;init&gt;(PackagePart.java:109)
      at org.apache.poi.openxml4j.opc.PackagePart.&lt;init&gt;(PackagePart.java:80)
      at org.apache.poi.openxml4j.opc.PackagePart.&lt;init&gt;(PackagePart.java:125)
      at org.apache.poi.openxml4j.opc.ZipPackagePart.&lt;init&gt;(ZipPackagePart.java:78)
      at org.apache.poi.openxml4j.opc.ZipPackage.getPartsImpl(ZipPackage.java:243)
      at org.apache.poi.openxml4j.opc.OPCPackage.getParts(OPCPackage.java:684)
      at org.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:275)
      at org.apache.poi.util.PackageHelper.open(PackageHelper.java:37)
      at org.apache.poi.xssf.usermodel.XSSFWorkbook.&lt;init&gt;(XSSFWorkbook.java:266)
  </code></pre>
  
  <p>People have suggested to open <code>PackageRelationshipCollection</code> and retry. But that didn't help much.</p>
  
  <p>Also I have the jars loaded :</p>
  
  <pre><code>&lt;dependency&gt;
     &lt;groupId&gt;org.apache.poi&lt;/groupId&gt;
     &lt;artifactId&gt;poi&lt;/artifactId&gt;
     &lt;version&gt;3.13&lt;/version&gt;
     &lt;type&gt;jar&lt;/type&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.13&lt;/version&gt;
      &lt;type&gt;jar&lt;/type&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.12&lt;/version&gt;
      &lt;type&gt;jar&lt;/type&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.11&lt;/version&gt;
      &lt;type&gt;jar&lt;/type&gt;
  &lt;/dependency&gt;
  </code></pre>