I am trying to fetch all the roles from a particular repository. But getting below error:
runningRepository...........PG_PRODUCT
Exception in thread "main" java.lang.NullPointerException
at com.sap.mdm.internal.SessionConvertHelper.convertToLong(SessionConvertHelper.java:11)
at com.sap.mdm.internal.protocol.manual.AbstractProtocolCommand.setSession(AbstractProtocolCommand.java:236)
at com.sap.mdm.schema.commands.GetRemoteSystemListCommand.executeImpl(GetRemoteSystemListCommand.java:68)
at com.sap.mdm.commands.AbstractCommandBase.execute(AbstractCommandBase.java:129)
at com.sap.mdm.security.commands.GetRoleListCommand.executeImpl(GetRoleListCommand.java:76)
at com.sap.mdm.commands.AbstractCommandBase.execute(AbstractCommandBase.java:129)
at com.jnj.mdm.connection.MDMConnection.<init>(MDMConnection.java:63)
at com.jnj.mdm.audit.MainMethod.main(MainMethod.java:23)
Could anybody help in this? Just let me know how to use the GetRoleListCommand class?