Jasper Plugin jar and jnlp not signed by same certificate

I’ve had to downgrade to 5.2.2 for a variety of reasons with my main client, and now the Jasper plugin won’t work. I posted on the Servoyforge forum for the plugin, but no responses so far. Hoping you guys can help. Jasper plugin worked great in Servoy 5.28 and 5.29, but now in 5.22 it always reports the jar and jnlp are not signed by the same certificate. This the same jar and jnlp that worked in my 5.28/9 installation, and I’ve even tried downloading new ones from the servoyforge files directory – tried chartnscript 3.2.0 and 3.1.0 and basic 3.2.0. Any help? Thanks in advance…

ellen

A jnlp is never signed at all. What library exactly does it say is signed differently?

Hi

I think the 3.1 and 3.2 versions of the jasper plugin only work with servoy 5.2.5+
You will have to revert to the jasper plugin version 3.0

Thanks so much… Does anyone have the 3.0 plugin? Servoyforge only has 3.1 and 3.2…

Maybe a better question is, why do you have to downgrade to 5.2.2? Maybe you can explain more…

i think we updated our certificate (because the validation time was running out) so using the latest jasper plugin signed by the latest certificate will not work on older servoy installs signed by the older/previous one

If you need the latest jasper and you need 5.2.2 then you could resign everything with the signtester tool if you want.

Trying to sign with signtester, following all the instructions, even tried upping the memory with -Xmx500m. I get errors… Help?

