3

I am new to OrientDB and Jasper reports. I have successfully connected the Jasper-soft studio with OrientDB using jdbc driver

enter image description here

But when I query the sample OrientDB Grateful Dead Concerts in Jasper reports, it returns some fields and their class type is com.orientechnologies.orient.core.record.impl.ODocument but I am unable to read those fields' values and getting an error that it can not find this class. I think I am not writing a proper query.

Please it will be great help if someone can provide me the solution. Thank you

4

1 回答 1

1

If the fields are of class com.orientechnologies.orient.core.record.impl.ODocument, you need to declare them as so

<field name="out" class="com.orientechnologies.orient.core.record.impl.ODocument"></field>

To avoid "class not found" you need to included the library (.jar) holding this class orientdb-core-2.2-SNAPSHOT.jar and all other jar's that it is referencing (see distribution).

To include a jar in jaspersoft-studio

Each report is supposed to be part of a project. The project has a classpath, and here is where you should add the jars you need.

To add jar open the projects view and right click the project folder with which you are working on. By default, new reports are created in the project My Reports.

于 2015-12-30T13:46:36.050 回答