{"action":"opened","issue":{"url":"https://api.github.com/repos/killbill/killbill-adyen-plugin/issues/44","labels_url":"https://api.github.com/repos/killbill/killbill-adyen-plugin/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/killbill/killbill-adyen-plugin/issues/44/comments","events_url":"https://api.github.com/repos/killbill/killbill-adyen-plugin/issues/44/events","html_url":"https://github.com/killbill/killbill-adyen-plugin/issues/44","id":123378411,"number":44,"title":"Excpetion org.killbill.automaton.OperationException: java.lang.ArithmeticException: Scale of amount 10.000000000 is greater than the scale of the currency EUR being thrown when running 3dSecure","user":{"login":"kevinsharpjr","id":6162836,"avatar_url":"https://avatars.githubusercontent.com/u/6162836?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinsharpjr","html_url":"https://github.com/kevinsharpjr","followers_url":"https://api.github.com/users/kevinsharpjr/followers","following_url":"https://api.github.com/users/kevinsharpjr/following{/other_user}","gists_url":"https://api.github.com/users/kevinsharpjr/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinsharpjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinsharpjr/subscriptions","organizations_url":"https://api.github.com/users/kevinsharpjr/orgs","repos_url":"https://api.github.com/users/kevinsharpjr/repos","events_url":"https://api.github.com/users/kevinsharpjr/events{/privacy}","received_events_url":"https://api.github.com/users/kevinsharpjr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-21T23:08:39Z","updated_at":"2015-12-21T23:08:39Z","closed_at":null,"body":"Exception:\r\n5-12-21 22:47:51,370 [catalina-exec-1] WARN  o.k.b.p.c.sm.OperationCallbackBase - Payment plugin call threw an exception for account 40164394-c2eb-4459-894d-e61ef1640e85\r\norg.killbill.automaton.OperationException: java.lang.ArithmeticException: Scale of amount 10.000000000 is greater than the scale of the currency EUR\r\n\tat org.killbill.billing.payment.core.sm.payments.PaymentOperation.doSimpleOperationCallback(PaymentOperation.java:171)\r\n\tat org.killbill.billing.payment.core.sm.payments.PaymentOperation.access$000(PaymentOperation.java:55)\r\n\tat org.killbill.billing.payment.core.sm.payments.PaymentOperation$2.doOperation(PaymentOperation.java:159)\r\n\tat org.killbill.billing.payment.core.sm.payments.PaymentOperation$2.doOperation(PaymentOperation.java:156)\r\n\tat org.killbill.billing.payment.core.ProcessorBase$WithAccountLock.processAccountWithLock(ProcessorBase.java:199)\r\n\tat org.killbill.billing.payment.core.ProcessorBase$CallableWithAccountLock.call(ProcessorBase.java:182)\r\n\tat org.killbill.billing.payment.core.ProcessorBase$CallableWithAccountLock.call(ProcessorBase.java:163)\r\n\tat org.killbill.billing.payment.dispatcher.CallableWithRequestData.call(CallableWithRequestData.java:48)\r\n\tat org.killbill.commons.concurrent.WrappedCallable.call(WrappedCallable.java:42)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n\tat org.killbill.commons.concurrent.WrappedRunnable.run(WrappedRunnable.java:40)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: java.lang.ArithmeticException: Scale of amount 10.000000000 is greater than the scale of the currency EUR\r\n\tat org.joda.money.Money.of(Money.java:75)\r\n\tat org.killbill.billing.plugin.adyen.client.payment.service.BaseAdyenPaymentServiceProviderPort.toMinorUnits(BaseAdyenPaymentServiceProviderPort.java:53)\r\n\tat org.killbill.billing.plugin.adyen.client.payment.service.BaseAdyenPaymentServiceProviderPort.toMinorUnits(BaseAdyenPaymentServiceProviderPort.java:47)\r\n\tat org.killbill.billing.plugin.adyen.client.payment.service.BaseAdyenPaymentServiceProviderPort.toMinorUnits(BaseAdyenPaymentServiceProviderPort.java:40)\r\n\tat org.killbill.billing.plugin.adyen.client.payment.service.BaseAdyenPaymentServiceProviderPort.toMinorUnits(BaseAdyenPaymentServiceProviderPort.java:33)\r\n\tat org.killbill.billing.plugin.adyen.client.payment.service.AdyenPaymentServiceProviderPort.authorize3DSecure(AdyenPaymentServiceProviderPort.java:156)\r\n\tat org.killbill.billing.plugin.adyen.api.AdyenPaymentPluginApi$1.execute(AdyenPaymentPluginApi.java:342)\r\n\tat org.killbill.billing.plugin.adyen.api.AdyenPaymentPluginApi$1.execute(AdyenPaymentPluginApi.java:336)\r\n\tat org.killbill.billing.plugin.adyen.api.AdyenPaymentPluginApi.executeInitialTransaction(AdyenPaymentPluginApi.java:555)\r\n\tat org.killbill.billing.plugin.adyen.api.AdyenPaymentPluginApi.authorizePayment(AdyenPaymentPluginApi.java:335)\r\n\tat sun.reflect.GeneratedMethodAccessor690.invoke(Unknown Source)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:483)\r\n\tat org.killbill.billing.osgi.ContextClassLoaderHelper$ClassLoaderInvocationHandler$1.execute(ContextClassLoaderHelper.java:142)\r\n\tat org.killbill.commons.profiling.Profiling.executeWithProfiling(Profiling.java:37)\r\n\tat org.killbill.billing.osgi.ContextClassLoaderHelper$ClassLoaderInvocationHandler.invoke(ContextClassLoaderHelper.java:139)\r\n\tat com.sun.proxy.$Proxy149.authorizePayment(Unknown Source)\r\n\tat org.killbill.billing.payment.core.sm.payments.AuthorizeOperation.doCallSpecificOperationCallback(AuthorizeOperation.java:47)\r\n\tat org.killbill.billing.payment.core.sm.payments.PaymentOperation.doOperation(PaymentOperation.java:182)\r\n\tat org.killbill.billing.payment.core.sm.payments.PaymentOperation.doSimpleOperationCallback(PaymentOperation.java:167)\r\n\t... 13 common frames omitted\r\n2015-12-21 22:47:51,402 [catalina-exec-1] WARN  o.k.b.j.mappers.ExceptionMapperBase - Internal error\r\norg.killbill.billing.payment.api.PaymentApiException: Internal payment error : org.killbill.automaton.OperationException: org.killbill.automaton.OperationException: java.lang.ArithmeticException: Scale of amount 10.000000000 is greater than the scale of the currency EUR\r\n\tat org.killbill.billing.payment.core.sm.PaymentAutomatonRunner.runStateMachineOperation(PaymentAutomatonRunner.java:228)\r\n\tat org.killbill.billing.payment.core.sm.PaymentAutomatonRunner.run(PaymentAutomatonRunner.java:193)\r\n\tat org.killbill.billing.payment.core.PaymentProcessor.performOperation(PaymentProcessor.java:321)\r\n\tat org.killbill.billing.payment.core.PaymentProcessor.createAuthorization(PaymentProcessor.java:109)\r\n\tat org.killbill.billing.payment.api.DefaultPaymentApi.createAuthorization(DefaultPaymentApi.java:84)\r\n\tat org.killbill.billing.util.glue.KillbillApiAopModule$ProfilingMethodInterceptor$1.execute(KillbillApiAopModule.java:52)\r\n\tat org.killbill.commons.profiling.Profiling.executeWithProfiling(Profiling.java:33)\r\n\tat org.killbill.billing.util.glue.KillbillApiAopModule$ProfilingMethodInterceptor.invoke(KillbillApiAopModule.java:49)\r\n\tat org.killbill.billing.util.security.AopAllianceMethodInvocationAdapter.proceed(AopAllianceMethodInvocationAdapter.java:45)\r\n\tat org.apache.shiro.authz.aop.AuthorizingAnnotationMethodInterceptor.invoke(AuthorizingAnnotationMethodInterceptor.java:68)\r\n\tat org.killbill.billing.util.security.AopAllianceMethodInterceptorAdapter.invoke(AopAllianceMethodInterceptorAdapter.java:32)\r\n\tat org.killbill.billing.payment.api.DefaultPaymentApi.createAuthorizationWithPaymentControl(DefaultPaymentApi.java:94)\r\n\tat org.killbill.billing.util.glue.KillbillApiAopModule$ProfilingMethodInterceptor$1.execute(KillbillApiAopModule.java:52)\r\n\tat org.killbill.commons.profiling.Profiling.executeWithProfiling(Profiling.java:33)\r\n\tat org.killbill.billing.util.glue.KillbillApiAopModule$ProfilingMethodInterceptor.invoke(KillbillApiAopModule.java:49)\r\n\tat org.killbill.billing.util.security.AopAllianceMethodInvocationAdapter.proceed(AopAllianceMethodInvocationAdapter.java:45)\r\n\tat org.apache.shiro.authz.aop.AuthorizingAnnotationMethodInterceptor.invoke(AuthorizingAnnotationMethodInterceptor.java:68)\r\n\tat org.killbill.billing.util.security.AopAllianceMethodInterceptorAdapter.invoke(AopAllianceMethodInterceptorAdapter.java:32)\r\n\tat org.killbill.billing.jaxrs.resources.PaymentResource.completeTransactionInternal(PaymentResource.java:352)\r\n\tat org.killbill.billing.jaxrs.resources.PaymentResource.completeTransaction(PaymentResource.java:249)\r\n\tat org.killbill.commons.skeleton.metrics.TimedResourceInterceptor.invoke(TimedResourceInterceptor.java:67)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:483)\r\n\tat com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)\r\n\tat com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)\r\n\tat com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)\r\n\tat com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)\r\n\tat com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)\r\n\tat com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)\r\n\tat com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)\r\n\tat com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)\r\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)\r\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)\r\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)\r\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)\r\n\tat com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)\r\n\tat com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:540)\r\n\tat com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:715)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:725)\r\n\tat com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263)\r\n\tat com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178)\r\n\tat com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)\r\n\tat com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62)\r\n\tat org.killbill.billing.server.security.TenantFilter.doFilter(TenantFilter.java:104)\r\n\tat com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)\r\n\tat com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)\r\n\tat org.killbill.billing.server.filters.ResponseCorsFilter.doFilter(ResponseCorsFilter.java:66)\r\n\tat com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)\r\n\tat com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)\r\n\tat com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118)\r\n\tat com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)\r\n\tat org.apache.shiro.guice.web.SimpleFilterChain.doFilter(SimpleFilterChain.java:44)\r\n\tat org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)\r\n\tat org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)\r\n\tat org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\r\n\tat org.apache.shiro.guice.web.SimpleFilterChain.doFilter(SimpleFilterChain.java:41)\r\n\tat org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)\r\n\tat org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)\r\n\tat org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)\r\n\tat org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)\r\n\tat org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)\r\n\tat org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)\r\n\tat org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)\r\n\tat com.codahale.metrics.servlet.AbstractInstrumentedFilter.doFilter(AbstractInstrumentedFilter.java:104)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)\r\n\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)\r\n\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)\r\n\tat org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)\r\n\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)\r\n\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:74)\r\n\tat org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)\r\n\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)\r\n\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:516)\r\n\tat org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1015)\r\n\tat org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:652)\r\n\tat org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)\r\n\tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1575)\r\n\tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1533)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: org.killbill.automaton.OperationException: org.killbill.automaton.OperationException: java.lang.ArithmeticException: Scale of amount 10.000000000 is greater than the scale of the currency EUR\r\n\tat org.killbill.billing.payment.core.sm.payments.PaymentOperation.convertToUnknownTransactionStatusAndErroredPaymentState(PaymentOperation.java:127)\r\n\tat org.killbill.billing.payment.core.sm.payments.PaymentOperation.unwrapExceptionFromDispatchedTask(PaymentOperation.java:104)\r\n\tat org.killbill.billing.payment.core.sm.OperationCallbackBase.dispatchWithAccountLockAndTimeout(OperationCallbackBase.java:75)\r\n\tat org.killbill.billing.payment.core.sm.payments.PaymentOperation.doOperationCallbackWithDispatchAndAccountLock(PaymentOperation.java:156)\r\n\tat org.killbill.billing.payment.core.sm.payments.PaymentOperation.doOperationCallback(PaymentOperation.java:76)\r\n\tat org.killbill.automaton.DefaultOperation.run(DefaultOperation.java:51)\r\n\tat org.killbill.automaton.DefaultState.runOperation(DefaultState.java:80)\r\n\tat org.killbill.billing.payment.core.sm.PaymentAutomatonRunner.runStateMachineOperation(PaymentAutomatonRunner.java:217)\r\n\t... 87 common frames omitted\r\nCaused by: org.killbill.automaton.OperationException: java.lang.ArithmeticException: Scale of amount 10.000000000 is greater than the scale of the currency EUR\r\n\tat org.killbill.billing.payment.core.sm.payments.PaymentOperation.doSimpleOperationCallback(PaymentOperation.java:171)\r\n\tat org.killbill.billing.payment.core.sm.payments.PaymentOperation.access$000(PaymentOperation.java:55)\r\n\tat org.killbill.billing.payment.core.sm.payments.PaymentOperation$2.doOperation(PaymentOperation.java:159)\r\n\tat org.killbill.billing.payment.core.sm.payments.PaymentOperation$2.doOperation(PaymentOperation.java:156)\r\n\tat org.killbill.billing.payment.core.ProcessorBase$WithAccountLock.processAccountWithLock(ProcessorBase.java:199)\r\n\tat org.killbill.billing.payment.core.ProcessorBase$CallableWithAccountLock.call(ProcessorBase.java:182)\r\n\tat org.killbill.billing.payment.core.ProcessorBase$CallableWithAccountLock.call(ProcessorBase.java:163)\r\n\tat org.killbill.billing.payment.dispatcher.CallableWithRequestData.call(CallableWithRequestData.java:48)\r\n\tat org.killbill.commons.concurrent.WrappedCallable.call(WrappedCallable.java:42)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n\tat org.killbill.commons.concurrent.WrappedRunnable.run(WrappedRunnable.java:40)\r\n\t... 3 common frames omitted\r\nCaused by: java.lang.ArithmeticException: Scale of amount 10.000000000 is greater than the scale of the currency EUR\r\n\tat org.joda.money.Money.of(Money.java:75)\r\n\tat org.killbill.billing.plugin.adyen.client.payment.service.BaseAdyenPaymentServiceProviderPort.toMinorUnits(BaseAdyenPaymentServiceProviderPort.java:53)\r\n\tat org.killbill.billing.plugin.adyen.client.payment.service.BaseAdyenPaymentServiceProviderPort.toMinorUnits(BaseAdyenPaymentServiceProviderPort.java:47)\r\n\tat org.killbill.billing.plugin.adyen.client.payment.service.BaseAdyenPaymentServiceProviderPort.toMinorUnits(BaseAdyenPaymentServiceProviderPort.java:40)\r\n\tat org.killbill.billing.plugin.adyen.client.payment.service.BaseAdyenPaymentServiceProviderPort.toMinorUnits(BaseAdyenPaymentServiceProviderPort.java:33)\r\n\tat org.killbill.billing.plugin.adyen.client.payment.service.AdyenPaymentServiceProviderPort.authorize3DSecure(AdyenPaymentServiceProviderPort.java:156)\r\n\tat org.killbill.billing.plugin.adyen.api.AdyenPaymentPluginApi$1.execute(AdyenPaymentPluginApi.java:342)\r\n\tat org.killbill.billing.plugin.adyen.api.AdyenPaymentPluginApi$1.execute(AdyenPaymentPluginApi.java:336)\r\n\tat org.killbill.billing.plugin.adyen.api.AdyenPaymentPluginApi.executeInitialTransaction(AdyenPaymentPluginApi.java:555)\r\n\tat org.killbill.billing.plugin.adyen.api.AdyenPaymentPluginApi.authorizePayment(AdyenPaymentPluginApi.java:335)\r\n\tat sun.reflect.GeneratedMethodAccessor690.invoke(Unknown Source)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:483)\r\n\tat org.killbill.billing.osgi.ContextClassLoaderHelper$ClassLoaderInvocationHandler$1.execute(ContextClassLoaderHelper.java:142)\r\n\tat org.killbill.commons.profiling.Profiling.executeWithProfiling(Profiling.java:37)\r\n\tat org.killbill.billing.osgi.ContextClassLoaderHelper$ClassLoaderInvocationHandler.invoke(ContextClassLoaderHelper.java:139)\r\n\tat com.sun.proxy.$Proxy149.authorizePayment(Unknown Source)\r\n\tat org.killbill.billing.payment.core.sm.payments.AuthorizeOperation.doCallSpecificOperationCallback(AuthorizeOperation.java:47)\r\n\tat org.killbill.billing.payment.core.sm.payments.PaymentOperation.doOperation(PaymentOperation.java:182)\r\n\tat org.killbill.billing.payment.core.sm.payments.PaymentOperation.doSimpleOperationCallback(PaymentOperation.java:167)\r\n\t... 13 common frames omitted\r\n2015-12-21 22:47:51,405 [catalina-exec-1] WARN  o.k.b.j.mappers.ExceptionMapperBase - Internal error\r\norg.killbill.billing.payment.api.PaymentApiException: Internal payment error : org.killbill.automaton.OperationException: org.killbill.automaton.OperationException: java.lang.ArithmeticException: Scale of amount 10.000000000 is greater than the scale of the currency EUR\r\n\tat org.killbill.billing.payment.core.sm.PaymentAutomatonRunner.runStateMachineOperation(PaymentAutomatonRunner.java:228)\r\n\tat org.killbill.billing.payment.core.sm.PaymentAutomatonRunner.run(PaymentAutomatonRunner.java:193)\r\n\tat org.killbill.billing.payment.core.PaymentProcessor.performOperation(PaymentProcessor.java:321)\r\n\tat org.killbill.billing.payment.core.PaymentProcessor.createAuthorization(PaymentProcessor.java:109)\r\n\tat org.killbill.billing.payment.api.DefaultPaymentApi.createAuthorization(DefaultPaymentApi.java:84)\r\n\tat org.killbill.billing.util.glue.KillbillApiAopModule$ProfilingMethodInterceptor$1.execute(KillbillApiAopModule.java:52)\r\n\tat org.killbill.commons.profiling.Profiling.executeWithProfiling(Profiling.java:33)\r\n\tat org.killbill.billing.util.glue.KillbillApiAopModule$ProfilingMethodInterceptor.invoke(KillbillApiAopModule.java:49)\r\n\tat org.killbill.billing.util.security.AopAllianceMethodInvocationAdapter.proceed(AopAllianceMethodInvocationAdapter.java:45)\r\n\tat org.apache.shiro.authz.aop.AuthorizingAnnotationMethodInterceptor.invoke(AuthorizingAnnotationMethodInterceptor.java:68)\r\n\tat org.killbill.billing.util.security.AopAllianceMethodInterceptorAdapter.invoke(AopAllianceMethodInterceptorAdapter.java:32)\r\n\tat org.killbill.billing.payment.api.DefaultPaymentApi.createAuthorizationWithPaymentControl(DefaultPaymentApi.java:94)\r\n\tat org.killbill.billing.util.glue.KillbillApiAopModule$ProfilingMethodInterceptor$1.execute(KillbillApiAopModule.java:52)\r\n\tat org.killbill.commons.profiling.Profiling.executeWithProfiling(Profiling.java:33)\r\n\tat org.killbill.billing.util.glue.KillbillApiAopModule$ProfilingMethodInterceptor.invoke(KillbillApiAopModule.java:49)\r\n\tat org.killbill.billing.util.security.AopAllianceMethodInvocationAdapter.proceed(AopAllianceMethodInvocationAdapter.java:45)\r\n\tat org.apache.shiro.authz.aop.AuthorizingAnnotationMethodInterceptor.invoke(AuthorizingAnnotationMethodInterceptor.java:68)\r\n\tat org.killbill.billing.util.security.AopAllianceMethodInterceptorAdapter.invoke(AopAllianceMethodInterceptorAdapter.java:32)\r\n\tat org.killbill.billing.jaxrs.resources.PaymentResource.completeTransactionInternal(PaymentResource.java:352)\r\n\tat org.killbill.billing.jaxrs.resources.PaymentResource.completeTransaction(PaymentResource.java:249)\r\n\tat org.killbill.commons.skeleton.metrics.TimedResourceInterceptor.invoke(TimedResourceInterceptor.java:67)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:483)\r\n\tat com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)\r\n\tat com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)\r\n\tat com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)\r\n\tat com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)\r\n\tat com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)\r\n\tat com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)\r\n\tat com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)\r\n\tat com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)\r\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)\r\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)\r\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)\r\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)\r\n\tat com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)\r\n\tat com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:540)\r\n\tat com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:715)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:725)\r\n\tat com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263)\r\n\tat com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178)\r\n\tat com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)\r\n\tat com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62)\r\n\tat org.killbill.billing.server.security.TenantFilter.doFilter(TenantFilter.java:104)\r\n\tat com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)\r\n\tat com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)\r\n\tat org.killbill.billing.server.filters.ResponseCorsFilter.doFilter(ResponseCorsFilter.java:66)\r\n\tat com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)\r\n\tat com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)\r\n\tat com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118)\r\n\tat com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)\r\n\tat org.apache.shiro.guice.web.SimpleFilterChain.doFilter(SimpleFilterChain.java:44)\r\n\tat org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)\r\n\tat org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)\r\n\tat org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\r\n\tat org.apache.shiro.guice.web.SimpleFilterChain.doFilter(SimpleFilterChain.java:41)\r\n\tat org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)\r\n\tat org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)\r\n\tat org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)\r\n\tat org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)\r\n\tat org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)\r\n\tat org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)\r\n\tat org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)\r\n\tat com.codahale.metrics.servlet.AbstractInstrumentedFilter.doFilter(AbstractInstrumentedFilter.java:104)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)\r\n\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)\r\n\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)\r\n\tat org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)\r\n\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)\r\n\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:74)\r\n\tat org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)\r\n\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)\r\n\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:516)\r\n\tat org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1015)\r\n\tat org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:652)\r\n\tat org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)\r\n\tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1575)\r\n\tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1533)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: org.killbill.automaton.OperationException: org.killbill.automaton.OperationException: java.lang.ArithmeticException: Scale of amount 10.000000000 is greater than the scale of the currency EUR\r\n\tat org.killbill.billing.payment.core.sm.payments.PaymentOperation.convertToUnknownTransactionStatusAndErroredPaymentState(PaymentOperation.java:127)\r\n\tat org.killbill.billing.payment.core.sm.payments.PaymentOperation.unwrapExceptionFromDispatchedTask(PaymentOperation.java:104)\r\n\tat org.killbill.billing.payment.core.sm.OperationCallbackBase.dispatchWithAccountLockAndTimeout(OperationCallbackBase.java:75)\r\n\tat org.killbill.billing.payment.core.sm.payments.PaymentOperation.doOperationCallbackWithDispatchAndAccountLock(PaymentOperation.java:156)\r\n\tat org.killbill.billing.payment.core.sm.payments.PaymentOperation.doOperationCallback(PaymentOperation.java:76)\r\n\tat org.killbill.automaton.DefaultOperation.run(DefaultOperation.java:51)\r\n\tat org.killbill.automaton.DefaultState.runOperation(DefaultState.java:80)\r\n\tat org.killbill.billing.payment.core.sm.PaymentAutomatonRunner.runStateMachineOperation(PaymentAutomatonRunner.java:217)\r\n\t... 87 common frames omitted\r\nCaused by: org.killbill.automaton.OperationException: java.lang.ArithmeticException: Scale of amount 10.000000000 is greater than the scale of the currency EUR\r\n\tat org.killbill.billing.payment.core.sm.payments.PaymentOperation.doSimpleOperationCallback(PaymentOperation.java:171)\r\n\tat org.killbill.billing.payment.core.sm.payments.PaymentOperation.access$000(PaymentOperation.java:55)\r\n\tat org.killbill.billing.payment.core.sm.payments.PaymentOperation$2.doOperation(PaymentOperation.java:159)\r\n\tat org.killbill.billing.payment.core.sm.payments.PaymentOperation$2.doOperation(PaymentOperation.java:156)\r\n\tat org.killbill.billing.payment.core.ProcessorBase$WithAccountLock.processAccountWithLock(ProcessorBase.java:199)\r\n\tat org.killbill.billing.payment.core.ProcessorBase$CallableWithAccountLock.call(ProcessorBase.java:182)\r\n\tat org.killbill.billing.payment.core.ProcessorBase$CallableWithAccountLock.call(ProcessorBase.java:163)\r\n\tat org.killbill.billing.payment.dispatcher.CallableWithRequestData.call(CallableWithRequestData.java:48)\r\n\tat org.killbill.commons.concurrent.WrappedCallable.call(WrappedCallable.java:42)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n\tat org.killbill.commons.concurrent.WrappedRunnable.run(WrappedRunnable.java:40)\r\n\t... 3 common frames omitted\r\nCaused by: java.lang.ArithmeticException: Scale of amount 10.000000000 is greater than the scale of the currency EUR\r\n\tat org.joda.money.Money.of(Money.java:75)\r\n\tat org.killbill.billing.plugin.adyen.client.payment.service.BaseAdyenPaymentServiceProviderPort.toMinorUnits(BaseAdyenPaymentServiceProviderPort.java:53)\r\n\tat org.killbill.billing.plugin.adyen.client.payment.service.BaseAdyenPaymentServiceProviderPort.toMinorUnits(BaseAdyenPaymentServiceProviderPort.java:47)\r\n\tat org.killbill.billing.plugin.adyen.client.payment.service.BaseAdyenPaymentServiceProviderPort.toMinorUnits(BaseAdyenPaymentServiceProviderPort.java:40)\r\n\tat org.killbill.billing.plugin.adyen.client.payment.service.BaseAdyenPaymentServiceProviderPort.toMinorUnits(BaseAdyenPaymentServiceProviderPort.java:33)\r\n\tat org.killbill.billing.plugin.adyen.client.payment.service.AdyenPaymentServiceProviderPort.authorize3DSecure(AdyenPaymentServiceProviderPort.java:156)\r\n\tat org.killbill.billing.plugin.adyen.api.AdyenPaymentPluginApi$1.execute(AdyenPaymentPluginApi.java:342)\r\n\tat org.killbill.billing.plugin.adyen.api.AdyenPaymentPluginApi$1.execute(AdyenPaymentPluginApi.java:336)\r\n\tat org.killbill.billing.plugin.adyen.api.AdyenPaymentPluginApi.executeInitialTransaction(AdyenPaymentPluginApi.java:555)\r\n\tat org.killbill.billing.plugin.adyen.api.AdyenPaymentPluginApi.authorizePayment(AdyenPaymentPluginApi.java:335)\r\n\tat sun.reflect.GeneratedMethodAccessor690.invoke(Unknown Source)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:483)\r\n\tat org.killbill.billing.osgi.ContextClassLoaderHelper$ClassLoaderInvocationHandler$1.execute(ContextClassLoaderHelper.java:142)\r\n\tat org.killbill.commons.profiling.Profiling.executeWithProfiling(Profiling.java:37)\r\n\tat org.killbill.billing.osgi.ContextClassLoaderHelper$ClassLoaderInvocationHandler.invoke(ContextClassLoaderHelper.java:139)\r\n\tat com.sun.proxy.$Proxy149.authorizePayment(Unknown Source)\r\n\tat org.killbill.billing.payment.core.sm.payments.AuthorizeOperation.doCallSpecificOperationCallback(AuthorizeOperation.java:47)\r\n\tat org.killbill.billing.payment.core.sm.payments.PaymentOperation.doOperation(PaymentOperation.java:182)\r\n\tat org.killbill.billing.payment.core.sm.payments.PaymentOperation.doSimpleOperationCallback(PaymentOperation.java:167)\r\n\t... 13 common frames omitted\r\n2015-12-21 22:47:51,406 [catalina-exec-1] INFO  c.s.j.a.c.filter.LoggingFilter - 9989 * Server out-bound response\r\n9989 < 500\r\n9989 < Content-Type: application/json\r\n9989 < "}}