php/Java Bridge and xml datasource

0

Hello

I' m trying to use jasper reports with php and it works without datasource. Now i'm trying it with an xml datasource. See Following Code Snippets:


$document = $_SESSION['xmldocument'];
$input = new JavaClass("java.io.FileInputStream");
$JRXmlUtil->JRXmlUtils.parse($input ($document));
$params = new Java("java.util.HashMap");
$params->put($JRXmlXPath->JRXPathQueryExecuterFactory .PARAMETER_XML_DATA_DOCUMENT, $JRXmlUtil);

Can anybody help me?

This is part of the error:
"java.lang.Exception: GetProperty failed: [[c:JRXmlUtils]]->JRXmlUtils. Cause: php.java.bridge.NoSuchConstantException: static JRXmlUtils (with args:).

Thank you

Daniel

danielreitmeier's picture
Joined: Feb 6 2013 - 5:02am
Last seen: 6 years 9 months ago
I have never used the PHP/Java bridge, so can help you there. Have you tried using JasperServer in the backend and the PHP Wrapper to access the JasperServer Web Services APIs. I have a sample here: https://github.com/marianol/JasperServer-for-PHP/tree/JRS-Wrapper
marianol - 6 years 9 months ago

0 Answers:

No answers yet
Feedback