Raphaël , I have 4 tasks defined in my lsc.xml file. They are named:
<task>
<name>LSC_Employees_V2</name>
<task>
<name>LSC_Core_Automatons_V2</name>
<task>
<name>LSC_Core_Groups_V2</name>
<task>
<name>LSC_Employee_PWD_V2</name>
Here an excerpt of what I see in the logs for my 2.1 run in development:
Jul 10 08:10:05 - INFO - Starting sync for LSC_Core_Automatons_V2
Jul 10 08:10:49 - INFO - All entries: 3009, to modify entries: 0, successfully
modified entries: 0, errors: 0
Jul 10 08:10:49 - INFO - Starting sync for LSC_Core_Groups_V2
Jul 10 08:10:54 - ERROR - Error while reading entry CN=Enterprise
Admins,CN=Users,DC=ds,DC=aepsc,DC=com: javax.naming.NameNotFoundException:
[LDAP: error code 32 - 0000208D: NameErr: DSID-0310020A, problem 2001
(NO_OBJECT), data 0, best match of:
'DC=corp,DC=aepsc,DC=com'
]; remaining name 'CN=Enterprise Admins,CN=Users,DC=ds,DC=aepsc,DC=com'
Jul 10 08:10:54 - ERROR - Fail to compute expression:
Reason: javax.script.ScriptException:
sun.org.mozilla.javascript.internal.WrappedException: Wrapped
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 (<Unknown source>#139)
in <Unknown source> at line number 139
Jul 10 08:10:54 - ERROR - Error while synchronizing ID
{samaccountname=Administrators}: org.lsc.exception.LscServiceException:
javax.script.ScriptException:
sun.org.mozilla.javascript.internal.WrappedException: Wrapped
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 (<Unknown source>#139)
in <Unknown source> at line number 139
Jul 10 08:19:39 - ERROR - All entries: 33776, to modify entries: 18,
successfully modified entries: 18, errors: 2
Jul 10 08:19:39 - ERROR - Error while closing service.
Jul 10 08:19:39 - ERROR - Error while closing service.
Jul 10 08:19:39 - ERROR - Error while closing service.
Jul 10 08:19:39 - ERROR - Error while closing service.
Jul 10 08:19:39 - ERROR - Error while closing service.
Jul 10 08:19:39 - ERROR - Error while closing service.
The task that generates the error continues to run to completion but then there
are no log entries indicating that the other 2 tasks were ever started. Here's
an excerpt of my log when I comment out the offending task:
Jul 10 09:04:22 - INFO - Starting sync for LSC_Core_Automatons_V2
Jul 10 09:05:10 - INFO - All entries: 3009, to modify entries: 0, successfully
modified entries: 0, errors: 0
Jul 10 09:05:10 - INFO - Starting sync for LSC_Employee_PWD_V2
Jul 10 09:07:28 - INFO - All entries: 25378, to modify entries: 546,
successfully modified entries: 546, errors: 0
Jul 10 09:07:28 - INFO - Starting sync for LSC_Employees_V2
Jul 10 09:11:03 - ERROR - All entries: 25381, to modify entries: 2494,
successfully modified entries: 2493, errors: 1
Jul 10 09:11:03 - ERROR - Error while closing service.
Jul 10 09:11:03 - ERROR - Error while closing service.
Jul 10 09:11:03 - ERROR - Error while closing service.
Jul 10 09:11:03 - ERROR - Error while closing service.
All 3 tasks ran to completion and you can see from the counts that the last two
tasks haven't run in quite a while. You'll also notice the count of "closing"
errors is different??
Here's an excerpt from my production log running the same lsc.xml under 2.0.3
Jul 10 09:00:08 - INFO - Starting sync for LSC_Core_Automatons_V2
Jul 10 09:00:49 - ERROR - All entries: 3009, to modify entries: 0, successfully
modified entries: 0, errors: 1
Jul 10 09:00:49 - INFO - Starting sync for LSC_Core_Groups_V2
Jul 10 09:00:54 - ERROR - Error while reading entry CN=Enterprise
Admins,CN=Users,DC=ds,DC=aepsc,DC=com: javax.naming.NameNotFoundException:
[LDAP: error code 32 - 0000208D: NameErr: DSID-0310020A, problem 2001
(NO_OBJECT), data 0, best match of:
'DC=corp,DC=aepsc,DC=com'
]; remaining name 'CN=Enterprise Admins,CN=Users,DC=ds,DC=aepsc,DC=com'
Jul 10 09:00:54 - ERROR - javax.script.ScriptException:
sun.org.mozilla.javascript.internal.WrappedException: Wrapped
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 (<Unknown source>#139)
in <Unknown source> at line number 139
Jul 10 09:11:29 - ERROR - All entries: 33775, to modify entries: 12,
successfully modified entries: 9, errors: 3
Jul 10 09:11:29 - INFO - Starting sync for LSC_Employees_V2
Jul 10 09:15:15 - INFO - All entries: 25381, to modify entries: 1,
successfully modified entries: 1, errors: 0
Jul 10 09:15:15 - INFO - Starting sync for LSC_Employee_PWD_V2
Jul 10 09:18:23 - INFO - All entries: 25378, to modify entries: 25,
successfully modified entries: 25, errors: 0
The same JavaScript error occurs in production but all of the tasks execute and
run to completion.
-Jon C. Kidder
American Electric Power
Middleware Services
Email: [email protected]
Phone: 614-716-4970
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Raphaël
Ouazana-Sustowski
Sent: Thursday, July 10, 2014 5:23 AM
To: [email protected]
Subject: Re: [lsc-users] Operational behavior when encountering an error in LSC
2.1
This is an EXTERNAL email. STOP. THINK before you CLICK links or OPEN
attachments.
**********************************************************************
Hi,
Le 09/07/2014 18:04, Jon C Kidder a écrit :
> I have upgraded my development environment from LSC 2.0.3 to LSC 2.1
> and I've noticed a change in error handling that is undesirable in my
> implementation. In 2.1, one of my tasks encounters a JavaScript error,
> and then subsequent tasks in the same lsc.xml file don't execute. I'm
> running the same lsc.xml in my production environment on 2.0.3. It is
> generating the same errors in the same task, but, subsequent tasks
> continue to execute. The errors are the result of "garbage" data in
> the source system. I would like to promote the 2.1 upgrade through all
> of my environments and into production but for the immediate future
> can't invest the time in the significant JavaScript updates needed to
> prevent these "garbage errors". The 2.0.3 behavior is preferred. Is
> the 2.1 behavior expected or is this a bug?
I don't think this behavior shoud have changed. Can you provide a complete
example?
Are you sure that is it not due to task reordering (see
http://tools.lsc-project.org/issues/589)?
Regards,
Raphaël Ouazana.
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users