iReport problem

Hi
I tried to run Servoy with iReport, but it’s impossible to me.

I run this function : plugins.jasperPluginRMI.runReport(‘iuris’,‘agenda.jrxml’,false,‘view’)

and I get this error:

org.mozilla.javascript.WrappedException: Wrapped java.lang.Exception: Unknown hyperlink target 0 (C:\Documents and Settings\manuellopez\servoy_workspace\iuris\Iuris\forms\agenda_lst.js#24)
at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1828)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:199)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:353)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3666)
at script.imp_agend_vertical(C:\Documents and Settings\manuellopez\servoy_workspace\iuris\Iuris\forms\agenda_lst.js:24)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2680)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:166)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:387)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3127)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:165)
at com.servoy.j2db.scripting.ScriptEngine.executeFunction(ScriptEngine.java:458)
at com.servoy.j2db.debug.RemoteDebugScriptEngine.executeFunction(RemoteDebugScriptEngine.java:382)
at com.servoy.j2db.FormController.executeFunction(FormController.java:3970)
at com.servoy.j2db.FormController.executeFunction(FormController.java:3851)
at com.servoy.j2db.plugins.ClientPluginAccessProvider$MethodExecutor.run(ClientPluginAccessProvider.java:528)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.Exception: Unknown hyperlink target 0
at com.servoy.plugins.jasperreports.JasperReportsProvider.runReport(JasperReportsProvider.java:522)
at com.servoy.plugins.jasperreports.JasperReportsProvider.js_runReport(JasperReportsProvider.java:305)
at com.servoy.plugins.jasperreports.JasperReportsProvider.js_runReport(JasperReportsProvider.java:302)
at com.servoy.plugins.jasperreports.JasperReportsProvider.js_runReport(JasperReportsProvider.java:298)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:179)
… 20 more

I have placed all files in corresponding directories.

This function work fine.

plugins.jasperPluginRMI.extraDirectories
plugins.jasperPluginRMI.pluginVersion
plugins.jasperPluginRMI.getReports(filter)

Servoy developer 5.2.1
ireport 3.7.3
plugins 3.0.1

A little help is appreciated.

Manuel Lopez

Hi Manuel,

I think that the jasper report plugin verion 3.0.1 isn´t compatible with the 3.7.3 version of iReports.
Try to update the plugin or use a previous iReport version supported by the plugin.

Since you specify a jrxml file as input this has to be compiled by the JasperReport. Ensure that the iReport language is set to Java unless you are sure that you have Groovy support files loaded.

@Victor . Now I install iReport versión 3.7.1, that are compatible (someone said me)

@Thomas The language is set to Java in iReport

but now I have another problem.

'Exception calling form method ‘imp_bancos’ with arguments [-1, -1, false, null, Imprimir] on form 'bancos_lst’in async mode on solution Icarus
Wrapped java.lang.SecurityException: class “net.sf.jasperreports.engine.export.JRXhtmlExporter”'s signer information does not match signer information of other classes in the same package (C:\Documents and Settings\manuellopez\servoy_workspace\iuris\maestro\forms\bancos_lst.js#6)

I signed th plugins with ‘-overwrite’, but still gives me the same error.

Manolo_Etec:
I signed th plugins with ‘-overwrite’, but still gives me the same error.

If you are referring to the signtester tool from ServoyForge
https://www.servoyforge.net/projects/signtester/files

Then the option is “overwrite” not “-overwrite”.
Check the log to see if the jars were successfully signed.

@ptalbot, I update the singtester.jar and the option ‘overwrite’ and work fine. Thanks a lot :)

singtester! :lol: gotta hear that!

sorry, just kidd’n :wink:

Yes Harjo, that’s the new name of it: it can make your jars SING! ;)

:oops: I must to improve my english or use google translator.