• Post Reply Bookmark Topic Watch Topic
  • New Topic

[ApacheDS] ERR_04269 ATTRIBUTE_TYPE for OID documentidentifier does not exists

 
Richard Dunn-Roberts
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to add a document to an ou programatically. I am using ApacheDS v1.5. I am also using Apache Directory Studio 2.0.0.v20130628.

I am able to connect to the server localhost, at port 10389, and am working in partition dc=test,dc=com (for this example).

The following organizational units exist in the partition - persistent (ou=persistent,dc=test,dc=com), and under persistent, documentStore (ou=documentStore,ou=persistent,dc=test,dc=com).

If I import a document into the documentStore ou using an ldif import, it works. The ldif file contains only the following lines:


I can also create the document by right clicking on the ou node in the LDAP browser, selecting New->New Entry (or New->New Context Entry; both seem to open the same dialog). In the dialog, I select Create entry from scratch, click Next, and select document from the Available object classes. This adds document and top to the Selected object classes. I then click Next. For RDN, I enter documentIdentifier and D2 to the entry fields, and click (yep, you guessed it!) Next. This shows three attributes ... two objectClass values (document and top), and one documentIdentifier value (D2), as expected. The dialog indicates that these are must attributes. I then click Finish, and the document node is displayed in the LDAP Browser in AD Studio.

Next, I try to create a document entry from a short java program. I can successfully create an ou using the program, by creating an InitialDirContext (let's call it idc. I can then create an ou using the following code:



This code completes successfully, and the new ou, anotherOu, is visible in the LDAP Browser, when I reload the directoryStore ou.

Finally, I modify the code above to attempt to programatically add a document to the documentStore ou. The modified code is as follows:



When I run this code, I get the following exception message and stack trace:



I am a novice LDAP user, and freely admit I don't understand it very well. Any assistance in identifying my error, or identifying a solution, would be greatly appreciated.



¦(Þ
 
Richard Dunn-Roberts
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PS - I did search the web for this error message. There were quite a few results, and most of them reference other OIDs. Most of them are from the 2013 time frame, and talk about incompatibility, to be fixed by downloading the most recent nightly build. I have not tried this as yet. I will probably try this soon, but, I'm not holding out much hope.

Again, thanks for any assistance rendered. シ

¦(Þ

 
Richard Dunn-Roberts
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And, one minor correction. I am using ApacheDS version 2.0.0-M17. シ

¦(Þ
 
Richard Dunn-Roberts
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Found a typo. Getting a different error, now, but, making progress. シ

¦(Þ
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!