Uploaded image for project: 'Talend Component Kit'
  1. Talend Component Kit
  2. TCOMP-2181

Numbers are not parsed correctly in JAVA_OPTS

Apply templateInsert Lucidchart Diagram
    XMLWordPrintable

Details

    • All
    • Small

    Description

      For the component-server we have following options in JAVA_OPTS:

      -Dtalend.component.manager.services.cache.eviction.defaultEvictionTimeout=30_000
      -Dtalend.component.manager.services.cache.eviction.defaultMaxSize=5_000

      They can't be parsed correctly to integers:

      org.talend.sdk.component.api.exception.ComponentException: (org.apache.xbean.recipe.ConstructionException) Unable to convert property value from java.lang.String to int for injection private int org.talend.sdk.component.runtime.manager.service.LocalCacheService$CacheConfiguration.defaultMaxSize
      at org.apache.xbean.recipe.ObjectRecipe.setProperty(ObjectRecipe.java:510) ~[org.apache.xbean.xbean-reflect-4.20.jar:4.20]
      ...
      Caused by: org.talend.sdk.component.api.exception.ComponentException: (org.apache.xbean.propertyeditor.PropertyEditorException) java.lang.NumberFormatException: For input string: "5_000"
      at org.apache.xbean.propertyeditor.DoubleEditor.toObjectImpl(DoubleEditor.java:31) ~[org.apache.xbean.xbean-reflect-4.20.jar:4.20]
      ...
      Caused by: java.lang.NumberFormatException: For input string: "5_000"
      at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043) ~[?:1.8.0_322] 

      When I overwrite these options in _JAVA_OPTIONS of component-server with 30000 and 5000 then no error

      Quick workaround:

      Remove underscores from default values

      Attachments

        Activity

          People

            emmanuel_g emmanuel gallois
            dochkas Dmytro Ochkas
            emmanuel gallois
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: