Setting readers item in Java not working

In an agent called from a browser the following Java for setting a readers item works, but the document is not visible to the authenticated user in a view. When I run LotusScript code on the document, it then becomes visible.

Java

Vector v = new Vector();

v.addElement( “CN=Geoff Pell/0=Primary” );

v.addElement( “[Admin]” );

Item readersList = doc.replaceItemValue( “readersList”, v );

readersList.setSummary( true );

readersList.setReaders( true );

doc.save( true, true );

LotusScript

newValues( 1 ) = “CN=Geoff Pell/O=Primary”

newValues( 2 ) = “[Admin]”

Set item = New NotesItem( doc, “readersList”, newValues, READERS )

Call doc.Save( True, True )

When I look at the properties they are as one would expect.

LotusScript creates this:

Field Name: readersList

Data Type: Text List

Data Length: 36 bytes

Seq Num: 3

Dup Item ID: 0

Field Flags: SUMMARY READ-ACCESS NAMES

“[Admin]”

“CN=Geoff Pell/O=Primary”

Java creates this:

Field Name: readersList

Data Type: Text List

Data Length: 36 bytes

Seq Num: 2

Dup Item ID: 0

Field Flags: SUMMARY READ-ACCESS NAMES

“[Admin]”

“CN=Geoff Pell/0=Primary”

Any thoughts appreciated thank you.

Subject: Zero

I think you used an zero (0) instead of an ohh (O) in the Java code in the line:

v.addElement( “CN=Geoff Pell/0=Primary” );

/henrik

Subject: Thank you - it had to be that easy

Thank you Henrik. I had looked everywhere else and you spotted it.