directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r813713 - /directory/apacheds/branches/apacheds-schema/core-integ/src/main/java/org/apache/directory/server/core/integ/state/AbstractState.java
Date Fri, 11 Sep 2009 08:11:45 GMT
Author: elecharny
Date: Fri Sep 11 08:11:44 2009
New Revision: 813713

URL: http://svn.apache.org/viewvc?rev=813713&view=rev
Log:
Fixed an error message and an error handling

Modified:
    directory/apacheds/branches/apacheds-schema/core-integ/src/main/java/org/apache/directory/server/core/integ/state/AbstractState.java

Modified: directory/apacheds/branches/apacheds-schema/core-integ/src/main/java/org/apache/directory/server/core/integ/state/AbstractState.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-schema/core-integ/src/main/java/org/apache/directory/server/core/integ/state/AbstractState.java?rev=813713&r1=813712&r2=813713&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-schema/core-integ/src/main/java/org/apache/directory/server/core/integ/state/AbstractState.java
(original)
+++ directory/apacheds/branches/apacheds-schema/core-integ/src/main/java/org/apache/directory/server/core/integ/state/AbstractState.java
Fri Sep 11 08:11:44 2009
@@ -227,14 +227,21 @@
                     
                     for ( LdifEntry entry : ldifReader )
                     {
-                        service.getAdminSession().add( 
-                            new DefaultServerEntry( service.getRegistries(), entry.getEntry()
) ); 
-                        LOG.debug( "Successfully injected LDIF enry for test {}: {}", settings.getDescription(),
entry );
+                        try
+                        {
+                            service.getAdminSession().add( 
+                                new DefaultServerEntry( service.getRegistries(), entry.getEntry()
) ); 
+                            LOG.debug( "Successfully injected LDIF enry for test {}: {}",
settings.getDescription(), entry );
+                        }
+                        catch ( Exception e )
+                        {
+                            LOG.error( "Cannot inject the following entry : {}. Error : {}.",
entry, e.getMessage() );
+                        }
                     }
                 }
                 catch ( Exception e )
                 {
-                    LOG.error( "Cannot inject the following entry : {}. Error : {}.", ldif,
e.getMessage() );
+                    LOG.error( "Cannot inject the ldif entries. Error : {}.", e.getMessage()
);
                 }
             }
         }



Mime
View raw message