Java API example does not work


Trying to give a shot for the Java API libraries available on the website.
Using it against (registered for a 30 day trial) is set up.

PS I am behind a proxy, but that is also configured.

Here is the error message I am getting:

Generated KS locally: [NDlkZTg4MjVhOWNhZDMyYjNmM2M4Yzk2MzE5NmM3ZmVhODRhODNlNnwyMDAyNzAxOzIwMDI3MDE7MTQ0MjU4Mzg5MzsyOzI2MzM1O2tvbnN0YW50aW4uY3plbGxlckBsaHN5c3RlbXMuY29tOw==]
log4j:WARN No appenders could be found for logger (com.kaltura.client.KalturaClientBase).
log4j:WARN Please initialize the log4j system properly.
Example failed.
com.kaltura.client.KalturaApiException: Invalid KS “NDlkZTg4MjVhOWNhZDMyYjNmM2M4Yzk2MzE5NmM3ZmVhODRhODNlNnwyMDAyNzAxOzIwMDI3MDE7MTQ0MjU4Mzg5MzsyOzI2MzM1O2tvbnN0YW50aW4uY3plbGxlckBsaHN5c3RlbXMuY29tOw==”, Error "-1,INVALID_STR"
at com.kaltura.client.KalturaClientBase.getExceptionOnAPIError(
at com.kaltura.client.KalturaClientBase.throwExceptionOnAPIError(
at com.kaltura.client.KalturaClientBase.doQueue(
at Kaltura.list(
at Kaltura.main(


Where did you get the secret and admin secret from? should be taken from KMC->Settings->Integration Settings