LDAP - Free unused Connections

Hi,
I am very new to work with Active Directory. I have got a PL/SQL script from net to communicate with LDAP and it is working fine.
My task is to check the user names against the LDAP.
But am getting "DBMS_LDAP: Cannot open more than 63 LDAP connections" error.
I have gone through so many sites to resolve this issue. Everyone is suggesting to close the connection after the executing the script.
I already have a closing statement in my script.
"l_retval := DBMS_LDAP.unbind_s(l_session); "
Please help me to resolve this issue.
Thanks,
Rajesh.B

Here is the script.
create or replace
FUNCTION GET_LDAP_STATUS 
(acct in varchar2)
RETURN number AS
BEGIN
DECLARE
  -- Adjust as necessary.
  output PLS_INTEGER;
  l_ldap_host VARCHAR2(256) := ;
  l_ldap_port VARCHAR2(256) := ;
  l_ldap_user VARCHAR2(256) := ;
  l_ldap_passwd VARCHAR2(256) := ;
  l_ldap_base VARCHAR2(256) :=;
  l_retval       PLS_INTEGER;
  l_session      DBMS_LDAP.session;
  l_attrs        DBMS_LDAP.string_collection;
  l_message      DBMS_LDAP.message;
  l_entry        DBMS_LDAP.message;
  l_attr_name    VARCHAR2(256);
  l_ber_element  DBMS_LDAP.ber_element;
  l_vals         DBMS_LDAP.string_collection;
BEGIN
  -- Choose to raise exceptions.
  DBMS_LDAP.USE_EXCEPTION := TRUE;
  -- Connect to the LDAP server.
  l_session := DBMS_LDAP.init(hostname => l_ldap_host,
                              portnum  => l_ldap_port);
  l_retval := DBMS_LDAP.simple_bind_s(ld     => l_session,
                                      dn     => l_ldap_user,
                                      passwd => l_ldap_passwd);
  -- Get all attributes
  l_attrs(1) := 'sAMAccountName'; -- retrieve all attributes
  l_retval := DBMS_LDAP.search_s(ld       => l_session,
                                 base     => l_ldap_base,
                                 scope    => DBMS_LDAP.SCOPE_SUBTREE,
                                 filter   => 'sAMAccountName='||acct,
                                 attrs    => l_attrs,
                                 attronly => 0,
                                 res      => l_message);
  IF DBMS_LDAP.count_entries(ld => l_session, msg => l_message) > 0 THEN
    -- Get all the entries returned by our search.
    l_entry := DBMS_LDAP.first_entry(ld  => l_session,
                                     msg => l_message);
    << entry_loop >>
    WHILE l_entry IS NOT NULL LOOP
      -- Get all the attributes for this entry.
      DBMS_OUTPUT.PUT_LINE('---------------------------------------');
      l_attr_name := DBMS_LDAP.first_attribute(ld        => l_session,
                                               ldapentry => l_entry,
                                               ber_elem  => l_ber_element);
      << attributes_loop >>
      WHILE l_attr_name IS NOT NULL LOOP
        -- Get all the values for this attribute.
        l_vals := DBMS_LDAP.get_values (ld        => l_session,
                                        ldapentry => l_entry,
                                        attr      => l_attr_name);
        << values_loop >>
        FOR i IN l_vals.FIRST .. l_vals.LAST LOOP
          DBMS_OUTPUT.PUT_LINE('ATTIBUTE_NAME: ' || l_attr_name || ' = ' || SUBSTR(l_vals(i),1,200));
          l_retval := l_retval+1;
        END LOOP values_loop;
        l_attr_name := DBMS_LDAP.next_attribute(ld        => l_session,
                                                ldapentry => l_entry,
                                                ber_elem  => l_ber_element);
      END LOOP attibutes_loop;
      l_entry := DBMS_LDAP.next_entry(ld  => l_session,
                                      msg => l_entry);
    END LOOP entry_loop;   
  END IF;
  -- Disconnect from the LDAP server. 
  DBMS_OUTPUT.PUT_LINE('L_RETVAL: ' || l_retval);
  return l_retval;
  l_retval := DBMS_LDAP.unbind_s(l_session); 
