Forum Stats

  • 3,757,025 Users
  • 2,251,186 Discussions
  • 7,869,693 Comments

Discussions

Null Pointer Exception when trying to download from UCMServer

3328614
3328614 Member Posts: 43
edited Jun 12, 2019 11:06AM in WebCenter Content

Hi All,

I am trying to download file from UCM Server by calling below Method:

SearchResults dataList =  client.SearchDownload(dDocTitle, SortField, SortOrder, ResultCount, Path, contentID, fromDate, toDate,folder, author, comment, securityGroup);

I am facing Null pointer Exception when Calling this Method

java.util.logging.ErrorManager: 5

java.lang.NullPointerException

        at oracle.wsm.common.logging.WsmLogFormatter.format(WsmLogFormatter.java:92)

        at java.util.logging.StreamHandler.publish(Unknown Source)

        at java.util.logging.ConsoleHandler.publish(Unknown Source)

        at java.util.logging.Logger.log(Unknown Source)

        at java.util.logging.Logger.doLog(Unknown Source)

        at java.util.logging.Logger.log(Unknown Source)

        at com.oracle.hcm.coe.ucm_service.CoESampleUcmServices.SearchDownload(CoESampleUcmServices.java:153)

        at com.oracle.hcm.coe.ucm_test.TestSearchDownload.SearchandDownload(TestSearchDownload.java:286)

        at com.oracle.hcm.coe.ucm_test.TestSearchDownload.main(TestSearchDownload.java:221)

inside catch block

java.lang.NullPointerException

        at oracle.ucm.idcws.client.utils.GenericUtils.getDataObjects(GenericUtils.java:189)

        at oracle.ucm.idcws.client.SearchTool.run(SearchTool.java:546)

        at com.oracle.hcm.coe.ucm_service.CoESampleUcmServices.SearchDownload(CoESampleUcmServices.java:123)

        at com.oracle.hcm.coe.ucm_test.TestSearchDownload.SearchandDownload(TestSearchDownload.java:286)

        at com.oracle.hcm.coe.ucm_test.TestSearchDownload.main(TestSearchDownload.java:221)

Exception: java.lang.NullPointerException

Can you please suggest to solve this Issue.

Tagged:

Answers