Library import of dxp fails with "The 'contentZip' argument must not be null" error

Library import of dxp fails with "The 'contentZip' argument must not be null" error

book

Article ID: KB0079378

calendar_today

Updated On:

Products Versions
Spotfire Server All Versions

Description

When importing a DXP to the library and replacing existing content, the following error is seen during import dialog in the impex.log.
[2017-06-01T12:00:01,055-0400] "jobid:60820554-4573-47f9-a9c7-50aafe99501e, Handling file: /myFolder/MyReport/Bookmarks/56e77f3c-ba09-4165-a247-8de4750a676a"
[2017-06-01T12:00:53,289-0400] "jobid:60820554-4573-47f9-a9c7-50aafe99501e, Problem importing"
java.lang.IllegalArgumentException: The 'contentZip' argument must not be null.
    at com.spotfire.util.Robustness.validateArgumentNotNull(Robustness.java:44)
    at com.spotfire.ws.library.BookmarkManager.update(BookmarkManager.java:643)
    at com.spotfire.ws.library.ImportManager.reAddDeletedBookmarks(ImportManager.java:745)
    at com.spotfire.ws.library.ImportManager.insertIntoLibrary(ImportManager.java:669)
    at com.spotfire.ws.library.ImportManager.importFile(ImportManager.java:315)
    at com.spotfire.ws.library.LibraryManagerImpl$ImportThread.run(LibraryManagerImpl.java:2230)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
As a result, the bookmarks previously associated with the DXP in the destination environment may be lost.
 

Issue/Introduction

Library import of dxp fails with "The 'contentZip' argument must not be null" error

Resolution

When overwriting reports using the library import feature, TIBCO Spotfire will backup the bookmarks as an attachment, then delete everything tied to the old report and then import the bookmarks again. This issue can occur when the import takes too long time for the saved bookmarks to still be seen as valid due to a timeout. This also explains why the bookmarks previously associated with the DXP in the destination environment may be lost since they are not reapplied to the newly imported DXP.

To resolve the issue, you need to increase the timeout period in the TIBCO Spotfire Server configuration.

1). Open Spotfire configuration tool Start > Programs > TIBCO Spotfire Server X.X > Configure TIBCO Spotfire Server .

2). Enter configuration tool password to unlock configuration.

3). On the "System Status" tab, click "Export configuration from database..." .

4). Choose the configuration with the "*" character, indicating it is the current active configuration. Click "Export".

5). Edit the configuration file in a plain text editor.

6). Find the following section:
<attachment>
   <memory-limit>104857600</memory-limit>
    <lease-time>300</lease-time>
And increase the lease time to 3600:
<attachment>
   <memory-limit>104857600</memory-limit>
    <lease-time>3600</lease-time>


7). Save the file.

8). On the "System Status" tab of the 'TIBCO Spotfire Server Configuration Tool, click "Load configuration from file..." and select the newly updated configuration file.

9). On the "Configuration" tab, click "Save configuration". Choose "Database (recommended)" as the destination and click "Next". Next, provide a comment and click '"Finish".

10). Restart the TIBCO Spotfire Server to make the new settings take effect.