Clarity

 View Only
Expand all | Collapse all

Unable to install Jaspersoft content - Import fails with error No export task with id

  • 1.  Unable to install Jaspersoft content - Import fails with error No export task with id

    Broadcom Employee
    Posted Apr 17, 2020 01:41 PM
    Edited by Nika Hadzhikidi Apr 17, 2020 01:49 PM
    Reposting a blog post that got lost in a migration, hope this helps out.

    On a new Jaspersoft install, after creating the keystore and trying to import the content, getting 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 have this 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)

    Troubleshooting:
    We 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\TESTTEST\AppData\Local\Temp\8)

    We tried setting the environment variable TEMP but the JVM was not picking it up when running admin content-jaspersoft csk

    SOLUTION:
    1. Modify the $clarity\bin\admin.bat file on line 28:
    set PROGRAM_ARGS=
    to include
    -Djava.io.tmpdir="D:\Temp"

    (instead of D:\Temp you can use any folder just make sure it's not a long path, and directly in the disk drive)


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

    For all the issues we've had so far it looks to be an environmental issue with the Windows configuration (the Temp path / Users profile permissions). The workaround to set TEMP as per above should work to resolve the issue.

    ------------------------------
    Nika Hadzhikidi
    Sr Principal Support Engineer
    Broadcom
    ------------------------------


  • 2.  RE: Unable to install Jaspersoft content - Import fails with error No export task with id

     
    Posted Apr 17, 2020 02:53 PM
    Thank you for sharing this (again:) with the community Nika!

    ------------------------------
    Chris Hackett
    Community Manager, Broadcom Enterprise Software Division
    Broadcom Inc.
    ------------------------------