E:\Program Files\Servoy522final\application_server.\plugins\servoy_ja
s.jar didnt verify
E:\Program Files\Servoy522final\application_server.\plugins\servoy_ja
s.jar repacked
java.lang.RuntimeException: exit not allowed
at com.servoy.jarsigner.SignerTest$1.checkExit(SignerTest.java
at java.lang.Runtime.exit(Unknown Source)
at java.lang.System.exit(Unknown Source)
at sun.security.tools.JarSigner.run(Unknown Source)
at com.servoy.jarsigner.SignerTest.dir(SignerTest.java:167)
at com.servoy.jarsigner.SignerTest.main(SignerTest.java:102)
E:\Program Files\Servoy522final\application_server.\plugins\servoy_ja
s.jar repacked
java.lang.RuntimeException: exit not allowed
at com.servoy.jarsigner.SignerTest$1.checkExit(SignerTest.java
at java.lang.Runtime.exit(Unknown Source)
at java.lang.System.exit(Unknown Source)
at sun.security.tools.JarSigner.run(Unknown Source)
at com.servoy.jarsigner.SignerTest.dir(SignerTest.java:167)
at com.servoy.jarsigner.SignerTest.main(SignerTest.java:102)
Exception in thread “main” java.lang.RuntimeException: exit not allowe
at com.servoy.jarsigner.SignerTest$1.checkExit(SignerTest.java
at java.lang.Runtime.exit(Unknown Source)
at java.lang.System.exit(Unknown Source)
at sun.security.tools.JarSigner.run(Unknown Source)
at com.servoy.jarsigner.SignerTest.dir(SignerTest.java:186)
at com.servoy.jarsigner.SignerTest.main(SignerTest.java:102)

Is Servoy running when you are trying to re-sign the jars? Because it should be stopped otherwise the jars are locked and cannot be overwritten.
Also what version of Java do you use to run the signtester?

The service was stopped… but yes we have an older version of Java. Going to IT now to get from Java 1.6v13 to 1.6v24 (the highest one we have certified). Thank you so much… I hope that helps.

Upgraded to Java 1.6v26, same exact errors. The service is stopped, did all the key setup stuff right, it runs through the directory and specifically errors out on jasper. I’ve tried many versions, 3.0 and several versions nearby. Not using 3.1 or 3.2 because I am on Servoy 5.2.2 (see previous entries in this thread). At a total standstill, and I need to make this work… Ideas? Thanks in advance.

ellen

What jar is it you are having this error on? Could you post it so that I can have a look?
Also are you using the latest signtester tool? Latest is v1.1.3 and can be found here: https://www.servoyforge.net/projects/signtester/files

Patrick, I downloaded the signtester i was using just two days ago, but it said it was from April 2011. So I downloaded the newest and same errors… The jar is the 3.0 version of the servoy-jasperreports plugin downloaded from this site: Google Code Archive - Long-term storage for Google Code Project Hosting.

Thanks so much… Must make this work this week.

ellen

I downloaded the 3.0.0 jars (ChartNScript version), placed it in a fake application_server folder with beans/plugins/lafs/drivers/lib and ran the signtester tool.

It ran without a problem for me (windows 7 / java 1.6.0_29)

So either 1/ you have a problem with your certificate/keystore? Is that a self-signed certificate? Are you able to sign other jars with this keystore or no jars at all?
Or 2/ you are having a permission issue: maybe the user you are running the tool from hasn’t got write permissions on the E:\Program Files\Servoy522final\application_server folder?

What you can do is, just like I did: create a folder somewhere on your HD where you know you have write access, copy the jars in there, mimicking the application_server structure and ran the tool from in folder.
If this fails then you should have a look at your keystore, it’s probably broken.

Success, sort of… I regenerated my self-signed key and it worked this time. It launches with an UNKNOWN trust dialog. Thanks so much Patrick! Thought I was going crazy.

Next problem, though, is that the same command that worked with Servoy 5.28 and Jasper plugin 3.2 now gives this error:

Can’t find method com.servoy.r3.plugins.JasperReportsProvider.js_jasperReport(string,string,null,string).

where string,string,null, string is equal to: ‘data’,‘C:\SVN\Reports\crvoucher.jasper’,null,‘view’

Which are the correct name of my database connex, report full path, null for viewer, view command. What am I doing wrong now? Anyone? Bueller? :D Thanks in advance…

Note that other commands sent to the plugin do work, so I know the plugin is properly installed. I can ask it what version its running (it’s Chart and Script 3.0, but the version checker says 2.1.5), and other things. But not fire a report up.

ellenmeserow:
Next problem, though, is that the same command that worked with Servoy 5.28 and Jasper plugin 3.2 now gives this error:

Can’t find method com.servoy.r3.plugins.JasperReportsProvider.js_jasperReport(string,string,null,string).

where string,string,null, string is equal to: ‘data’,‘C:\SVN\Reports\crvoucher.jasper’,null,‘view’

Which are the correct name of my database connex, report full path, null for viewer, view command. What am I doing wrong now? Anyone? Bueller? :D Thanks in advance…

Note that other commands sent to the plugin do work, so I know the plugin is properly installed. I can ask it what version its running (it’s Chart and Script 3.0, but the version checker says 2.1.5), and other things. But not fire a report up.

Hi Ellen,

I think you are missing a parameter, as jasperReport has either 5 or 6 params; also, please try using the runReport function, jasperReport is deprecated.

Regards,
Andrei

Command jasperReport is deprecated even in 3.0 version?

Andrei Costache:

ellenmeserow:
Next problem, though, is that the same command that worked with Servoy 5.28 and Jasper plugin 3.2 now gives this error:

Can’t find method com.servoy.r3.plugins.JasperReportsProvider.js_jasperReport(string,string,null,string).

where string,string,null, string is equal to: ‘data’,‘C:\SVN\Reports\crvoucher.jasper’,null,‘view’

Which are the correct name of my database connex, report full path, null for viewer, view command. What am I doing wrong now? Anyone? Bueller? :D Thanks in advance…

Note that other commands sent to the plugin do work, so I know the plugin is properly installed. I can ask it what version its running (it’s Chart and Script 3.0, but the version checker says 2.1.5), and other things. But not fire a report up.

Hi Ellen,

I think you are missing a parameter, as jasperReport has either 5 or 6 params; also, please try using the runReport function, jasperReport is deprecated.

Regards,
Andrei

ellenmeserow:
Command jasperReport is deprecated even in 3.0 version?

Yes; it was deprecated before the 3.0 version.

runReport is not on my menu, nor does Servoy accept it… See attached image.

ellenmeserow:
runReport is not on my menu, nor does Servoy accept it… See attached image.

Ellen, could you please try with a clean install of the plugin from here? (either the 3.2.0 final or 3.3.0b1).

Regards,
Andrei

Andrei – I tried today with 3.3.0b1 with Servoy 5.2.11. My problem previously was that I couldn’t get the Servoy 5.2.2 client to launch with such a late version, and I was told to use Jasper plugin 3.0. Still trying, but also trying 5.2.11 because my deadline has passed. The results are posted here. Thanks so much for your help:

viewtopic.php?f=15&t=17356