Hi,
I'm struggling reading a Pentaho Report.
The report is mainly a jar file with xml's inside.
If I compile it from outside tapestry it works ok.
But in my T5 project, I'm getting:
org.pentaho.reporting.libraries.resourceloader.ResourceCreationException:
Unable to parse the document:
ResourceKey{schema=org.pentaho.reporting.libraries.docbundle.bundleloader.ZipResourceBundleLoader,
identifier=mimetype,
factoryParameters={org.pentaho.reporting.libraries.resourceloader.FactoryParameterKey{name=repository}=org.pentaho.reporting.libraries.repository.zipreader.ZipReadRepository@2ef36617,
org.pentaho.reporting.libraries.resourceloader.FactoryParameterKey{name=repository-loader}=org.pentaho.reporting.libraries.docbundle.bundleloader.ZipResourceBundleLoader@6db38815},
parent=ResourceKey{schema=org.pentaho.reporting.libraries.resourceloader.loader.URLResourceLoader,
identifier=file:/home/ale/ale/laburo/NetBeansProjects/servir/reportes/reporte2.prpt,
factoryParameters={}, parent=null}}
        at
org.pentaho.reporting.libraries.xmlns.parser.AbstractXmlResourceFactory.create(AbstractXmlResourceFactory.java:249)
        at
org.pentaho.reporting.libraries.resourceloader.DefaultResourceManagerBackend.create(DefaultResourceManagerBackend.java:272)
        at
org.pentaho.reporting.libraries.resourceloader.ResourceManager.create(ResourceManager.java:408)
        at
org.pentaho.reporting.libraries.resourceloader.ResourceManager.create(ResourceManager.java:367)
        at
org.pentaho.reporting.libraries.resourceloader.ResourceManager.createDirectly(ResourceManager.java:203)
        at pentaho.PentahoTest.getReportDefinition(PentahoTest.java:89)
        at pentaho.PentahoTest$2.produceMydata(PentahoTest.java:181)
        at pentaho.PentahoTest$2.produce(PentahoTest.java:175)
        at pentaho.PentahoTest$2.produce(PentahoTest.java:165)
        at
com.gc.iotools.stream.is.InputStreamFromOutputStream$DataProducer.call(InputStreamFromOutputStream.java:109)
        at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.
        at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1231)
        at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
        at
org.pentaho.reporting.libraries.xmlns.parser.AbstractXmlResourceFactory.create(AbstractXmlResourceFactory.java:236)
        ... 14 more

I think it's because de locales, I'm using UTF-8 and saw that the reports
are utf-8 ok.
My guess of a locale problem is that Caused by:
org.xml.sax.SAXParseException: Content is not allowed in prolog. is usually
because the "<?xml " part is in a wrong locale.
I have set UTF-8 in the POM.xml in:

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
       
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
...

Any ideas ?
Regards 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-Locale-problem-tp4428763p4428763.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to