Hi Erik,


Can you provide a bit more details about which example, and how you
executed it? The error sounds like you provided invalid credentials. You
need to provide valid credentials for a user you created in MarkLogic. Typo
perhaps?



The other option is that you are using a user with insufficient privileges,
e.g. needs more roles. But I'd expect a different message for that..



Kind regards,

Geert



*Van:* [email protected] [mailto:
[email protected]] *Namens *Erik van der Hoeven
*Verzonden:* donderdag 6 februari 2014 21:31
*Aan:* [email protected]
*Onderwerp:* [MarkLogic Dev General] Java API error



Gentlemen,



When i tried to execute the example of Marklogic JAVA API. Whith my
administrator account. I have installed the complete lib directory of the
Marklogic JAVA API.



But now i get the following error:



Exception in thread "main" com.marklogic.client.FailedRequestException:
Local message: write failed: Unauthorized. Server Message: Unauthorized

at
com.marklogic.client.impl.JerseyServices.putPostDocumentImpl(JerseyServices.java:1093)

                 at
com.marklogic.client.impl.JerseyServices.putDocument(JerseyServices.java:904)

                 at
com.marklogic.client.impl.DocumentManagerImpl.write(DocumentManagerImpl.java:345)

                 at
com.marklogic.client.impl.DocumentManagerImpl.write(DocumentManagerImpl.java:280)

                 at
com.marklogic.client.impl.DocumentManagerImpl.write(DocumentManagerImpl.java:240)

                 at tweetapi.DBClient.main(DBClient.java:41)

Java Result: 1



I hope you can help me out



Met vriendelijke groeten,



*Erik van der Hoeven *

*Consultant Business Intelligence*


DIKW CONSULTING BV
Einsteinbaan 12
3439 NJ Nieuwegein
M: 06-43029943

E: [email protected]
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to