DecisionsDev / decision-center-api-samples

IBM ODM Decision Center API samples
Apache License 2.0
0 stars 3 forks source link

issue with configure-dt-0.0.7.jar . NPE if the argument -unhideColumns is not provided #7

Closed fredmerci closed 2 years ago

fredmerci commented 2 years ago

The command below

java -cp "%ODM_HOME%/teamserver/lib/*;%ODM_HOME%/teamserver/lib/eclipse_plugins/*" com.ibm.odm.tools.ConfigureDT -username rtsAdmin -password rtsAdmin -url http://localhost:9090/decisioncenter -dataSource jdbc/ilogDataSource -decisionService "Miniloan Service" -branch %%current_key -gapCheck false

yields the exception:

java.lang.NullPointerException
        at com.ibm.odm.tools.ConfigureDT.updateDT(ConfigureDT.java:195)
        at com.ibm.odm.tools.ConfigureDT.updateBranch(ConfigureDT.java:162)
        at com.ibm.odm.tools.ConfigureDT.execute(ConfigureDT.java:111)
        at ilog.rules.teamserver.client.internal.BRMServerClient.doExecute(BRMServerClient.java:38)
        at com.ibm.odm.tools.ConfigureDT.main(ConfigureDT.java:301)

This exception does not occur when adding the argument -unhideColumns false

java -cp "%ODM_HOME%/teamserver/lib/*;%ODM_HOME%/teamserver/lib/eclipse_plugins/*" com.ibm.odm.tools.ConfigureDT -username rtsAdmin -password rtsAdmin -url http://localhost:9090/decisioncenter -dataSource jdbc/ilogDataSource -decisionService "Miniloan Service" -branch %%current_key -gapCheck false -unhideColumns false