evaluat0r Posted December 27, 2012 Share Posted December 27, 2012 hi!I know that normaly the setting about the xpath factory is configured by the jasperreports.properties file.but is there also a way to set the xpath factory in the code?The setting (or better the property) is: net.sf.jasperreports.xpath.executer.factory=net.sf.jasperreports.engine.util.xml.JaxenXPathExecuterFactory Link to comment Share on other sites More sharing options...
evaluat0r Posted December 27, 2012 Author Share Posted December 27, 2012 I have tried this: net.sf.jasperreports.engine.util.JRProperties.setProperty("net.sf.jasperreports.xpath.executer.factory", "net.sf.jasperreports.engine.util.xml.XalanXPathExecuterFactory"); but i still receive the following error: net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.JRRuntimeException: No query executer factory registered for the 'xPath' language. Link to comment Share on other sites More sharing options...
evaluat0r Posted January 4, 2013 Author Share Posted January 4, 2013 I solved this problem using PY4J. Link to comment Share on other sites More sharing options...
dablick Posted April 12, 2013 Share Posted April 12, 2013 This is how I do it in my (Java) code:JasperReportsContext jrc = DefaultJasperReportsContext.getInstance();jrc.setProperty( JRXPathExecuterUtils.PROPERTY_XPATH_EXECUTER_FACTORY, XalanNamedParameterXPathExecutor.class.getCanonicalName()); JasperFillManager jfm = JasperFillManager.getInstance(jrc); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now