org.xmldb.api.base.XMLDBException: HTTP server returned unexpected status: Unauthorized


Solutions on the web2

Solution icon of github
via GitHub by zacheryt757
, 9 months ago
HTTP server returned unexpected status: Unauthorized

Solution icon of github
HTTP server returned unexpected status: Unauthorized

Stack trace

org.xmldb.api.base.XMLDBException: HTTP server returned unexpected status: Unauthorized
	at org.exist.xmldb.RemoteCollection.instance(RemoteCollection.java:98)
	at org.exist.xmldb.RemoteCollection.instance(RemoteCollection.java:80)
	at org.exist.xmldb.DatabaseImpl.readCollection(DatabaseImpl.java:279)
	at org.exist.xmldb.DatabaseImpl.getRemoteCollection(DatabaseImpl.java:241)
	at org.exist.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:164)
	at org.exist.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:153)
	at org.xmldb.api.DatabaseManager.getCollection(Unknown Source)
	at org.exist.client.InteractiveClient.connect(InteractiveClient.java:327)
	at org.exist.client.InteractiveClient.connectToDatabase(InteractiveClient.java:2335)
	at org.exist.client.InteractiveClient.run(InteractiveClient.java:2423)
	at org.exist.client.InteractiveClient.main(InteractiveClient.java:289)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.exist.start.Main.invokeMain(Main.java:126)
	at org.exist.start.Main.run(Main.java:448)
	at org.exist.start.Main.main(Main.java:50)
Caused by: org.apache.xmlrpc.client.XmlRpcHttpTransportException: HTTP server returned unexpected status: Unauthorized
	at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.getInputStream(XmlRpcSunHttpTransport.java:94)
	at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:152)
	at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:143)
	at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
	at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
	at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
	at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:158)
	at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:147)
	at org.exist.xmldb.RemoteCollection.instance(RemoteCollection.java:89)
	... 17 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago