[ https://issues.apache.org/jira/browse/MEECROWAVE-243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17097992#comment-17097992 ]
olivier carrey commented on MEECROWAVE-243: ------------------------------------------- it is working fine thank you Romain, you can close this issue. regards. > Long type not supported in properties parser > -------------------------------------------- > > Key: MEECROWAVE-243 > URL: https://issues.apache.org/jira/browse/MEECROWAVE-243 > Project: Meecrowave > Issue Type: Bug > Affects Versions: 1.2.9 > Environment: any > Reporter: olivier carrey > Priority: Minor > > Need to setup OAuth2 token lifetime in properties file : > {code:java} > properties.oauth2-access-token-lifetime=5 > properties.oauth2-refresh-token-lifetime=5{code} > Using Meecrowave.Builder().loadFromProperties(p) throws exception below : > {code:java} > Caused by: java.lang.IllegalArgumentException: Unsupported type longCaused > by: java.lang.IllegalArgumentException: Unsupported type long at > org.apache{code} > org.apache.meecrowave.configuration.Configuration snippets : > {code:java} > if (t == String.class) { > f.set(instance, value); > } else if (t == int.class) { > f.set(instance, Integer.parseInt(value)); > } else if (t == boolean.class) { > f.set(instance, Boolean.parseBoolean(value)); > } else { > throw new IllegalArgumentException("Unsupported type " + t); > > }.meecrowave.configuration.Configuration.lambda$bind$5(Configuration.java:1201){code} > -- This message was sent by Atlassian Jira (v8.3.4#803005)