title: org.pentaho.reporting.libraries.resourceloader.ResourceCreationException: Unable to parse the documen.
body: <p>I am trying to generate reports using pentaho in java with mongodb.</p>
  
  <p>my code is </p>
  
  <pre><code>try {
   ClassLoader classloader = this.getClass().getClassLoader();
   URL reportDefinitionURL =
   classloader.getResource("reports/TestSalesOrderReportOuputValues.prpt");
   ResourceManager resourceManager = new ResourceManager();
   resourceManager.registerDefaults();
   Resource directly = resourceManager.createDirectly(
   reportDefinitionURL, MasterReport.class);
   return (MasterReport) directly.getResource();
   } catch (ResourceException e) {
  e.printStackTrace();
  }
  </code></pre>
  
  <p>getting exception like,</p>
  
  <pre><code>org.pentaho.reporting.libraries.resourceloader.ResourceCreationException: Unable to parse the document: ResourceKey{schema=org.pentaho.reporting.libraries.docbundle.bundleloader.ZipResourceBundleLoader, identifier=content.xml, factoryParameters={org.pentaho.reporting.libraries.resourceloader.FactoryParameterKey{name=repository}=org.pentaho.reporting.libraries.repository.zipreader.ZipReadRepository@854e63b, org.pentaho.reporting.libraries.resourceloader.FactoryParameterKey{name=repository-loader}=org.pentaho.reporting.libraries.docbundle.bundleloader.ZipResourceBundleLoader@638a3572}, parent=ResourceKey{schema=org.pentaho.reporting.libraries.resourceloader.loader.URLResourceLoader, identifier=file:/D:/java_works/nirvahak-wrokspace/samples/sample-erp/target/classes/reports/manogoTestVenu.prpt, factoryParameters={}, parent=null}}
  </code></pre>
  
  <p>please can any one help me.</p>