buedenbenderd Posted January 13, 2012 Share Posted January 13, 2012 Hello,I'm getting an error by fillling (JasperFillManager.fillReport(jasperInputStream, parameters, connection); )my report with html content. Had someone an idea to solve this?I'm using jasperreports-4.1.1 with the jasperreports-htmlcomponent-4.1.1.jar extension.Best regardsDaniel..... <componentElement> <reportElement x="140" y="276" width="395" height="21"/> <hc:html xmlns:hc="http://jasperreports.sourceforge.net/htmlcomponent" xsi:schemaLocation="http://jasperreports.sourceforge.net/htmlcomponent http://jasperreports.sourceforge.net/xsd/htmlcomponent.xsd" scaleType="RetainShape" horizontalAlign="Center" verticalAlign="Middle"> <hc:htmlContentExpression><![CDATA[$F{PROR_PACKING_INFO}]]></hc:htmlContentExpression> </hc:html> </componentElement>..... net.sf.jasperreports.engine.JRRuntimeException: No components bundle registered for namespace http://jasperreports.sourceforge.net/htmlcomponent at net.sf.jasperreports.engine.component.ComponentsEnvironment.getComponentsBundle(ComponentsEnvironment.java:120) at net.sf.jasperreports.engine.component.ComponentsEnvironment.getComponentManager(ComponentsEnvironment.java:138) at net.sf.jasperreports.engine.fill.JRFillComponentElement.<init>(JRFillComponentElement.java:65) at net.sf.jasperreports.engine.fill.JRFillObjectFactory.visitComponentElement(JRFillObjectFactory.java:1592) at net.sf.jasperreports.engine.base.JRBaseComponentElement.visit(JRBaseComponentElement.java:80) Link to comment Share on other sites More sharing options...
buedenbenderd Posted January 18, 2012 Author Share Posted January 18, 2012 Figure out that I only got this error message by starting the Application via 'Java Web Start'. If I start it out of the IDE everything works fine and the feld get filled with the HTML content?! Does anyone have any idea? Link to comment Share on other sites More sharing options...
buedenbenderd Posted January 19, 2012 Author Share Posted January 19, 2012 The Error is fixed...the jasperreports_extension.properties was overritten from the same file in the root of the jasperreports lib. so the properties:net.sf.jasperreports.extension.registry.factory.htmlelement=net.sf.jasperreports.extensions.HtmlElementExtensionsRegistryFactorynet.sf.jasperreports.extension.registry.factory.htmlcomponent=net.sf.jasperreports.components.html.HtmlComponentExtensionsRegistryFactorywas missing.Post Edited by buedenbenderd at 01/19/2012 10:32 Link to comment Share on other sites More sharing options...
josephbarros Posted February 13, 2012 Share Posted February 13, 2012 I have the same problem as I fix it? net.sf.jasperreports.engine.util.JRProperties.setProperty("net.sf.jasperreports.extension.registry.factory.htmlelement", "net.sf.jasperreports.extensions.HtmlElementExtensionsRegistryFactory"); net.sf.jasperreports.engine.util.JRProperties.setProperty("net.sf.jasperreports.extension.registry.factory.htmlcomponent", "net.sf.jasperreports.components.html.HtmlComponentExtensionsRegistryFactory");is enough? thanks Link to comment Share on other sites More sharing options...
buedenbenderd Posted February 14, 2012 Author Share Posted February 14, 2012 Yes, the properties has solved the problem. Link to comment Share on other sites More sharing options...
wbouyahi Posted January 29, 2013 Share Posted January 29, 2013 Hi,I have a problem using html component of ireport : the field called in hc:htmlContentExpression contains balise when exporting or previewing in pdf i just have an icon of unknowen image but not the specified image .Please any idea will be extremly helpfull Link to comment Share on other sites More sharing options...
kleber_3 Posted September 8, 2015 Share Posted September 8, 2015 Este erro se dá ao tamanho da url ser muito grande. 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