You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Romain Manni-Bucau (Jira)" <ji...@apache.org> on 2020/05/02 15:20:00 UTC
[jira] [Resolved] (MEECROWAVE-243) Long type not supported in
properties parser
[ https://issues.apache.org/jira/browse/MEECROWAVE-243?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Romain Manni-Bucau resolved MEECROWAVE-243.
-------------------------------------------
Fix Version/s: 1.2.10
Assignee: Romain Manni-Bucau
Resolution: Fixed
> 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
> Assignee: Romain Manni-Bucau
> Priority: Minor
> Fix For: 1.2.10
>
>
> 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)