Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,

    401 means "Unauthorized", so there must be something with your credentials. You need to pass the authentication to let the server know its a valid user. Check whether the authentication details are provided.

Solutions on the web

via Tridion by ARRX
, 1 year ago
Unable to make POST request to OData service for "http://localhost:8082/discovery.svc" URL and service query "/ContentServiceCapabilities"
java.io.IOException: Server returned HTTP response code: 403 for URL: http://localhost:8082/discovery.svc/ContentServiceCapabilities('DefaultContentSerice')	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)	at java.net.HttpURLConnection.getResponseCode(Unknown Source)	at com.sdl.odata.client.caller.BasicEndpointCaller.sendRequest(BasicEndpointCaller.java:121)	at com.sdl.odata.client.caller.BasicEndpointCaller.doPutEntity(BasicEndpointCaller.java:176)	at com.sdl.odata.client.DefaultODataClient.updateEntity(DefaultODataClient.java:191)	at com.sdl.web.discovery.registration.SecuredODataClient.updateEntity(SecuredODataClient.java:72)	at com.sdl.web.discovery.registration.command.UpdateCommand.updateCapability(UpdateCommand.java:96)	at com.sdl.web.discovery.registration.command.UpdateCommand.performCommand(UpdateCommand.java:48)	at com.sdl.web.discovery.registration.RegistrationTool.performCommand(RegistrationTool.java:60)	at com.sdl.web.discovery.registration.Main.main(Main.java:36)