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

carlota_vina

Members
  • Posts

    8
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Downloads

Everything posted by carlota_vina

  1. I have a report in Jasper Studio and when I compile I get the error net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: 1. com.bar.SomeBarClass cannot be resolved to a type value = com.bar.SomeBarClass.isToPrint(); //$JR_EXPR_ID=8$ <------------------> 2. com.bar.SomeBarClass cannot be resolved to a type value = com.bar.SomeBarClass.isToPrint(); //$JR_EXPR_ID=8$ <------------------> 3. com.bar.SomeBarClass cannot be resolved to a type value = com.bar.SomeBarClass.isToPrint(); //$JR_EXPR_ID=8$ <------------------> 3 errors . at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:206) at net.sf.jasperreports.eclipse.builder.JasperReportCompiler.compileReport(JasperReportCompiler.java:288) at net.sf.jasperreports.eclipse.builder.JasperReportCompiler.compileReport(JasperReportCompiler.java:140) at net.sf.jasperreports.eclipse.builder.JasperReportsBuilder.compileJRXML(JasperReportsBuilder.java:212) at com.jaspersoft.studio.editor.action.CompileAction.actionCompile(CompileAction.java:154) at com.jaspersoft.studio.editor.action.CompileAction$1.run(CompileAction.java:98) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63) I change the report built path and this is my configuration. I include the path to the src and class folder the java class How can I fix the report errors?
  2. I have a report which parse a XML with XPATH When I did report preview the fields are null. This is the report source <?xml version="1.0" encoding="UTF-8"?> <!-- Created with Jaspersoft Studio version 6.10.0.final using JasperReports Library version 6.10.0-unknown --> <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="OrdersReport" pageWidth="500" pageHeight="842" whenNoDataType="NoPages" columnWidth="500" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" uuid="4d243b47-8ea1-4bee-9ac7-440a84e17ddf"> <property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/> <style name="Arial_Normal" isDefault="true" fontName="Arial" fontSize="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <style name="Arial_Bold" fontName="Arial" fontSize="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica-Bold" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <style name="Arial_Italic" fontName="Arial" fontSize="8" isBold="false" isItalic="true" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica-Oblique" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <parameter name="CustomerID" class="java.lang.String"/> <queryString language="xPath"> <![CDATA[/Northwind/Orders[CustomerID=$P{CustomerID}]]]> </queryString> <field name="Id" class="java.lang.String"> <fieldDescription><![CDATA[OrderID]]></fieldDescription> </field> <field name="OrderDate" class="java.util.Date"> <fieldDescription><![CDATA[OrderDate]]></fieldDescription> </field> <field name="ShipCity" class="java.lang.String"> <fieldDescription><![CDATA[shipCity]]></fieldDescription> </field> <field name="Freight" class="java.lang.Float"> <fieldDescription><![CDATA[Freight]]></fieldDescription> </field> <variable name="TotalFreight" class="java.lang.Float" calculation="Sum"> <variableExpression><![CDATA[$F{Freight}]]></variableExpression> </variable> The name of xml is northwind.xml Where do I have to put this xml in the report to check the report?
  3. I have a jasper report and I call it from a Java program. From the Java I send as parameter an XML. I would like to know if it is mandatory to use a XML Adapter to use XPATH and how I can to parse this XML
  4. Hello, In my main report and subreports I have created this parameter. I need to know what values contain. My report has like datasource a XML and I use Xpath. Regards Carlota
  5. I have a report with two subreports. In these subreports and in the main report, I have defined REPORT_PARAMETERS_MAP. Where can I see the values of REPORT_PARAMETERS_MAP and where is defined?
  6. Hello, I have the following report. I attach the table I want to do colspan in a cell. What properties do I have to add to the fields?
  7. I attached the jar to the classpath. But I get the following error net.sf.jasperreports.engine.JRException: java.sql.SQLRecoverableException: Error de E/S: The Network Adapter could not establish the connection at net.sf.jasperreports.data.jdbc.JdbcDataAdapterService.contributeParameters(JdbcDataAdapterService.java:130) at net.sf.jasperreports.data.AbstractDataAdapterService.test(AbstractDataAdapterService.java:122) at com.jaspersoft.studio.data.DataAdapterEditorPart$1.widgetSelected(DataAdapterEditorPart.java:170) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4362) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1113) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4180) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3769) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:694) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:606) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) at com.jaspersoft.studio.rcp.intro.Application.start(Application.java:99) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608) at org.eclipse.equinox.launcher.Main.run(Main.java:1515) Do I need more configurations for connecting with a Oracle Database?
  8. I have a report and I want to configure a data adapter for oracle. I attach the data adapter configuration When I test the connection, I get the error net.sf.jasperreports.engine.JRRuntimeException: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver cannot be found by net.sf.jasperreports_6.3.1.final at net.sf.jasperreports.data.jdbc.JdbcDataAdapterService.getConnection(JdbcDataAdapterService.java:173) at net.sf.jasperreports.data.jdbc.JdbcDataAdapterService.contributeParameters(JdbcDataAdapterService.java:128) at net.sf.jasperreports.data.AbstractDataAdapterService.test(AbstractDataAdapterService.java:122) at com.jaspersoft.studio.data.wizard.AbstractDataAdapterWizard$3.runOperations(AbstractDataAdapterWizard.java:162) at com.jaspersoft.studio.utils.jobs.CheckedRunnableWithProgress$1.run(CheckedRunnableWithProgress.java:59) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver cannot be found by net.sf.jasperreports_6.3.1.final at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:439) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:352) at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:344) at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) How do I have to configure a Oracle data adapter?
×
×
  • Create New...