directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r912436 [1/2] - in /directory/shared/trunk: i18n/src/main/java/org/apache/directory/shared/i18n/ i18n/src/main/resources/org/apache/directory/shared/i18n/ ldap/src/main/java/org/apache/directory/shared/ldap/csn/ ldap/src/main/java/org/apach...
Date Sun, 21 Feb 2010 23:16:30 GMT
Author: felixk
Date: Sun Feb 21 23:16:28 2010
New Revision: 912436

URL: http://svn.apache.org/viewvc?rev=912436&view=rev
Log:
DIRSHARED-49 (i18n)

Second part

More to follow hopefully to the end of the week

Modified:
    directory/shared/trunk/i18n/src/main/java/org/apache/directory/shared/i18n/I18n.java
    directory/shared/trunk/i18n/src/main/resources/org/apache/directory/shared/i18n/errors.properties
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/csn/Csn.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/AbstractValue.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/client/ClientBinaryValue.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/client/ClientStringValue.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/client/DefaultClientAttribute.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/client/DefaultClientEntry.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapAuthenticationNotSupportedException.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapInvalidAttributeValueException.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapOperationNotSupportedException.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapSchemaViolationException.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapServiceUnavailableException.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/AbstractExprNode.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/AssertionNode.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/FilterParser.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/NotNode.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/SearchScope.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/SimpleNode.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/AbandonRequestImpl.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/AliasDerefMode.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/BindRequestImpl.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/UnbindRequestImpl.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/control/replication/SyncStateTypeEnum.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CancelRequest.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CancelResponse.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CertGenerationRequest.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CertGenerationResponse.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/GracefulDisconnect.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/GracefulShutdownRequest.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/GracefulShutdownResponse.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/LaunchDiagnosticUiResponse.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/NoticeOfDisconnect.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/StoredProcedureRequest.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/spi/Provider.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/AVA.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/FastLdapDnParser.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDN.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDNSerializer.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/RDN.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/SimpleNameComponentNormalizer.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/comparators/ComparableComparator.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/comparators/DnComparator.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/comparators/LongComparator.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/comparators/SerializableComparator.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/comparators/UniqueMemberComparator.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/normalizers/ConcreteNameComponentNormalizer.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/normalizers/DeepTrimNormalizer.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/normalizers/DeepTrimToLowerNormalizer.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/normalizers/GeneralizedTimeNormalizer.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/normalizers/NameOrNumericIdNormalizer.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/normalizers/NumericNormalizer.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/normalizers/TelephoneNumberNormalizer.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/normalizers/UniqueMemberNormalizer.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/parsers/AttributeTypeDescriptionSchemaParser.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/parsers/DITContentRuleDescriptionSchemaParser.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/parsers/DITStructureRuleDescriptionSchemaParser.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/parsers/LdapComparatorDescriptionSchemaParser.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/parsers/LdapSyntaxDescriptionSchemaParser.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/parsers/MatchingRuleDescriptionSchemaParser.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/parsers/MatchingRuleUseDescriptionSchemaParser.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/parsers/NameFormDescriptionSchemaParser.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/parsers/NormalizerDescriptionSchemaParser.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/parsers/ObjectClassDescriptionSchemaParser.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/parsers/OpenLdapSchemaParser.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/parsers/SyntaxCheckerDescriptionSchemaParser.java

Modified: directory/shared/trunk/i18n/src/main/java/org/apache/directory/shared/i18n/I18n.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/i18n/src/main/java/org/apache/directory/shared/i18n/I18n.java?rev=912436&r1=912435&r2=912436&view=diff
==============================================================================
--- directory/shared/trunk/i18n/src/main/java/org/apache/directory/shared/i18n/I18n.java (original)
+++ directory/shared/trunk/i18n/src/main/java/org/apache/directory/shared/i18n/I18n.java Sun Feb 21 23:16:28 2010
@@ -353,6 +353,95 @@
 	public static final String ERR_04208 = "ERR_04208";
 	public static final String ERR_04209 = "ERR_04209";
 	public static final String ERR_04210 = "ERR_04210";
+	public static final String ERR_04211 = "ERR_04211";
+	public static final String ERR_04212 = "ERR_04212";
+	public static final String ERR_04213 = "ERR_04213";
+	public static final String ERR_04214 = "ERR_04214";
+	public static final String ERR_04215 = "ERR_04215";
+	public static final String ERR_04216 = "ERR_04216";
+	public static final String ERR_04217 = "ERR_04217";
+	public static final String ERR_04218 = "ERR_04218";
+	public static final String ERR_04219 = "ERR_04219";
+	public static final String ERR_04220 = "ERR_04220";
+	public static final String ERR_04221 = "ERR_04221";
+	public static final String ERR_04222 = "ERR_04222";
+	public static final String ERR_04223 = "ERR_04223";
+	public static final String ERR_04224 = "ERR_04224";
+	public static final String ERR_04225 = "ERR_00025";
+	public static final String ERR_04226 = "ERR_04226";
+	public static final String ERR_04227 = "ERR_04227";
+	public static final String ERR_04228 = "ERR_04228";
+	public static final String ERR_04229 = "ERR_04229";
+	public static final String ERR_04230 = "ERR_04230";
+	public static final String ERR_04231 = "ERR_04231";
+	public static final String ERR_04232 = "ERR_04232";
+	public static final String ERR_04233 = "ERR_04233";
+	public static final String ERR_04234 = "ERR_04234";
+	public static final String ERR_04235 = "ERR_04235";
+	public static final String ERR_04236 = "ERR_04236";
+	public static final String ERR_04237 = "ERR_04237";
+	public static final String ERR_04238 = "ERR_04238";
+	public static final String ERR_04239 = "ERR_04239";
+	public static final String ERR_04240 = "ERR_04240";
+	public static final String ERR_04241 = "ERR_04241";
+	public static final String ERR_04242 = "ERR_04242";
+	public static final String ERR_04243 = "ERR_04243";
+	public static final String ERR_04244 = "ERR_04244";
+	public static final String ERR_04245 = "ERR_04245";
+	public static final String ERR_04246 = "ERR_04246";
+	public static final String ERR_04247 = "ERR_04247";
+	public static final String ERR_04248 = "ERR_04248";
+	public static final String ERR_04249 = "ERR_04249";
+	public static final String ERR_04250 = "ERR_04250";
+	public static final String ERR_04251 = "ERR_04251";
+	public static final String ERR_04252 = "ERR_04252";
+	public static final String ERR_04253 = "ERR_04253";
+	public static final String ERR_04254 = "ERR_04254";
+	public static final String ERR_04255 = "ERR_04255";
+	public static final String ERR_04256 = "ERR_04256";
+	public static final String ERR_04257 = "ERR_04257";
+	public static final String ERR_04258 = "ERR_04258";
+	public static final String ERR_04259 = "ERR_04259";
+	public static final String ERR_04260 = "ERR_04260";
+	public static final String ERR_04261 = "ERR_04261";
+	public static final String ERR_04262 = "ERR_04262";
+	public static final String ERR_04263 = "ERR_04263";
+	public static final String ERR_04264 = "ERR_04264";
+	public static final String ERR_04265 = "ERR_04265";
+	public static final String ERR_04266 = "ERR_04266";
+	public static final String ERR_04267 = "ERR_04267";
+	public static final String ERR_04268 = "ERR_04268";
+	public static final String ERR_04269 = "ERR_04269";
+	public static final String ERR_04270 = "ERR_04270";
+	public static final String ERR_04271 = "ERR_04271";
+	public static final String ERR_04272 = "ERR_04272";
+	public static final String ERR_04273 = "ERR_04273";
+	public static final String ERR_04274 = "ERR_04274";
+	public static final String ERR_04275 = "ERR_04275";
+	public static final String ERR_04276 = "ERR_04276";
+	public static final String ERR_04277 = "ERR_04277";
+	public static final String ERR_04278 = "ERR_04278";
+	public static final String ERR_04279 = "ERR_04279";
+	public static final String ERR_04280 = "ERR_04280";
+	public static final String ERR_04281 = "ERR_04281";
+	public static final String ERR_04282 = "ERR_04282";
+	public static final String ERR_04283 = "ERR_04283";
+	public static final String ERR_04284 = "ERR_04284";
+	public static final String ERR_04285 = "ERR_04285";
+	public static final String ERR_04286 = "ERR_04286";
+	public static final String ERR_04287 = "ERR_04287";
+	public static final String ERR_04288 = "ERR_04288";
+	public static final String ERR_04289 = "ERR_04289";
+	public static final String ERR_04290 = "ERR_04290";
+	public static final String ERR_04291 = "ERR_04291";
+	public static final String ERR_04292 = "ERR_04292";
+	public static final String ERR_04293 = "ERR_04293";
+	public static final String ERR_04294 = "ERR_04294";
+	public static final String ERR_04295 = "ERR_04295";
+	public static final String ERR_04296 = "ERR_04296";
+	public static final String ERR_04297 = "ERR_04297";
+	public static final String ERR_04298 = "ERR_04298";
+	public static final String ERR_04299 = "ERR_04299";
 
 	// ldap-constants
 	public static final String ERR_05001 = "ERR_05001";

