Nika_Hadzhikidi

Unable to install Jaspersoft Content, import fails with error "No export task with id"

Blog Post created by Nika_Hadzhikidi Employee on May 19, 2017

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.

 

Issue:

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

com.ca.jasper.restAdapter.JasperException: No export task with id e574bffa-f0ae-4e04-9df0-0499928fc898.

at com.ca.jasper.restAdapter.services.RestServiceBase.setJSErrorMesage(RestServiceBase.java:270)

at com.ca.jasper.restAdapter.services.RestServiceBase.setMetaInfo(RestServiceBase.java:284)

at com.ca.jasper.restAdapter.services.RestServiceBase.restServiceGet(RestServiceBase.java:305)

at com.ca.jasper.restAdapter.services.RestServiceBase.restServiceGet(RestServiceBase.java:294)

at com.ca.jasper.restAdapter.services.ImportService.getImportStatus(ImportService.java:174)

at com.niku.reporting.jasper.ClarityJasperAdmin.importContent(ClarityJasperAdmin.java:1069)

at com.niku.reporting.jasper.ClarityJasperAdmin.jasperContent(ClarityJasperAdmin.java:736)

at com.niku.nsa.service.AdminManager.doJasperReports(AdminManager.java:811)

at com.niku.nsa.service.AdminManager.invokeAction(AdminManager.java:289)

at com.niku.nsa.service.AdminManager.execute(AdminManager.java:188)

at com.niku.nsa.service.Admin.main(Admin.java:77)

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.run(Forehead.java:551)

at com.werken.forehead.Forehead.main(Forehead.java:581)

 

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(ImportExportServiceImpl.java:170)

at com.jaspersoft.jasperserver.export.service.impl.ImportExportServiceImpl.doImport(ImportExportServiceImpl.java:109)

at com.jaspersoft.jasperserver.remote.services.async.ImportRunnable.run(ImportRunnable.java:56)

at java.lang.Thread.run(Unknown Source)

What we did when troubleshooting:

 

Tried recreating the organization and keystore, replacing the jaspersoft_csk.zip 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.

 

Solution:

 

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 admin.sh):

set PROGRAM_ARGS=

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

-Djava.io.tmpdir="D:\Temp"

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

Outcomes