Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

TDI/Domino - Adding to Deny group

144 views
Skip to first unread message

Mike McP

unread,
Aug 29, 2011, 3:59:11 PM8/29/11
to
My AD/Domino synching is going well, but I've run into an issue with
trying to add users to the deny access group in my address book when
they're deleted from AD. I'd rather do this than delete them entirely
from the NAB. Using TDI 7.0fp6 if that matters.

I'm setting ACC_DenyGroupName = "Disabled Users", which exists in my
test NAB as a Deny group.
I'm setting ACC_SetType to ret.value = 0. I've tried it as a string
also, but it looks like it wants an integer.

These are my only two maps. I have add = false and mod = true for all
of them.

I have a DominoUsersConnector, in update mode. I'm successfully
falling into my IF flow if it's a 'delete' operation in AD, but
bombing with this error when it attempts the update:

CTGDIS266E - error in NextConnectorOperation. Exception occurred:
java.lang.NumberFormatException: For input string: "0.0".

I'm thinking my ACC_SetType value is throwing the error, but I can't
figure it out. I even tried wrapping it in parseInt, to no avail. It
must be something simple...can anyone point me in the right direction?


Eddie Hartman

unread,
Aug 30, 2011, 5:50:48 AM8/30/11
to

Since JavaScript has only a handful of types, and the numeric type is
'Number' which is used for all kinds of values: integers to decimal
values. So I would try creating a new Java integer:

return new java.lang.Integer.parseInt("0")

This will ensure you don't get the decimal value in your write.

-Eddie

Mike McP

unread,
Aug 31, 2011, 2:31:54 PM8/31/11
to
This didn't seem to work:

"Reference error: 'java' not found".

Hmm...any ideas?

Mike McP

unread,
Aug 31, 2011, 2:55:18 PM8/31/11
to
OK, I figured that out. Some helpful guy named Eddie Hartman has a
blog with a post that helped me track it down. Seems I needed to
capitalize the "i" in integer.

Now I'm back to the same error though with the
'java.lang.NumberFormatException: For input string: "0.0"'

Eddie Hartman

unread,
Sep 1, 2011, 6:00:09 AM9/1/11
to
If you are doing java.lang.Integer.parseInt("0") then you should not
be getting that error (note that 'new' is not necessary - my bad):

ret.value = java.lang.Integer.parseInt("0");

Try converting the numeric value to an integer first using something
like Math.floor(numericValue).

if all else fails, post your code here in the thread.

-Eddie

Mike McP

unread,
Sep 1, 2011, 10:13:34 AM9/1/11
to
Math.floor results in the same error. Here's my full dump of my
error.

I will send my Assembly line to your email address, as it's WAY too
big to post here in its entirety, and I'm not sure what irrelevant
parts I might be able to snip out

10:05:56,559 INFO - Operation: delete
10:05:56,559 INFO - Entry attributes:
10:05:56,559 INFO - lastKnownParent
(replace): 'CN=Users,DC=NotesTest,DC=local'
10:05:56,559 INFO - uSNChanged (replace): '49232'
10:05:56,559 INFO - uSNCreated (replace): '49225'
10:05:56,559 INFO - objectGUID (replace): (\bd\c8\72\26\e2\a4\af\4c
\a4\0b\70\88\c2\47\ae\bb)
10:05:56,559 INFO - objectGUIDStr (replace): '{2672C8BD-A4E2-4CAF-
A40B-7088C247AEBB}'
10:05:56,559 INFO - whenChanged (replace): '20110901140556.0Z'
10:05:56,559 INFO - whenCreated (replace): '20110901140232.0Z'
10:05:56,559 INFO - instanceType (replace): '4'
10:05:56,559 INFO - objectSid (replace):
(\01\05\00\00\00\00\00\05\15\00\00\00\e0\11\ab\8c\d5\31\f7\a9\a3\b8\7a
\eb\72\04\00\00)
10:05:56,559 INFO - cn (replace): 'c 8. user
DEL:2672c8bd-a4e2-4caf-a40b-7088c247aebb'
10:05:56,559 INFO - userAccountControl (replace): '512'
10:05:56,559 INFO - objectClass
(replace): 'top' 'person' 'organizationalPerson' 'user'
10:05:56,559 INFO - isDeleted (replace): 'TRUE'
10:05:56,559 INFO - $dn (replace): 'CN=c 8. user
DEL:2672c8bd-a4e2-4caf-a40b-7088c247aebb,CN=Deleted
Objects,DC=NotesTest,DC=local'
10:05:56,574 INFO - changeType (replace): 'delete'
10:05:56,574 INFO - sAMAccountName (replace): 'cuser'
10:05:56,574 INFO - distinguishedName (replace): 'CN=c 8. user
\0ADEL:2672c8bd-a4e2-4caf-a40b-7088c247aebb,CN=Deleted
Objects,DC=NotesTest,DC=local'
10:05:56,574 INFO - name (replace): 'c 8. user
DEL:2672c8bd-a4e2-4caf-a40b-7088c247aebb'
10:05:56,574 INFO - [ActiveDirectoryChangeDetectionConnector]
CTGDIS004I *** Finished dumping Entry
10:05:57,027 ERROR - [Domino Users_Disable] CTGDIS810E handleException
- cannot handle exception , update


java.lang.NumberFormatException: For input string: "0.0"

at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:
63)
at java.lang.Integer.parseInt(Integer.java:490)
at java.lang.Integer.valueOf(Integer.java:587)
at
com.ibm.di.connector.dominoUsers.UserAccess.extractAndStoreData(UserAccess.java:
199)
at
com.ibm.di.connector.dominoUsers.DominoUsersConnector.clearFixedDominoActionAttributes(DominoUsersConnector.java:
2188)
at
com.ibm.di.connector.dominoUsers.DominoUsersConnector.inner_modEntry(DominoUsersConnector.java:
1437)
at
com.ibm.di.connector.dominoUsers.DominoUsersConnector.run(DominoUsersConnector.java:
535)
at java.lang.Thread.run(Thread.java:810)
10:05:57,027 ERROR - CTGDIS266E Error in NextConnectorOperation.


Exception occurred: java.lang.NumberFormatException: For input string:
"0.0"

java.lang.NumberFormatException: For input string: "0.0"

at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:
63)
at java.lang.Integer.parseInt(Integer.java:490)
at java.lang.Integer.valueOf(Integer.java:587)
at
com.ibm.di.connector.dominoUsers.UserAccess.extractAndStoreData(UserAccess.java:
199)
at
com.ibm.di.connector.dominoUsers.DominoUsersConnector.clearFixedDominoActionAttributes(DominoUsersConnector.java:
2188)
at
com.ibm.di.connector.dominoUsers.DominoUsersConnector.inner_modEntry(DominoUsersConnector.java:
1437)
at
com.ibm.di.connector.dominoUsers.DominoUsersConnector.run(DominoUsersConnector.java:
535)
at java.lang.Thread.run(Thread.java:810)
10:05:57,043 INFO - CTGDIS100I Printing the Connector statistics.
10:05:57,043 INFO - [ActiveDirectoryChangeDetectionConnector] Get:2
10:05:57,043 INFO - [Delete] Branch True:1, Branch False:1
10:05:57,043 INFO - [Domino Users_Disable] Lookup:1, Errors:1
10:05:57,043 INFO - [Modify] Branch True:1, Branch False:0
10:05:57,043 INFO - [Person] Branch True:1, Branch False:0
10:05:57,043 INFO - [Domino Users_Add] Lookup:1, Modify:1
10:05:57,043 INFO - CTGDIS104I Total: Get:2, Lookup:2, Modify:1,
Errors:2.
10:05:57,043 INFO - CTGDIS101I Finished printing the Connector
statistics.
10:05:57,043 ERROR - CTGDIS077I Failed with error: For input string:
"0.0".

0 new messages