PageRenderTime 58ms CodeModel.GetById 21ms RepoModel.GetById 1ms app.codeStats 0ms

/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
Possible License(s): LGPL-2.1, Apache-2.0

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