Jump to content
We've recently updated our Privacy Statement, available here ×

gorotman

Members
  • Posts

    1
  • Joined

  • Last visited

gorotman's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Hi, everybody. I'm a newbie in jasper. I wrote a custom jrdatasource from a copmlex csv. I tested my class and it works. But when I run it in iReport preview it get a strange error. An exeception window appears: An unexpected error has occurred: null, and tell me to look at messages.log. But in messages.log I didn't found any error, only this: Prop3: net.sf.jasperreports.xpath.executer.factory: net.sf.jasperreports.engine.util.xml.JaxenXPathExecuterFactory Prop3: net.sf.jasperreports.xpath.executer.factory: net.sf.jasperreports.engine.util.xml.JaxenXPathExecuterFactory Prop3: net.sf.jasperreports.xpath.executer.factory: net.sf.jasperreports.engine.util.xml.JaxenXPathExecuterFactory Every time I run a preview a new row like these was appended. After some seek in this forum, I removed the opencsv (that use xalan), but problem still. Someone help me please? Thank's in advance. Added: This is what my ireport output shows me: java.lang.NullPointerException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.jaspersoft.ireport.designer.connection.JRCustomDataSourceConnection.getJRDataSource(JRCustomDataSourceConnection.java:127) at com.jaspersoft.ireport.designer.IReportConnection.getJRDataSource(IReportConnection.java:71) at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:915) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997) and this the xml generated: <?xml version="1.0" encoding="UTF-8"?> <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="report2" language="groovy" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20"> <property name="ireport.zoom" value="1.0"/> <property name="ireport.x" value="0"/> <property name="ireport.y" value="0"/> <queryString> <![CDATA[]]> </queryString> <field name="CONTO" class="java.lang.String"/> <background> <band splitType="Stretch"/> </background> <title> <band height="79" splitType="Stretch"/> </title> <pageHeader> <band height="35" splitType="Stretch"/> </pageHeader> <columnHeader> <band height="61" splitType="Stretch"> <staticText> <reportElement x="16" y="2" width="100" height="20"/> <textElement/> <text><![CDATA[CONTO]]></text> </staticText> </band> </columnHeader> <detail> <band height="125" splitType="Stretch"> <textField> <reportElement x="16" y="31" width="100" height="20"/> <textElement/> <textFieldExpression><![CDATA[$F{CONTO}]]></textFieldExpression> </textField> </band> </detail> <columnFooter> <band height="45" splitType="Stretch"/> </columnFooter> <pageFooter> <band height="54" splitType="Stretch"/> </pageFooter> <summary> <band height="42" splitType="Stretch"/> </summary> </jasperReport> Post Edited by gorotman at 01/31/2012 15:55
×
×
  • Create New...