CSDT Command Line Throws java.io.IOException HTTP 401 Error (Doc ID 1522165.1)

Last updated on MAY 12, 2016

Applies to:

Oracle WebCenter Sites - Version 11.1.1.6.1 and later
Information in this document applies to any platform.

Symptoms

When calling CSDT command-line command connecting to a WebCenter Sites 11gR1 BP1 instance, the following error is thrown:

java.io.IOException: Server returned HTTP response code: 401 for URL: {URL created by csdt command}
  at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
  at com.fatwire.csdt.client.util.CSDTClientUtility.callCS(CSDTClientUtility.java:119)
  at com.fatwire.csdt.client.main.CSDT.main(CSDT.java:31)


e.g.

java.io.IOException: Server returned HTTP response code: 401 for URL: http://localhost:8080/sites/ContentServer?pagename=OpenMarket/Xcelerate/PrologActions/Publish/csdt/CSDTService&command=export&username=fwadmin&password=password&includeDeps=true&idMapping=true&resources=%40ALL_ASSETS%3A*%3B%40ALL_NONASSETS%3A*&datastore=workspace
  at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
  at com.fatwire.csdt.client.util.CSDTClientUtility.callCS(CSDTClientUtility.java:119)
  at com.fatwire.csdt.client.main.CSDT.main(CSDT.java:31)

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms