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

NoSuchElementException when using resolver and property values containing an incomplete token

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.1-incubating
    • 0.2-incubating
    • Modules
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: