java.lang.NullPointerException error reported when using the CLI command "config import-library-content".

java.lang.NullPointerException error reported when using the CLI command "config import-library-content".

book

Article ID: KB0083620

calendar_today

Updated On:

Products Versions
Spotfire Server TIBCO Spotfire Server 6.5

Description

Description:
When using the following command the first time, it works fine. Trying to import the same file again generates errors:

config import-library-content -t password -p "\\server_name\folder1\Test_file.part0.zip" -m KEEP_NEW -u "DOMAIN\User_name" -a false -l /FOLDER2


[2014-08-28T17:54:12,366-0400] "jobid:d0c12f33-84ec-47be-ac14-1f1ea8467da2, Starting import of: Test_file.part0.zip"
[2014-08-28T17:54:12,600-0400] "jobid:d0c12f33-84ec-47be-ac14-1f1ea8467da2, Found 1 items to import."
[2014-08-28T17:54:12,756-0400] "jobid:d0c12f33-84ec-47be-ac14-1f1ea8467da2, Problem importing"
java.lang.NullPointerException
 at com.spotfire.ws.library.ImportManager.getBookmarkManager(ImportManager.java:703)
 at com.spotfire.ws.library.ImportManager.insertConflictKeepNewItemIsNotFolder(ImportManager.java:844)
 at com.spotfire.ws.library.ImportManager.insertIntoLibrary(ImportManager.java:615)
 at com.spotfire.ws.library.ImportManager.importFile(ImportManager.java:311)
 at com.spotfire.ws.library.LibraryManagerImpl.importItemSynchronous(LibraryManagerImpl.java:511)
 at com.spotfire.ws.library.LibraryManagerImpl.importItem(LibraryManagerImpl.java:405)
 at com.spotfire.ws.library.LibraryImpexCommandWorkerImpl.importItem(LibraryImpexCommandWorkerImpl.java:225)
 at com.spotfire.ws.library.LibraryImpexCommandWorkerImpl.importLibraryItem(LibraryImpexCommandWorkerImpl.java:122)
 at com.spotfire.server.config.tool.ImportLibraryContentCommand.run(ImportLibraryContentCommand.java:120)
 at com.spotfire.server.config.tool.AbstractUserDirectoryCommand.run(AbstractUserDirectoryCommand.java:103)
 at com.spotfire.server.config.tool.ConfigApp.executeCommand(ConfigApp.java:449)
 at com.spotfire.server.config.tool.ConfigApp.main(ConfigApp.java:531)
com.spotfire.ws.library.StorageException, INTERNAL_ERROR, Problem importing, java.lang.NullPointerException


Symptoms:
Running on Spotfire Server 6.5 HF-003 or below.
Cause:
Running on Spotfire Server 6.5 HF-003 or below.

Issue/Introduction

java.lang.NullPointerException error reported when using the CLI command "config import-library-content".

Resolution

This issue has been fixed in Spotfire Server hotfix HF-004.  Apply the latest cumulative Spotfire Server 6.5.x hotfix.