PageRenderTime 3ms CodeModel.GetById 6ms app.highlight 29ms RepoModel.GetById 1ms app.codeStats 1ms

/controller/src/main/java/org/jboss/as/controller/ControllerMessages.java

https://bitbucket.org/asirnayeef22/jboss-as
Java | 2581 lines | 563 code | 278 blank | 1740 comment | 0 complexity | ccdaba947bf12cfc63fd414f9d543e80 MD5 | raw file

Large files files are truncated, but you can click here to view the full file

   1/*
   2 * JBoss, Home of Professional Open Source.
   3 * Copyright 2011, Red Hat, Inc., and individual contributors
   4 * as indicated by the @author tags. See the copyright.txt file in the
   5 * distribution for a full listing of individual contributors.
   6 *
   7 * This is free software; you can redistribute it and/or modify it
   8 * under the terms of the GNU Lesser General Public License as
   9 * published by the Free Software Foundation; either version 2.1 of
  10 * the License, or (at your option) any later version.
  11 *
  12 * This software is distributed in the hope that it will be useful,
  13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15 * Lesser General Public License for more details.
  16 *
  17 * You should have received a copy of the GNU Lesser General Public
  18 * License along with this software; if not, write to the Free
  19 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  20 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  21 */
  22
  23package org.jboss.as.controller;
  24
  25import java.io.File;
  26import java.io.IOException;
  27import java.net.UnknownHostException;
  28import java.util.Collection;
  29import java.util.List;
  30import java.util.Set;
  31import java.util.concurrent.CancellationException;
  32
  33import javax.xml.namespace.QName;
  34import javax.xml.stream.Location;
  35import javax.xml.stream.XMLStreamException;
  36
  37import org.jboss.as.controller.descriptions.ModelDescriptionConstants;
  38import org.jboss.as.controller.interfaces.InterfaceCriteria;
  39import org.jboss.as.controller.parsing.Element;
  40import org.jboss.as.controller.persistence.ConfigurationPersistenceException;
  41import org.jboss.as.controller.registry.AttributeAccess.Storage;
  42import org.jboss.as.controller.registry.OperationEntry.Flag;
  43import org.jboss.as.protocol.mgmt.RequestProcessingException;
  44import org.jboss.dmr.ModelNode;
  45import org.jboss.dmr.ModelType;
  46import org.jboss.logging.Messages;
  47import org.jboss.logging.annotations.Cause;
  48import org.jboss.logging.annotations.Message;
  49import org.jboss.logging.annotations.MessageBundle;
  50import org.jboss.logging.annotations.Param;
  51import org.jboss.modules.ModuleIdentifier;
  52import org.jboss.msc.service.ServiceName;
  53import org.jboss.msc.service.StartException;
  54
  55/**
  56 * This module is using message IDs in the ranges 14600-14899 and 13400-13499.
  57 * <p/>
  58 * This file is using the subsets 14630-14899 and 13450-13499 for non-logger messages.
  59 * <p/>
  60 * See <a href="http://community.jboss.org/docs/DOC-16810">http://community.jboss.org/docs/DOC-16810</a> for the full
  61 * list of currently reserved JBAS message id blocks.
  62 * <p/>
  63 * Date: 02.11.2011
  64 *
  65 * Reserved logging id ranges from: http://community.jboss.org/wiki/LoggingIds: 14600 - 14899
  66 *
  67 *
  68 * @author <a href="mailto:jperkins@redhat.com">James R. Perkins</a>
  69 */
  70@MessageBundle(projectCode = "JBAS")
  71public interface ControllerMessages {
  72
  73    /**
  74     * The messages
  75     */
  76    ControllerMessages MESSAGES = Messages.getBundle(ControllerMessages.class);
  77
  78    /**
  79     * Creates an exception indicating the {@code name} is already defined.
  80     *
  81     * @param name     the name that is already defined.
  82     * @param location the location of the error.
  83     *
  84     * @return a {@link XMLStreamException} for the error.
  85     */
  86    @Message(id = 14630, value = "%s already defined")
  87    XMLStreamException alreadyDefined(String name, @Param Location location);
  88
  89    /**
  90     * Creates an exception indicating the {@code value} has already been declared.
  91     *
  92     * @param name     the attribute name.
  93     * @param value    the value that has already been declared.
  94     * @param location the location of the error.
  95     *
  96     * @return a {@link XMLStreamException} for the error.
  97     */
  98    @Message(id = 14631, value = "%s %s already declared")
  99    XMLStreamException alreadyDeclared(String name, String value, @Param Location location);
 100
 101    /**
 102     * Creates an exception indicating the {@code value} has already been declared.
 103     *
 104     * @param name        the attribute name.
 105     * @param value       the value that has already been declared.
 106     * @param parentName  the name of the parent.
 107     * @param parentValue the parent value.
 108     * @param location    the location of the error.
 109     *
 110     * @return a {@link XMLStreamException} for the error.
 111     */
 112    @Message(id = 14632, value = "A %s %s already declared has already been declared in %s %s")
 113    XMLStreamException alreadyDeclared(String name, String value, String parentName, String parentValue, @Param Location location);
 114
 115    /**
 116     * Creates an exception indicating the {@code value} has already been declared.
 117     *
 118     * @param name1       the first attribute name.
 119     * @param name2       the second attribute name.
 120     * @param value       the value that has already been declared.
 121     * @param parentName  the name of the parent.
 122     * @param parentValue the parent value.
 123     * @param location    the location of the error.
 124     *
 125     * @return a {@link XMLStreamException} for the error.
 126     */
 127    @Message(id = 14633, value = "A %s or a %s %s already declared has already been declared in %s %s")
 128    XMLStreamException alreadyDeclared(String name1, String name2, String value, String parentName, String parentValue, @Param Location location);
 129
 130    /**
 131     * Creates an exception indicating the {@code type} with the {@code name} is already registered at the
 132     * {@code location}.
 133     *
 134     * @param type     the type.
 135     * @param name     the name.
 136     * @param location the location.
 137     *
 138     * @return an {@link IllegalArgumentException} for the error.
 139     */
 140    @Message(id = 14634, value = "An %s named '%s' is already registered at location '%s'")
 141    IllegalArgumentException alreadyRegistered(String type, String name, String location);
 142
 143    /**
 144     * Creates an exception indicating an ambiguous file name was found as there are multiple files ending in the
 145     * {@code suffix} were found in the directory.
 146     *
 147     * @param backupType the backup type.
 148     * @param searchDir  the search directory.
 149     * @param suffix     the file suffix.
 150     *
 151     * @return an {@link IllegalStateException} for the error.
 152     */
 153    @Message(id = 14635, value = "Ambiguous configuration file name '%s' as there are multiple files in %s that end in %s")
 154    IllegalStateException ambiguousConfigurationFiles(String backupType, File searchDir, String suffix);
 155
 156    /**
 157     * Creates an exception indicating an ambiguous name, represented by the {@code prefix} parameter, was found in
 158     * the directory, represented by the {@code dir} parameter.
 159     *
 160     * @param prefix the file prefix.
 161     * @param dir    the search directory.
 162     * @param files  the ambiguous files.
 163     *
 164     * @return an {@link IllegalArgumentException} for the error.
 165     */
 166    @Message(id = 14636, value = "Ambiguous name '%s' in %s: %s")
 167    IllegalArgumentException ambiguousName(String prefix, String dir, Collection<String> files);
 168
 169    /**
 170     * Creates an exception indicating a thread was interrupted waiting for a response for asynch operation.
 171     *
 172     * @return a {@link RequestProcessingException} for the error.
 173     */
 174    @Message(id = 14637, value = "Thread was interrupted waiting for a response for asynch operation")
 175    RequestProcessingException asynchOperationThreadInterrupted();
 176
 177    /**
 178     * Creates an exception indicating no asynch request with the batch id, represented by the {@code batchId}
 179     * parameter.
 180     *
 181     * @param batchId the batch id.
 182     *
 183     * @return a {@link RequestProcessingException} for the error.
 184     */
 185    @Message(id = 14638, value = "No asynch request with batch id %d")
 186    RequestProcessingException asynchRequestNotFound(int batchId);
 187
 188    /**
 189     * A message indicating the attribute, represented by the {@code attributeName} parameter, is not writable.
 190     *
 191     * @param attributeName the attribute name.
 192     *
 193     * @return the message.
 194     */
 195    @Message(id = 14639, value = "Attribute %s is not writable")
 196    String attributeNotWritable(String attributeName);
 197
 198    /**
 199     * A message indicating the attribute, represented by the {@code attributeName} parameter, is a registered child of
 200     * the resource.
 201     *
 202     * @param attributeName the name of the attribute.
 203     * @param resource      the resource the attribute is a child of.
 204     *
 205     * @return the message.
 206     */
 207    @Message(id = 14640, value = "'%s' is a registered child of resource (%s)")
 208    String attributeRegisteredOnResource(String attributeName, ModelNode resource);
 209
 210    /**
 211     * Creates an exception indicating the inability to determine a default name based on the local host name.
 212     *
 213     * @param cause the cause of the error.
 214     *
 215     * @return a {@link RuntimeException} for the error.
 216     */
 217    @Message(id = 14641, value = "Unable to determine a default name based on the local host name")
 218    RuntimeException cannotDetermineDefaultName(@Cause Throwable cause);
 219
 220    /**
 221     * Creates an exception indicating the file could not be created.
 222     *
 223     * @param path the path to the file.
 224     *
 225     * @return an {@link IllegalStateException} for the error.
 226     */
 227    @Message(id = 14642, value = "Could not create %s")
 228    IllegalStateException cannotCreate(String path);
 229
 230    /**
 231     * Creates an exception indicating the file could not be deleted.
 232     *
 233     * @param file the file to delete.
 234     *
 235     * @return an {@link IllegalStateException} for the error.
 236     */
 237    @Message(id = 14643, value = "Could not delete %s")
 238    IllegalStateException cannotDelete(File file);
 239
 240    /**
 241     * Creates an exception indicating a submodel cannot be registered with a {@code null} path.
 242     *
 243     * @return an {@link IllegalArgumentException} for the error.
 244     */
 245    @Message(id = 14644, value = "Cannot register submodels with a null PathElement")
 246    IllegalArgumentException cannotRegisterSubmodelWithNullPath();
 247
 248    /**
 249     * Creates an exception indicating a non-runtime-only submodel cannot be registered with a runtime-only parent.
 250     *
 251     * @return an {@link IllegalArgumentException} for the error.
 252     */
 253    @Message(id = 14645, value = "Cannot register non-runtime-only submodels with a runtime-only parent")
 254    IllegalArgumentException cannotRegisterSubmodel();
 255
 256    /**
 257     * Creates an exception indicating the inability to remove the {@code name}.
 258     *
 259     * @param name the name.
 260     *
 261     * @return an {@link OperationFailedRuntimeException} for the error.
 262     */
 263    @Message(id = 14646, value = "Cannot remove %s")
 264    OperationFailedRuntimeException cannotRemove(String name);
 265
 266    /**
 267     * Creates an exception indicating the file could not be renamed.
 268     *
 269     * @param fromPath the from file.
 270     * @param toPath   the to file.
 271     *
 272     * @return an {@link IllegalStateException} for the error.
 273     */
 274    @Message(id = 14647, value = "Could not rename %s to %s")
 275    IllegalStateException cannotRename(String fromPath, String toPath);
 276
 277    /**
 278     * Creates an exception indicating the inability to write the {@code name}.
 279     *
 280     * @param name the name.
 281     *
 282     * @return an {@link IllegalArgumentException} for the error.
 283     */
 284    @Message(id = 14648, value = "Cannot write to %s")
 285    IllegalArgumentException cannotWriteTo(String name);
 286
 287    /**
 288     * Creates an exception indicating a child, represented by the {@code childName} parameter, of the parent element,
 289     * represented by the {@code parentName} parameter, has already been declared.
 290     *
 291     * @param childName  the child element name.
 292     * @param parentName the parent element name.
 293     * @param location   the location of the error.
 294     *
 295     * @return a {@link XMLStreamException} for the error.
 296     */
 297    @Message(id = 14649, value = "Child %s of element %s already declared")
 298    XMLStreamException childAlreadyDeclared(String childName, String parentName, @Param Location location);
 299
 300    /**
 301     * Creates an exception indicating the canonical file for the boot file could not be found.
 302     *
 303     * @param cause the cause of the error.
 304     * @param file  the boot file.
 305     *
 306     * @return an {@link RuntimeException} for the error.
 307     */
 308    @Message(id = 14650, value = "Could not get canonical file for boot file: %s")
 309    RuntimeException canonicalBootFileNotFound(@Cause Throwable cause, File file);
 310
 311    /**
 312     * Creates an exception indicating the canonical file for the main file could not be found.
 313     *
 314     * @param cause the cause of the error.
 315     * @param file  the main file.
 316     *
 317     * @return an {@link IllegalStateException} for the error.
 318     */
 319    @Message(id = 14651, value = "Could not get canonical file for main file: %s")
 320    IllegalStateException canonicalMainFileNotFound(@Cause Throwable cause, File file);
 321
 322    /**
 323     * A message indicating the channel is closed.
 324     *
 325     * @return the message.
 326     */
 327    @Message(id = 14652, value = "Channel closed")
 328    String channelClosed();
 329
 330    /**
 331     * A message indicating the composite operation failed and was rolled back.
 332     *
 333     * @return the message.
 334     */
 335    @Message(id = 14653, value = "Composite operation failed and was rolled back. Steps that failed:")
 336    String compositeOperationFailed();
 337
 338    /**
 339     * A message indicating the composite operation was rolled back.
 340     *
 341     * @return the message.
 342     */
 343    @Message(id = 14654, value = "Composite operation was rolled back")
 344    String compositeOperationRolledBack();
 345
 346    /**
 347     * Creates an exception indicating a configuration file whose complete name is the same as the {@code backupType} is
 348     * not allowed.
 349     *
 350     * @param backupType the backup type.
 351     *
 352     * @return an {@link IllegalArgumentException} for the error.
 353     */
 354    @Message(id = 14655, value = "Configuration files whose complete name is %s are not allowed")
 355    IllegalArgumentException configurationFileNameNotAllowed(String backupType);
 356
 357    /**
 358     * Creates an exception indicating no configuration file ending in the {@code suffix} was found in the directory,
 359     * represented by the {@code dir} parameter.
 360     *
 361     * @param suffix the suffix.
 362     * @param dir    the search directory.
 363     *
 364     * @return an {@link IllegalStateException} for the error.
 365     */
 366    @Message(id = 14656, value = "No configuration file ending in %s found in %s")
 367    IllegalStateException configurationFileNotFound(String suffix, File dir);
 368
 369    /**
 370     * Creates an exception indicating the directory. represented by the {@code pathName} parameter, was not found.
 371     *
 372     * @param pathName the path name.
 373     *
 374     * @return an {@link IllegalArgumentException} for the error.
 375     */
 376    @Message(id = 14657, value = "No directory %s was found")
 377    IllegalArgumentException directoryNotFound(String pathName);
 378
 379    /**
 380     * Creates an exception indicating either the {@code remoteName} or the {@code localName} domain controller
 381     * configuration must be declared.
 382     *
 383     * @param remoteName the remote element name.
 384     * @param localName  the local element name.
 385     * @param location   the location of the error.
 386     *
 387     * @return a {@link XMLStreamException} for the error.
 388     */
 389    @Message(id = 14658, value = "Either a %s or %s domain controller configuration must be declared.")
 390    XMLStreamException domainControllerMustBeDeclared(String remoteName, String localName, @Param Location location);
 391
 392    /**
 393     * Creates an exception indicating an attribute, represented by the {@code name} parameter, has already been
 394     * declared.
 395     *
 396     * @param name     the attribute name.
 397     * @param location the location of the error.
 398     *
 399     * @return a {@link XMLStreamException} for the error.
 400     */
 401    @Message(id = 14659, value = "An attribute named '%s' has already been declared")
 402    XMLStreamException duplicateAttribute(String name, @Param Location location);
 403
 404    /**
 405     * Creates an exception indicating a duplicate declaration.
 406     *
 407     * @param name     the name of the duplicate entry.
 408     * @param location the location of the error.
 409     *
 410     * @return a {@link XMLStreamException} for the error.
 411     */
 412    @Message(id = 14660, value = "Duplicate %s declaration")
 413    XMLStreamException duplicateDeclaration(String name, @Param Location location);
 414
 415    /**
 416     * Creates an exception indicating a duplicate declaration.
 417     *
 418     * @param name     the name of the duplicate entry.
 419     * @param value    the duplicate entry.
 420     * @param location the location of the error.
 421     *
 422     * @return a {@link XMLStreamException} for the error.
 423     */
 424    @Message(id = 14661, value = "Duplicate %s declaration %s")
 425    XMLStreamException duplicateDeclaration(String name, String value, @Param Location location);
 426
 427    /**
 428     * Creates an exception indicating ad duplicate path element, represented by the {@code name} parameter, was found.
 429     *
 430     * @param name the name of the duplicate entry.
 431     *
 432     * @return an {@link OperationFailedRuntimeException} for the error.
 433     */
 434    @Message(id = 14662, value = "Duplicate path element '%s' found")
 435    OperationFailedRuntimeException duplicateElement(String name);
 436
 437    /**
 438     * Creates an exception indicating a duplicate interface declaration.
 439     *
 440     * @param location the location of the error.
 441     *
 442     * @return a {@link XMLStreamException} for the error.
 443     */
 444    @Message(id = 14663, value = "Duplicate interface declaration")
 445    XMLStreamException duplicateInterfaceDeclaration(@Param Location location);
 446
 447    /**
 448     * Creates an exception indicating an element, represented by the {@code name} parameter, has already been
 449     * declared.
 450     *
 451     * @param name     the element name.
 452     * @param location the location of the error.
 453     *
 454     * @return a {@link XMLStreamException} for the error.
 455     */
 456    @Message(id = 14664, value = "An element of this type named '%s' has already been declared")
 457    XMLStreamException duplicateNamedElement(String name, @Param Location location);
 458
 459    /**
 460     * Creates an exception indicating a duplicate profile was included.
 461     *
 462     * @param location the location of the error.
 463     *
 464     * @return a {@link XMLStreamException} for the error.
 465     */
 466    @Message(id = 14665, value = "Duplicate profile included")
 467    XMLStreamException duplicateProfile(@Param Location location);
 468
 469    /**
 470     * Creates an exception indicating the resource is a duplicate.
 471     *
 472     * @param name the name of the resource.
 473     *
 474     * @return an {@link IllegalStateException} for the error.
 475     */
 476    @Message(id = 14666, value = "Duplicate resource %s")
 477    IllegalStateException duplicateResource(String name);
 478
 479    /**
 480     * Creates an exception indicating the resource type is a duplicate.
 481     *
 482     * @param type the duplicate type.
 483     *
 484     * @return an {@link IllegalStateException} for the error.
 485     */
 486    @Message(id = 14667, value = "Duplicate resource type %s")
 487    IllegalStateException duplicateResourceType(String type);
 488
 489    /**
 490     * A message indicating the element, represented by the {@code name} parameter, is not supported the file,
 491     * represented by the {@code file} parameter.
 492     *
 493     * @param name     the name of the element.
 494     * @param fileName the file name.
 495     *
 496     * @return the message.
 497     */
 498    @Message(id = 14668, value = "Element %s is not supported in a %s file")
 499    String elementNotSupported(String name, String fileName);
 500
 501    /**
 502     * A message indicating an error waiting for Tx commit/rollback.
 503     *
 504     * @return the message.
 505     */
 506    @Message(id = 14669, value = "Error waiting for Tx commit/rollback")
 507    String errorWaitingForTransaction();
 508
 509    /**
 510     * Creates an exception indicating a failure to initialize the module.
 511     *
 512     * @param cause the cause of the error.
 513     * @param name  the name of the module.
 514     *
 515     * @return a {@link RuntimeException} for the error.
 516     */
 517    @Message(id = 14670, value = "Failed initializing module %s")
 518    RuntimeException failedInitializingModule(@Cause Throwable cause, String name);
 519
 520    /**
 521     * A message indicating the failed services.
 522     *
 523     * @return the message.
 524     */
 525    @Message(id = 14671, value = "Failed services")
 526    String failedServices();
 527
 528    /**
 529     * Creates an exception indicating a failure to backup the file, represented by the {@code file} parameter.
 530     *
 531     * @param cause the cause of the error.
 532     * @param file  the file that failed to backup.
 533     *
 534     * @return a {@link ConfigurationPersistenceException} for the error.
 535     */
 536    @Message(id = 14672, value = "Failed to back up %s")
 537    ConfigurationPersistenceException failedToBackup(@Cause Throwable cause, File file);
 538
 539    /**
 540     * Creates an exception indicating a failure to create backup copies of configuration the file, represented by the
 541     * {@code file} parameter.
 542     *
 543     * @param cause the cause of the error.
 544     * @param file  the configuration file that failed to backup.
 545     *
 546     * @return a {@link ConfigurationPersistenceException} for the error.
 547     */
 548    @Message(id = 14673, value = "Failed to create backup copies of configuration file %s")
 549    ConfigurationPersistenceException failedToCreateConfigurationBackup(@Cause Throwable cause, File file);
 550
 551    /**
 552     * Creates an exception indicating a failure to load a module.
 553     *
 554     * @param cause the cause of the error.
 555     *
 556     * @return a {@link XMLStreamException} for the error.
 557     */
 558    @Message(id = 14674, value = "Failed to load module")
 559    XMLStreamException failedToLoadModule(@Cause Throwable cause);
 560
 561    /**
 562     * Creates an exception indicating a failure to load a module.
 563     *
 564     * @param cause the cause of the error.
 565     * @param name  the module name.
 566     *
 567     * @return a {@link XMLStreamException} for the error.
 568     */
 569    @Message(id = Message.INHERIT, value = "Failed to load module %s")
 570    XMLStreamException failedToLoadModule(@Cause Throwable cause, String name);
 571
 572    /**
 573     * Creates an exception indicating a failure to marshal the configuration.
 574     *
 575     * @param cause the cause of the error.
 576     *
 577     * @return a {@link ConfigurationPersistenceException} for the error.
 578     */
 579    @Message(id = 14675, value = "Failed to marshal configuration")
 580    ConfigurationPersistenceException failedToMarshalConfiguration(@Cause Throwable cause);
 581
 582    /**
 583     * Creates an exception indicating a failure to parse the configuration.
 584     *
 585     * @param cause the cause of the error.
 586     *
 587     * @return a {@link ConfigurationPersistenceException} for the error.
 588     */
 589    @Message(id = 14676, value = "Failed to parse configuration")
 590    ConfigurationPersistenceException failedToParseConfiguration(@Cause Throwable cause);
 591
 592    /**
 593     * Logs an error message indicating a failure to persist configuration change.
 594     *
 595     * @param cause the cause of the error.
 596     *
 597     * @return the message.
 598     */
 599    @Message(id = 14677, value = "Failed to persist configuration change: %s")
 600    String failedToPersistConfigurationChange(String cause);
 601
 602
 603    /**
 604     * Creates an exception indicating a failure to store the configuration.
 605     *
 606     * @param cause the cause of the error.
 607     *
 608     * @return a {@link ConfigurationPersistenceException} for the error.
 609     */
 610    @Message(id = 14678, value = "Failed to store configuration")
 611    ConfigurationPersistenceException failedToStoreConfiguration(@Cause Throwable cause);
 612
 613    /**
 614     * Creates an exception indicating a failure to take a snapshot of the file, represented by the {@code file}
 615     * parameter.
 616     *
 617     * @param cause    the cause of the error.
 618     * @param file     the file that failed to take the snapshot of.
 619     * @param snapshot the snapshot file.
 620     *
 621     * @return a {@link ConfigurationPersistenceException} for the error.
 622     */
 623    @Message(id = 14679, value = "Failed to take a snapshot of %s to %s")
 624    ConfigurationPersistenceException failedToTakeSnapshot(@Cause Throwable cause, File file, File snapshot);
 625
 626    /**
 627     * Creates an exception indicating a failure to write the configuration.
 628     *
 629     * @param cause the cause of the error.
 630     *
 631     * @return a {@link ConfigurationPersistenceException} for the error.
 632     */
 633    @Message(id = 14680, value = "Failed to write configuration")
 634    ConfigurationPersistenceException failedToWriteConfiguration(@Cause Throwable cause);
 635
 636    /**
 637     * Creates an exception indicating {@code path1} does not exist.
 638     *
 639     * @param path1 the first non-existing path.
 640     *
 641     * @return an {@link IllegalArgumentException} for the error.
 642     */
 643    @Message(id = 14681, value = "%s does not exist")
 644    IllegalArgumentException fileNotFound(String path1);
 645
 646    /**
 647     * Creates an exception indicating no files beginning with the {@code prefix} were found in the directory,
 648     * represented by the {@code dir} parameter.
 649     *
 650     * @param prefix the file prefix.
 651     * @param dir    the search directory.
 652     *
 653     * @return an {@link IllegalArgumentException} for the error.
 654     */
 655    @Message(id = 14682, value = "No files beginning with '%s' found in %s")
 656    IllegalArgumentException fileNotFoundWithPrefix(String prefix, String dir);
 657
 658    /**
 659     * Creates an exception indicating the {@code clazz} cannot be used except in a full server boot.
 660     *
 661     * @param clazz the class that cannot be used.
 662     *
 663     * @return an {@link IllegalStateException} for the error.
 664     */
 665    @Message(id = 14683, value = "%s cannot be used except in a full server boot")
 666    IllegalStateException fullServerBootRequired(Class<?> clazz);
 667
 668    /**
 669     * A message indicating that no included group with the name, represented by the {@code name} parameter, was found.
 670     *
 671     * @param name the name of the group.
 672     *
 673     * @return the message.
 674     */
 675    @Message(id = 14684, value = "No included group with name %s found")
 676    String groupNotFound(String name);
 677
 678    /**
 679     * A message indicating the interface criteria must be of the type represented by the {@code valueType} parameter.
 680     *
 681     * @param invalidType the invalid type.
 682     * @param validType   the valid type.
 683     *
 684     * @return the message.
 685     */
 686    @Message(id = 14685, value = "Illegal interface criteria type %s; must be %s")
 687    String illegalInterfaceCriteria(ModelType invalidType, ModelType validType);
 688
 689    /**
 690     * A message indicating the value, represented by the {@code valueType} parameter, is invalid for the interface
 691     * criteria, represented by the {@code id} parameter.
 692     *
 693     * @param valueType the type of the invalid value.
 694     * @param id        the id of the criteria interface.
 695     * @param validType the valid type.
 696     *
 697     * @return the message.
 698     */
 699    @Message(id = 14686, value = "Illegal value %s for interface criteria %s; must be %s")
 700    String illegalValueForInterfaceCriteria(ModelType valueType, String id, ModelType validType);
 701
 702    /**
 703     * Creates an exception indicating the resource is immutable.
 704     *
 705     * @return an {@link UnsupportedOperationException} for the error.
 706     */
 707    @Message(id = 14687, value = "Resource is immutable")
 708    UnsupportedOperationException immutableResource();
 709
 710    /**
 711     * An exception indicating the type is invalid.
 712     *
 713     * @param name        the name the invalid type was found for.
 714     * @param validTypes  a collection of valid types.
 715     * @param invalidType the invalid type.
 716     *
 717     * @return the exception.
 718     */
 719    @Message(id = 14688, value = "Wrong type for %s. Expected %s but was %s")
 720    OperationFailedException incorrectType(String name, Collection<ModelType> validTypes, ModelType invalidType);
 721
 722    /**
 723     * A message indicating interrupted while waiting for request.
 724     *
 725     * @return the message.
 726     */
 727    @Message(id = 14689, value = "Interrupted while waiting for request")
 728    String interruptedWaitingForRequest();
 729
 730    /**
 731     * A message indicating the {@code name} is invalid.
 732     *
 733     * @param name the name of the invalid attribute.
 734     *
 735     * @return the message.
 736     */
 737    @Message(id = 14690, value = "%s is invalid")
 738    String invalid(String name);
 739
 740    /**
 741     * A message indicating the {@code value} is invalid.
 742     *
 743     * @param cause    the cause of the error.
 744     * @param value    the invalid value.
 745     * @param name     the name of the invalid attribute.
 746     * @param location the location of the error.
 747     *
 748     * @return a {@link XMLStreamException} for the error.
 749     */
 750    @Message(id = 14691, value = "%d is not a valid %s")
 751    XMLStreamException invalid(@Cause Throwable cause, int value, String name, @Param Location location);
 752
 753    /**
 754     * A message indicating the address, represented by the {@code address} parameter, is invalid.
 755     *
 756     * @param address the invalid address.
 757     * @param msg     the error message.
 758     *
 759     * @return the message.
 760     */
 761    @Message(id = 14692, value = "Invalid address %s (%s)")
 762    String invalidAddress(String address, String msg);
 763
 764    /**
 765     * A message indicating the value, represented by the {@code value} parameter, is invalid and must be of the form
 766     * address/mask.
 767     *
 768     * @param value the invalid value.
 769     *
 770     * @return the message.
 771     */
 772    @Message(id = 14693, value = "Invalid 'value' %s -- must be of the form address/mask")
 773    String invalidAddressMaskValue(String value);
 774
 775    /**
 776     * A message indicating the mask, represented by the {@code mask} parameter, is invalid.
 777     *
 778     * @param mask the invalid mask.
 779     * @param msg  the error message.
 780     *
 781     * @return the message.
 782     */
 783    @Message(id = 14694, value = "Invalid mask %s (%s)")
 784    String  invalidAddressMask(String mask, String msg);
 785
 786    /**
 787     * A message indicating the address value, represented by the {@code value} parameter, is invalid.
 788     *
 789     * @param value the invalid address value.
 790     * @param msg   the error message.
 791     *
 792     * @return the message.
 793     */
 794    @Message(id = 14695, value = "Invalid address %s (%s)")
 795    String invalidAddressValue(String value, String msg);
 796
 797    /**
 798     * A message indicating the attribute, represented by the {@code attributeName} parameter, is invalid in
 799     * combination with the {@code combos} parameter.
 800     *
 801     * @param attributeName the attribute name.
 802     * @param combos        the combinations.
 803     *
 804     * @return the message.
 805     */
 806    @Message(id = 14696, value = "%s is invalid in combination with %s")
 807    String invalidAttributeCombo(String attributeName, StringBuilder combos);
 808
 809    /**
 810     * Creates an exception indicating an invalid value, represented by the {@code value} parameter, was found for the
 811     * attribute, represented by the {@code name} parameter.
 812     *
 813     * @param value    the invalid value.
 814     * @param name     the attribute name.
 815     * @param location the location of the error.
 816     *
 817     * @return a {@link XMLStreamException} for the error.
 818     */
 819    @Message(id = 14697, value = "Invalid value '%s' for attribute '%s'")
 820    XMLStreamException invalidAttributeValue(String value, QName name, @Param Location location);
 821
 822    /**
 823     * Creates an exception indicating an invalid value, represented by the {@code value} parameter, was found for the
 824     * attribute, represented by the {@code name} parameter. The value must be between the {@code minInclusive} and
 825     * {@code maxInclusive} values.
 826     *
 827     * @param value        the invalid value.
 828     * @param name         the attribute name.
 829     * @param minInclusive the minimum value allowed.
 830     * @param maxInclusive the maximum value allowed.
 831     * @param location     the location of the error.
 832     *
 833     * @return a {@link XMLStreamException} for the error.
 834     */
 835    @Message(id = 14698, value = "Illegal value %d for attribute '%s' must be between %d and %d (inclusive)")
 836    XMLStreamException invalidAttributeValue(int value, QName name, int minInclusive, int maxInclusive, @Param Location location);
 837
 838    /**
 839     * Creates an exception indicating an invalid integer value, represented by the {@code value} parameter, was found
 840     * for the attribute, represented by the {@code name} parameter.
 841     *
 842     * @param cause    the cause of the error.
 843     * @param value    the invalid value.
 844     * @param name     the attribute name.
 845     * @param location the location of the error.
 846     *
 847     * @return a {@link XMLStreamException} for the error.
 848     */
 849    @Message(id = 14699, value = "Illegal value '%s' for attribute '%s' must be an integer")
 850    XMLStreamException invalidAttributeValueInt(@Cause Throwable cause, String value, QName name, @Param Location location);
 851
 852    /**
 853     * A message indicating the pattern, represented by the {@code pattern} parameter, for the interface criteria,
 854     * represented by the {@code name} parameter, is invalid.
 855     *
 856     * @param pattern the pattern.
 857     * @param name    the interface criteria.
 858     *
 859     * @return the message.
 860     */
 861    @Message(id = 14700, value = "Invalid pattern %s for interface criteria %s")
 862    String invalidInterfaceCriteriaPattern(String pattern, String name);
 863
 864    /**
 865     * Creates an exception indicating the {@code key} is invalid.
 866     *
 867     * @param element the path element
 868     * @param key the invalid value.
 869     *
 870     * @return an {@link OperationFailedRuntimeException} for the error.
 871     */
 872    @Message(id = 14701, value = "Invalid resource address element '%s'. The key '%s' is not valid for an element in a resource address.")
 873    String invalidPathElementKey(String element, String key);
 874
 875    /**
 876     * Creates an exception indicating the load factor must be greater than 0 and less than or equal to 1.
 877     *
 878     * @return an {@link IllegalArgumentException} for the error.
 879     */
 880    @Message(id = 14702, value = "Load factor must be greater than 0 and less than or equal to 1")
 881    IllegalArgumentException invalidLoadFactor();
 882
 883    /**
 884     * A message indicating the {@code value} parameter is invalid and must have a maximum length, represented by the
 885     * {@code length} parameter.
 886     *
 887     * @param value  the invalid value.
 888     * @param name   the name of the parameter.
 889     * @param length the maximum length.
 890     *
 891     * @return the message.
 892     */
 893    @Message(id = 14703, value = "'%s' is an invalid value for parameter %s. Values must have a maximum length of %d characters")
 894    String invalidMaxLength(String value, String name, int length);
 895
 896    /**
 897     * A message indicating the {@code value} parameter is invalid and must have a minimum length, represented by the
 898     * {@code length} parameter.
 899     *
 900     * @param value  the invalid value.
 901     * @param name   the name of the parameter.
 902     * @param length the minimum length.
 903     *
 904     * @return the message.
 905     */
 906    @Message(id = 14704, value = "'%s' is an invalid value for parameter %s. Values must have a minimum length of %d characters")
 907    String invalidMinLength(String value, String name, int length);
 908
 909    /**
 910     * A message indicating the {@code size} is an invalid size for the parameter, represented by the {@code name}
 911     * parameter.
 912     *
 913     * @param size    the invalid size.
 914     * @param name    the name of the parameter.
 915     * @param maxSize the maximum size allowed.
 916     *
 917     * @return the message
 918     */
 919    @Message(id = 14705, value = "[%d] is an invalid size for parameter %s. A maximum length of [%d] is required")
 920    String invalidMaxSize(int size, String name, int maxSize);
 921
 922    /**
 923     * A message indicating the {@code size} is an invalid size for the parameter, represented by the {@code name}
 924     * parameter.
 925     *
 926     * @param size    the invalid size.
 927     * @param name    the name of the parameter.
 928     * @param minSize the minimum size allowed.
 929     *
 930     * @return the message
 931     */
 932    @Message(id = 14706, value = "[%d] is an invalid size for parameter %s. A minimum length of [%d] is required")
 933    String invalidMinSize(int size, String name, int minSize);
 934
 935    /**
 936     * A message indicating the {@code value} is invalid for the parameter, represented by the {@code name} parameter.
 937     *
 938     * @param value    the invalid value.
 939     * @param name     the name of the parameter.
 940     * @param maxValue the minimum value required.
 941     *
 942     * @return the message.
 943     */
 944    @Message(id = 14707, value = "%d is an invalid value for parameter %s. A maximum value of %d is required")
 945    String invalidMaxValue(int value, String name, int maxValue);
 946
 947    /**
 948     * A message indicating the {@code value} is invalid for the parameter, represented by the {@code name} parameter.
 949     *
 950     * @param value    the invalid value.
 951     * @param name     the name of the parameter.
 952     * @param maxValue the minimum value required.
 953     *
 954     * @return the message.
 955     */
 956    String invalidMaxValue(long value, String name, long maxValue);
 957
 958    /**
 959     * A message indicating the {@code value} is invalid for the parameter, represented by the {@code name} parameter.
 960     *
 961     * @param value    the invalid value.
 962     * @param name     the name of the parameter.
 963     * @param minValue the minimum value required.
 964     *
 965     * @return the message.
 966     */
 967    @Message(id = 14708, value = "%d is an invalid value for parameter %s. A minimum value of %d is required")
 968    String invalidMinValue(int value, String name, int minValue);
 969
 970    /**
 971     * A message indicating the {@code value} is invalid for the parameter, represented by the {@code name} parameter.
 972     *
 973     * @param value    the invalid value.
 974     * @param name     the name of the parameter.
 975     * @param minValue the minimum value required.
 976     *
 977     * @return the message.
 978     */
 979    String invalidMinValue(long value, String name, long minValue);
 980
 981    /**
 982     * Creates an exception indicated an invalid modification after completed ste.
 983     *
 984     * @return an {@link IllegalStateException} for the error.
 985     */
 986    @Message(id = 14709, value = "Invalid modification after completed step")
 987    IllegalStateException invalidModificationAfterCompletedStep();
 988
 989    /**
 990     * Creates an exception indicating the {@code value} for the attribute, represented by the {@code name} parameter,
 991     * is not a valid multicast address.
 992     *
 993     * @param value    the invalid value.
 994     * @param name     the name of the attribute.\
 995     *
 996     * @return a {@link XMLStreamException} for the error.
 997     */
 998    @Message(id = 14710, value = "Value %s for attribute %s is not a valid multicast address")
 999    OperationFailedException invalidMulticastAddress(String value, String name);
1000
1001    /**
1002     * Creates an exception indicating an outbound socket binding cannot have both the {@code localTag} and the
1003     * {@code remoteTag}.
1004     *
1005     * @param name      the name of the socket binding.
1006     * @param localTag  the local tag.
1007     * @param remoteTag the remote tag.
1008     * @param location  the location of the error.
1009     *
1010     * @return a {@link XMLStreamException} for the error.
1011     */
1012    @Message(id = 14711, value = "An outbound socket binding: %s cannot have both %s as well as a %s at the same time")
1013    XMLStreamException invalidOutboundSocketBinding(String name, String localTag, String remoteTag, @Param Location location);
1014
1015    /**
1016     * Creates an exception indicating the {@code flag} is invalid.
1017     *
1018     * @param flag       the invalid flag.
1019     * @param name       the name of the parameter.
1020     * @param validFlags a collection of valid flags.
1021     *
1022     * @return an {@link IllegalArgumentException} for the error.
1023     */
1024    @Message(id = 14712, value = "%s is not a valid value for parameter %s -- must be one of %s")
1025    IllegalArgumentException invalidParameterValue(Flag flag, String name, Collection<Flag> validFlags);
1026
1027    /**
1028     * Creates an exception indicating the {@code value} for the attribute, represented by the {@code name} parameter,
1029     * does not represent a properly hex-encoded SHA1 hash.
1030     *
1031     * @param cause    the cause of the error.
1032     * @param value    the invalid value.
1033     * @param name     the name of the attribute.
1034     * @param location the location of the error.
1035     *
1036     * @return a {@link XMLStreamException} for the error.
1037     */
1038    @Message(id = 14713, value = "Value %s for attribute %s does not represent a properly hex-encoded SHA1 hash")
1039    XMLStreamException invalidSha1Value(@Cause Throwable cause, String value, String name, @Param Location location);
1040
1041    /**
1042     * Creates an exception indicating the stage is not valid for the context process type.
1043     *
1044     * @param stage the stage.
1045     * @param processType the context process type.
1046     *
1047     * @return an {@link IllegalStateException} for the error.
1048     */
1049    @Message(id = 14714, value = "Stage %s is not valid for context process type %s")
1050    IllegalStateException invalidStage(OperationContext.Stage stage, ProcessType processType);
1051
1052    /**
1053     * Creates an exception indicating an invalid step stage specified.
1054     *
1055     * @return an {@link IllegalArgumentException} for the error.
1056     */
1057    @Message(id = 14715, value = "Invalid step stage specified")
1058    IllegalArgumentException invalidStepStage();
1059
1060    /**
1061     * Creates an exception indicating an invalid step stage for this context type.
1062     *
1063     * @return an {@link IllegalArgumentException} for the error.
1064     */
1065    @Message(id = 14716, value = "Invalid step stage for this context type")
1066    IllegalArgumentException invalidStepStageForContext();
1067
1068    /**
1069     * Creates an exception indicating the table cannot have a negative size.
1070     *
1071     * @return an {@link IllegalArgumentException} for the error.
1072     */
1073    @Message(id = 14717, value = "Can not have a negative size table!")
1074    IllegalArgumentException invalidTableSize();
1075
1076    /**
1077     * A message indicating the type, represented by the {@code type} parameter, is invalid.
1078     *
1079     * @param type the invalid type.
1080     *
1081     * @return the message.
1082     */
1083    @Message(id = 14718, value = "Invalid type %s")
1084    String invalidType(ModelType type);
1085
1086    /**
1087     * Creates an exception indicating the {@code value} is invalid.
1088     *
1089     * @param element the path element
1090     * @param value the invalid value.
1091     * @param character the invalid character
1092     *
1093     * @return an {@link OperationFailedRuntimeException} for the error.
1094     */
1095    @Message(id = 14719, value = "Invalid resource address element '%s'. The value '%s' is not valid for an element in a resource address. Character '%s' is not allowed.")
1096    String invalidPathElementValue(String element, String value, Character character);
1097
1098    /**
1099     * A message indicating the {@code value} for the parameter, represented by the {@code name} parameter, is invalid.
1100     *
1101     * @param value       the invalid value.
1102     * @param name        the name of the parameter.
1103     * @param validValues a collection of valid values.
1104     *
1105     * @return the message.
1106     */
1107    @Message(id = 14720, value = "Invalid value %s for %s; legal values are %s")
1108    String invalidValue(String value, String name, Collection<?> validValues);
1109
1110    /**
1111     * Creates an exception indicating the {@code value} for the {@code name} must be greater than the minimum value,
1112     * represented by the {@code minValue} parameter.
1113     *
1114     * @param name     the name for the value that cannot be negative.
1115     * @param value    the invalid value.
1116     * @param minValue the minimum value.
1117     * @param location the location of the error.
1118     *
1119     * @return a {@link XMLStreamException} for the error.
1120     */
1121    @Message(id = 14721, value = "Illegal '%s' value %s -- must be greater than %s")
1122    XMLStreamException invalidValueGreaterThan(String name, int value, int minValue, @Param Location location);
1123
1124    /**
1125     * Creates an exception indicating the {@code value} for the {@code name} cannot be negative.
1126     *
1127     * @param name     the name for the value that cannot be negative.
1128     * @param value    the invalid value.
1129     * @param location the location of the error.
1130     *
1131     * @return a {@link XMLStreamException} for the error.
1132     */
1133    @Message(id = 14722, value = "Illegal '%s' value %s -- cannot be negative")
1134    XMLStreamException invalidValueNegative(String name, int value, @Param Location location);
1135
1136    /**
1137     * Creates an exception indicating there must be one of the elements, represented by the {@code sb} parameter,
1138     * included.
1139     *
1140     * @param sb       the acceptable elements.
1141     * @param location the location of the error.
1142     *
1143     * @return a {@link XMLStreamException} for the error.
1144     */
1145    @Message(id = 14723, value = "Must include one of the following elements: %s")
1146    XMLStreamException missingOneOf(StringBuilder sb, @Param Location location);
1147
1148    /**
1149     * Creates an exception indicating there are missing required attribute(s).
1150     *
1151     * @param sb       the missing attributes.
1152     * @param location the location of the error.
1153     *
1154     * @return a {@link XMLStreamException} for the error.
1155     */
1156    @Message(id = 14724, value = "Missing required attribute(s): %s")
1157    XMLStreamException missingRequiredAttributes(StringBuilder sb, @Param Location location);
1158
1159    /**
1160     * Creates an exception indicating there are missing required element(s).
1161     *
1162     * @param sb       the missing element.
1163     * @param location the location of the error.
1164     *
1165     * @return a {@link XMLStreamException} for the error.
1166     */
1167    @Message(id = 14725, value = "Missing required element(s): %s")
1168    XMLStreamException missingRequiredElements(StringBuilder sb, @Param Location location);
1169
1170    /**
1171     * Creates an exception indicating an interruption awaiting to load the module.
1172     *
1173     * @param name the name of the module.
1174     *
1175     * @return a {@link XMLStreamException} for the error.
1176     */
1177    @Message(id = 14726, value = "Interrupted awaiting loading of module %s")
1178    XMLStreamException moduleLoadingInterrupted(String name);
1179
1180    /**
1181     * Creates an exception indicating an interruption awaiting to initialize the module.
1182     *
1183     * @param name the name of the module.
1184     *
1185     * @return a {@link RuntimeException} for the error.
1186     */
1187    @Message(id = 14727, value = "Interrupted awaiting initialization of module %s")
1188    RuntimeException moduleInitializationInterrupted(String name);
1189
1190    /**
1191     * Creates an exception indicating a model contains multiple nodes.
1192     *
1193     * @param name the name of the node.
1194     *
1195     * @return an {@link IllegalStateException} for the error.
1196     */
1197    @Message(id = 14728, value = "Model contains multiple %s nodes")
1198    IllegalStateException multipleModelNodes(String name);
1199
1200    /**
1201     * A message indicating a namespace with the prefix, represented by the {@code prefix} parameter, is already
1202     * registered with the schema URI, represented by the {@code uri} parameter.
1203     *
1204     * @param prefix the namespace prefix.
1205     * @param uri    the schema URI.
1206     *
1207     * @return the message.
1208     */
1209    @Message(id = 14729, value = "Namespace with prefix %s already registered with schema URI %s")
1210    String namespaceAlreadyRegistered(String prefix, String uri);
1211
1212    /**
1213     * A message indicating no namespace with the URI {@code prefix}, was found.
1214     *
1215     * @param prefix the prefix.
1216     *
1217     * @return the message.
1218     */
1219    @Message(id = 14730, value = "No namespace with URI %s found")
1220    String namespaceNotFound(String prefix);
1221
1222    /**
1223     * A message indicating the element, represented by the {@code element} parameter, does not allow nesting.
1224     *
1225     * @param element the element.
1226     *
1227     * @return the message.
1228     */
1229    @Message(id = 14731, value = "Nested %s not allowed")
1230    String nestedElementNotAllowed(Element element);
1231
1232    /**
1233     * Creates an exception indicating no active request was found for handling the report represented by the {@code id}
1234     * parameter.
1235     *
1236     * @param id the batch id.
1237     *
1238     * @return a {@link RequestProcessingException} for the error.
1239     */
1240    @Message(id = 14732, value = "No active request found for handling report %d")
1241    RequestProcessingException noActiveRequestForHandlingReport(int id);
1242
1243    /**
1244     * Creates an exception indicating no active request was found for proxy control represented by the {@code id}
1245     * parameter.
1246     *
1247     * @param id the batch id.
1248     *
1249     * @return a {@link RequestProcessingException} for the error.
1250     */
1251    @Message(id = 14733, value = "No active request found for proxy operation control %d")
1252    RequestProcessingException noActiveRequestForProxyOperation(int id);
1253
1254    /**
1255     * Creates an exception indicating no active request was found for reading the inputstream report represented by
1256     * the {@code id} parameter.
1257     *
1258     * @param id the batch id.
1259     *
1260     * @return a {@link IOException} for the error.
1261     */
1262    @Message(id = 14734, value = "No active request found for reading inputstream report %d")
1263    IOException noActiveRequestForReadingInputStreamReport(int id);
1264
1265    /**
1266     * Creates an exception indicating there is no active step.
1267     *
1268     * @return an {@link IllegalStateException} for the error.
1269     */
1270    @Message(id = 14735, value = "No active step")
1271    IllegalStateException noActiveStep();
1272
1273    /**
1274     * Creates an exception indicating no active transaction found for the {@code id}.
1275     *
1276     * @param id the id.
1277     *
1278     * @return a {@link RequestProcessingException} for the error.
1279     */
1280    @Message(id = 14736, value = "No active tx found for id %d")
1281    RuntimeException noActiveTransaction(int id);
1282
1283    /**
1284     * A message indicating there is no child registry for the child, represented by the {@code childT

Large files files are truncated, but you can click here to view the full file