Uploaded image for project: 'Tamaya'
  1. Tamaya
  2. TAMAYA-127

NoSuchElementException when using resolver and property values containing an incomplete token

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.1-incubating
    • Fix Version/s: 0.2-incubating
    • Component/s: Modules
    • Labels:
      None

      Description

      On a Windows machine I have environment variables for shares and other things. These property values contain $ but no { } etc... This results in a NoSuchElementException in the DefaultExpressionEvaluator when calling tokenizer.nextToken().

      java.util.NoSuchElementException
      	at java.util.StringTokenizer.nextToken(Unknown Source)
      	at org.apache.tamaya.resolver.internal.DefaultExpressionEvaluator.evaluateExpression(DefaultExpressionEvaluator.java:150)
      	at org.apache.tamaya.resolver.internal.ExpressionResolutionFilter.filterProperty(ExpressionResolutionFilter.java:81)
      	at org.apache.tamaya.core.internal.DefaultConfiguration.applyFilters(DefaultConfiguration.java:177)
      

        Attachments

          Activity

            People

            • Assignee:
              anatole Anatole Tresch
              Reporter:
              itsmeden Lars-Fredrik Smedberg
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: