directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1681674 [1/2] - in /directory/shared/trunk: asn1/api/src/main/java/org/apache/directory/api/asn1/util/ dsml/parser/src/main/java/org/apache/directory/api/dsmlv2/ dsml/parser/src/main/java/org/apache/directory/api/dsmlv2/request/ dsml/parse...
Date Tue, 26 May 2015 02:51:46 GMT
Author: elecharny
Date: Tue May 26 02:51:46 2015
New Revision: 1681674

URL: http://svn.apache.org/r1681674
Log:
Fixed some Sonar issues

Modified:
    directory/shared/trunk/asn1/api/src/main/java/org/apache/directory/api/asn1/util/Oid.java
    directory/shared/trunk/dsml/parser/src/main/java/org/apache/directory/api/dsmlv2/Dsmlv2Parser.java
    directory/shared/trunk/dsml/parser/src/main/java/org/apache/directory/api/dsmlv2/Dsmlv2ResponseParser.java
    directory/shared/trunk/dsml/parser/src/main/java/org/apache/directory/api/dsmlv2/ParserUtils.java
    directory/shared/trunk/dsml/parser/src/main/java/org/apache/directory/api/dsmlv2/request/Dsmlv2Grammar.java
    directory/shared/trunk/dsml/parser/src/main/java/org/apache/directory/api/dsmlv2/response/Dsmlv2ResponseGrammar.java
    directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/MonitoringLdapConnection.java
    directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/bindRequest/StoreVersion.java
    directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/controls/StoreControlCriticality.java
    directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/ldapMessage/StoreMessageId.java
    directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/ldapResult/AddReferral.java
    directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/ldapResult/StoreMatchedDN.java
    directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/ldapResult/StoreResultCode.java
    directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/modifyDnRequest/StoreModifyDnRequestDeleteOldRdn.java
    directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/modifyRequest/StoreOperationType.java
    directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/searchRequest/StoreSearchRequestDerefAlias.java
    directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/searchRequest/StoreSearchRequestScope.java
    directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/searchRequest/StoreSearchRequestSizeLimit.java
    directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/searchRequest/StoreSearchRequestTimeLimit.java
    directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/searchRequest/StoreSearchRequestTypesOnly.java
    directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/searchRequest/filter/StoreMatchingRuleDnAttributes.java
    directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/searchResultReference/StoreReference.java
    directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/api/LdapEncoder.java
    directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/api/ResponseCarryingException.java
    directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/controls/search/entryChange/EntryChangeGrammar.java
    directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/controls/search/pagedSearch/PagedResultsGrammar.java
    directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/controls/search/persistentSearch/PersistentSearchGrammar.java
    directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/controls/sort/SortRequestGrammar.java
    directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/osgi/DefaultLdapCodecService.java
    directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/controls/ad_impl/AdDirSyncGrammar.java
    directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl_impl/SyncDoneValueGrammar.java
    directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl_impl/SyncInfoValueGrammar.java
    directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl_impl/SyncRequestValueGrammar.java
    directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl_impl/SyncStateValueGrammar.java
    directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/extended/ads_impl/cancel/CancelGrammar.java
    directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/extended/ads_impl/gracefulDisconnect/GracefulDisconnectGrammar.java
    directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/extended/ads_impl/gracefulShutdown/GracefulShutdownGrammar.java
    directory/shared/trunk/ldap/extras/util/src/main/java/org/apache/directory/api/ldap/util/tree/DnNode.java
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/csn/Csn.java
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/entry/DefaultEntry.java
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/exception/ResponseCarryingMessageException.java
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/name/Ava.java
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/name/Rdn.java
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/comparators/GeneralizedTimeComparator.java
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/comparators/IntegerComparator.java
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/comparators/NumericStringComparator.java
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/comparators/SerializableComparator.java
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/schema/parsers/OpenLdapSchemaParser.java
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/subtree/SubtreeSpecificationChecker.java
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/url/LdapUrl.java
    directory/shared/trunk/ldap/net/mina/src/main/java/org/apache/directory/api/ldap/codec/protocol/mina/LdapProtocolDecoder.java
    directory/shared/trunk/ldap/schema/data/src/main/java/org/apache/directory/api/ldap/schema/manager/impl/DefaultSchemaManager.java
    directory/shared/trunk/util/src/main/java/org/apache/directory/api/util/MandatoryAndOptionalComponentsMonitor.java
    directory/shared/trunk/util/src/main/java/org/apache/directory/api/util/Strings.java

Modified: directory/shared/trunk/asn1/api/src/main/java/org/apache/directory/api/asn1/util/Oid.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/asn1/api/src/main/java/org/apache/directory/api/asn1/util/Oid.java?rev=1681674&r1=1681673&r2=1681674&view=diff
==============================================================================
--- directory/shared/trunk/asn1/api/src/main/java/org/apache/directory/api/asn1/util/Oid.java (original)
+++ directory/shared/trunk/asn1/api/src/main/java/org/apache/directory/api/asn1/util/Oid.java Tue May 26 02:51:46 2015
@@ -195,9 +195,9 @@ public final class Oid
             {
                 segments.add( Long.parseLong( segment ) );
             }
-            catch ( NumberFormatException e )
+            catch ( NumberFormatException nfe )
             {
-                throw new DecoderException( I18n.err( I18n.ERR_00033_INVALID_OID, oidString ) );
+                throw new DecoderException( I18n.err( I18n.ERR_00033_INVALID_OID, oidString ), nfe );
             }
         }
 

Modified: directory/shared/trunk/dsml/parser/src/main/java/org/apache/directory/api/dsmlv2/Dsmlv2Parser.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/dsml/parser/src/main/java/org/apache/directory/api/dsmlv2/Dsmlv2Parser.java?rev=1681674&r1=1681673&r2=1681674&view=diff
==============================================================================
--- directory/shared/trunk/dsml/parser/src/main/java/org/apache/directory/api/dsmlv2/Dsmlv2Parser.java (original)
+++ directory/shared/trunk/dsml/parser/src/main/java/org/apache/directory/api/dsmlv2/Dsmlv2Parser.java Tue May 26 02:51:46 2015
@@ -198,9 +198,9 @@ public class Dsmlv2Parser
             {
                 eventType = xpp.next();
             }
-            catch ( IOException e )
+            catch ( IOException ioe )
             {
-                throw new XmlPullParserException( I18n.err( I18n.ERR_03037, e.getLocalizedMessage() ), xpp, null );
+                throw new XmlPullParserException( I18n.err( I18n.ERR_03037, ioe.getLocalizedMessage() ), xpp, ioe );
             }
         }
         while ( container.getState() != Dsmlv2StatesEnum.BATCHREQUEST_START_TAG );
@@ -279,9 +279,9 @@ public class Dsmlv2Parser
                 {
                     xpp.next();
                 }
-                catch ( IOException e )
+                catch ( IOException ioe )
                 {
-                    throw new XmlPullParserException( I18n.err( I18n.ERR_03037, e.getLocalizedMessage() ), xpp, null );
+                    throw new XmlPullParserException( I18n.err( I18n.ERR_03037, ioe.getLocalizedMessage() ), xpp, ioe );
                 }
                 eventType = xpp.getEventType();
             }
@@ -309,9 +309,9 @@ public class Dsmlv2Parser
             {
                 eventType = xpp.next();
             }
-            catch ( IOException e )
+            catch ( IOException ioe )
             {
-                throw new XmlPullParserException( I18n.err( I18n.ERR_03037, e.getLocalizedMessage() ), xpp, null );
+                throw new XmlPullParserException( I18n.err( I18n.ERR_03037, ioe.getLocalizedMessage() ), xpp, ioe );
             }
         }
         while ( container.getState() != Dsmlv2StatesEnum.BATCHREQUEST_LOOP );

Modified: directory/shared/trunk/dsml/parser/src/main/java/org/apache/directory/api/dsmlv2/Dsmlv2ResponseParser.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/dsml/parser/src/main/java/org/apache/directory/api/dsmlv2/Dsmlv2ResponseParser.java?rev=1681674&r1=1681673&r2=1681674&view=diff
==============================================================================
--- directory/shared/trunk/dsml/parser/src/main/java/org/apache/directory/api/dsmlv2/Dsmlv2ResponseParser.java (original)
+++ directory/shared/trunk/dsml/parser/src/main/java/org/apache/directory/api/dsmlv2/Dsmlv2ResponseParser.java Tue May 26 02:51:46 2015
@@ -158,9 +158,9 @@ public class Dsmlv2ResponseParser
             {
                 eventType = xpp.next();
             }
-            catch ( IOException e )
+            catch ( IOException ioe )
             {
-                throw new XmlPullParserException( I18n.err( I18n.ERR_03037, e.getLocalizedMessage() ), xpp, null );
+                throw new XmlPullParserException( I18n.err( I18n.ERR_03037, ioe.getLocalizedMessage() ), xpp, ioe );
             }
         }
         while ( container.getState() != Dsmlv2StatesEnum.BATCH_RESPONSE_LOOP );
@@ -232,9 +232,9 @@ public class Dsmlv2ResponseParser
                 {
                     xpp.next();
                 }
-                catch ( IOException e )
+                catch ( IOException ioe )
                 {
-                    throw new XmlPullParserException( I18n.err( I18n.ERR_03037, e.getLocalizedMessage() ), xpp, null );
+                    throw new XmlPullParserException( I18n.err( I18n.ERR_03037, ioe.getLocalizedMessage() ), xpp, ioe );
                 }
                 eventType = xpp.getEventType();
             }
@@ -262,9 +262,9 @@ public class Dsmlv2ResponseParser
             {
                 eventType = xpp.next();
             }
-            catch ( IOException e )
+            catch ( IOException ioe )
             {
-                throw new XmlPullParserException( I18n.err( I18n.ERR_03037, e.getLocalizedMessage() ), xpp, null );
+                throw new XmlPullParserException( I18n.err( I18n.ERR_03037, ioe.getLocalizedMessage() ), xpp, ioe );
             }
         }
         while ( container.getState() != Dsmlv2StatesEnum.BATCH_RESPONSE_LOOP );

Modified: directory/shared/trunk/dsml/parser/src/main/java/org/apache/directory/api/dsmlv2/ParserUtils.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/dsml/parser/src/main/java/org/apache/directory/api/dsmlv2/ParserUtils.java?rev=1681674&r1=1681673&r2=1681674&view=diff
==============================================================================
--- directory/shared/trunk/dsml/parser/src/main/java/org/apache/directory/api/dsmlv2/ParserUtils.java (original)
+++ directory/shared/trunk/dsml/parser/src/main/java/org/apache/directory/api/dsmlv2/ParserUtils.java Tue May 26 02:51:46 2015
@@ -209,9 +209,9 @@ public final class ParserUtils
 
             return requestID;
         }
-        catch ( NumberFormatException e )
+        catch ( NumberFormatException nfe )
         {
-            throw new XmlPullParserException( I18n.err( I18n.ERR_03039 ), xpp, null );
+            throw new XmlPullParserException( I18n.err( I18n.ERR_03039 ), xpp, nfe );
         }
     }
 

Modified: directory/shared/trunk/dsml/parser/src/main/java/org/apache/directory/api/dsmlv2/request/Dsmlv2Grammar.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/dsml/parser/src/main/java/org/apache/directory/api/dsmlv2/request/Dsmlv2Grammar.java?rev=1681674&r1=1681673&r2=1681674&view=diff
==============================================================================
--- directory/shared/trunk/dsml/parser/src/main/java/org/apache/directory/api/dsmlv2/request/Dsmlv2Grammar.java (original)
+++ directory/shared/trunk/dsml/parser/src/main/java/org/apache/directory/api/dsmlv2/request/Dsmlv2Grammar.java Tue May 26 02:51:46 2015
@@ -1320,6 +1320,7 @@ public final class Dsmlv2Grammar extends
             String attributeValue;
             // requestID
             attributeValue = xpp.getAttributeValue( "", REQUEST_ID );
+            
             if ( attributeValue != null )
             {
                 abandonRequest.setMessageId( ParserUtils.parseAndVerifyRequestID( attributeValue, xpp ) );
@@ -1331,17 +1332,19 @@ public final class Dsmlv2Grammar extends
                     throw new XmlPullParserException( I18n.err( I18n.ERR_03016 ), xpp, null );
                 }
             }
+            
             // abandonID
             attributeValue = xpp.getAttributeValue( "", "abandonID" );
+            
             if ( attributeValue != null )
             {
                 try
                 {
                     abandonRequest.setAbandoned( Integer.parseInt( attributeValue ) );
                 }
-                catch ( NumberFormatException e )
+                catch ( NumberFormatException nfe )
                 {
-                    throw new XmlPullParserException( I18n.err( I18n.ERR_03017 ), xpp, null );
+                    throw new XmlPullParserException( I18n.err( I18n.ERR_03017 ), xpp, nfe );
                 }
             }
             else
@@ -1367,6 +1370,7 @@ public final class Dsmlv2Grammar extends
             String attributeValue;
             // requestID
             attributeValue = xpp.getAttributeValue( "", REQUEST_ID );
+            
             if ( attributeValue != null )
             {
                 addRequest.setMessageId( ParserUtils.parseAndVerifyRequestID( attributeValue, xpp ) );
@@ -1378,17 +1382,19 @@ public final class Dsmlv2Grammar extends
                     throw new XmlPullParserException( I18n.err( I18n.ERR_03016 ), xpp, null );
                 }
             }
+            
             // dn
             attributeValue = xpp.getAttributeValue( "", "dn" );
+            
             if ( attributeValue != null )
             {
                 try
                 {
                     addRequest.setEntryDn( new Dn( attributeValue ) );
                 }
-                catch ( LdapInvalidDnException e )
+                catch ( LdapInvalidDnException lide )
                 {
-                    throw new XmlPullParserException( "" + e.getMessage(), xpp, null );
+                    throw new XmlPullParserException( lide.getMessage(), xpp, lide );
                 }
             }
             else
@@ -1421,9 +1427,9 @@ public final class Dsmlv2Grammar extends
                 {
                     addRequest.addAttributeType( attributeValue );
                 }
-                catch ( LdapException e )
+                catch ( LdapException le )
                 {
-                    throw new XmlPullParserException( I18n.err( I18n.ERR_03020 ), xpp, e );
+                    throw new XmlPullParserException( I18n.err( I18n.ERR_03020 ), xpp, le );
                 }
             }
             else
@@ -1452,6 +1458,7 @@ public final class Dsmlv2Grammar extends
 
                 // Getting the value
                 String nextText = xpp.nextText();
+                
                 if ( !nextText.equals( "" ) )
                 {
                     try
@@ -1467,13 +1474,13 @@ public final class Dsmlv2Grammar extends
                     }
                     catch ( LdapException le )
                     {
-                        throw new XmlPullParserException( le.getMessage() );
+                        throw new XmlPullParserException( le.getMessage(), xpp, le );
                     }
                 }
             }
-            catch ( IOException e )
+            catch ( IOException ioe )
             {
-                throw new XmlPullParserException( I18n.err( I18n.ERR_03008, e.getMessage() ), xpp, null );
+                throw new XmlPullParserException( I18n.err( I18n.ERR_03008, ioe.getMessage() ), xpp, ioe );
             }
         }
     };
@@ -1561,9 +1568,9 @@ public final class Dsmlv2Grammar extends
                 {
                     compareRequest.setName( new Dn( attributeValue ) );
                 }
-                catch ( LdapInvalidDnException e )
+                catch ( LdapInvalidDnException lide )
                 {
-                    throw new XmlPullParserException( "" + e.getMessage(), xpp, null );
+                    throw new XmlPullParserException( lide.getMessage(), xpp, lide );
                 }
             }
             else
@@ -1632,9 +1639,9 @@ public final class Dsmlv2Grammar extends
                     }
                 }
             }
-            catch ( IOException e )
+            catch ( IOException ioe )
             {
-                throw new XmlPullParserException( I18n.err( I18n.ERR_03008, e.getMessage() ), xpp, null );
+                throw new XmlPullParserException( I18n.err( I18n.ERR_03008, ioe.getMessage() ), xpp, ioe );
             }
         }
     };
@@ -1677,9 +1684,9 @@ public final class Dsmlv2Grammar extends
                 {
                     delRequest.setName( new Dn( attributeValue ) );
                 }
-                catch ( LdapInvalidDnException e )
+                catch ( LdapInvalidDnException lide )
                 {
-                    throw new XmlPullParserException( "" + e.getMessage(), xpp, null );
+                    throw new XmlPullParserException( "" + lide.getMessage(), xpp, lide );
                 }
             }
             else
@@ -1756,9 +1763,9 @@ public final class Dsmlv2Grammar extends
                     }
                 }
             }
-            catch ( IOException e )
+            catch ( IOException ioe )
             {
-                throw new XmlPullParserException( I18n.err( I18n.ERR_03008, e.getMessage() ), xpp, null );
+                throw new XmlPullParserException( I18n.err( I18n.ERR_03008, ioe.getMessage() ), xpp, ioe );
             }
         }
     };
@@ -1795,9 +1802,9 @@ public final class Dsmlv2Grammar extends
                     }
                 }
             }
-            catch ( IOException e )
+            catch ( IOException ioe )
             {
-                throw new XmlPullParserException( I18n.err( I18n.ERR_03008, e.getMessage() ), xpp, null );
+                throw new XmlPullParserException( I18n.err( I18n.ERR_03008, ioe.getMessage() ), xpp, ioe );
             }
         }
     };
@@ -1840,9 +1847,9 @@ public final class Dsmlv2Grammar extends
                 {
                     modifyDNRequest.setName( new Dn( attributeValue ) );
                 }
-                catch ( LdapInvalidDnException e )
+                catch ( LdapInvalidDnException lide )
                 {
-                    throw new XmlPullParserException( "" + e.getMessage(), xpp, null );
+                    throw new XmlPullParserException( "" + lide.getMessage(), xpp, lide );
                 }
             }
             else
@@ -1859,9 +1866,9 @@ public final class Dsmlv2Grammar extends
                 {
                     modifyDNRequest.setNewRdn( new Rdn( attributeValue ) );
                 }
-                catch ( LdapInvalidDnException e )
+                catch ( LdapInvalidDnException lide )
                 {
-                    throw new XmlPullParserException( "" + e.getMessage(), xpp, null );
+                    throw new XmlPullParserException( "" + lide.getMessage(), xpp, lide );
                 }
             }
             else
@@ -1901,9 +1908,9 @@ public final class Dsmlv2Grammar extends
                 {
                     modifyDNRequest.setNewSuperior( new Dn( attributeValue ) );
                 }
-                catch ( LdapInvalidDnException e )
+                catch ( LdapInvalidDnException lide )
                 {
-                    throw new XmlPullParserException( "" + e.getMessage(), xpp, null );
+                    throw new XmlPullParserException( "" + lide.getMessage(), xpp, lide );
                 }
             }
         }
@@ -1947,9 +1954,9 @@ public final class Dsmlv2Grammar extends
                 {
                     modifyRequest.setName( new Dn( attributeValue ) );
                 }
-                catch ( LdapInvalidDnException e )
+                catch ( LdapInvalidDnException lide )
                 {
-                    throw new XmlPullParserException( "" + e.getLocalizedMessage(), xpp, null );
+                    throw new XmlPullParserException( "" + lide.getLocalizedMessage(), xpp, lide );
                 }
             }
             else
@@ -2050,12 +2057,12 @@ public final class Dsmlv2Grammar extends
                 }
                 catch ( LdapException le )
                 {
-                    throw new XmlPullParserException( le.getMessage() );
+                    throw new XmlPullParserException( le.getMessage(), xpp, le );
                 }
             }
-            catch ( IOException e )
+            catch ( IOException ioe )
             {
-                throw new XmlPullParserException( I18n.err( I18n.ERR_03008, e.getMessage() ), xpp, null );
+                throw new XmlPullParserException( I18n.err( I18n.ERR_03008, ioe.getMessage() ), xpp, ioe );
             }
         }
     };
@@ -2098,9 +2105,9 @@ public final class Dsmlv2Grammar extends
                 {
                     searchRequest.setBase( new Dn( attributeValue ) );
                 }
-                catch ( LdapInvalidDnException e )
+                catch ( LdapInvalidDnException lide )
                 {
-                    throw new XmlPullParserException( "" + e.getMessage(), xpp, null );
+                    throw new XmlPullParserException( lide.getMessage(), xpp, lide );
                 }
             }
             else
@@ -2175,9 +2182,9 @@ public final class Dsmlv2Grammar extends
                 {
                     searchRequest.setSizeLimit( Long.parseLong( attributeValue ) );
                 }
-                catch ( NumberFormatException e )
+                catch ( NumberFormatException nfe )
                 {
-                    throw new XmlPullParserException( I18n.err( I18n.ERR_03030 ), xpp, null );
+                    throw new XmlPullParserException( I18n.err( I18n.ERR_03030 ), xpp, nfe );
                 }
             }
             else
@@ -2194,9 +2201,9 @@ public final class Dsmlv2Grammar extends
                 {
                     searchRequest.setTimeLimit( Integer.parseInt( attributeValue ) );
                 }
-                catch ( NumberFormatException e )
+                catch ( NumberFormatException nfe )
                 {
-                    throw new XmlPullParserException( I18n.err( I18n.ERR_03031 ), xpp, null );
+                    throw new XmlPullParserException( I18n.err( I18n.ERR_03031 ), xpp, nfe );
                 }
             }
             else
@@ -2274,9 +2281,9 @@ public final class Dsmlv2Grammar extends
             {
                 searchRequestDecorator.addCurrentFilter( filter );
             }
-            catch ( DecoderException e )
+            catch ( DecoderException de )
             {
-                throw new XmlPullParserException( e.getMessage(), xpp, null );
+                throw new XmlPullParserException( de.getMessage(), xpp, de );
             }
 
             searchRequestDecorator.setTerminalFilter( filter );
@@ -2333,9 +2340,9 @@ public final class Dsmlv2Grammar extends
                     }
                 }
             }
-            catch ( IOException e )
+            catch ( IOException ioe )
             {
-                throw new XmlPullParserException( I18n.err( I18n.ERR_03008, e.getMessage() ), xpp, null );
+                throw new XmlPullParserException( I18n.err( I18n.ERR_03008, ioe.getMessage() ), xpp, ioe );
             }
         }
     };
@@ -2374,9 +2381,9 @@ public final class Dsmlv2Grammar extends
                     }
                 }
             }
-            catch ( IOException e )
+            catch ( IOException ioe )
             {
-                throw new XmlPullParserException( I18n.err( I18n.ERR_03008, e.getMessage() ), xpp, null );
+                throw new XmlPullParserException( I18n.err( I18n.ERR_03008, ioe.getMessage() ), xpp, ioe );
             }
         }
     };
@@ -2416,9 +2423,9 @@ public final class Dsmlv2Grammar extends
                     }
                 }
             }
-            catch ( IOException e )
+            catch ( IOException ioe )
             {
-                throw new XmlPullParserException( I18n.err( I18n.ERR_03008, e.getMessage() ), xpp, null );
+                throw new XmlPullParserException( I18n.err( I18n.ERR_03008, ioe.getMessage() ), xpp, ioe );
             }
         }
     };
@@ -2456,9 +2463,9 @@ public final class Dsmlv2Grammar extends
             {
                 searchRequestDecorator.addCurrentFilter( filter );
             }
-            catch ( DecoderException e )
+            catch ( DecoderException de )
             {
-                throw new XmlPullParserException( e.getMessage(), xpp, null );
+                throw new XmlPullParserException( de.getMessage(), xpp, de );
             }
         }
     };
@@ -2496,9 +2503,9 @@ public final class Dsmlv2Grammar extends
             {
                 searchRequestDecorator.addCurrentFilter( filter );
             }
-            catch ( DecoderException e )
+            catch ( DecoderException de )
             {
-                throw new XmlPullParserException( e.getMessage(), xpp, null );
+                throw new XmlPullParserException( de.getMessage(), xpp, de );
             }
         }
     };
@@ -2522,9 +2529,9 @@ public final class Dsmlv2Grammar extends
             {
                 searchRequestDecorator.addCurrentFilter( filter );
             }
-            catch ( DecoderException e )
+            catch ( DecoderException de )
             {
-                throw new XmlPullParserException( e.getMessage(), xpp, null );
+                throw new XmlPullParserException( de.getMessage(), xpp, de );
             }
         }
     };
@@ -2565,9 +2572,9 @@ public final class Dsmlv2Grammar extends
             {
                 searchRequestDecorator.addCurrentFilter( filter );
             }
-            catch ( DecoderException e )
+            catch ( DecoderException de )
             {
-                throw new XmlPullParserException( e.getMessage(), xpp, null );
+                throw new XmlPullParserException( de.getMessage(), xpp, de );
             }
 
             searchRequestDecorator.setTerminalFilter( filter );
@@ -2610,9 +2617,9 @@ public final class Dsmlv2Grammar extends
             {
                 searchRequestDecorator.addCurrentFilter( filter );
             }
-            catch ( DecoderException e )
+            catch ( DecoderException de )
             {
-                throw new XmlPullParserException( e.getMessage(), xpp, null );
+                throw new XmlPullParserException( de.getMessage(), xpp, de );
             }
 
             searchRequestDecorator.setTerminalFilter( filter );
@@ -2657,9 +2664,9 @@ public final class Dsmlv2Grammar extends
             {
                 searchRequestDecorator.addCurrentFilter( filter );
             }
-            catch ( DecoderException e )
+            catch ( DecoderException de )
             {
-                throw new XmlPullParserException( e.getMessage(), xpp, null );
+                throw new XmlPullParserException( de.getMessage(), xpp, de );
             }
 
             searchRequestDecorator.setTerminalFilter( filter );
@@ -2702,9 +2709,9 @@ public final class Dsmlv2Grammar extends
             {
                 searchRequestDecorator.addCurrentFilter( filter );
             }
-            catch ( DecoderException e )
+            catch ( DecoderException de )
             {
-                throw new XmlPullParserException( e.getMessage(), xpp, null );
+                throw new XmlPullParserException( de.getMessage(), xpp, de );
             }
 
             searchRequestDecorator.setTerminalFilter( filter );
@@ -2748,9 +2755,9 @@ public final class Dsmlv2Grammar extends
                     }
                 }
             }
-            catch ( IOException e )
+            catch ( IOException ioe )
             {
-                throw new XmlPullParserException( I18n.err( I18n.ERR_03008, e.getMessage() ), xpp, null );
+                throw new XmlPullParserException( I18n.err( I18n.ERR_03008, ioe.getMessage() ), xpp, ioe );
             }
         }
     };
@@ -2774,9 +2781,9 @@ public final class Dsmlv2Grammar extends
             {
                 searchRequestDecorator.addCurrentFilter( presentFilter );
             }
-            catch ( DecoderException e )
+            catch ( DecoderException de )
             {
-                throw new XmlPullParserException( e.getMessage(), xpp, null );
+                throw new XmlPullParserException( de.getMessage(), xpp, de );
             }
 
             // Checking and adding the filter's attributes
@@ -2835,9 +2842,9 @@ public final class Dsmlv2Grammar extends
             {
                 searchRequestDecorator.addCurrentFilter( extensibleMatchFilter );
             }
-            catch ( DecoderException e )
+            catch ( DecoderException de )
             {
-                throw new XmlPullParserException( I18n.err( I18n.ERR_03012 ), xpp, null );
+                throw new XmlPullParserException( I18n.err( I18n.ERR_03012 ), xpp, de );
             }
 
             searchRequestDecorator.setTerminalFilter( extensibleMatchFilter );
@@ -2905,6 +2912,7 @@ public final class Dsmlv2Grammar extends
 
                 // Getting the value
                 String nextText = xpp.nextText();
+                
                 if ( !nextText.equals( "" ) )
                 {
                     if ( ParserUtils.isBase64BinaryValue( xpp, typeValue ) )
@@ -2917,9 +2925,9 @@ public final class Dsmlv2Grammar extends
                     }
                 }
             }
-            catch ( IOException e )
+            catch ( IOException ioe )
             {
-                throw new XmlPullParserException( I18n.err( I18n.ERR_03008, e.getMessage() ), xpp, null );
+                throw new XmlPullParserException( I18n.err( I18n.ERR_03008, ioe.getMessage() ), xpp, ioe );
             }
         }
     };
@@ -3008,9 +3016,9 @@ public final class Dsmlv2Grammar extends
                     }
                 }
             }
-            catch ( IOException e )
+            catch ( IOException ioe )
             {
-                throw new XmlPullParserException( I18n.err( I18n.ERR_03008, e.getMessage() ), xpp, null );
+                throw new XmlPullParserException( I18n.err( I18n.ERR_03008, ioe.getMessage() ), xpp, ioe );
             }
         }
     };

Modified: directory/shared/trunk/dsml/parser/src/main/java/org/apache/directory/api/dsmlv2/response/Dsmlv2ResponseGrammar.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/dsml/parser/src/main/java/org/apache/directory/api/dsmlv2/response/Dsmlv2ResponseGrammar.java?rev=1681674&r1=1681673&r2=1681674&view=diff
==============================================================================
--- directory/shared/trunk/dsml/parser/src/main/java/org/apache/directory/api/dsmlv2/response/Dsmlv2ResponseGrammar.java (original)
+++ directory/shared/trunk/dsml/parser/src/main/java/org/apache/directory/api/dsmlv2/response/Dsmlv2ResponseGrammar.java Tue May 26 02:51:46 2015
@@ -928,9 +928,9 @@ public final class Dsmlv2ResponseGrammar
                 {
                     ldapResult.setMatchedDn( new Dn( attributeValue ) );
                 }
-                catch ( LdapInvalidDnException e )
+                catch ( LdapInvalidDnException lide )
                 {
-                    throw new XmlPullParserException( "" + e.getMessage(), xpp, null );
+                    throw new XmlPullParserException( lide.getMessage(), xpp, lide );
                 }
             }
         }
@@ -971,9 +971,9 @@ public final class Dsmlv2ResponseGrammar
                 {
                     ldapResult.setMatchedDn( new Dn( attributeValue ) );
                 }
-                catch ( LdapInvalidDnException e )
+                catch ( LdapInvalidDnException lide )
                 {
-                    throw new XmlPullParserException( "" + e.getMessage(), xpp, null );
+                    throw new XmlPullParserException( lide.getMessage(), xpp, lide );
                 }
             }
         }
@@ -1013,9 +1013,9 @@ public final class Dsmlv2ResponseGrammar
                 {
                     ldapResult.setMatchedDn( new Dn( attributeValue ) );
                 }
-                catch ( LdapInvalidDnException e )
+                catch ( LdapInvalidDnException lide )
                 {
-                    throw new XmlPullParserException( "" + e.getMessage(), xpp, null );
+                    throw new XmlPullParserException( lide.getMessage(), xpp, lide );
                 }
             }
         }
@@ -1055,9 +1055,9 @@ public final class Dsmlv2ResponseGrammar
                 {
                     ldapResult.setMatchedDn( new Dn( attributeValue ) );
                 }
-                catch ( LdapInvalidDnException e )
+                catch ( LdapInvalidDnException lide )
                 {
-                    throw new XmlPullParserException( "" + e.getMessage(), xpp, null );
+                    throw new XmlPullParserException( lide.getMessage(), xpp, lide );
                 }
             }
         }
@@ -1097,9 +1097,9 @@ public final class Dsmlv2ResponseGrammar
                 {
                     ldapResult.setMatchedDn( new Dn( attributeValue ) );
                 }
-                catch ( LdapInvalidDnException e )
+                catch ( LdapInvalidDnException lide )
                 {
-                    throw new XmlPullParserException( "" + e.getMessage(), xpp, null );
+                    throw new XmlPullParserException( lide.getMessage(), xpp, lide );
                 }
             }
         }
@@ -1139,9 +1139,9 @@ public final class Dsmlv2ResponseGrammar
                 {
                     ldapResult.setMatchedDn( new Dn( attributeValue ) );
                 }
-                catch ( LdapInvalidDnException e )
+                catch ( LdapInvalidDnException lide )
                 {
-                    throw new XmlPullParserException( "" + e.getMessage(), xpp, null );
+                    throw new XmlPullParserException( lide.getMessage(), xpp, lide );
                 }
             }
         }
@@ -1189,9 +1189,9 @@ public final class Dsmlv2ResponseGrammar
                 {
                     ldapResult.setMatchedDn( new Dn( attributeValue ) );
                 }
-                catch ( LdapInvalidDnException e )
+                catch ( LdapInvalidDnException lide )
                 {
-                    throw new XmlPullParserException( "" + e.getMessage(), xpp, null );
+                    throw new XmlPullParserException( lide.getMessage(), xpp, lide );
                 }
             }
         }
@@ -1285,9 +1285,9 @@ public final class Dsmlv2ResponseGrammar
                     errorResponse.setMessage( nextText.trim() );
                 }
             }
-            catch ( IOException e )
+            catch ( IOException ioe )
             {
-                throw new XmlPullParserException( e.getMessage(), xpp, null );
+                throw new XmlPullParserException( ioe.getMessage(), xpp, ioe );
             }
         }
     };
@@ -1441,9 +1441,9 @@ public final class Dsmlv2ResponseGrammar
                 }
             }
         }
-        catch ( IOException e )
+        catch ( IOException ioe )
         {
-            throw new XmlPullParserException( I18n.err( I18n.ERR_03008, e.getMessage() ), xpp, null );
+            throw new XmlPullParserException( I18n.err( I18n.ERR_03008, ioe.getMessage() ), xpp, ioe );
         }
     }
 
@@ -1540,9 +1540,9 @@ public final class Dsmlv2ResponseGrammar
                 {
                     ldapResult.setResultCode( ResultCodeEnum.getResultCode( Integer.parseInt( attributeValue ) ) );
                 }
-                catch ( NumberFormatException e )
+                catch ( NumberFormatException nfe )
                 {
-                    throw new XmlPullParserException( I18n.err( I18n.ERR_03009 ), xpp, null );
+                    throw new XmlPullParserException( I18n.err( I18n.ERR_03009 ), xpp, nfe );
                 }
             }
             else
@@ -1595,9 +1595,9 @@ public final class Dsmlv2ResponseGrammar
                     ldapResult.setDiagnosticMessage( nextText.trim() );
                 }
             }
-            catch ( IOException e )
+            catch ( IOException ioe )
             {
-                throw new XmlPullParserException( I18n.err( I18n.ERR_03008, e.getMessage() ), xpp, null );
+                throw new XmlPullParserException( I18n.err( I18n.ERR_03008, ioe.getMessage() ), xpp, ioe );
             }
         }
     };
@@ -1646,15 +1646,15 @@ public final class Dsmlv2ResponseGrammar
                         LdapUrl ldapUrl = new LdapUrl( urlStr );
                         ldapResult.getReferral().addLdapUrl( ldapUrl.toString() );
                     }
-                    catch ( LdapURLEncodingException e )
+                    catch ( LdapURLEncodingException luee )
                     {
-                        throw new XmlPullParserException( e.getMessage(), xpp, null );
+                        throw new XmlPullParserException( luee.getMessage(), xpp, luee );
                     }
                 }
             }
-            catch ( IOException e )
+            catch ( IOException ioe )
             {
-                throw new XmlPullParserException( I18n.err( I18n.ERR_03008, e.getMessage() ), xpp, null );
+                throw new XmlPullParserException( I18n.err( I18n.ERR_03008, ioe.getMessage() ), xpp, ioe );
             }
         }
     };
@@ -1723,9 +1723,9 @@ public final class Dsmlv2ResponseGrammar
                 {
                     searchResultEntry.setObjectName( new Dn( attributeValue ) );
                 }
-                catch ( LdapInvalidDnException e )
+                catch ( LdapInvalidDnException lide )
                 {
-                    throw new XmlPullParserException( e.getMessage(), xpp, null );
+                    throw new XmlPullParserException( lide.getMessage(), xpp, lide );
                 }
             }
             else
@@ -1804,9 +1804,9 @@ public final class Dsmlv2ResponseGrammar
                 {
                     searchResultDone.getLdapResult().setMatchedDn( new Dn( attributeValue ) );
                 }
-                catch ( LdapInvalidDnException e )
+                catch ( LdapInvalidDnException lide )
                 {
-                    throw new XmlPullParserException( "" + e.getMessage(), xpp, null );
+                    throw new XmlPullParserException( lide.getMessage(), xpp, lide );
                 }
             }
         }
@@ -1840,7 +1840,7 @@ public final class Dsmlv2ResponseGrammar
                 }
                 catch ( LdapException le )
                 {
-                    throw new XmlPullParserException( I18n.err( I18n.ERR_03012 ), xpp, null );
+                    throw new XmlPullParserException( I18n.err( I18n.ERR_03012 ), xpp, le );
                 }
             }
             else
@@ -1886,12 +1886,12 @@ public final class Dsmlv2ResponseGrammar
                 }
                 catch ( LdapException le )
                 {
-                    throw new XmlPullParserException( le.getMessage() );
+                    throw new XmlPullParserException( le.getMessage(), xpp, le );
                 }
             }
-            catch ( IOException e )
+            catch ( IOException ioe )
             {
-                throw new XmlPullParserException( I18n.err( I18n.ERR_03008, e.getMessage() ), xpp, null );
+                throw new XmlPullParserException( I18n.err( I18n.ERR_03008, ioe.getMessage() ), xpp, ioe );
             }
         }
     };
@@ -1921,13 +1921,13 @@ public final class Dsmlv2ResponseGrammar
                     searchResultReference.getReferral().addLdapUrl( ldapUrl.toString() );
                 }
             }
-            catch ( IOException e )
+            catch ( IOException ioe )
             {
-                throw new XmlPullParserException( I18n.err( I18n.ERR_03008, e.getMessage() ), xpp, null );
+                throw new XmlPullParserException( I18n.err( I18n.ERR_03008, ioe.getMessage() ), xpp, ioe );
             }
-            catch ( LdapURLEncodingException e )
+            catch ( LdapURLEncodingException luee )
             {
-                throw new XmlPullParserException( e.getMessage(), xpp, null );
+                throw new XmlPullParserException( luee.getMessage(), xpp, luee );
             }
         }
     };
@@ -1969,13 +1969,13 @@ public final class Dsmlv2ResponseGrammar
                 }
 
             }
-            catch ( IOException e )
+            catch ( IOException ioe )
             {
-                throw new XmlPullParserException( I18n.err( I18n.ERR_03008, e.getMessage() ), xpp, null );
+                throw new XmlPullParserException( I18n.err( I18n.ERR_03008, ioe.getMessage() ), xpp, ioe );
             }
-            catch ( DecoderException e )
+            catch ( DecoderException de )
             {
-                throw new XmlPullParserException( e.getMessage(), xpp, null );
+                throw new XmlPullParserException( de.getMessage(), xpp, de );
             }
         }
     };
@@ -2009,9 +2009,9 @@ public final class Dsmlv2ResponseGrammar
                     extendedResponse.setResponseValue( Strings.getBytesUtf8( nextText.trim() ) );
                 }
             }
-            catch ( IOException e )
+            catch ( IOException ioe )
             {
-                throw new XmlPullParserException( I18n.err( I18n.ERR_03008, e.getMessage() ), xpp, null );
+                throw new XmlPullParserException( I18n.err( I18n.ERR_03008, ioe.getMessage() ), xpp, ioe );
             }
         }
     };

Modified: directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/MonitoringLdapConnection.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/MonitoringLdapConnection.java?rev=1681674&r1=1681673&r2=1681674&view=diff
==============================================================================
--- directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/MonitoringLdapConnection.java (original)
+++ directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/MonitoringLdapConnection.java Tue May 26 02:51:46 2015
@@ -47,9 +47,9 @@ public final class MonitoringLdapConnect
         {
             START_TLS_OID = Oid.fromString( StartTlsRequest.EXTENSION_OID );
         }
-        catch ( DecoderException e )
+        catch ( DecoderException de )
         {
-            throw new IllegalStateException( "StartTlsRequest.EXTENSION_OID is not a valid oid... This cant happen" );
+            throw new IllegalStateException( "StartTlsRequest.EXTENSION_OID is not a valid oid... This cant happen", de );
         }
     }
 

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/bindRequest/StoreVersion.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/bindRequest/StoreVersion.java?rev=1681674&r1=1681673&r2=1681674&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/bindRequest/StoreVersion.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/bindRequest/StoreVersion.java Tue May 26 02:51:46 2015
@@ -92,7 +92,7 @@ public class StoreVersion extends Gramma
                 .err( I18n.ERR_04078, Strings.dumpBytes( value.getData() ), ide.getMessage() ) );
 
             // This will generate a PROTOCOL_ERROR
-            throw new DecoderException( ide.getMessage() );
+            throw new DecoderException( ide.getMessage(), ide );
         }
     }
 }

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/controls/StoreControlCriticality.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/controls/StoreControlCriticality.java?rev=1681674&r1=1681673&r2=1681674&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/controls/StoreControlCriticality.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/controls/StoreControlCriticality.java Tue May 26 02:51:46 2015
@@ -97,7 +97,7 @@ public class StoreControlCriticality ext
                 .err( I18n.ERR_04100, Strings.dumpBytes( value.getData() ), bde.getMessage() ) );
 
             // This will generate a PROTOCOL_ERROR
-            throw new DecoderException( bde.getMessage() );
+            throw new DecoderException( bde.getMessage(), bde );
         }
 
         // We can have an END transition

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/ldapMessage/StoreMessageId.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/ldapMessage/StoreMessageId.java?rev=1681674&r1=1681673&r2=1681674&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/ldapMessage/StoreMessageId.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/ldapMessage/StoreMessageId.java Tue May 26 02:51:46 2015
@@ -106,7 +106,7 @@ public class StoreMessageId extends Gram
                 .getLocalizedMessage() ) );
 
             // This will generate a PROTOCOL_ERROR
-            throw new DecoderException( ide.getMessage() );
+            throw new DecoderException( ide.getMessage(), ide );
         }
     }
 }

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/ldapResult/AddReferral.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/ldapResult/AddReferral.java?rev=1681674&r1=1681673&r2=1681674&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/ldapResult/AddReferral.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/ldapResult/AddReferral.java Tue May 26 02:51:46 2015
@@ -92,7 +92,7 @@ public class AddReferral extends Grammar
                 {
                     String badUrl = Strings.utf8ToString( tlv.getValue().getData() );
                     LOG.error( I18n.err( I18n.ERR_04015, badUrl, luee.getMessage() ) );
-                    throw new DecoderException( I18n.err( I18n.ERR_04016, luee.getMessage() ) );
+                    throw new DecoderException( I18n.err( I18n.ERR_04016, luee.getMessage() ), luee );
                 }
             }
             else

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/ldapResult/StoreMatchedDN.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/ldapResult/StoreMatchedDN.java?rev=1681674&r1=1681673&r2=1681674&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/ldapResult/StoreMatchedDN.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/ldapResult/StoreMatchedDN.java Tue May 26 02:51:46 2015
@@ -112,7 +112,7 @@ public class StoreMatchedDN extends Gram
                             .getLocalizedMessage() );
                         LOG.error( msg );
 
-                        throw new DecoderException( I18n.err( I18n.ERR_04014, ine.getLocalizedMessage() ) );
+                        throw new DecoderException( I18n.err( I18n.ERR_04014, ine.getLocalizedMessage() ), ine );
                     }
 
                     break;

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/ldapResult/StoreResultCode.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/ldapResult/StoreResultCode.java?rev=1681674&r1=1681673&r2=1681674&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/ldapResult/StoreResultCode.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/ldapResult/StoreResultCode.java Tue May 26 02:51:46 2015
@@ -87,7 +87,7 @@ public class StoreResultCode extends Gra
         {
             LOG.error( I18n.err( I18n.ERR_04018, Strings.dumpBytes( value.getData() ), ide.getMessage() ) );
 
-            throw new DecoderException( ide.getMessage() );
+            throw new DecoderException( ide.getMessage(), ide );
         }
 
         if ( IS_DEBUG )

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/modifyDnRequest/StoreModifyDnRequestDeleteOldRdn.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/modifyDnRequest/StoreModifyDnRequestDeleteOldRdn.java?rev=1681674&r1=1681673&r2=1681674&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/modifyDnRequest/StoreModifyDnRequestDeleteOldRdn.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/modifyDnRequest/StoreModifyDnRequestDeleteOldRdn.java Tue May 26 02:51:46 2015
@@ -90,7 +90,7 @@ public class StoreModifyDnRequestDeleteO
                 .err( I18n.ERR_04091, Strings.dumpBytes( value.getData() ), bde.getMessage() ) );
 
             // This will generate a PROTOCOL_ERROR
-            throw new DecoderException( bde.getMessage() );
+            throw new DecoderException( bde.getMessage(), bde );
         }
 
         // We can have an END transition

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/modifyRequest/StoreOperationType.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/modifyRequest/StoreOperationType.java?rev=1681674&r1=1681673&r2=1681674&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/modifyRequest/StoreOperationType.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/modifyRequest/StoreOperationType.java Tue May 26 02:51:46 2015
@@ -85,7 +85,7 @@ public class StoreOperationType extends
             LOG.error( msg );
 
             // This will generate a PROTOCOL_ERROR
-            throw new DecoderException( msg );
+            throw new DecoderException( msg, ide );
         }
 
         // Store the current operation.

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/searchRequest/StoreSearchRequestDerefAlias.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/searchRequest/StoreSearchRequestDerefAlias.java?rev=1681674&r1=1681673&r2=1681674&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/searchRequest/StoreSearchRequestDerefAlias.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/searchRequest/StoreSearchRequestDerefAlias.java Tue May 26 02:51:46 2015
@@ -90,7 +90,7 @@ public class StoreSearchRequestDerefAlia
         {
             String msg = I18n.err( I18n.ERR_04102, value.toString() );
             LOG.error( msg );
-            throw new DecoderException( msg );
+            throw new DecoderException( msg, ide );
         }
 
         searchRequest.setDerefAliases( AliasDerefMode.getDerefMode( derefAliases ) );

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/searchRequest/StoreSearchRequestScope.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/searchRequest/StoreSearchRequestScope.java?rev=1681674&r1=1681673&r2=1681674&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/searchRequest/StoreSearchRequestScope.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/searchRequest/StoreSearchRequestScope.java Tue May 26 02:51:46 2015
@@ -89,7 +89,7 @@ public class StoreSearchRequestScope ext
         {
             String msg = I18n.err( I18n.ERR_04101, value.toString() );
             LOG.error( msg );
-            throw new DecoderException( msg );
+            throw new DecoderException( msg, ide );
         }
 
         searchRequest.setScope( SearchScope.getSearchScope( scope ) );

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/searchRequest/StoreSearchRequestSizeLimit.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/searchRequest/StoreSearchRequestSizeLimit.java?rev=1681674&r1=1681673&r2=1681674&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/searchRequest/StoreSearchRequestSizeLimit.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/searchRequest/StoreSearchRequestSizeLimit.java Tue May 26 02:51:46 2015
@@ -84,7 +84,7 @@ public class StoreSearchRequestSizeLimit
         {
             String msg = I18n.err( I18n.ERR_04103, value.toString() );
             LOG.error( msg );
-            throw new DecoderException( msg );
+            throw new DecoderException( msg, lde );
         }
 
         searchRequest.setSizeLimit( sizeLimit );

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/searchRequest/StoreSearchRequestTimeLimit.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/searchRequest/StoreSearchRequestTimeLimit.java?rev=1681674&r1=1681673&r2=1681674&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/searchRequest/StoreSearchRequestTimeLimit.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/searchRequest/StoreSearchRequestTimeLimit.java Tue May 26 02:51:46 2015
@@ -85,7 +85,7 @@ public class StoreSearchRequestTimeLimit
         {
             String msg = I18n.err( I18n.ERR_04104, value.toString() );
             LOG.error( msg );
-            throw new DecoderException( msg );
+            throw new DecoderException( msg, ide );
         }
 
         searchRequest.setTimeLimit( timeLimit );

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/searchRequest/StoreSearchRequestTypesOnly.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/searchRequest/StoreSearchRequestTypesOnly.java?rev=1681674&r1=1681673&r2=1681674&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/searchRequest/StoreSearchRequestTypesOnly.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/searchRequest/StoreSearchRequestTypesOnly.java Tue May 26 02:51:46 2015
@@ -89,7 +89,7 @@ public class StoreSearchRequestTypesOnly
             LOG.error( I18n
                 .err( I18n.ERR_04105, Strings.dumpBytes( value.getData() ), bde.getMessage() ) );
 
-            throw new DecoderException( bde.getMessage() );
+            throw new DecoderException( bde.getMessage(), bde );
         }
 
         if ( IS_DEBUG )

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/searchRequest/filter/StoreMatchingRuleDnAttributes.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/searchRequest/filter/StoreMatchingRuleDnAttributes.java?rev=1681674&r1=1681673&r2=1681674&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/searchRequest/filter/StoreMatchingRuleDnAttributes.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/searchRequest/filter/StoreMatchingRuleDnAttributes.java Tue May 26 02:51:46 2015
@@ -92,7 +92,7 @@ public class StoreMatchingRuleDnAttribut
             LOG.error( I18n
                 .err( I18n.ERR_04110, Strings.dumpBytes( value.getData() ), bde.getMessage() ) );
 
-            throw new DecoderException( bde.getMessage() );
+            throw new DecoderException( bde.getMessage(), bde );
         }
 
         if ( IS_DEBUG )

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/searchResultReference/StoreReference.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/searchResultReference/StoreReference.java?rev=1681674&r1=1681673&r2=1681674&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/searchResultReference/StoreReference.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/actions/searchResultReference/StoreReference.java Tue May 26 02:51:46 2015
@@ -100,7 +100,7 @@ public class StoreReference extends Gram
             catch ( LdapURLEncodingException luee )
             {
                 LOG.error( I18n.err( I18n.ERR_04021, urlStr, luee.getMessage() ) );
-                throw new DecoderException( I18n.err( I18n.ERR_04016, luee.getMessage() ) );
+                throw new DecoderException( I18n.err( I18n.ERR_04016, luee.getMessage() ) , luee);
             }
         }
 

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/api/LdapEncoder.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/api/LdapEncoder.java?rev=1681674&r1=1681673&r2=1681674&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/api/LdapEncoder.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/api/LdapEncoder.java Tue May 26 02:51:46 2015
@@ -211,7 +211,7 @@ public class LdapEncoder
         }
         catch ( EncoderException ee )
         {
-            MessageEncoderException exception = new MessageEncoderException( message.getMessageId(), ee.getMessage() );
+            MessageEncoderException exception = new MessageEncoderException( message.getMessageId(), ee.getMessage(), ee );
 
             throw exception;
         }

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/api/ResponseCarryingException.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/api/ResponseCarryingException.java?rev=1681674&r1=1681673&r2=1681674&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/api/ResponseCarryingException.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/api/ResponseCarryingException.java Tue May 26 02:51:46 2015
@@ -63,6 +63,18 @@ public class ResponseCarryingException e
      * Creates a DecoderException
      * 
      * @param message A message with meaning to a human
+     * @param cause The original cause
+     */
+    public ResponseCarryingException( String message, Throwable cause )
+    {
+        super( message, cause );
+    }
+
+
+    /**
+     * Creates a DecoderException
+     * 
+     * @param message A message with meaning to a human
      * @param cause The Exception which caused the error
      */
     public ResponseCarryingException( String message, ResultResponse response, ResultCodeEnum code,

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/controls/search/entryChange/EntryChangeGrammar.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/controls/search/entryChange/EntryChangeGrammar.java?rev=1681674&r1=1681673&r2=1681674&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/controls/search/entryChange/EntryChangeGrammar.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/controls/search/entryChange/EntryChangeGrammar.java Tue May 26 02:51:46 2015
@@ -128,15 +128,15 @@ public final class EntryChangeGrammar ex
                             // We can have an END transition
                             container.setGrammarEndAllowed( true );
                         }
-                        catch ( IntegerDecoderException e )
+                        catch ( IntegerDecoderException ide )
                         {
                             String msg = I18n.err( I18n.ERR_04044 );
-                            LOG.error( msg, e );
-                            throw new DecoderException( msg );
+                            LOG.error( msg, ide );
+                            throw new DecoderException( msg, ide );
                         }
-                        catch ( IllegalArgumentException e )
+                        catch ( IllegalArgumentException iae )
                         {
-                            throw new DecoderException( e.getLocalizedMessage() );
+                            throw new DecoderException( iae.getLocalizedMessage(), iae );
                         }
                     }
                 } );
@@ -178,7 +178,7 @@ public final class EntryChangeGrammar ex
                             catch ( LdapInvalidDnException ine )
                             {
                                 LOG.error( I18n.err( I18n.ERR_04047, Strings.dumpBytes( value.getData() ) ) );
-                                throw new DecoderException( I18n.err( I18n.ERR_04048 ) );
+                                throw new DecoderException( I18n.err( I18n.ERR_04048 ), ine );
                             }
 
                             if ( IS_DEBUG )
@@ -216,11 +216,11 @@ public final class EntryChangeGrammar ex
                     // We can have an END transition
                     container.setGrammarEndAllowed( true );
                 }
-                catch ( LongDecoderException e )
+                catch ( LongDecoderException lde )
                 {
                     String msg = I18n.err( I18n.ERR_04049 );
-                    LOG.error( msg, e );
-                    throw new DecoderException( msg );
+                    LOG.error( msg, lde );
+                    throw new DecoderException( msg, lde );
                 }
             }
         };

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/controls/search/pagedSearch/PagedResultsGrammar.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/controls/search/pagedSearch/PagedResultsGrammar.java?rev=1681674&r1=1681673&r2=1681674&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/controls/search/pagedSearch/PagedResultsGrammar.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/controls/search/pagedSearch/PagedResultsGrammar.java Tue May 26 02:51:46 2015
@@ -121,11 +121,11 @@ public final class PagedResultsGrammar e
 
                             container.getDecorator().setSize( size );
                         }
-                        catch ( IntegerDecoderException e )
+                        catch ( IntegerDecoderException ide )
                         {
                             String msg = I18n.err( I18n.ERR_04050 );
-                            LOG.error( msg, e );
-                            throw new DecoderException( msg );
+                            LOG.error( msg, ide );
+                            throw new DecoderException( msg, ide );
                         }
                     }
                 } );

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/controls/search/persistentSearch/PersistentSearchGrammar.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/controls/search/persistentSearch/PersistentSearchGrammar.java?rev=1681674&r1=1681673&r2=1681674&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/controls/search/persistentSearch/PersistentSearchGrammar.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/controls/search/persistentSearch/PersistentSearchGrammar.java Tue May 26 02:51:46 2015
@@ -124,11 +124,11 @@ public final class PersistentSearchGramm
 
                             container.getPersistentSearchDecorator().setChangeTypes( changeTypes );
                         }
-                        catch ( IntegerDecoderException e )
+                        catch ( IntegerDecoderException ide )
                         {
                             String msg = I18n.err( I18n.ERR_04051 );
-                            LOG.error( msg, e );
-                            throw new DecoderException( msg );
+                            LOG.error( msg, ide );
+                            throw new DecoderException( msg, ide );
                         }
                     }
                 } );
@@ -162,11 +162,11 @@ public final class PersistentSearchGramm
 
                             container.getPersistentSearchDecorator().setChangesOnly( changesOnly );
                         }
-                        catch ( BooleanDecoderException e )
+                        catch ( BooleanDecoderException bde )
                         {
                             String msg = I18n.err( I18n.ERR_04052 );
-                            LOG.error( msg, e );
-                            throw new DecoderException( msg );
+                            LOG.error( msg, bde );
+                            throw new DecoderException( msg, bde );
                         }
                     }
                 } );
@@ -203,11 +203,11 @@ public final class PersistentSearchGramm
                             // We can have an END transition
                             container.setGrammarEndAllowed( true );
                         }
-                        catch ( BooleanDecoderException e )
+                        catch ( BooleanDecoderException bde )
                         {
                             String msg = I18n.err( I18n.ERR_04053 );
-                            LOG.error( msg, e );
-                            throw new DecoderException( msg );
+                            LOG.error( msg, bde );
+                            throw new DecoderException( msg, bde );
                         }
                     }
                 } );

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/controls/sort/SortRequestGrammar.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/controls/sort/SortRequestGrammar.java?rev=1681674&r1=1681673&r2=1681674&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/controls/sort/SortRequestGrammar.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/controls/sort/SortRequestGrammar.java Tue May 26 02:51:46 2015
@@ -103,11 +103,11 @@ public class SortRequestGrammar extends
 
                     container.setGrammarEndAllowed( true );
                 }
-                catch ( BooleanDecoderException e )
+                catch ( BooleanDecoderException bde )
                 {
                     //String msg = I18n.err( I18n.ERR_04050 );
                     //LOG.error( msg, e );
-                    throw new DecoderException( e.getMessage() );
+                    throw new DecoderException( bde.getMessage(), bde );
                 }
             }
 

