I am attempting to use the ObjectService createPath() method for the first time. I thought I'd finally figured out all of the factories and contexts I neede to create, but when the createPath method fires, it gives me a DM_BOF_WRONG_IDENTITY error. I've got the session using the usual credentials.
What is it looking for, and how do I set different credentials? I am running this from my development laptop, not on the server. Would it be picking up my credentials?
Note, this is not a web service, it is a Java program I'm developing to import some files.
Here is the method:

The error is:
"Create path" operation failed for object: /TEST1/TEST2/TEST3. [DFC_BOF_WRONG_IDENTITY] LoginInfo and Principal for "Etic_Dev" docbase are not defined or wrong.
Message was edited by: jklawrence
I found the answer. I needed to create a RepositoryIdentity, add the parameters to it, and then add the identity to the ServiceContext.