Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-24716

[GSS](7.4.z) WFCORE-6290 - Failure to handle errors loading process-uuid file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 7.4.12.CR1, 7.4.12.GA
    • 7.4.10.GA
    • Server
    • None
    • False
    • None
    • False
    • Release Notes
    • ?
    • Hide

      Edit $JBOSS_HOME/standalone/data/kernel/process-uuid and either leave empty or with invalid contents (not a valid UUID on first line).  Try to start EAP.

      Show
      Edit $JBOSS_HOME/standalone/data/kernel/process-uuid and either leave empty or with invalid contents (not a valid UUID on first line).  Try to start EAP.
    • Customer Facing

      If standalone/data/kernel/process-uuid (for standalone mode) exists but is empty, startup fails with:

      java.util.NoSuchElementException: No value present
          at java.util.Optional.get(Optional.java:135)
          at org.jboss.as.controller.operations.common.ProcessEnvironment.obtainPr
      ocessUUID(ProcessEnvironment.java:188)
          at org.jboss.as.server.ServerEnvironment.<init>(ServerEnvironment.java:632)
      

      If it exists but does not contain a valid UUID startup fails with the only slightly better:

       

      java.lang.IllegalArgumentException: Invalid UUID string:
          at java.util.UUID.fromString(UUID.java:194)                            
          at org.jboss.as.controller.operations.common.ProcessEnvironment.obtainProcessUUID(ProcessEnvironment.java:188)
          at org.jboss.as.server.ServerEnvironment.<init>(ServerEnvironment.java:632)

      These failure conditions should be handled more gracefully, ideally by ignoring the bad data and proceeding the same as if the file did not exist, but at the minimum with a more useful error message telling the user specifically what is wrong (that the problem is a corrupted standalone/data/kernel/process-uuid file).

       

              lvydra Lukas Vydra
              rhn-support-dereed Dennis Reed
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: