Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Werner Keil
    @keilw
    @ptahchiev That's a bit complicated because the prior Spec Lead CS is unwilling or unable to make progress, are you an associate member already? We hope @atsticks or maybe @otaviojava (he should still meet CS at JCP EC Meetings, too) can influence them to make a move. Now that even JCache did planning its MR1 soon.
    Petar Tahchiev
    @ptahchiev
    who's CS?
    Petar Tahchiev
    @ptahchiev
    aah CreditSuisse?
    i'm not an associate member, but i'm very much interested in the project
    i was hoping to see it included in jdk9
    but i guess the new target is java10, correct?
    Werner Keil
    @keilw
    Credit Suisse, a JCP EC Member who was the Spec Lead. As per JCP admin it still is, but @atsticks left and they are unable to find a skilled replacement. After Java 9 added modularity, we hope to support that in JavaMoney but except minor patches (adding a module-info might still work) everything else requires a working Spec Lead or Maintenance Lead, both CS isn't at the moment.
    Nhat Nguyen
    @minhnhat2807
    where can we see the list of rate provider support?
    o.j.moneta.spi.CompoundRateProvider : Rate Provider did not return data though at check before data was flagged as available, provider=ECB, query=ConversionQuery (
    {Query.termCurrency=VND, Query.baseCurrency=HKD})
    please help
    Werner Keil
    @keilw
    @atsticks can you help @minhnhat2807 with that?
    Matt
    @emmx
    Hi there. anyone around?
    Is there a benchmark of JavaMoney's FastMoney vs BigDecimal? I'm getting worse performance, I may be missing something
    Werner Keil
    @keilw
    I don't think there is an official benchmark, which one is worse in your experience or do you have a benchmark you'd be able to share under Apache 2?
    Suresh Yenugula
    @ynglsuresh_twitter
    Hi
    I want to use javamoney as datatype in rest api. how to do serialization and deserilaztion if we use javamoney database in rest api.
    Werner Keil
    @keilw
    Hi,
    It depends a bit on what DB you plan to use. For Relational databases please have a look at Jadira Datatypes for Hibernate. In either case your REST API will benefit from Jackson Datatype Money. If you're using a JSON based DB like MongoDB, then Jackson Datatype would help you for both REST serialization and DP persistence.
    Petar Tahchiev
    @ptahchiev
    hey guys.. my test are failing randomly with this exception:
    [ERROR] testMultiCheckoutStepConfirmationValid(com.samplestore.storefront.controller.commerce.checkout.MultiStepCheckoutControllerIntegrationTest)  Time elapsed: 2.689 s  <<< ERROR!
    org.springframework.web.util.NestedServletException: 
    Request processing failed; nested exception is CurrencyConversionException [base=EUR, term=USD, conversionContext=null]: Cannot convert EUR into USD: All delegate prov iders failed to deliver rate, providers=[org.javamoney.moneta.internal.convert.IdentityRateProvider@546f679c, org.javamoney.moneta.internal.convert.ECBCurrentRateProvider{ context: ProviderContext (
    {rateTypes=[DEFERRED], providerDescription=European Central Bank, days=1, provider=ECB})}, org.javamoney.moneta.internal.convert.IMFRateProvider{ context: ProviderContext (
    {rateTypes=[DEFERRED], providerDescription=International Monetary Fond, days=1, provider=IMF})}, org.javamoney.moneta.internal.convert.IMFHistoricRateProvider{ context: ProviderContext (
    {rateTypes=[HISTORIC], providerDescription=Historic International Monetary Fond, days=0, provider=IMF-HIST})}, org.javamoney.moneta.internal.convert.ECBHistoricRateProvider{ context: ProviderContext (
    {rateTypes=[HISTORIC, DEFERRED], providerDescription=European Central Bank, days=1500, provider=ECB-HIST})}, org.javamoney.moneta.internal.convert.ECBHistoric90RateProvider{ context: ProviderContext (
    {rateTypes=[HISTORIC, DEFERRED], providerDescription=European Central Bank (last 90 days), days=90, provider=ECB-HIST90})}], query=ConversionQuery (
    {Query.termCurrency=USD, Query.baseCurrency=EUR})
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:982)
        at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:877)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
        at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851)
        at org.springframework.test.web.servlet.TestDispatcherServlet.service(TestDispatcherServlet.java:71)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
        at org.springframework.mock.web.MockFilterChain$ServletFilterProxy.doFilter(MockFilterChain.java:166)
        at org.springframework.mock.web.MockFilterChain.doFilter(MockFilterChain.java:133)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:320)
        at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127)
        at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:158)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:170)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)
        at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:6
    ah crap - gitter cut out my exception
    here it is the whole stacktrace
    what can i do to prevent this?
    Gustavo Carvalho
    @carvagu
    Hello folks..
    Error creating cache dir .resourceCache, resource cache disabled!..
    anyone get this error? where moneta create cache dir to make all permissions? tkss
    Petar Tahchiev
    @ptahchiev

    hello guys, with Java9 this code:

    MonetaryFormats.getAmountFormat(AmountFormatQueryBuilder.of(Locale.US).set(CurrencyStyle.SYMBOL).set(AmountFormatParams.PATTERN, "¤##.##").build()).format(source);

    returns €10 and with Java8 returns EUR10.. why is that?

    Werner Keil
    @keilw
    Must be something the JDK team changed without a clear announcement. Could you create a ticket for it?
    Petar Tahchiev
    @ptahchiev
    sure, under which project?
    Werner Keil
    @keilw
    If you see it calling MonetaryFormats, then https://github.com/JavaMoney/jsr354-api/issues is probably best.
    Petar Tahchiev
    @ptahchiev
    guys, I updated last night to 1.3 of moneta and I get a null-pointer exception:
    Caused by: java.lang.IllegalArgumentException: Failed to load IMF data provided.
        at org.javamoney.moneta.convert.imf.IMFAbstractRateProvider.newDataLoaded(IMFAbstractRateProvider.java:123)
        at org.javamoney.moneta.convert.imf.IMFRateProvider.newDataLoaded(IMFRateProvider.java:39)
        at org.javamoney.moneta.internal.loader.DefaultLoaderListener.trigger(DefaultLoaderListener.java:83)
        ... 90 more
    Caused by: java.lang.NullPointerException
        at org.javamoney.moneta.convert.imf.IMFRateReadingHandler.read(IMFRateReadingHandler.java:65)
        at org.javamoney.moneta.convert.imf.IMFAbstractRateProvider.newDataLoaded(IMFAbstractRateProvider.java:114)
        ... 92 more
    Werner Keil
    @keilw
    Is this for the shelter?
    There is a chat for Moneta: https://gitter.im/JavaMoney/jsr354-ri
    Werner Keil
    @keilw
    Please tell us how to reproduce this. Ideally in the Moneta related chat room or if you want a ticket in the RI project. None of the Travis build jobs show a problem calling e.g.:
    org.javamoney.moneta.convert.imf.IMFAbstractRateProvider newDataLoaded
    INFO: Loaded IMFRateProvider exchange rates for days:49
    Also please share everything like the JDK version you used, etc.
    Petar Tahchiev
    @ptahchiev
    I have a cronjob that gets all products and exports them to elasticsearch every 15mins.. during the export it converts the price in the default currency and i guess that's when it happens
    my java version is:
    petar@petar-XPS-15-9550:~/workspace$ java -version
    java version "1.8.0_171"
    Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
    Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)
    Petar Tahchiev
    @ptahchiev
    funny enough it doesn't happen this morning :/
    Petar Tahchiev
    @ptahchiev
    would it be possible to add a null-pointer check at the 65 line, just in case?
    Werner Keil
    @keilw
    Ok, then it must have been some glitch or service level problem on IMF side. I also kept seeing "Rejected" messages in Moneta-BP while Moneta 1.3 works in most cases now after we switched to HTTPS. I take, that in line 65 the line string may be null? As you are a JCP Associate Member already, would you be able to raise a PR for that null-check?
    Werner Keil
    @keilw
    Indeed later down the same variable is checked with while (Objects.nonNull(line))
    Petar Tahchiev
    @ptahchiev
    i just hit it again
    Caused by: java.lang.IllegalArgumentException: Failed to load IMF data provided.
        at org.javamoney.moneta.convert.imf.IMFAbstractRateProvider.newDataLoaded(IMFAbstractRateProvider.java:123)
        at org.javamoney.moneta.convert.imf.IMFHistoricRateProvider.newDataLoaded(IMFHistoricRateProvider.java:47)
        at org.javamoney.moneta.internal.loader.DefaultLoaderListener.trigger(DefaultLoaderListener.java:83)
        ... 93 more
    Caused by: java.lang.NullPointerException
        at org.javamoney.moneta.convert.imf.IMFRateReadingHandler.read(IMFRateReadingHandler.java:65)
        at org.javamoney.moneta.convert.imf.IMFAbstractRateProvider.newDataLoaded(IMFAbstractRateProvider.java:114)
        ... 95 more
    yes, i will raise a pr
    Petar Tahchiev
    @ptahchiev
    JavaMoney/jsr354-ri#214
    Werner Keil
    @keilw
    Ok, thanks, if possible please from now on post in https://gitter.im/JavaMoney/jsr354-ri because this is RI-related and not with any Shelter project ;-)
    Petar Tahchiev
    @ptahchiev
    guys
    what do you think this would pring
    print
    MonetaryFormats.getAmountFormat(AmountFormatQueryBuilder.of(locale).set(CurrencyStyle.SYMBOL).set(AmountFormatParams.PATTERN, "¤##.00").build()).format(Money.of(12.23, "USD"))
    it prints US$ 12.23 when using British locale
    is this normal? why does it have the US before the symbol?