AnsweredAssumed Answered

java.lang.NullPointerException using CEMExportTool

Question asked by dnewburg on Feb 4, 2014
Latest reply on Aug 8, 2017 by SergioMorales

Hello all,

I am attempting to use the CEM Export Tool to generate data that I would like to feed into customized reporting.  I am attempting to build familiarity with the tool by leveraging the examples available in the accompanying Readme.txt, however every run results in an NPE.  Am I invoking the tool improperly? I have attempted to use Java 6 and Java 7 JREs, however the outcome remains unaltered.

java -jar CEMExportTool.jar -host hostname.domain -username user -password ****** -port 8081 -command 17 -output "data.csv" -interval 2 -start "2014-01-01 00:00:00" -end "2014-01-31 23:59:59" -appname "MyApp"
CEM Host: hostname.domain
CEM webservice login username: user
CEM webservice login password: *******
CEM webservice listen port: 8081
command number: 17
Export file : data.csv
Aggregation Type: 2
Query start time : 2014-01-01 00:00:00
Query end time : 2014-01-31 23:59:59
application : MyApp
!!!!!Failed to execute command 17 due to:
null
Here is the stack trace:
java.lang.NullPointerException
        at com.export.CEMExportTool.setupWebServices(CEMExportTool.java:710)
        at com.export.CEMExportTool.main(CEMExportTool.java:77)
 

Outcomes