JasperSoft Studio can't resolve edu.ku.brc.specify.config.Scriptlet

I was excited to use JasperSoft Studio to start editing labels, but following the instructions and loading the label it gives me the following error message:

edu.ku.brc.specify.config.Scriptlet cannot be resolved to a type

Also there’s something about a browser configuration:

image

Is this a known issue with a simple solution?

1 Like

Hi @fedoras,

Can you send a copy of the JRXML report definition file for us to take a look at?

The issue could be due to Specify 7 not supporting some scriptlets in Specify 6 or a misconfiguration in the JRXML definition.

The issue with the Edge browser engine is not setup seems to be specific to that installation of Jaspersoft Studio, see below:

Thank you!

It’s any of our definition files that I’ve tried with in any case.

MSJN Loan Invoice.jrxml (15.0 KB)

Hi @fedoras,

After taking a look, it appears that the scriptletClass="edu.ku.brc.specify.config.Scriptlet" XML attribute causes Jaspersoft Studio to be unable to render a preview of the report.

<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="MSJN Loan Invoice v5" pageWidth="595" pageHeight="842" whenNoDataType="NoPages" columnWidth="483" leftMargin="56" rightMargin="56" topMargin="42" bottomMargin="20" scriptletClass="edu.ku.brc.specify.config.Scriptlet" uuid="ec85af8d-e1c0-4f9b-9f91-711a6aade1ec">

It looks like you added this scriptlet to the report at some time in the past using SpiReport:

Printing with Specify 6’s Scriptlet Functions

Configuring Your Report For Scriptlets

The report must know where to get the scriptlet and this is set in the ‘Report Properties.’ In the SpecifyiReports application click on the ‘Edit’ menu and then ‘Report Properties.’ The dialog will have a tab named ‘Scriptlet Class’, click on the tab. In the dropdown list select 'Use this scriptlet class…" and then enter the following value:

edu.ku.brc.specify.config.Scriptlet

It does not prevent Specify 7 from running the report, but you will not be able to compile the report in Jaspersoft Studio to ensure your changes are working before moving back into Specify 7.

You can remove the scriptletClass="edu.ku.brc.specify.config.Scriptlet" component if you are not using any scriptlets in the report itself.

Thank you for the report!

All the reports were indeed created in SpiReport and I was looking forward to using a better program, because SpiReport is excruciatingly slow and clunky.

The previewing in JS Studio works by removing that attribute, but think I do use the scriptlet for that particular report. But it’s hard to test in JasperSoft Studio, since I cannot figure out how to set up the data connection. I have added the Data Adapter to a localhost db server copy that is running, but it’s unclear how to get the fields filled with actual data from it.