Modified: directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/osgi/DefaultLdapCodecService.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/osgi/DefaultLdapCodecService.java?rev=1681674&r1=1681673&r2=1681674&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/osgi/DefaultLdapCodecService.java (original)
+++ directory/shared/trunk/ldap/codec/core/src/main/java/org/apache/directory/api/ldap/codec/osgi/DefaultLdapCodecService.java Tue May 26 02:51:46 2015
@@ -413,11 +413,11 @@ public class DefaultLdapCodecService imp
 
                     return jndiResponse;
                 }
-                catch ( DecoderException e )
+                catch ( DecoderException de )
                 {
                     NamingException ne = new NamingException( "Unable to decode encoded response value: " +
                         Strings.dumpBytes( berValue ) );
-                    ne.setRootCause( e );
+                    ne.setRootCause( de );
                     throw ne;
                 }
             }

Modified: directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/controls/ad_impl/AdDirSyncGrammar.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/controls/ad_impl/AdDirSyncGrammar.java?rev=1681674&r1=1681673&r2=1681674&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/controls/ad_impl/AdDirSyncGrammar.java (original)
+++ directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/controls/ad_impl/AdDirSyncGrammar.java Tue May 26 02:51:46 2015
@@ -137,7 +137,7 @@ public final class AdDirSyncGrammar exte
                         {
                             String msg = "Error while decoding the AdDirSync flag : " + ide.getMessage();
                             LOG.error( msg, ide );
-                            throw new DecoderException( msg );
+                            throw new DecoderException( msg, ide );
                         }
                     }
                 } );
@@ -176,7 +176,7 @@ public final class AdDirSyncGrammar exte
                         {
                             String msg = "Error while decoding the AdDirSync maxReturnLength : " + ide.getMessage();
                             LOG.error( msg, ide );
-                            throw new DecoderException( msg );
+                            throw new DecoderException( msg, ide );
                         }
                     }
                 } );

Modified: directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl_impl/SyncDoneValueGrammar.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl_impl/SyncDoneValueGrammar.java?rev=1681674&r1=1681673&r2=1681674&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl_impl/SyncDoneValueGrammar.java (original)
+++ directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl_impl/SyncDoneValueGrammar.java Tue May 26 02:51:46 2015
@@ -149,7 +149,7 @@ public final class SyncDoneValueGrammar
                     {
                         String msg = I18n.err( I18n.ERR_04024 );
                         LOG.error( msg, be );
-                        throw new DecoderException( msg );
+                        throw new DecoderException( msg, be );
                     }
 
                 }

Modified: directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl_impl/SyncInfoValueGrammar.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl_impl/SyncInfoValueGrammar.java?rev=1681674&r1=1681673&r2=1681674&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl_impl/SyncInfoValueGrammar.java (original)
+++ directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl_impl/SyncInfoValueGrammar.java Tue May 26 02:51:46 2015
@@ -228,7 +228,7 @@ public final class SyncInfoValueGrammar
                         {
                             String msg = I18n.err( I18n.ERR_04025 );
                             LOG.error( msg, be );
-                            throw new DecoderException( msg );
+                            throw new DecoderException( msg, be );
                         }
 
                         // We can have an END transition
@@ -277,7 +277,7 @@ public final class SyncInfoValueGrammar
                         {
                             String msg = I18n.err( I18n.ERR_04025 );
                             LOG.error( msg, be );
-                            throw new DecoderException( msg );
+                            throw new DecoderException( msg, be );
                         }
 
                         // We can have an END transition
@@ -390,7 +390,7 @@ public final class SyncInfoValueGrammar
                         {
                             String msg = I18n.err( I18n.ERR_04025 );
                             LOG.error( msg, be );
-                            throw new DecoderException( msg );
+                            throw new DecoderException( msg, be );
                         }
 
                         // We can have an END transition
@@ -439,7 +439,7 @@ public final class SyncInfoValueGrammar
                         {
                             String msg = I18n.err( I18n.ERR_04025 );
                             LOG.error( msg, be );
-                            throw new DecoderException( msg );
+                            throw new DecoderException( msg, be );
                         }
 
                         // We can have an END transition
@@ -541,7 +541,7 @@ public final class SyncInfoValueGrammar
                         {
                             String msg = I18n.err( I18n.ERR_04026 );
                             LOG.error( msg, be );
-                            throw new DecoderException( msg );
+                            throw new DecoderException( msg, be );
                         }
                     }
                 } );
@@ -584,7 +584,7 @@ public final class SyncInfoValueGrammar
                         {
                             String msg = I18n.err( I18n.ERR_04024 );
                             LOG.error( msg, be );
-                            throw new DecoderException( msg );
+                            throw new DecoderException( msg, be );
                         }
                     }
                 } );

Modified: directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl_impl/SyncRequestValueGrammar.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl_impl/SyncRequestValueGrammar.java?rev=1681674&r1=1681673&r2=1681674&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl_impl/SyncRequestValueGrammar.java (original)
+++ directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl_impl/SyncRequestValueGrammar.java Tue May 26 02:51:46 2015
@@ -137,11 +137,11 @@ public final class SyncRequestValueGramm
                             // We can have an END transition
                             container.setGrammarEndAllowed( true );
                         }
-                        catch ( IntegerDecoderException e )
+                        catch ( IntegerDecoderException ide )
                         {
                             String msg = I18n.err( I18n.ERR_04028 );
-                            LOG.error( msg, e );
-                            throw new DecoderException( msg );
+                            LOG.error( msg, ide );
+                            throw new DecoderException( msg, ide );
                         }
                     }
                 } );
@@ -210,11 +210,11 @@ public final class SyncRequestValueGramm
                             // We can have an END transition
                             container.setGrammarEndAllowed( true );
                         }
-                        catch ( BooleanDecoderException e )
+                        catch ( BooleanDecoderException bde )
                         {
                             String msg = I18n.err( I18n.ERR_04029 );
-                            LOG.error( msg, e );
-                            throw new DecoderException( msg );
+                            LOG.error( msg, bde );
+                            throw new DecoderException( msg, bde );
                         }
                     }
                 } );
@@ -251,11 +251,11 @@ public final class SyncRequestValueGramm
                             // We can have an END transition
                             container.setGrammarEndAllowed( true );
                         }
-                        catch ( BooleanDecoderException e )
+                        catch ( BooleanDecoderException bde )
                         {
                             String msg = I18n.err( I18n.ERR_04029 );
-                            LOG.error( msg, e );
-                            throw new DecoderException( msg );
+                            LOG.error( msg, bde );
+                            throw new DecoderException( msg, bde );
                         }
                     }
                 } );

Modified: directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl_impl/SyncStateValueGrammar.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl_impl/SyncStateValueGrammar.java?rev=1681674&r1=1681673&r2=1681674&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl_impl/SyncStateValueGrammar.java (original)
+++ directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/controls/syncrepl_impl/SyncStateValueGrammar.java Tue May 26 02:51:46 2015
@@ -130,11 +130,11 @@ public final class SyncStateValueGrammar
                         // move on to the entryUUID transition
                         container.setGrammarEndAllowed( false );
                     }
-                    catch ( IntegerDecoderException e )
+                    catch ( IntegerDecoderException ide )
                     {
                         String msg = I18n.err( I18n.ERR_04030 );
-                        LOG.error( msg, e );
-                        throw new DecoderException( msg );
+                        LOG.error( msg, ide );
+                        throw new DecoderException( msg, ide );
                     }
                 }
             } );

Modified: directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/extended/ads_impl/cancel/CancelGrammar.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/extended/ads_impl/cancel/CancelGrammar.java?rev=1681674&r1=1681673&r2=1681674&view=diff
==============================================================================
--- directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/extended/ads_impl/cancel/CancelGrammar.java (original)
+++ directory/shared/trunk/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/extended/ads_impl/cancel/CancelGrammar.java Tue May 26 02:51:46 2015
@@ -128,11 +128,11 @@ public final class CancelGrammar extends
                             cancelContainer.getCancel().setCancelId( cancelId );
                             cancelContainer.setGrammarEndAllowed( true );
                         }
-                        catch ( IntegerDecoderException e )
+                        catch ( IntegerDecoderException ide )
                         {
                             String msg = I18n.err( I18n.ERR_04031, Strings.dumpBytes( value.getData() ) );
                             LOG.error( msg );
-                            throw new DecoderException( msg );
+                            throw new DecoderException( msg, ide );
                         }
                     }
                 } );



Mime
View raw message