Upgrade to 6.1 broke REST API authentication (Spring 3?)

Hello,

We recently upgraded our dev server to 6.1 and now a job I've made that authenticates with the Java REST APIs is failing during authentication with a null pointer.


The code that fails:

client = new JasperserverRestClient(configuration);
clientAuthenticated = client.authenticate(jasperusername, jasperpassword);


The error trace:

Exception in thread "main" java.lang.NullPointerException
    at com.jaspersoft.jasperserver.jaxrs.client.core.SessionStorage.login(SessionStorage.java:111)
    at com.jaspersoft.jasperserver.jaxrs.client.core.SessionStorage.init(SessionStorage.java:97)
    at com.jaspersoft.jasperserver.jaxrs.client.core.SessionStorage.<init>(SessionStorage.java:56)
    at com.jaspersoft.jasperserver.jaxrs.client.core.JasperserverRestClient.authenticate(JasperserverRestClient.java:47)



What changed with 6.1 / Spring 3 that I need to address? I am unable to find any information in the documentation or community that indicates incompatibility between the Java REST APIs and 6.1.
Thank you!

atotheroh's picture
Joined: May 15 2015 - 3:25pm
Last seen: 7 years 5 months ago

1 Answer:

is "JasperserverRestClient" included in JasperReports? It looks like JasperserverRestClient uses rest v1 interface instead of rest v2 interface.

hozawa's picture
169929
Joined: Apr 24 2010 - 4:31pm
Last seen: 3 years 9 months ago
Feedback
randomness