END;
END GET_LDAP_STATUS;Edited by: BluShadow on 05-Jan-2012 14:15
added {noformat}{noformat} tags for readability of the code. Please read: {message:id=9360002} and learn to do this yourself.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • TS1398 After updating to ios 6 my iphone 4 would no longer connect to my home wifi. At work we have a free wifi connection that does not require a password. However my wifi at home is password protected. I have the right password. It works on my ipod touc

    After updating my iphone 4 with the ios 6 update. My iphone would no longer connect to my home wifi that is password protected. I know that I have the right password entered in. At work we have a free wifi connection that does not require a password and I can connect no problem to it. My ipod touch has no problem connecting to my home wifi. It is a 3rd gen ipod and does not have the ios 6 update on it. Please help!

    I'm having the same issues. Started when I upgraded iphone 4S and ipad1 to 5.1.1. Wife's iphone 4g on 4.4.2 has been ok. I've forgot the network on both devices and restored the iphone, none of which changed the issue. I've upgraded to ios 6 on the iphone 4s, problem still persists.
         One thing that will help for a time: go to your router and change the wireless control channel. When I first did this I got full connectivity for about 48 hours... and now the problem is back. I'm now changing the wireless control channel every 12 hours, which is a pain but at least keeps me connected. I've tried a few other solutions that are out there and that has been the best one so far.
         to do this on a motorola router: type 192.168.0.1 in your address bar.
    username: admin and password:motorola if you have not changed the factory defaults.
    Click on the word "wireless" and look for the "control channel" field. This may be set to auto or to 1, try changing it to 6 or 11 (preferred) or any other channel.
    The control channel can cause static in the wireless system IF there are several networks nearby that are on the default setup.
    There is a fair bit of buzz about this issue out there, some other things I've seen:
    This is a hardware issue. Go to the store and have your wifi antenna checked, some users reporting that they get free replacement devices.
    Check against other wifi networks that require a password (this is next for me). Logon to those networks and surf until your wifi stops. If your wifi connects to the internet but stops responding, then this is a software (or hardware) issue and apple needs to step up. Some are claiming this to be the case.
    IF you connect and stay connected/on the internet on another password protected wifi, then the issue is with your router. this is where things get cute.
    Comcast may tell you to update your firmware. Motorola may tell you that your cable provider is the only one who can push through firmware updates. Comcast may tell you that you are not in an area that is being updated. It's unclear if they say that to all customers, or just those who have purchased cable modems and aren't renting them from comcast.
    Good luck, more to come if I figure out anything else, and please post any solutions you may find.

  • I am using an I phone 5 in Germany and trying to get text messaging to work through the hands free Bluetooth connection on a Honda CRV. It keeps telling me that text messaging is not a feature of my phone. messages come in on the phone.How to resolve ?

    I am using an I phone 5 in Germany and trying to get text messaging to work through the hands free Bluetooth connection on a Honda CRV. It keeps telling me that text messaging is not a feature of my phone. messages come in on the phone.How to resolve ?

    mono 8 bit 8k is 64kbps, yes. 8 bits times 8,000 = 64,000 = 64k bits/sec.
    And yes I think that's a typo - there's no such thing as 'Mone' that I've ever heard of...
    But you might want to check to find out if this is a mu-law non-linear format, possibly - there are several ways that 8 bit 8k wav files can be encoded, and typically phone systems don't use linear ones. If you have a log-in to Zultys' user-base system they have an FAQ there, I believe - the answer might be in that, and it won't cost $500.

  • OracleConnectionCacheImpl recycle unused connections?

    Hi all,
    Does anyone know if the OracleConnectioCacheImpl has any sort of mechanism that recycles unused connections when traffic decreases?
    From my tests, it seems to create connections fine up to the maximum, or past it depending on the cache scheme used, but it doesn't seem to recycle back down to the minimum or anything.

    My own experience and I understand from Metalink there is a known bug (internal) with the 8.1.7 driver that causes setMaxLimit to be a real hard limit even if you use the DYNAMIC scheme.
    ie no connections are made above the limit and it therefore will never reduce back down.
    Discovered after pulling my hair out as to why our apps performance sucked big time... try running 700 users on a pool with 3 connections :-))
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Derek Wichmann:
    When you say "take them down to the cache size that you specified," I take it that this is the limit specified with OracleConnectionCacheImpl.setMaxLimit()?<HR></BLOCKQUOTE>
    null

  • Free Jabber connection and stability issues

    I am the video administrator for UTD and free jabber is a foundational block for our video deployment.  About a month ago we began to notice free jabber having issues connecting (signing in) and dropping calls.  Here is a summary of our findings.
    1. About 20% of our calls with free jabber are experiencing issues
    2. Calls that can't sign in recieve an "unable to register" error.
    3. Calls that have problems staying connected have very sparatic connections.  Over an hour long video conference they will stay connected for 20 seconds, then drop, then connect back for 5 minutes, then drop, then connect for 2 seconds, then drop, then connect for 30 minutes, then drop, then connect for 3 minutes, then drop, etc.
    4. Our VCS Expressway shows many different errors for the same call.  A list of the errors are "Interowrked No Permission - Insufficient privilege", "403 Forbidden", "487 Request Teminated", "Undefined reason", "Unknown reason".
    We believe that the "user unable to register" is due to a maxing out of the Cisco VCS Expressway.  We believe the other issues are due to Cisco firewall mishandling the free jabber calls.  There is an open discussion with our sister sites about this issue.  We will be testing/monitoring free jabber connections over the next few weeks.  Sniffing the connection should tell us exactly what side the errors are coming from, but given that none of our other video equipment is having problems nor is our Enterprise Jabber having issues, all hands are pointing to Cisco's free jabber infrastructure not configured correctly and not being able to handle the load.
    Anyone want to comment on this?
    -Brian Moore

    Still seeing disconnects.  But now also testing Ipad jabber video and seeing similar issues there.  Really seems like Cisco's infrastructure can't handle the load.
    Any thoughts?

  • My iphone has like 2gig space free, after connect to itunes phone display disk full how can i get my space back

    i was using my iphone normally it has 2 gig space free i made a ringtone when i connected the iphone to transfer the ringtone itunes show sinc and make my phone look like is full but it has after connect the phone to itunes but im sure my phone has even more space cuz itunes even took the music off the phone how can i get my space back

    http://support.apple.com/kb/ht1212

  • ADEP LDAP (Active Directory) Connection Failed

    Hi,
    I have a problem with ADEP connecting to our LDAP server.
    Interestingly enough it works only once, but then on the second synchronization it doesn't seem to work and says Failed. Not sure what happens.
    I assume it does this alphabetically, so when I compare users/groups/group memebers starting with 'u' or 'w' in ADEP and LDAP using ADExplorer they are matched prefectly.
    What worries me is if a new user comes in and it can't sync anymore.
    Info:
    I'm running ADEP Document Services on JBoss and MySQL using turnkey installation.
    Notes:
    -This works prefectly fine with Adobe Livecycle on another server using the same LDAP server.
    -I've completely uninstalled and re-installed ADEP for this and still got the same error.
    Any help would be greatly appreciated.
    Log file:
    2012-01-15 06:05:47,782 INFO  [com.adobe.idp.um.businesslogic.synch.SynchronizationManager] (SimpleThreadPoolWorker-3) Synch was completed successfully for the following domains [KFUPM_AD(DONE,2)]
    2012-01-15 06:05:47,782 INFO  [com.adobe.idp.um.businesslogic.synch.SynchronizationManager] (SimpleThreadPoolWorker-3) Directory synchronization completed in 5 hrs 24 mins 17 secs 
    2012-01-15 06:05:47,804 INFO  [com.adobe.idp.um.scheduler.AbstractClusterJob] (SimpleThreadPoolWorker-1) Acquired the lock, proceeding with completing the job.
    2012-01-15 06:05:47,813 INFO  [com.adobe.idp.um.businesslogic.synch.SynchronizationManager] (SimpleThreadPoolWorker-1) Directory synchronization started. Thread name SimpleThreadPoolWorker-1
    2012-01-15 06:05:47,916 INFO  [com.adobe.idp.um.businesslogic.synch.DomainSynchronizer] (SimpleThreadPoolWorker-1) Synchronization started for domain KFUPM_AD
    2012-01-15 06:05:48,225 INFO  [com.adobe.idp.um.businesslogic.synch.DomainSynchronizer] (SimpleThreadPoolWorker-1) ---> Starting User synchronization
    2012-01-15 06:05:48,228 INFO  [com.adobe.idp.um.businesslogic.synch.DomainSynchronizer] (SimpleThreadPoolWorker-1) Starting Users synch from KFUPM_AD
    2012-01-15 06:06:22,957 WARN  [com.adobe.idp.um.businesslogic.synch.LdapHelper] (SimpleThreadPoolWorker-1) Record [CN=Paul Graeme Brown,OU=kfupm,DC=itc,DC=kfupm,DC=edu,DC=sa] is missing required attribute userid [sAMAccountName]
    2012-01-15 06:06:23,334 WARN  [org.hibernate.util.JDBCExceptionReporter] (UM Synch thread) SQL Error: 1062, SQLState: 23000
    2012-01-15 06:06:23,334 ERROR [org.hibernate.util.JDBCExceptionReporter] (UM Synch thread) Duplicate entry 'ali-4C787461-20AC-102F-BEB2-00000A8C088A' for key 'UIDINDEX'
    2012-01-15 06:06:23,335 ERROR [org.jboss.ejb.plugins.LogInterceptor] (UM Synch thread) RuntimeException in method: public abstract java.util.List com.adobe.idp.um.businesslogic.synch.dao.SynchronizationDAO.batchPersistPrincipals(com.ad obe.idp.um.entity.PrincipalDomainEntity,java.util.List,com.adobe.idp.um.entity.PrincipalEn tity$PrincipalType,boolean,com.adobe.idp.um.businesslogic.synch.SynchronizationContext):
    org.hibernate.exception.ConstraintViolationException: could not execute update query
              at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
              at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
              at org.hibernate.hql.ast.exec.BasicExecutor.execute(BasicExecutor.java:84)
              at org.hibernate.hql.ast.QueryTranslatorImpl.executeUpdate(QueryTranslatorImpl.java:396)
              at org.hibernate.engine.query.HQLQueryPlan.performExecuteUpdate(HQLQueryPlan.java:259)
              at org.hibernate.impl.SessionImpl.executeUpdate(SessionImpl.java:1141)
              at org.hibernate.impl.QueryImpl.executeUpdate(QueryImpl.java:94)
              at com.adobe.idp.um.businesslogic.synch.hibernate.HibernateSynchronizationDao.batchPersistPr incipals(HibernateSynchronizationDao.java:338)
              at sun.reflect.GeneratedMethodAccessor1159.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.jboss.invocation.Invocation.performCall(Invocation.java:386)
              at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:233)
              at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:156)
              at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:173)
              at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
              at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
              at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:404)
              at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
              at org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:228)
              at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:211)
              at org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java :97)
              at org.jboss.ejb.plugins.security.PreSecurityInterceptor.invoke(PreSecurityInterceptor.java: 81)
              at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
              at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:138)
              at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:650)
              at org.jboss.ejb.Container.invoke(Container.java:1092)
              at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:436)
              at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
              at $Proxy522.batchPersistPrincipals(Unknown Source)
              at com.adobe.idp.um.businesslogic.synch.hibernate.HibernateSynchronizationDao.persistPrincip als(HibernateSynchronizationDao.java:202)
              at sun.reflect.GeneratedMethodAccessor1160.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.jboss.invocation.Invocation.performCall(Invocation.java:386)
              at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:233)
              at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:156)
              at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:173)
              at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
              at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
              at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
              at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
              at org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:228)
              at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:211)
              at org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java :97)
              at org.jboss.ejb.plugins.security.PreSecurityInterceptor.invoke(PreSecurityInterceptor.java: 81)
              at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
              at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:138)
              at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:650)
              at org.jboss.ejb.Container.invoke(Container.java:1092)
              at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:436)
              at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
              at $Proxy522.persistPrincipals(Unknown Source)
              at com.adobe.idp.um.businesslogic.synch.DirectoryPersister.batchPersist(DirectoryPersister.j ava:134)
              at com.adobe.idp.um.businesslogic.synch.DirectoryPersister.run(DirectoryPersister.java:98)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
              at java.lang.Thread.run(Thread.java:662)
    Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry 'ali-4C787461-20AC-102F-BEB2-00000A8C088A' for key 'UIDINDEX'
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java: 39)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorIm pl.java:27)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
              at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
              at com.mysql.jdbc.Util.getInstance(Util.java:382)
              at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1039)
              at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593)
              at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525)
              at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1986)
              at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2140)
              at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2626)
              at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2111)
              at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2407)
              at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2325)
              at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2310)
              at org.jboss.resource.adapter.jdbc.CachedPreparedStatement.executeUpdate(CachedPreparedState ment.java:96)
              at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedSta tement.java:365)
              at org.hibernate.hql.ast.exec.BasicExecutor.execute(BasicExecutor.java:75)
              ... 55 more
    2012-01-15 06:06:23,373 WARN  [org.hibernate.util.JDBCExceptionReporter] (UM Synch thread) SQL Error: 1062, SQLState: 23000
    2012-01-15 06:06:23,373 ERROR [org.hibernate.util.JDBCExceptionReporter] (UM Synch thread) Duplicate entry 'ali-4C787461-20AC-102F-BEB2-00000A8C088A' for key 'UIDINDEX'
    2012-01-15 06:06:23,373 ERROR [org.jboss.ejb.plugins.LogInterceptor] (UM Synch thread) RuntimeException in method: public abstract java.util.List com.adobe.idp.um.businesslogic.synch.dao.SynchronizationDAO.batchPersistPrincipals(com.ad obe.idp.um.entity.PrincipalDomainEntity,java.util.List,com.adobe.idp.um.entity.PrincipalEn tity$PrincipalType,boolean,com.adobe.idp.um.businesslogic.synch.SynchronizationContext):
    org.hibernate.exception.ConstraintViolationException: could not execute update query
              at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
              at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
              at org.hibernate.hql.ast.exec.BasicExecutor.execute(BasicExecutor.java:84)
              at org.hibernate.hql.ast.QueryTranslatorImpl.executeUpdate(QueryTranslatorImpl.java:396)
              at org.hibernate.engine.query.HQLQueryPlan.performExecuteUpdate(HQLQueryPlan.java:259)
              at org.hibernate.impl.SessionImpl.executeUpdate(SessionImpl.java:1141)
              at org.hibernate.impl.QueryImpl.executeUpdate(QueryImpl.java:94)
              at com.adobe.idp.um.businesslogic.synch.hibernate.HibernateSynchronizationDao.batchPersistPr incipals(HibernateSynchronizationDao.java:338)
              at sun.reflect.GeneratedMethodAccessor1159.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.jboss.invocation.Invocation.performCall(Invocation.java:386)
              at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:233)
              at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:156)
              at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:173)
              at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
              at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
              at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:404)
              at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
              at org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:228)
              at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:211)
              at org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java :97)
              at org.jboss.ejb.plugins.security.PreSecurityInterceptor.invoke(PreSecurityInterceptor.java: 81)
              at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
              at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:138)
              at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:650)
              at org.jboss.ejb.Container.invoke(Container.java:1092)
              at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:436)
              at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
              at $Proxy522.batchPersistPrincipals(Unknown Source)
              at com.adobe.idp.um.businesslogic.synch.hibernate.HibernateSynchronizationDao.persistPrincip als(HibernateSynchronizationDao.java:215)
              at sun.reflect.GeneratedMethodAccessor1160.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.jboss.invocation.Invocation.performCall(Invocation.java:386)
              at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:233)
              at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:156)
              at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:173)
              at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
              at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
              at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
              at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
              at org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:228)
              at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:211)
              at org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java :97)
              at org.jboss.ejb.plugins.security.PreSecurityInterceptor.invoke(PreSecurityInterceptor.java: 81)
              at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
              at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:138)
              at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:650)
              at org.jboss.ejb.Container.invoke(Container.java:1092)
              at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:436)
              at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
              at $Proxy522.persistPrincipals(Unknown Source)
              at com.adobe.idp.um.businesslogic.synch.DirectoryPersister.batchPersist(DirectoryPersister.j ava:134)
              at com.adobe.idp.um.businesslogic.synch.DirectoryPersister.run(DirectoryPersister.java:98)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
              at java.lang.Thread.run(Thread.java:662)
    Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry 'ali-4C787461-20AC-102F-BEB2-00000A8C088A' for key 'UIDINDEX'
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java: 39)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorIm pl.java:27)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
              at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
              at com.mysql.jdbc.Util.getInstance(Util.java:382)
              at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1039)
              at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593)
              at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525)
              at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1986)
              at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2140)
              at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2626)
              at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2111)
              at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2407)
              at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2325)
              at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2310)
              at org.jboss.resource.adapter.jdbc.CachedPreparedStatement.executeUpdate(CachedPreparedState ment.java:96)
              at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedSta tement.java:365)
              at org.hibernate.hql.ast.exec.BasicExecutor.execute(BasicExecutor.java:75)
              ... 55 more
    2012-01-15 06:06:23,375 ERROR [org.jboss.ejb.plugins.LogInterceptor] (UM Synch thread) EJBException in method: public abstract java.util.List com.adobe.idp.um.businesslogic.synch.dao.SynchronizationDAO.persistPrincipals(com.adobe.i dp.um.entity.PrincipalDomainEntity,java.util.List,com.adobe.idp.um.entity.PrincipalEntity$ PrincipalType,com.adobe.idp.um.businesslogic.synch.SynchronizationContext), causedBy:
    org.hibernate.exception.ConstraintViolationException: could not execute update query
              at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
              at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
              at org.hibernate.hql.ast.exec.BasicExecutor.execute(BasicExecutor.java:84)
              at org.hibernate.hql.ast.QueryTranslatorImpl.executeUpdate(QueryTranslatorImpl.java:396)
              at org.hibernate.engine.query.HQLQueryPlan.performExecuteUpdate(HQLQueryPlan.java:259)
              at org.hibernate.impl.SessionImpl.executeUpdate(SessionImpl.java:1141)
              at org.hibernate.impl.QueryImpl.executeUpdate(QueryImpl.java:94)
              at com.adobe.idp.um.businesslogic.synch.hibernate.HibernateSynchronizationDao.batchPersistPr incipals(HibernateSynchronizationDao.java:338)
              at sun.reflect.GeneratedMethodAccessor1159.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.jboss.invocation.Invocation.performCall(Invocation.java:386)
              at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:233)
              at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:156)
              at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:173)
              at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
              at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
              at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:404)
              at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
              at org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:228)
              at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:211)
              at org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java :97)
              at org.jboss.ejb.plugins.security.PreSecurityInterceptor.invoke(PreSecurityInterceptor.java: 81)
              at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
              at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:138)
              at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:650)
              at org.jboss.ejb.Container.invoke(Container.java:1092)
              at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:436)
              at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
              at $Proxy522.batchPersistPrincipals(Unknown Source)
              at com.adobe.idp.um.businesslogic.synch.hibernate.HibernateSynchronizationDao.persistPrincip als(HibernateSynchronizationDao.java:215)
              at sun.reflect.GeneratedMethodAccessor1160.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.jboss.invocation.Invocation.performCall(Invocation.java:386)
              at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:233)
              at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:156)
              at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:173)
              at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
              at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
              at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
              at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
              at org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:228)
              at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:211)
              at org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java :97)
              at org.jboss.ejb.plugins.security.PreSecurityInterceptor.invoke(PreSecurityInterceptor.java: 81)
              at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
              at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:138)
              at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:650)
              at org.jboss.ejb.Container.invoke(Container.java:1092)
              at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:436)
              at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
              at $Proxy522.persistPrincipals(Unknown Source)
              at com.adobe.idp.um.businesslogic.synch.DirectoryPersister.batchPersist(DirectoryPersister.j ava:134)
              at com.adobe.idp.um.businesslogic.synch.DirectoryPersister.run(DirectoryPersister.java:98)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
              at java.lang.Thread.run(Thread.java:662)
    Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry 'ali-4C787461-20AC-102F-BEB2-00000A8C088A' for key 'UIDINDEX'
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java: 39)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorIm pl.java:27)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
              at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
              at com.mysql.jdbc.Util.getInstance(Util.java:382)
              at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1039)
              at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593)
              at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525)
              at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1986)
              at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2140)
              at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2626)
              at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2111)
              at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2407)
              at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2325)
              at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2310)
              at org.jboss.resource.adapter.jdbc.CachedPreparedStatement.executeUpdate(CachedPreparedState ment.java:96)
              at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedSta tement.java:365)
              at org.hibernate.hql.ast.exec.BasicExecutor.execute(BasicExecutor.java:75)
              ... 55 more
    2012-01-15 06:06:23,434 WARN  [com.adobe.idp.um.businesslogic.synch.SynchronizationManager] (SimpleThreadPoolWorker-1) Error occured in read User/Group phase for domain KFUPM_AD(STARTED,3) hence this domain would not be include for later phases
    com.adobe.idp.um.businesslogic.synch.SynchronizationFailureException: Error occured while performing synchronization
              at com.adobe.idp.um.businesslogic.synch.DomainSynchronizer.synchronizeUserAndGroups(DomainSy nchronizer.java:142)
              at com.adobe.idp.um.businesslogic.synch.SynchronizationManager.synchronizeUsersAndGroups(Syn chronizationManager.java:351)
              at com.adobe.idp.um.businesslogic.synch.SynchronizationManager.synchronizeDomains(Synchroniz ationManager.java:224)
              at com.adobe.idp.um.businesslogic.synch.SynchronizationManager.synchronizeAllDomains(Synchro nizationManager.java:125)
              at com.adobe.idp.um.scheduler.DirectorySyncJob.executeJob(DirectorySyncJob.java:82)
              at com.adobe.idp.um.scheduler.AbstractClusterJob.execute(AbstractClusterJob.java:82)
              at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
              at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
    Caused by: com.adobe.idp.um.businesslogic.synch.SynchronizationFailureException: A fatal error has ocurred. Synchronization has been aborted.
              at com.adobe.idp.um.businesslogic.synch.DirectoryPersister.handleFatalError(DirectoryPersist er.java:247)
              at com.adobe.idp.um.businesslogic.synch.DirectoryPersister.run(DirectoryPersister.java:104)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
              at java.lang.Thread.run(Thread.java:662)
    Caused by: javax.ejb.EJBException: RuntimeException
              at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:417)
              at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:209)
              at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:138)
              at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:650)
              at org.jboss.ejb.Container.invoke(Container.java:1092)
              at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:436)
              at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
              at $Proxy522.batchPersistPrincipals(Unknown Source)
              at com.adobe.idp.um.businesslogic.synch.hibernate.HibernateSynchronizationDao.persistPrincip als(HibernateSynchronizationDao.java:215)
              at sun.reflect.GeneratedMethodAccessor1160.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.jboss.invocation.Invocation.performCall(Invocation.java:386)
              at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:233)
              at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:156)
              at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:173)
              at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
              at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
              at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
              at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
              at org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:228)
              at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:211)
              at org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java :97)
              at org.jboss.ejb.plugins.security.PreSecurityInterceptor.invoke(PreSecurityInterceptor.java: 81)
              at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
              at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:138)
              at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:650)
              at org.jboss.ejb.Container.invoke(Container.java:1092)
              at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:436)
              at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
              at $Proxy522.persistPrincipals(Unknown Source)
              at com.adobe.idp.um.businesslogic.synch.DirectoryPersister.batchPersist(DirectoryPersister.j ava:134)
              at com.adobe.idp.um.businesslogic.synch.DirectoryPersister.run(DirectoryPersister.java:98)
              ... 3 more
    Caused by: org.hibernate.exception.ConstraintViolationException: could not execute update query
              at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
              at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
              at org.hibernate.hql.ast.exec.BasicExecutor.execute(BasicExecutor.java:84)
              at org.hibernate.hql.ast.QueryTranslatorImpl.executeUpdate(QueryTranslatorImpl.java:396)
              at org.hibernate.engine.query.HQLQueryPlan.performExecuteUpdate(HQLQueryPlan.java:259)
              at org.hibernate.impl.SessionImpl.executeUpdate(SessionImpl.java:1141)
              at org.hibernate.impl.QueryImpl.executeUpdate(QueryImpl.java:94)
              at com.adobe.idp.um.businesslogic.synch.hibernate.HibernateSynchronizationDao.batchPersistPr incipals(HibernateSynchronizationDao.java:338)
              at sun.reflect.GeneratedMethodAccessor1159.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.jboss.invocation.Invocation.performCall(Invocation.java:386)
              at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:233)
              at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:156)
              at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:173)
              at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
              at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
              at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:404)
              at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
              at org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:228)
              at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:211)
              at org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java :97)
              at org.jboss.ejb.plugins.security.PreSecurityInterceptor.invoke(PreSecurityInterceptor.java: 81)
              at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
              ... 34 more
    Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry 'ali-4C787461-20AC-102F-BEB2-00000A8C088A' for key 'UIDINDEX'
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java: 39)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorIm pl.java:27)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
              at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
              at com.mysql.jdbc.Util.getInstance(Util.java:382)
              at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1039)
              at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593)
              at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525)
              at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1986)
              at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2140)
              at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2626)
              at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2111)
              at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2407)
              at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2325)
              at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2310)
              at org.jboss.resource.adapter.jdbc.CachedPreparedStatement.executeUpdate(CachedPreparedState ment.java:96)
              at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedSta tement.java:365)
              at org.hibernate.hql.ast.exec.BasicExecutor.execute(BasicExecutor.java:75)
              ... 55 more
    2012-01-15 06:06:23,440 INFO  [com.adobe.idp.um.businesslogic.synch.SynchronizationManager] (SimpleThreadPoolWorker-1) Synch was NOT successfull for the following domains [KFUPM_AD(STARTED,3)]
    2012-01-15 06:06:23,440 INFO  [com.adobe.idp.um.businesslogic.synch.SynchronizationManager] (SimpleThreadPoolWorker-1) Directory synchronization completed in 35 secs 

    Ok, I had two servers querying LDAP with same username and password and I thought that may have been the problem, but after disabling JBoss service on one and completely uninstalling and re-installing the other, I still get the same problem as above.
    Baffling!!

  • Ldap to XI connectivity

    Hello friends
    We are having a scenario where we are connecting to an LDAP server from XI .Can anybody help us in this or give us a solution regarding this

    HI,
    You need to use Java Proxy to communicate with LDAP server.
    refer
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10716e9f-23d7-2a10-8c8c-d2665615f8fc
    There is some config within XI (3.0 - SP5 our version).
    Run transaction spro > Sap web Application Server > System Administration > Directory Integration > configure LDAP Connector, Define LDAP Users Confgure LDAP Server.
    Thanks
    Swarup

  • Error : LDAP Server down connecting OID

    Hi friends,
    I have installed Infrastructure 10g, When I try to connect to OID it says LDAP server is downand not running.
    Earlier, I added one server with name as my system name and it worked and today it is not working. I want to know Where this LDAP server is and hw we can start it.

    Hi friends,
    I have installed Infrastructure 10g, When I try to connect to OID it says LDAP server is downand not running.
    Earlier, I added one server with name as my system name and it worked and today it is not working. I want to know Where this LDAP server is and hw we can start it.

  • LDAP can't connect

    Hello,
    I'm having issues connecting to an LDAP server.  Others at my office are fine, but mine always fails.  I'm running Outlook 2011 for Mac and have also tried this with the contacts app in OSX - neither work.  OL will just pull up nothing and contacts says no entries.  I've also tried this with the directory utility, but it says connection failed.
    Anyone else have issues?  i've tried going into HDD>Library>Preferences>DirectoryService and there are no files there.  There is a file for LDAPv3 under OpenDirectory, but it says i don't have permission to access.
    any ideas?
    I've copied exactly the settings from colleagues to no avail.  TIA.

    If you are using 4.0.12 or later, please try the following magnus.conf directive:
    LDAPPoolRevalidate true

  • LDAP keep-alive connection ? (use of ldap_io_fns)

    Hi there,
    I am facing a new req. from network security guys that want to close 'idle' connections that crosses firewalls. But as I do use persistent search connection which are not very 'busy' => i.e. not enough traffic to be kept open by FireWall rule.
    Consequence my client could not 'detect' this cut of connection and do not receive any more the 'updates' through persistent search.
    I am now trying to init my connection setting optional io_fns structure changing the socket func by my socket func that do create a keep-alive socket.
    But it does not bind properly ... Init seem ok but bind never get out. LDAP receives bind and do log it but seem not able to respond properly ...
    Any idea on how to use this io_fns struct ?
    Many thanks.
    Hedi.
    .

    the problem is not that process is in foreground or background: the problem is the timeout: I need to avoid timeout, because the idea is to launch the report and then go out for lunch So I need to find a way in the code to advise the system that user has not to be logged out.
    Thanks
    Gabriele

  • TS3581 Iphone Hands free Kit connection

    My Iphone 4S connects to my built in hands free kit in my car via bluetooth but nothing is coming out of the car speakers. I can speak normally through the handset. Can anyone help?

    I have just spent a few quiet ( ) minutes going through settings, sitting in the car, and can report that the 'Tom Tom Hands Free' option appears both in the Map app and the Music app, but even though I can pop a tick against it, it don't come out of the TT speaker... 

  • LDAPS Fail to connect

    Stumped, please help;
    Worked on Friday, Monday it doesn't work, no changes over the weekend that I can find.
    2008 domain, 2008R2 DC's
    The certificate is not expired
    The port is open
    LDAP works with no issues
    I have deleted the certificate, and had a new one issued from the domain CA, still doesn't work.
    The certificate path shows ok, but could it be something with the Microsoft CA? Or the
    Domain Controller Authentication Template?
    LDP.EXE returns this;
    0x0 = ldap_unbind(ld);
    ld = ldap_sslinit("SERVERNAME_FQDN_HERE", 636, 1);
    Error 0 = ldap_set_option(hLdap, LDAP_OPT_PROTOCOL_VERSION, 3);
    Error 81 = ldap_connect(hLdap, NULL);
    Server error: <empty>
    Error <0x51>: Fail to connect to SERVERNAME_FQDN_HERE.
    BlankMonkey
    UPDATE:
    I used this link (http://support.microsoft.com/kb/321051) to get a certificate request from an InCommon CA.  I had trouble adding it, but did get it into the proper place (I think).  No change,
    it did not help.

    Hi BlankMonkey,
    Could you offer us more information about your environment, the Error 81 and 0x51 typically caused by certificate issue, such as private key missing, please try to export
    the key then reimport.
    More information:
    How to enable LDAP over SSL with a third-party certification authority
    http://support.microsoft.com/kb/321051
    I’m glad to be of help to you!
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • LDAP max simultaneous connections

    Hi,
    I've got an Ironport C600 6.5.3-007
    I set up one LDAP server profile with a maximum number of simultaneous connections of 50.
    When I run a netstat command in CLI it appears to have 150 LDAP connexions established to the server.
    Do you have any idea on why it doesn't display only 50?
    Thank you
    Arnaud

    I think I've got my answer, actually 3 out of 4 Ironport were still with the version 6.5.0. The one which is in 6.5.3 displays 52 connections.
    Here is what I found in the release Note for the 6.5.3 update
    Fixed: LDAP Connections Greatly Exceed the Maximum Specified in the LDAP Server Profile
    Previously, LDAP connections greatly exceeded the maximum specified in the LDAP server
    profile. For example, if you set the maximum LDAP connection to 10, then the system would
    open 30 connections: 10 for the IronPort Spam Quarantine, 10 for the end-user quarantine,
    and 10 for the end-user quarantine UI. The fix reduced end-user quarantine and end-user
    quarantine UI connections to one each. Now, for example, if you set the maximum LDAP
    connection to 10, then the system opens only 12 connections: 10 for the IronPort Spam
    Quarantine, 1 for the end-user quarantine, and 1 for the end-user quarantine UI. Or if
    external authentication is enabled, then the system opens 22 connections: 10 for external

  • Ldap data server connection

    Hi ,
    I am new to oracle data integrator. I have been trying to connect to the active directory using the ldap data server. I am facing problems with the various parameters that are needed to connect to the LDAP using the JNDI connection.
    Could anyone help me out with some example of the various fields that are to be filled for using the users within the ldap.
    Screenshots will be really helpful.
    Thanks & regards,
    Nikhil

    Hi,
    I am getting the following error related to the JNDI Initial context
    java.sql.SQLException: Cannot create JNDI InitialContext!
    at com.sunopsis.sql.SnpsConnection.a(SnpsConnection.java)
         at com.sunopsis.sql.SnpsConnection.testConnection(SnpsConnection.java)
         at com.sunopsis.sql.SnpsConnection.testConnection(SnpsConnection.java)
         at com.sunopsis.graphical.l.pm.o(pm.java)
         at com.sunopsis.graphical.l.pm.r(pm.java)
         at com.sunopsis.graphical.l.pm.g(pm.java)
         at com.sunopsis.graphical.l.pm.a(pm.java)
         at com.sunopsis.graphical.l.pm.a(pm.java)
         at com.sunopsis.graphical.l.iz.actionPerformed(iz.java)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.Dialog$1.run(Unknown Source)
         at java.awt.Dialog.show(Unknown Source)
         at java.awt.Component.show(Unknown Source)
         at java.awt.Component.setVisible(Unknown Source)
         at com.sunopsis.graphical.l.pm.q(pm.java)
         at com.sunopsis.graphical.l.pm.<init>(pm.java)
         at com.sunopsis.graphical.frame.b.jh.bx(jh.java)
         at com.sunopsis.graphical.frame.bo.w(bo.java)
         at com.sunopsis.graphical.frame.bo.d(bo.java)
         at com.sunopsis.graphical.frame.w.actionPerformed(w.java)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Cheers,
    Nikhil

Maybe you are looking for