Skip navigation
All People > Nika_Hadzhikidi > Nika's Blog > 2017 > May

Nika's Blog

May 2017 Previous month Next month

Hello, everybody,



I wanted to share an interesting issue I had with a customer. Hopefully if somebody has the same problem this will help you out too.



Customer was on 14.3.0 and Jaspersoft 6.1, fresh install.

When they attempted to import the content after copying the keystore, they had the following error message:


10/8/16 11:57 AM (admin) Importing....

10/8/16 11:57 AM (admin) Content import failed.No export task with id e574bffa-f0ae-4e04-9df0-0499928fc898.

10/8/16 11:57 AM (admin) Failed to import content for tenant No export task with id e574bffa-f0ae-4e04-9df0-0499928fc898.






at com.niku.reporting.jasper.ClarityJasperAdmin.importContent(

at com.niku.reporting.jasper.ClarityJasperAdmin.jasperContent(

at com.niku.nsa.service.AdminManager.doJasperReports(

at com.niku.nsa.service.AdminManager.invokeAction(

at com.niku.nsa.service.AdminManager.execute(

at com.niku.nsa.service.Admin.main(

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 com.werken.forehead.Forehead.main(


In jasperserver.log we had the following message:


2016-10-21 09:37:44,078 ERROR ImportRunnable,Thread-54:62 - Import failed:

com.jaspersoft.jasperserver.export.service.ImportFailedException: Import failed. Reason: provided zip file is not valid JasperReports Server export file.

at com.jaspersoft.jasperserver.export.service.impl.ImportExportServiceImpl.startImport(

at com.jaspersoft.jasperserver.export.service.impl.ImportExportServiceImpl.doImport(


at Source)

What we did when troubleshooting:


Tried recreating the organization and keystore, replacing the by another copy of the file, same error.

Tried full Jaspersoft reinstall, same error


With some advanced debug we found that the issue is caused by the extracted zip file created by the command. Upon examining we saw that some of reports do not get extracted, and this is what fails it. So this was an OS issue, not PPM/content one.




On call with customer I noticed the length of the file that doesn't get unzipped is the biggest one in the folder, that, combined with their deep TEMP path in C:\Users folder. (They were using C:\Users\*********\AppData\Local\Temp\8)


Option 1:

Go to Environmental variables - System and set the TEMP/TMP variable to point to something short such as D:\TEMP

Then open a new Command Prompt and retry the import command (do not use the same cmd window)


If the JVM is still not picking it try the following:


Option 2:

Modify the $clarity\bin\admin.bat file on line 28 (for Linux it will be


to include, together with the other arguments, the following (leading to an existing -short- path):"D:\Temp"

Save and run admin content-jaspersoft csk, this should import all the content successfully.

Hello, everybody,


I posted this information as Tech Tip here:

Tech Tip - Jaspersoft Report Scheduler SQL queries 

Wanted to also have it as blog entry and to see which one comes more useful. So will be using this as my first entry for now to see things through.


I wanted to share a few SQL queries I wrote when working with a customer on a Jaspersoft Scheduler issue. Basically we needed to find out how many reports are fired/scheduled at a certain time and monitor them.


Here is what you could use for this as reference and then modify for your needs :

To be run on the Jaspersoft database:

----WAITING --- Times in EST --- this will show all the scheduled reports in the system or "Waiting"
to_char(to_date('1970-01-01 00:00:00','yyyy-mm-dd hh24:mi:ss') + ((1.0 / (24 * 60 * 60 * 1000) * next_fire_time) -(4/24)), 'yyyy-mm-dd hh24:mi:ss') as next_fire_time,
to_char(to_date('1970-01-01 00:00:00','yyyy-mm-dd hh24:mi:ss') + ((1.0 / (24 * 60 * 60 * 1000) * start_time) -(4/24)), 'yyyy-mm-dd hh24:mi:ss') as start_time,
from JITenant t
join JIUSER u on = u.TENANTID
join JIReportJob j on = j.owner
join QRTZ_TRiGGERS qt on qt.job_name = concat('job_',
where trigger_state ='WAITING'

-----FIRED ---Times in EST ---Those are currently running reports in the system
select u.fullname,u.Username,
to_char(to_date('1970-01-01 00:00:00','yyyy-mm-dd hh24:mi:ss') + ((1.0 / (24 * 60 * 60 * 1000) * fired_time) -(4/24)), 'yyyy-mm-dd hh24:mi:ss') as fired_time
from JITenant t
join JIUSER u on = u.TENANTID
join JIReportJob j on = j.owner
join qrtz_fired_triggers qt on qt.job_name = concat('job_',
group by u.fullname,u.Username,j.report_unit_uri,


As you can see I've had to convert the dates as in Jaspersoft database the dates are in Java time and start on 1 Jan 1970. With the conversion the times are in EST but you can also adjust this by modifying the 4/24 value.