Modified: directory/shared/trunk/i18n/src/main/resources/org/apache/directory/shared/i18n/errors.properties
URL: http://svn.apache.org/viewvc/directory/shared/trunk/i18n/src/main/resources/org/apache/directory/shared/i18n/errors.properties?rev=912436&r1=912435&r2=912436&view=diff
==============================================================================
--- directory/shared/trunk/i18n/src/main/resources/org/apache/directory/shared/i18n/errors.properties (original)
+++ directory/shared/trunk/i18n/src/main/resources/org/apache/directory/shared/i18n/errors.properties Sun Feb 21 23:16:28 2010
@@ -105,7 +105,7 @@
 ERR_04001=identificationTag
 ERR_04002=precedence: {0}
 ERR_04003=authenticationLevel
-ERR_04004=Parser failure on ACIItem:\n\t{0}\nAntlr exception trace:\n{1}
+ERR_04004=Parser failure on ACIItem\:\n\t{0}\nAntlr exception trace\:\n{1}
 ERR_04005=The PDU buffer size is too small !
 ERR_04006=The And filter PDU must not be empty
 ERR_04007=The attribute description is empty
@@ -116,7 +116,7 @@
 ERR_04012=The Substring filter PDU must not be empty
 ERR_04013=Incorrect DN given : {0} ({1}) is invalid : {2}
 ERR_04014=Incorrect DN given : {0}
-ERR_04015=The URL {0} is not valid : {1} 
+ERR_04015=The URL {0} is not valid \: {1} 
 ERR_04016=Invalid URL : {0}
 ERR_04017=The name must not be null
 ERR_04018=The result code {0} is invalid : {1}. The result code must be between (0 .. 121)
@@ -215,134 +215,193 @@
 ERR_04111=Could not parse matchedDN while transforming Codec value to Internal: {0}
 ERR_04112=Error while transforming a ExprNode : {0}
 ERR_04113=shouldn't happen - if it does then we have issues
-ERR_04114=
-ERR_04115=
-ERR_04116=
-ERR_04117=
-ERR_04118=
-ERR_04119=
-ERR_04120=
-ERR_04121=
-ERR_04122=
-ERR_04123=
-ERR_04124=
-ERR_04125=
-ERR_04126=
-ERR_04127=
-ERR_04128=
-ERR_04129=
-ERR_04130=
-ERR_04131=
-ERR_04132=
-ERR_04133=
-ERR_04134=
-ERR_04135=
-ERR_04136=
-ERR_04137=
-ERR_04138=
-ERR_04139=
-ERR_04140=
-ERR_04141=
-ERR_04142=
-ERR_04143=
-ERR_04144=
-ERR_04145=
-ERR_04146=
-ERR_04147=
-ERR_04148=
-ERR_04149=
-ERR_04150=
-ERR_04151=
-ERR_04152=
-ERR_04153=
-ERR_04154=
-ERR_04155=
-ERR_04156=
-ERR_04157=
-ERR_04158=
-ERR_04159=
-ERR_04160=
-ERR_04161=
-ERR_04162=
-ERR_04163=
-ERR_04164=
-ERR_04165=
-ERR_04166=
-ERR_04167=
-ERR_04168=
-ERR_04169=
-ERR_04170=
-ERR_04171=
-ERR_04172=
-ERR_04173=
-ERR_04174=
-ERR_04175=
-ERR_04176=
-ERR_04177=
-ERR_04178=
-ERR_04179=
-ERR_04180=
-ERR_04181=
-ERR_04182=
-ERR_04183=
-ERR_04184=
-ERR_04185=
-ERR_04186=
-ERR_04187=
-ERR_04188=
-ERR_04189=
-ERR_04190=
-ERR_04191=
-ERR_04192=
-ERR_04193=
-ERR_04194=
-ERR_04195=
-ERR_04196=
-ERR_04197=
-ERR_04198=
-ERR_04199=
-ERR_04200=
-ERR_04201=
-ERR_04202=
-ERR_04203=
-ERR_04204=
-ERR_04205=
-ERR_04206=
-ERR_04207=
-ERR_04208=
-ERR_04209=
-ERR_04210=
-ERR_04211=
-ERR_04212=
-ERR_04213=
-ERR_04214=
-ERR_04215=
-ERR_04216=
-ERR_04217=
-ERR_04218=
-ERR_04219=
-ERR_04220=
-ERR_04221=
-ERR_04222=
-ERR_04223=
-ERR_04224=
-ERR_04225=
-ERR_04226=
-ERR_04227=
-ERR_04228=
-ERR_04229=
-ERR_04230=
-ERR_04231=
-ERR_04232=
-ERR_04233=
-ERR_04234=
-ERR_04235=
-ERR_04236=
-ERR_04237=
-ERR_04238=
-ERR_04239=
-ERR_04240=
-
+ERR_04114=The CSN must not be null or empty
+ERR_04115=The CSN's length is incorrect, it should be 40 chars long
+ERR_04116=Cannot find a '#' in the CSN '{0}'
+ERR_04117=The timestamp is not long enough
+ERR_04118=Cannot parse the timestamp: '{0}'
+ERR_04119=The microseconds part is invalid
+ERR_04120=Missing a '#' in the CSN '{0}'
+ERR_04121=The changeCount '{0}' is not a valid number
+ERR_04122=Missing a '#' in the CSN '{0}'
+ERR_04123=The replicaID must not be null or empty
+ERR_04124=The replicaId '{0}' is not a valid number
+ERR_04125=The operationNumber is absent
+ERR_04126=The operationNumber '{0}' is not a valid number
+ERR_04127=I don't really know how to compare anything other than ServerBinaryValues at this point in time.
+ERR_04128=Cannot compare {0} with the unknown value {1} 
+ERR_04129=Unknown value type: {0}
+ERR_04130=The value is expected to be a byte[]
+ERR_04131=The value is expected to be a String
+ERR_04132=An ID cannnot be null, empty, or resolved to an emtpy value when trimmed
+ERR_04133=The attributeType ID should not be null or empty
+ERR_04134=An exception has been raised while looking for attribute id '{0}'
+ERR_04135=The AttributeType list should not be null
+ERR_04136=The AttributeType list should not contain null values
+ERR_04137=The attribute '{0}' does not exist in the entry
+ERR_04138=The removal of values for the missing '{0}' attribute is not possible
+ERR_04139=Cannot validate {0} with a null SyntaxChecker
+ERR_04140=Unexceptable result code for this exception type: {0}
+ERR_04141={0} is not an acceptable result code.
+ERR_04142=Only UNWILLING_TO_PERFORM and UNAVAILABLE_CRITICAL_EXTENSION result codes are allowed to be used with this exception
+ERR_04143=Only the following LDAP result codes can be used: {0}
+ERR_04144=ScopeNode can't be part of a refinement
+ERR_04145=AssertionNode can't be part of a refinement
+ERR_04146=AssertionValue expected
+ERR_04147=Expected MatchingRule or assertionValue
+ERR_04148=MatchingRule expected
+ERR_04149=Not a valid escaped value
+ERR_04150=Bad substring
+ERR_04151=Bad char
+ERR_04152=Expecting a '\=' 
+ERR_04153=An item is expected
+ERR_04154=Empty filterComp
+ERR_04155=No '(' at the begining of the filter
+ERR_04156=Bad filter
+ERR_04157=The filter has no right parenthese
+ERR_04158=Empty filter
+ERR_04159=Cannot add more than one element to a negation node.
+ERR_04160=Unknown JNDI scope constant value: {0}
+ERR_04161=Unknown LDAP URL scope value: {0}
+ERR_04162=Invalid attribute {0} for a refinement
+ERR_04163=Unknown SyncStateTypeEnum value {0}
+ERR_04164=Failed to encode payload GracefulShutdownRequest
+ERR_04165=failed to decode payload
+ERR_04166=The result code can only be one of: {0}, {1}, {2}
+ERR_04167=Failed to encode payload CertGenerateRequest
+ERR_04168=the OID is fixed: {0}
+ERR_04169=Failed to decode response value
+ERR_04170=Failed while parsing LDAP url {0}
+ERR_04171=Failed to encode message value.
+ERR_04172=Failed while decoding response
+ERR_04173=the response is hardcoded as zero length array
+ERR_04174=Failed to encode payload StoredProcedureRequest
+ERR_04175=class loading of procedure type not implemented
+ERR_04176=conversion of value to java type not implemented
+ERR_04177=provider monitor class {0} not found
+ERR_04178="provider monitor class {0} does not expose a public default constructor
+ERR_04179=provider monitor class {0} failed during instantiation
+ERR_04180=Could not instantiate provider - environment does not specify {0} property!
+ERR_04181=Count not find the Provider class {0}
+ERR_04182=Count not invoke the Provider's factory method: {0}.getProvider() - it may not exist!
+ERR_04183=Count not invoke the Provider's factory method: {0}.getProvider() - it does seem to be a public method!
+ERR_04184=Call to Provider's factory method\: {0}.getProvider() threw the following exception\:\n{1}
+ERR_04185=RFC 2251 [Section 4.11]: Abandon, Bind, Unbind, and StartTLS operations cannot be abandoned.
+ERR_04186=Unrecogniced value '{0}' for {1} JNDI property.\nExpected a value of either always, never, searching, or finding.
+ERR_04187=Class has bug: check for valid enumeration values
+ERR_04188=The type cannot be empty or null
+ERR_04189=The User Provided type cannot be empty or null
+ERR_04190=The User provided name does not contains an '='
+ERR_04191=The AVA type cannot be null or empty
+ERR_04192=Unexpected character '{0}' at position {1}. Excpected ',' or ';'.
+ERR_04193=RDN must not be empty
+ERR_04194=RDN must not be null
+ERR_04195=Unexpected character '{0}' at position {1}. Excpected start of attributeType.
+ERR_04196=Unexpected character '{0}' at position {1}. Excpected start of attributeType descr.
+ERR_04197=Unexpected character '{0}' at position {1}. Excpected numericoid.
+ERR_04198=Numeric OID must contain at least one dot.
+ERR_04199=Unexpected character '{0}' at position {1}. Excpected start of attributeType numericoid.
+ERR_04200=Unexpected character '{0}' at position {1}. Excpected EQUALS '='.
+ERR_04201=No more characters available at position {0}
+ERR_04202=A value is missing on some RDN
+ERR_04203=Impossible to get the position {0}, the DN only has {1} RDNs
+ERR_04204=Failed to parse RDN for name {0}
+ERR_04205=Exceeded number of elements in the current object
+ERR_04206=The posn({0}) should be in the range [0, {1}]
+ERR_04207=The clone operation has failed
+ERR_04208=Assertion failure : cannot clone the object
+ERR_04209=Empty type not allowed in a DN
+ERR_04210=Cannot serialize a NULL DN
+ERR_04211=The DN should have been normalized before being serialized
+ERR_04212=The DN should have been normalized before being serialized {0}
+ERR_04213=This value is not in hex form, we have an odd number of hex chars
+ERR_04214=This value is not in hex form
+ERR_04215=Unescaped special characters are not allowed
+ERR_04216=This class is not aware of schema information and cannot normalize
+ERR_04217=None of the arguments are Comparable objects\:\n\targ1 \= {0}\n\targ2 \= {1}
+ERR_04218=I do not know how to handle dn comparisons with objects of class: {0}
+ERR_04219=Argument 'obj1' is null
+ERR_04220=Argument 'obj2' is null
+ERR_04221=Matching rule not found: {0}
+ERR_04222=The value stored in a non Human Readable attribute as a String should be convertible to a byte[]
+ERR_04223=The value stored in an Human Readable attribute as a byte[] should be convertible to a String
+ERR_04224=Invalid value : {0}
+ERR_04225=Encountered name based id of {0} which was not found in the OID registry
+ERR_04226=I do not know how to handle NameAndOptionalUID normalization with objects of class: {0}
+ERR_04227=Cannot parse a null AttributeType
+ERR_04228=Parser failure on attribute type description:\n\{0}\nAntlr message: {1}\nAntlr column: {2}
+ERR_04229=Parser failure on attribute type description:\n\t{0}\nAntlr message: {1}
+ERR_04230=Cannot parse a null DITContentRule
+ERR_04231=Parser failure on DIT content rule description:\n\t{0}\nAntlr message: {1}\nAntlr column: {2}
+ERR_04232=Parser failure on DIT content rule description:\n\t{0}\nAntlr message: {1}
+ERR_04233=Cannot parse a null DITStructureRule description
+ERR_04234=Parser failure on DIT structure rule description:\n\t{0}\nAntlr message: {1}nAntlr column: {2}
+ERR_04235=Parser failure on DIT structure rule description:\n\t{0}\nAntlr message: {1}
+ERR_04236=Cannot parse a null LdapComparator description
+ERR_04237=Parser failure on comparator description:\n\t{0}\nAntlr message: {1}\nAntlr column: {2}
+ERR_04238=Parser failure on comparator description:\n\t{0}\nAntlr message: {1}
+ERR_04239=Cannot parse a null LdapSyntax
+ERR_04240=Parser failure on LDAP syntay description:\n\t{0}\nAntlr message: {1}\nAntlr column: {2}
+ERR_04241=Parser failure on LDAP syntay description:\n\t{0}\nAntlr message: {1}
+ERR_04242=Cannot parse a null MatchingRule
+ERR_04243=Parser failure on matching rule description:\n\t{0}\nAntlr message: {1}\nAntlr column: {2}
+ERR_04244=Parser failure on matching rule description:\n\t{0}\nAntlr message: {1}
+ERR_04245=Cannot parse a null MatchingRuleUse
+ERR_04246=Parser failure on matching rule description:\n\t{0}\nAntlr message: {1}\nAntlr column: {2}
+ERR_04247=Parser failure on matching rule description:\n\t{0}\nAntlr message: {1}
+ERR_04248=Cannot parse a null NameForm
+ERR_04249=Parser failure on name form description:\n\t{0}\nAntlr message: {1}\nAntlr column: {2} 
+ERR_04250="Parser failure on name form description:\n\t{0}\nAntlr message: {1}
+ERR_04251=Cannot parse a null Normalizer description
+ERR_04252=Parser failure on normalizer description:\n\t{0}\nAntlr message: {1}\nAntlr column: {2}
+ERR_04253=Parser failure on normalizer description:\n\t{0}\nAntlr message: {1}
+ERR_04254=Cannot parse a null LdapComparator description
+ERR_04255=Parser failure on object class description:\n\t{0}\nAntlr message: {1}\nAntlr column: {2}
+ERR_04256=Parser failure on object class description:\n\t{0}\nAntlr message: {1}
+ERR_04257=No object identifier macro with name {0}
+ERR_04258=The schemaObject is either null or is the empty String!
+ERR_04259="Parser failure on syntax checker description:\n\t{0}\nAntlr message: {1}\nAntlr column: {2}
+ERR_04260=Parser failure on syntax checker description:\n\t{0}\nAntlr message: {1}
+ERR_04261=
+ERR_04262=
+ERR_04263=
+ERR_04264=
+ERR_04265=
+ERR_04266=
+ERR_04267=
+ERR_04268=
+ERR_04269=
+ERR_04270=
+ERR_04271=
+ERR_04272=
+ERR_04273=
+ERR_04274=
+ERR_04275=
+ERR_04276=
+ERR_04277=
+ERR_04278=
+ERR_04279=
+ERR_04280=
+ERR_04281=
+ERR_04282=
+ERR_04283=
+ERR_04284=
+ERR_04285=
+ERR_04286=
+ERR_04287=
+ERR_04288=
+ERR_04289=
+ERR_04290=
+ERR_04291=
+ERR_04292=
+ERR_04293=
+ERR_04294=
+ERR_04295=
+ERR_04296=
+ERR_04297=
+ERR_04298=
+ERR_04299=
+        
 # ldap-constants
 ERR_05001=
 ERR_05002=

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/csn/Csn.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/csn/Csn.java?rev=912436&r1=912435&r2=912436&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/csn/Csn.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/csn/Csn.java Sun Feb 21 23:16:28 2010
@@ -25,6 +25,7 @@
 import java.text.SimpleDateFormat;
 import java.util.Date;
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.util.StringTools;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -123,14 +124,14 @@
     {
         if ( StringTools.isEmpty( value ) )
         {
-            String message = "The CSN must not be null or empty";
+            String message = I18n.err( I18n.ERR_04114 );
             LOG.error( message );
             throw new InvalidCSNException( message );
         }
         
         if ( value.length() != 40 )
         {
-            String message = "The CSN's length is incorrect, it should be 40 chars long";
+            String message = I18n.err( I18n.ERR_04115 );
             LOG.error( message );
             throw new InvalidCSNException( message );
         }
@@ -140,7 +141,7 @@
         
         if ( sepTS < 0 )
         {
-            String message = "Cannot find a '#' in the CSN '" + value + "'";
+            String message = I18n.err( I18n.ERR_04116 );
             LOG.error( message );
             throw new InvalidCSNException( message );
         }
@@ -149,7 +150,7 @@
         
         if ( timestampStr.length() != 22 )
         {
-            String message = "The timestamp is not long enough";
+            String message = I18n.err( I18n.ERR_04117 );
             LOG.error( message );
             throw new InvalidCSNException( message );
         }
@@ -167,7 +168,7 @@
             }
             catch ( ParseException pe )
             {
-                String message = "Cannot parse the timestamp: '" + timestampStr + "'";
+                String message = I18n.err( I18n.ERR_04118, timestampStr );
                 LOG.error( message );
                 throw new InvalidCSNException( message );
             }
@@ -182,7 +183,7 @@
         }
         catch ( NumberFormatException nfe )
         {
-            String message = "The microseconds part is invalid";
+            String message = I18n.err( I18n.ERR_04119 );
             LOG.error( message );
             throw new InvalidCSNException( message );
         }
@@ -195,7 +196,7 @@
         
         if ( sepCC < 0 )
         {
-            String message = "Missing a '#' in the CSN '" + value + "'";
+            String message = I18n.err( I18n.ERR_04110, value );
             LOG.error( message );
             throw new InvalidCSNException( message );
         }
@@ -208,7 +209,7 @@
         }
         catch ( NumberFormatException nfe )
         {
-            String message = "The changeCount '" + changeCountStr + "' is not a valid number";
+            String message = I18n.err( I18n.ERR_04121, changeCountStr );
             LOG.error( message );
             throw new InvalidCSNException( message );
         }
@@ -218,7 +219,7 @@
         
         if ( sepRI < 0 )
         {
-            String message = "Missing a '#' in the CSN '" + value + "'";
+            String message = I18n.err( I18n.ERR_04122, value );
             LOG.error( message );
             throw new InvalidCSNException( message );
         }
@@ -227,7 +228,7 @@
         
         if ( StringTools.isEmpty( replicaIdStr ) )
         {
-            String message = "The replicaID must not be null or empty";
+            String message = I18n.err( I18n.ERR_04123 );
             LOG.error( message );
             throw new InvalidCSNException( message );
         }
@@ -238,7 +239,7 @@
         }
         catch ( NumberFormatException nfe )
         {
-            String message = "The replicaId '" + replicaIdStr + "' is not a valid number";
+            String message = I18n.err( I18n.ERR_04124, replicaIdStr );
             LOG.error( message );
             throw new InvalidCSNException( message );
         }
@@ -246,7 +247,7 @@
         // Get the modification number
         if ( sepCC == value.length() )
         {
-            String message = "The operationNumber is absent";
+            String message = I18n.err( I18n.ERR_04125 );
             LOG.error( message );
             throw new InvalidCSNException( message );
         }
@@ -259,7 +260,7 @@
         }
         catch ( NumberFormatException nfe )
         {
-            String message = "The operationNumber '" + operationNumberStr + "' is not a valid number";
+            String message =  I18n.err( I18n.ERR_04126, operationNumberStr );
             LOG.error( message );
             throw new InvalidCSNException( message );
         }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/AbstractValue.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/AbstractValue.java?rev=912436&r1=912435&r2=912436&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/AbstractValue.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/AbstractValue.java Sun Feb 21 23:16:28 2010
@@ -21,6 +21,7 @@
 
 import javax.naming.NamingException;
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.schema.SyntaxChecker;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -212,7 +213,7 @@
         
         if ( syntaxChecker == null )
         {
-            String message = "Cannot validate " + toString() + " with a null SyntaxChecker";
+            String message = I18n.err( I18n.ERR_04139, toString() );
             LOG.error( message );
             throw new NamingException( message );
         }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/client/ClientBinaryValue.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/client/ClientBinaryValue.java?rev=912436&r1=912435&r2=912436&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/client/ClientBinaryValue.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/client/ClientBinaryValue.java Sun Feb 21 23:16:28 2010
@@ -27,6 +27,7 @@
 
 import javax.naming.NamingException;
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.NotImplementedException;
 import org.apache.directory.shared.ldap.entry.AbstractValue;
 import org.apache.directory.shared.ldap.entry.Value;
@@ -236,8 +237,7 @@
             return new ByteArrayComparator( null ).compare( getNormalizedValue(), binaryValue.getNormalizedValue() );
         }
         
-        String message = "I don't really know how to compare anything other " +
-            "than ServerBinaryValues at this point in time."; 
+        String message = I18n.err( I18n.ERR_04127 ); 
         LOG.error( message );
         throw new NotImplementedException( message );
     }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/client/ClientStringValue.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/client/ClientStringValue.java?rev=912436&r1=912435&r2=912436&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/client/ClientStringValue.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/client/ClientStringValue.java Sun Feb 21 23:16:28 2010
@@ -26,6 +26,7 @@
 
 import javax.naming.NamingException;
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.NotImplementedException;
 import org.apache.directory.shared.ldap.entry.AbstractValue;
 import org.apache.directory.shared.ldap.entry.Value;
@@ -211,7 +212,7 @@
         }
         else 
         {
-            String message = "Cannot compare " + toString() + " with the unknown value " + value.getClass();
+            String message = I18n.err( I18n.ERR_04128, toString(), value.getClass() );
             LOG.error( message );
             throw new NotImplementedException( message );
         }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/client/DefaultClientAttribute.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/client/DefaultClientAttribute.java?rev=912436&r1=912435&r2=912436&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/client/DefaultClientAttribute.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/client/DefaultClientAttribute.java Sun Feb 21 23:16:28 2010
@@ -30,6 +30,7 @@
 import javax.naming.NamingException;
 import javax.naming.directory.InvalidAttributeValueException;
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.entry.EntryAttribute;
 import org.apache.directory.shared.ldap.entry.Value;
 import org.apache.directory.shared.ldap.schema.SyntaxChecker;
@@ -114,7 +115,7 @@
                 }
                 else
                 {
-                    String message = "Unknown value type: " + val.getClass().getName();
+                    String message = I18n.err( I18n.ERR_04129, val.getClass().getName() );
                     LOG.error( message );
                     throw new IllegalStateException( message );
                 }
@@ -167,7 +168,7 @@
         }
         else
         {
-            String message = "The value is expected to be a byte[]";
+            String message = I18n.err( I18n.ERR_04130 );
             LOG.error( message );
             throw new InvalidAttributeValueException( message );
         }
@@ -196,7 +197,7 @@
         }
         else
         {
-            String message = "The value is expected to be a String";
+            String message = I18n.err( I18n.ERR_04131 );
             LOG.error( message );
             throw new InvalidAttributeValueException( message );
         }
@@ -244,8 +245,7 @@
         if ( this.id.length() == 0 )
         {
             this.id = null;
-            throw new IllegalArgumentException( "An ID cannnot be null, empty, or resolved to an emtpy" +
-                " value when trimmed" );
+            throw new IllegalArgumentException( I18n.err( I18n.ERR_04132 ) );
         }
     }
 
@@ -282,8 +282,7 @@
         if ( this.upId.length() == 0 )
         {
             this.upId = null;
-            throw new IllegalArgumentException( "An ID cannnot be null, empty, or resolved to an emtpy" +
-                " value when trimmed" );
+            throw new IllegalArgumentException( I18n.err( I18n.ERR_04132 ) );
         }
 
         this.id = StringTools.lowerCaseAscii( this.upId );

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/client/DefaultClientEntry.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/client/DefaultClientEntry.java?rev=912436&r1=912435&r2=912436&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/client/DefaultClientEntry.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/entry/client/DefaultClientEntry.java Sun Feb 21 23:16:28 2010
@@ -33,6 +33,7 @@
 
 import javax.naming.NamingException;
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.entry.AbstractEntry;
 import org.apache.directory.shared.ldap.entry.Entry;
 import org.apache.directory.shared.ldap.entry.EntryAttribute;
@@ -141,7 +142,7 @@
         // If empty, throw an error
         if ( ( id == null ) || ( id.length() == 0 ) ) 
         {
-            String message = "The attributeType ID should not be null or empty";
+            String message = I18n.err( I18n.ERR_04133 );
             LOG.error( message );
             throw new IllegalArgumentException( message );
         }
@@ -482,7 +483,7 @@
         }
         catch( IllegalArgumentException iea )
         {
-            LOG.error( "An exception has been raised while looking for attribute id {}''", alias );
+            LOG.error( I18n.err( I18n.ERR_04134, alias ) );
             return null;
         }
     }
@@ -583,7 +584,7 @@
     {
         if ( upIds == null )
         {
-            String message = "The AttributeType list should not be null";
+            String message = I18n.err( I18n.ERR_04135 );
             LOG.error( message );
             throw new IllegalArgumentException( message );
         }
@@ -597,7 +598,7 @@
             
             if ( id == null )
             {
-                String message = "The AttributeType list should not contain null values";
+                String message = I18n.err( I18n.ERR_04136 );
                 LOG.error( message );
                 throw new IllegalArgumentException( message );
             }
@@ -707,7 +708,7 @@
             }
             else
             {
-                String message = "The attribute '" + attribute + "' does not exist in the entry";
+                String message = I18n.err( I18n.ERR_04137, attribute );
                 LOG.warn( message );
                 continue;
             }
@@ -785,7 +786,7 @@
         }
         catch ( IllegalArgumentException iae )
         {
-            LOG.error( "The removal of values for the missing '{}' attribute is not possible", upId );
+            LOG.error( I18n.err( I18n.ERR_04138, upId ) );
             return false;
         }
     }
@@ -852,7 +853,7 @@
         }
         catch ( IllegalArgumentException iae )
         {
-            LOG.error( "The removal of values for the missing '{}' attribute is not possible", upId );
+            LOG.error( I18n.err( I18n.ERR_04138, upId ) );
             return false;
         }
     }
@@ -919,7 +920,7 @@
         }
         catch ( IllegalArgumentException iae )
         {
-            LOG.error( "The removal of values for the missing '{}' attribute is not possible", upId );
+            LOG.error( I18n.err( I18n.ERR_04138, upId ) );
             return false;
         }
     }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapAuthenticationNotSupportedException.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapAuthenticationNotSupportedException.java?rev=912436&r1=912435&r2=912436&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapAuthenticationNotSupportedException.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapAuthenticationNotSupportedException.java Sun Feb 21 23:16:28 2010
@@ -22,6 +22,7 @@
 
 import javax.naming.AuthenticationNotSupportedException;
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 
 
@@ -121,8 +122,7 @@
                 break;
                 
             default:
-                throw new IllegalArgumentException( "Unexceptable result code " + "for this exception type: "
-                    + resultCode );
+                throw new IllegalArgumentException( I18n.err( I18n.ERR_04140, resultCode ) );
         }
     }
 }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapInvalidAttributeValueException.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapInvalidAttributeValueException.java?rev=912436&r1=912435&r2=912436&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapInvalidAttributeValueException.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapInvalidAttributeValueException.java Sun Feb 21 23:16:28 2010
@@ -22,6 +22,7 @@
 
 import javax.naming.directory.InvalidAttributeValueException;
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 
 
@@ -65,7 +66,7 @@
                 
             default:
 
-                throw new IllegalArgumentException( resultCode + " is not an acceptable result code." );
+                throw new IllegalArgumentException( I18n.err( I18n.ERR_04141, resultCode ) );
         }
 
         this.resultCode = resultCode;

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapOperationNotSupportedException.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapOperationNotSupportedException.java?rev=912436&r1=912435&r2=912436&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapOperationNotSupportedException.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapOperationNotSupportedException.java Sun Feb 21 23:16:28 2010
@@ -22,6 +22,7 @@
 
 import javax.naming.OperationNotSupportedException;
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 
 
@@ -58,8 +59,7 @@
         if ( ! resultCode.equals( ResultCodeEnum.UNWILLING_TO_PERFORM ) && 
             ! resultCode.equals( ResultCodeEnum.UNAVAILABLE_CRITICAL_EXTENSION ) )
         {
-            throw new IllegalArgumentException( "Only UNWILLING_TO_PERFORM and UNAVAILABLE_CRITICAL_EXTENSION "
-                + "result codes are allowed to be used with this exception" );
+            throw new IllegalArgumentException( I18n.err( I18n.ERR_04142 ) );
         }
     }
     

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapSchemaViolationException.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapSchemaViolationException.java?rev=912436&r1=912435&r2=912436&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapSchemaViolationException.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapSchemaViolationException.java Sun Feb 21 23:16:28 2010
@@ -22,6 +22,7 @@
 
 import javax.naming.directory.SchemaViolationException;
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 
 
@@ -67,7 +68,7 @@
 
             default:
 
-                throw new IllegalArgumentException( resultCode + " is not an acceptable result code." );
+                throw new IllegalArgumentException( I18n.err( I18n.ERR_04141, resultCode ) );
         }
 
         this.resultCode = resultCode;

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapServiceUnavailableException.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapServiceUnavailableException.java?rev=912436&r1=912435&r2=912436&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapServiceUnavailableException.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/exception/LdapServiceUnavailableException.java Sun Feb 21 23:16:28 2010
@@ -22,6 +22,7 @@
 
 import javax.naming.ServiceUnavailableException;
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 
 
@@ -91,7 +92,7 @@
     {
         if ( !ResultCodeEnum.getServiceCodes().contains( result ) )
         {
-            String msg = "Only the following LDAP result codes can be used: " + ResultCodeEnum.getSearchCodes();
+            String msg = I18n.err( I18n.ERR_04143, ResultCodeEnum.getSearchCodes() );
             throw new IllegalArgumentException( msg );
         }
     }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/AbstractExprNode.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/AbstractExprNode.java?rev=912436&r1=912435&r2=912436&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/AbstractExprNode.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/AbstractExprNode.java Sun Feb 21 23:16:28 2010
@@ -23,6 +23,7 @@
 import java.util.HashMap;
 import java.util.Map;
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.entry.Value;
 import org.apache.directory.shared.ldap.entry.client.ClientBinaryValue;
 import org.apache.directory.shared.ldap.entry.client.ClientStringValue;
@@ -326,7 +327,7 @@
      */
     public StringBuilder printRefinementToBuffer( StringBuilder buf )
     {
-        throw new UnsupportedOperationException( "ScopeNode can't be part of a refinement" );
+        throw new UnsupportedOperationException( I18n.err( I18n.ERR_04144 ) );
     }
     
     

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/AssertionNode.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/AssertionNode.java?rev=912436&r1=912435&r2=912436&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/AssertionNode.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/AssertionNode.java Sun Feb 21 23:16:28 2010
@@ -19,6 +19,8 @@
  */
 package org.apache.directory.shared.ldap.filter;
 
+import org.apache.directory.shared.i18n.I18n;
+
 
 /**
  * Node used for the application of arbitrary predicates on return candidates.
@@ -121,7 +123,7 @@
      */
     public StringBuilder printRefinementToBuffer( StringBuilder buf ) throws UnsupportedOperationException
     {
-        throw new UnsupportedOperationException( "AssertionNode can't be part of a refinement" );
+        throw new UnsupportedOperationException( I18n.err( I18n.ERR_04145 ) );
     }
 
 

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/FilterParser.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/FilterParser.java?rev=912436&r1=912435&r2=912436&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/FilterParser.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/FilterParser.java Sun Feb 21 23:16:28 2010
@@ -22,6 +22,7 @@
 
 import java.text.ParseException;
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.entry.Value;
 import org.apache.directory.shared.ldap.entry.client.ClientBinaryValue;
 import org.apache.directory.shared.ldap.util.AttributeUtils;
@@ -103,13 +104,13 @@
                     }
                     else
                     {
-                        throw new ParseException( "AssertionValue expected", pos.start );
+                        throw new ParseException( I18n.err( I18n.ERR_04146 ), pos.start );
                     }
                 }
             }
             else
             {
-                throw new ParseException( "Expected MatchingRule or assertionValue", pos.start );
+                throw new ParseException( I18n.err( I18n.ERR_04147 ), pos.start );
             }
         }
         else
@@ -138,7 +139,7 @@
                 {
                     if ( oidRequested )
                     {
-                        throw new ParseException( "MatchingRule expected", pos.start );
+                        throw new ParseException( I18n.err( I18n.ERR_04148 ), pos.start );
                     }
 
                     pos.start++;
@@ -165,13 +166,13 @@
                     }
                     else
                     {
-                        throw new ParseException( "AssertionValue expected", pos.start );
+                        throw new ParseException( I18n.err( I18n.ERR_04146 ), pos.start );
                     }
                 }
             }
             else
             {
-                throw new ParseException( "Expected MatchingRule or assertionValue", pos.start );
+                throw new ParseException( I18n.err( I18n.ERR_04147 ), pos.start );
             }
         }
     }
@@ -238,7 +239,7 @@
                 }
                 else
                 {
-                    throw new ParseException( "Not a valid escaped value", pos.start );
+                    throw new ParseException( I18n.err( I18n.ERR_04149 ), pos.start );
                 }
 
                 // second hex
@@ -249,7 +250,7 @@
                 }
                 else
                 {
-                    throw new ParseException( "Not a valid escaped value", pos.start );
+                    throw new ParseException( I18n.err( I18n.ERR_04149 ), pos.start );
                 }
             }
             else
@@ -335,14 +336,14 @@
                 else
                 {
                     // This is an error
-                    throw new ParseException( "Bad substring", pos.start );
+                    throw new ParseException( I18n.err( I18n.ERR_04150 ), pos.start );
                 }
             }
         }
         else
         {
             // This is an error
-            throw new ParseException( "Bad substring", pos.start );
+            throw new ParseException( I18n.err( I18n.ERR_04150 ), pos.start );
         }
     }
 
@@ -434,7 +435,7 @@
 
         if ( c == '\0' )
         {
-            throw new ParseException( "Bad char", pos.start );
+            throw new ParseException( I18n.err( I18n.ERR_04151 ), pos.start );
         }
 
         if ( c == ':' )
@@ -464,7 +465,7 @@
                     // Check that we have a '='
                     if ( !StringTools.isCharASCII( filter, pos.start, '=' ) )
                     {
-                        throw new ParseException( "Expecting a '=' ", pos.start );
+                        throw new ParseException( I18n.err( I18n.ERR_04152 ), pos.start );
                     }
 
                     pos.start++;
@@ -480,7 +481,7 @@
                     // Check that we have a '='
                     if ( !StringTools.isCharASCII( filter, pos.start, '=' ) )
                     {
-                        throw new ParseException( "Expecting a '=' ", pos.start );
+                        throw new ParseException( I18n.err( I18n.ERR_04152 ), pos.start );
                     }
 
                     pos.start++;
@@ -496,7 +497,7 @@
                     // Check that we have a '='
                     if ( !StringTools.isCharASCII( filter, pos.start, '=' ) )
                     {
-                        throw new ParseException( "Expecting a '=' ", pos.start );
+                        throw new ParseException( I18n.err( I18n.ERR_04152 ), pos.start );
                     }
 
                     pos.start++;
@@ -512,7 +513,7 @@
 
                 default:
                     // This is an error
-                    throw new ParseException( "An item is expected", pos.start );
+                    throw new ParseException( I18n.err( I18n.ERR_04153 ), pos.start );
             }
         }
     }
@@ -569,7 +570,7 @@
 
         if ( pos.start == pos.length )
         {
-            throw new ParseException( "Empty filterComp", pos.start );
+            throw new ParseException( I18n.err( I18n.ERR_04154 ), pos.start );
         }
 
         char c = StringTools.charAt( filter, pos.start );
@@ -620,7 +621,7 @@
             // No more node, get out
             if ( ( pos.start == 0 ) && ( pos.length != 0 ) )
             {
-                throw new ParseException( "No '(' at the begining of the filter", 0 );
+                throw new ParseException( I18n.err( I18n.ERR_04155 ), 0 );
             }
             else
             {
@@ -635,13 +636,13 @@
 
         if ( node == null )
         {
-            throw new ParseException( "Bad filter", pos.start );
+            throw new ParseException( I18n.err( I18n.ERR_04156 ), pos.start );
         }
 
         // Check that we have a right ')'
         if ( !StringTools.isCharASCII( filter, pos.start, ')' ) )
         {
-            throw new ParseException( "The filter has no right parenthese", pos.start );
+            throw new ParseException( I18n.err( I18n.ERR_04157 ), pos.start );
         }
 
         pos.start++;
@@ -658,7 +659,7 @@
         // The filter must not be null. This is a defensive test
         if ( StringTools.isEmpty( filter ) )
         {
-            throw new ParseException( "Empty filter", 0 );
+            throw new ParseException( I18n.err( I18n.ERR_04158 ), 0 );
         }
 
         Position pos = new Position();

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/NotNode.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/NotNode.java?rev=912436&r1=912435&r2=912436&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/NotNode.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/NotNode.java Sun Feb 21 23:16:28 2010
@@ -23,6 +23,8 @@
 
 import java.util.List;
 
+import org.apache.directory.shared.i18n.I18n;
+
 /**
  * Node representing an Not connector in a filter operation
  * 
@@ -92,7 +94,7 @@
     {
         if ( ( children != null ) && ( children.size() >= 1 ) )
         {
-            throw new IllegalStateException( "Cannot add more than one element to a negation node." );
+            throw new IllegalStateException( I18n.err( I18n.ERR_04159 ) );
         }
         
         children.add( node );
@@ -108,7 +110,7 @@
     {
         if ( children.size() >= 1 )
         {
-            throw new IllegalStateException( "Cannot add more than one element to a negation node." );            
+            throw new IllegalStateException( I18n.err( I18n.ERR_04159 ) );            
         }
         
         children.add( node );
@@ -124,7 +126,7 @@
     {
         if ( ( childList != null ) && ( childList.size() > 1 ) )
         {
-            throw new IllegalStateException( "Cannot add more than one element to a negation node." );            
+            throw new IllegalStateException( I18n.err( I18n.ERR_04159 ) );            
         }
 
         children = childList;

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/SearchScope.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/SearchScope.java?rev=912436&r1=912435&r2=912436&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/SearchScope.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/SearchScope.java Sun Feb 21 23:16:28 2010
@@ -21,6 +21,8 @@
 
 import javax.naming.directory.SearchControls;
 
+import org.apache.directory.shared.i18n.I18n;
+
 /**
  * A search scope enumerated type.
  *
@@ -124,7 +126,7 @@
             case( SearchControls.SUBTREE_SCOPE ):
                 return SUBTREE;
             default:
-                throw new IllegalArgumentException( "Unknown JNDI scope constant value: " + jndiScope );
+                throw new IllegalArgumentException( I18n.err( I18n.ERR_04160, jndiScope ) );
         }
     }
 
@@ -152,7 +154,7 @@
         }
         else
         {
-            throw new IllegalArgumentException( "Unknown LDAP URL scope value: " + ldapUrlValue );
+            throw new IllegalArgumentException( I18n.err( I18n.ERR_04161, ldapUrlValue ) );
         }
     }
 

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/SimpleNode.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/SimpleNode.java?rev=912436&r1=912435&r2=912436&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/SimpleNode.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/filter/SimpleNode.java Sun Feb 21 23:16:28 2010
@@ -20,6 +20,7 @@
 package org.apache.directory.shared.ldap.filter;
 
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.constants.SchemaConstants;
 import org.apache.directory.shared.ldap.entry.Value;
 
@@ -134,7 +135,7 @@
     {
         if ( getAttribute() == null || !SchemaConstants.OBJECT_CLASS_AT.equalsIgnoreCase( getAttribute() ) )
         {
-            throw new UnsupportedOperationException( "Invalid attribute " + getAttribute() + " for a refinement" );
+            throw new UnsupportedOperationException( I18n.err( I18n.ERR_04162, getAttribute() ) );
         }
 
         buf.append( "item: " ).append( value );

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/AbandonRequestImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/AbandonRequestImpl.java?rev=912436&r1=912435&r2=912436&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/AbandonRequestImpl.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/AbandonRequestImpl.java Sun Feb 21 23:16:28 2010
@@ -19,6 +19,7 @@
  */
 package org.apache.directory.shared.ldap.message;
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.message.internal.InternalAbandonRequest;
 import org.apache.directory.shared.ldap.message.internal.InternalAbstractRequest;
 
@@ -129,7 +130,6 @@
      */
     public void abandon()
     {
-        throw new UnsupportedOperationException(
-            "RFC 2251 [Section 4.11]: Abandon, Bind, Unbind, and StartTLS operations cannot be abandoned. " );
+        throw new UnsupportedOperationException( I18n.err( I18n.ERR_04185 ) );
     }
 }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/AliasDerefMode.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/AliasDerefMode.java?rev=912436&r1=912435&r2=912436&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/AliasDerefMode.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/AliasDerefMode.java Sun Feb 21 23:16:28 2010
@@ -22,6 +22,7 @@
 
 import java.util.Map;
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.constants.JndiPropertyConstants;
 
 
@@ -115,9 +116,8 @@
             }
             else
             {
-                throw new IllegalArgumentException( "Unrecogniced value '" + property + "' for "
-                        + JndiPropertyConstants.JNDI_LDAP_DAP_DEREF_ALIASES + " JNDI property.\n"
-                        + "Expected a value of either always, never, searching, or finding." );
+                throw new IllegalArgumentException( I18n.err( I18n.ERR_04186, property,
+                		JndiPropertyConstants.JNDI_LDAP_DAP_DEREF_ALIASES ) );
             }
         }
     }
@@ -167,7 +167,7 @@
                 return false;
             
             default:
-                throw new IllegalArgumentException( "Class has bug: check for valid enumeration values" );
+                throw new IllegalArgumentException( I18n.err( I18n.ERR_04187 ) );
         }
     }
 

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/BindRequestImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/BindRequestImpl.java?rev=912436&r1=912435&r2=912436&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/BindRequestImpl.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/BindRequestImpl.java Sun Feb 21 23:16:28 2010
@@ -22,6 +22,7 @@
 
 import java.util.Arrays;
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.codec.MessageTypeEnum;
 import org.apache.directory.shared.ldap.message.internal.InternalBindRequest;
 import org.apache.directory.shared.ldap.message.internal.InternalBindResponse;
@@ -442,7 +443,6 @@
      */
     public void abandon()
     {
-        throw new UnsupportedOperationException(
-            "RFC 2251 [Section 4.11]: Abandon, Bind, Unbind, and StartTLS operations cannot be abandoned. " );
+        throw new UnsupportedOperationException( I18n.err( I18n.ERR_04185 ) );
     }
 }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/UnbindRequestImpl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/UnbindRequestImpl.java?rev=912436&r1=912435&r2=912436&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/UnbindRequestImpl.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/UnbindRequestImpl.java Sun Feb 21 23:16:28 2010
@@ -19,6 +19,7 @@
  */
 package org.apache.directory.shared.ldap.message;
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.message.internal.InternalAbstractRequest;
 import org.apache.directory.shared.ldap.message.internal.InternalUnbindRequest;
 
@@ -53,7 +54,6 @@
      */
     public void abandon()
     {
-        throw new UnsupportedOperationException(
-            "RFC 2251 [Section 4.11]: Abandon, Bind, Unbind, and StartTLS operations cannot be abandoned. " );
+        throw new UnsupportedOperationException( I18n.err( I18n.ERR_04185 ) );
     }
 }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/control/replication/SyncStateTypeEnum.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/control/replication/SyncStateTypeEnum.java?rev=912436&r1=912435&r2=912436&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/control/replication/SyncStateTypeEnum.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/control/replication/SyncStateTypeEnum.java Sun Feb 21 23:16:28 2010
@@ -19,6 +19,8 @@
  */
 package org.apache.directory.shared.ldap.message.control.replication;
 
+import org.apache.directory.shared.i18n.I18n;
+
 
 /**
  * 
@@ -88,7 +90,7 @@
             return DELETE;
         }
 
-        throw new IllegalArgumentException( "Unknown SyncStateTypeEnum value " + value );
+        throw new IllegalArgumentException( I18n.err( I18n.ERR_04163, value ) );
     }
 
 }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CancelRequest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CancelRequest.java?rev=912436&r1=912435&r2=912436&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CancelRequest.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CancelRequest.java Sun Feb 21 23:16:28 2010
@@ -25,6 +25,7 @@
 
 import org.apache.directory.shared.asn1.codec.DecoderException;
 import org.apache.directory.shared.asn1.codec.EncoderException;
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.codec.extended.operations.cancel.Cancel;
 import org.apache.directory.shared.ldap.codec.extended.operations.cancel.CancelDecoder;
 import org.apache.directory.shared.ldap.message.ExtendedRequestImpl;
@@ -104,7 +105,7 @@
             }
             catch ( EncoderException e )
             {
-                LOG.error( "Failed to encode payload GracefulShutdownRequest", e );
+                LOG.error( I18n.err( I18n.ERR_04164 ), e );
                 throw new RuntimeException( e );
             }
         }
@@ -137,7 +138,7 @@
         }
         catch ( DecoderException e )
         {
-            LOG.error( "failed to decode payload", e );
+            LOG.error( I18n.err( I18n.ERR_04165 ), e );
             throw new RuntimeException( e );
         }
     }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CancelResponse.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CancelResponse.java?rev=912436&r1=912435&r2=912436&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CancelResponse.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CancelResponse.java Sun Feb 21 23:16:28 2010
@@ -19,6 +19,7 @@
  */
 package org.apache.directory.shared.ldap.message.extended;
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.message.ExtendedResponseImpl;
 import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 import org.apache.directory.shared.ldap.util.StringTools;
@@ -53,8 +54,8 @@
                 break;
             
             default:
-                throw new IllegalArgumentException( "The result code can only be one of: " + ResultCodeEnum.SUCCESS
-                    + ", " + ResultCodeEnum.OPERATIONS_ERROR + ", " + ResultCodeEnum.INSUFFICIENT_ACCESS_RIGHTS );
+                throw new IllegalArgumentException( I18n.err( I18n.ERR_04166, ResultCodeEnum.SUCCESS,
+                		ResultCodeEnum.OPERATIONS_ERROR, ResultCodeEnum.INSUFFICIENT_ACCESS_RIGHTS ) );
         }
         
         super.getLdapResult().setMatchedDn( null );

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CertGenerationRequest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CertGenerationRequest.java?rev=912436&r1=912435&r2=912436&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CertGenerationRequest.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CertGenerationRequest.java Sun Feb 21 23:16:28 2010
@@ -25,6 +25,7 @@
 
 import org.apache.directory.shared.asn1.codec.DecoderException;
 import org.apache.directory.shared.asn1.codec.EncoderException;
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.codec.extended.operations.certGeneration.CertGenerationDecoder;
 import org.apache.directory.shared.ldap.codec.extended.operations.certGeneration.CertGenerationObject;
 import org.apache.directory.shared.ldap.message.ExtendedRequestImpl;
@@ -99,7 +100,7 @@
         }
         catch ( DecoderException e )
         {
-            LOG.error( "failed to decode payload", e );
+            LOG.error( I18n.err( I18n.ERR_04165 ), e );
             throw new RuntimeException( e );
         }
     }
@@ -128,7 +129,7 @@
             }
             catch ( EncoderException e )
             {
-                LOG.error( "Failed to encode payload CertGenerateRequest", e );
+                LOG.error( I18n.err( I18n.ERR_04167 ), e );
                 throw new RuntimeException( e );
             }
         }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CertGenerationResponse.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CertGenerationResponse.java?rev=912436&r1=912435&r2=912436&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CertGenerationResponse.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/CertGenerationResponse.java Sun Feb 21 23:16:28 2010
@@ -19,6 +19,7 @@
  */
 package org.apache.directory.shared.ldap.message.extended;
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.message.ExtendedResponseImpl;
 import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 import org.apache.directory.shared.ldap.util.StringTools;
@@ -49,8 +50,8 @@
                 break;
             
             default:
-                throw new IllegalArgumentException( "The result code can only be one of: " + ResultCodeEnum.SUCCESS
-                    + ", " + ResultCodeEnum.OPERATIONS_ERROR + ", " + ResultCodeEnum.INSUFFICIENT_ACCESS_RIGHTS );
+                throw new IllegalArgumentException( I18n.err( I18n.ERR_04166, ResultCodeEnum.SUCCESS,
+                		ResultCodeEnum.OPERATIONS_ERROR, ResultCodeEnum.INSUFFICIENT_ACCESS_RIGHTS ) );
         }
         
         super.getLdapResult().setMatchedDn( null );
@@ -114,7 +115,7 @@
      */
     public void setResponseName( String oid )
     {
-        throw new UnsupportedOperationException( "the OID is fixed: " + EXTENSION_OID );
+        throw new UnsupportedOperationException( I18n.err( I18n.ERR_04168, EXTENSION_OID ) );
     }
 
 

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/GracefulDisconnect.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/GracefulDisconnect.java?rev=912436&r1=912435&r2=912436&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/GracefulDisconnect.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/GracefulDisconnect.java Sun Feb 21 23:16:28 2010
@@ -27,6 +27,7 @@
 import org.apache.directory.shared.asn1.ber.Asn1Decoder;
 import org.apache.directory.shared.asn1.codec.DecoderException;
 import org.apache.directory.shared.asn1.codec.EncoderException;
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.codec.extended.operations.gracefulDisconnect.GracefulDisconnectContainer;
 import org.apache.directory.shared.ldap.codec.extended.operations.gracefulDisconnect.GracefulDisconnectDecoder;
 import org.apache.directory.shared.ldap.codec.util.LdapURLEncodingException;
@@ -121,7 +122,7 @@
         }
         catch ( DecoderException e )
         {
-            log.error( "Failed to decode response value", e );
+            log.error( I18n.err( I18n.ERR_04169 ), e );
             throw e;
         }
     }
@@ -144,7 +145,7 @@
             }
             catch ( LdapURLEncodingException e )
             {
-                log.error( "Failed while parsing LDAP url " + urlstr, e );
+                log.error( I18n.err( I18n.ERR_04170, urlstr ), e );
                 continue;
             }
             codec.addReplicatedContexts( url );
@@ -156,7 +157,7 @@
         }
         catch ( EncoderException e )
         {
-            log.error( "Failed to encode message value.", e );
+            log.error( I18n.err( I18n.ERR_04171 ), e );
             throw new RuntimeException( e );
         }
     }
@@ -201,7 +202,7 @@
         }
         catch ( DecoderException e )
         {
-            log.error( "Failed while decoding response", e );
+            log.error( I18n.err( I18n.ERR_04172 ), e );
         }
 
         org.apache.directory.shared.ldap.codec.extended.operations.gracefulDisconnect.GracefulDisconnect codec = container
@@ -247,7 +248,7 @@
      */
     public void setResponseName( String oid )
     {
-        throw new UnsupportedOperationException( "the OID is fixed: " + EXTENSION_OID );
+        throw new UnsupportedOperationException( I18n.err( I18n.ERR_04168, EXTENSION_OID ) );
     }
 
 

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/GracefulShutdownRequest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/GracefulShutdownRequest.java?rev=912436&r1=912435&r2=912436&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/GracefulShutdownRequest.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/GracefulShutdownRequest.java Sun Feb 21 23:16:28 2010
@@ -25,6 +25,7 @@
 
 import org.apache.directory.shared.asn1.codec.DecoderException;
 import org.apache.directory.shared.asn1.codec.EncoderException;
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.codec.extended.operations.gracefulShutdown.GracefulShutdown;
 import org.apache.directory.shared.ldap.codec.extended.operations.gracefulShutdown.GracefulShutdownDecoder;
 import org.apache.directory.shared.ldap.message.ExtendedRequestImpl;
@@ -106,7 +107,7 @@
         }
         catch ( DecoderException e )
         {
-            log.error( "failed to decode payload", e );
+            log.error( I18n.err( I18n.ERR_04165 ), e );
             throw new RuntimeException( e );
         }
     }
@@ -135,7 +136,7 @@
             }
             catch ( EncoderException e )
             {
-                log.error( "Failed to encode payload GracefulShutdownRequest", e );
+                log.error( I18n.err( I18n.ERR_04164 ), e );
                 throw new RuntimeException( e );
             }
         }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/GracefulShutdownResponse.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/GracefulShutdownResponse.java?rev=912436&r1=912435&r2=912436&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/GracefulShutdownResponse.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/GracefulShutdownResponse.java Sun Feb 21 23:16:28 2010
@@ -20,6 +20,7 @@
 package org.apache.directory.shared.ldap.message.extended;
 
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.message.ExtendedResponseImpl;
 import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 
@@ -57,8 +58,8 @@
                 break;
             
             default:
-                throw new IllegalArgumentException( "The result code can only be one of: " + ResultCodeEnum.SUCCESS
-                    + ", " + ResultCodeEnum.OPERATIONS_ERROR + ", " + ResultCodeEnum.INSUFFICIENT_ACCESS_RIGHTS );
+                throw new IllegalArgumentException( I18n.err( I18n.ERR_04166, ResultCodeEnum.SUCCESS,
+                		ResultCodeEnum.OPERATIONS_ERROR, ResultCodeEnum.INSUFFICIENT_ACCESS_RIGHTS ) );
         }
         
         super.getLdapResult().setMatchedDn( null );
@@ -122,7 +123,7 @@
      */
     public void setResponseName( String oid )
     {
-        throw new UnsupportedOperationException( "the OID is fixed: " + EXTENSION_OID );
+        throw new UnsupportedOperationException( I18n.err( I18n.ERR_04168, EXTENSION_OID ) );
     }
 
 

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/LaunchDiagnosticUiResponse.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/LaunchDiagnosticUiResponse.java?rev=912436&r1=912435&r2=912436&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/LaunchDiagnosticUiResponse.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/LaunchDiagnosticUiResponse.java Sun Feb 21 23:16:28 2010
@@ -20,6 +20,7 @@
 package org.apache.directory.shared.ldap.message.extended;
 
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.message.ExtendedResponseImpl;
 import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 
@@ -56,8 +57,8 @@
                 break;
             
             default:
-                throw new IllegalArgumentException( "The result code can only be one of: " + ResultCodeEnum.SUCCESS
-                    + ", " + ResultCodeEnum.OPERATIONS_ERROR + ", " + ResultCodeEnum.INSUFFICIENT_ACCESS_RIGHTS );
+                throw new IllegalArgumentException( I18n.err( I18n.ERR_04166, ResultCodeEnum.SUCCESS,
+                    ResultCodeEnum.OPERATIONS_ERROR, ResultCodeEnum.INSUFFICIENT_ACCESS_RIGHTS ) );
         }
         
         super.getLdapResult().setMatchedDn( null );
@@ -96,7 +97,7 @@
      */
     public void setResponse( byte[] value )
     {
-        throw new UnsupportedOperationException( "the response is hardcoded as zero length array" );
+        throw new UnsupportedOperationException( I18n.err( I18n.ERR_04173 ) );
     }
 
 
@@ -121,7 +122,7 @@
      */
     public void setResponseName( String oid )
     {
-        throw new UnsupportedOperationException( "the OID is fixed: " + EXTENSION_OID );
+        throw new UnsupportedOperationException( I18n.err( I18n.ERR_04168, EXTENSION_OID ) );
     }
 
 

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/NoticeOfDisconnect.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/NoticeOfDisconnect.java?rev=912436&r1=912435&r2=912436&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/NoticeOfDisconnect.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/NoticeOfDisconnect.java Sun Feb 21 23:16:28 2010
@@ -20,6 +20,7 @@
 package org.apache.directory.shared.ldap.message.extended;
 
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.message.ExtendedResponseImpl;
 import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 
@@ -132,8 +133,8 @@
                 break;
                 
             default:
-                throw new IllegalArgumentException( "The result code can only be one of: " + ResultCodeEnum.UNAVAILABLE
-                    + ", " + ResultCodeEnum.PROTOCOL_ERROR + ", " + ResultCodeEnum.STRONG_AUTH_REQUIRED );
+                throw new IllegalArgumentException( I18n.err( I18n.ERR_04166, ResultCodeEnum.UNAVAILABLE,
+                    ResultCodeEnum.PROTOCOL_ERROR, ResultCodeEnum.STRONG_AUTH_REQUIRED ) );
         }
         
         super.getLdapResult().setErrorMessage( rcode.toString() + ": The server will disconnect!" );
@@ -166,7 +167,7 @@
      */
     public void setResponse( byte[] value )
     {
-        throw new UnsupportedOperationException( "the response is hardcoded as zero length array" );
+        throw new UnsupportedOperationException( I18n.err( I18n.ERR_04173 ) );
     }
 
 
@@ -191,7 +192,7 @@
      */
     public void setResponseName( String oid )
     {
-        throw new UnsupportedOperationException( "the OID is fixed: " + EXTENSION_OID );
+        throw new UnsupportedOperationException( I18n.err( I18n.ERR_04168, EXTENSION_OID ) );
     }
 
 

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/StoredProcedureRequest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/StoredProcedureRequest.java?rev=912436&r1=912435&r2=912436&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/StoredProcedureRequest.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/message/extended/StoredProcedureRequest.java Sun Feb 21 23:16:28 2010
@@ -25,6 +25,7 @@
 import javax.naming.ldap.ExtendedResponse;
 
 import org.apache.directory.shared.asn1.codec.EncoderException;
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.NotImplementedException;
 import org.apache.directory.shared.ldap.codec.extended.operations.storedProcedure.StoredProcedure;
 import org.apache.directory.shared.ldap.codec.extended.operations.storedProcedure.StoredProcedureContainer;
@@ -88,7 +89,7 @@
         }
         catch ( Exception e )
         {
-            log.error( "failed to decode payload", e );
+            log.error( I18n.err( I18n.ERR_04165 ), e );
             throw new RuntimeException( e );
         }
     }
@@ -120,7 +121,7 @@
             }
             catch ( EncoderException e )
             {
-                log.error( "Failed to encode payload StoredProcedureRequest", e );
+                log.error( I18n.err( I18n.ERR_04174 ), e );
                 throw new RuntimeException( e );
             }
         }
@@ -190,7 +191,7 @@
     
     public Class<?> getJavaParameterType( int index )
     {
-        throw new NotImplementedException( "class loading of procedure type not implemented" );
+        throw new NotImplementedException( I18n.err( I18n.ERR_04175 ) );
     }
     
     
@@ -207,7 +208,7 @@
     
     public Object getJavaParameterValue( int index )
     {
-        throw new NotImplementedException( "conversion of value to java type not implemented" );
+        throw new NotImplementedException( I18n.err( I18n.ERR_04176 ) );
     }
     
     



Mime
View raw message