You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fineract.apache.org by "Michael Vorburger (Jira)" <ji...@apache.org> on 2020/11/28 18:32:00 UTC

[jira] [Commented] (FINERACT-1269) JsonSyntaxException: MalformedJsonException: at SynchronousCommandProcessingService.publishEvent

    [ https://issues.apache.org/jira/browse/FINERACT-1269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17240027#comment-17240027 ] 

Michael Vorburger commented on FINERACT-1269:
---------------------------------------------

This one is kind of interesting / curious... I've just noticed that we ALREADY have a {{org.apache.fineract.infrastructure.core.exceptionmapper.JsonSyntaxExceptionMapper}} which is supposed to "do the right thing", which is to return a HTTP 400 client error, instead of log it as an error on the server side and presumably return a 500 internal server error to the client. The goal of resolving this issue would be to figure out what that doesn't actually seem to work? I'll try to see if I can easily spot anything obvious (but otherwise leave it to someone else to properly investigate this one further).

> JsonSyntaxException: MalformedJsonException: at SynchronousCommandProcessingService.publishEvent
> ------------------------------------------------------------------------------------------------
>
>                 Key: FINERACT-1269
>                 URL: https://issues.apache.org/jira/browse/FINERACT-1269
>             Project: Apache Fineract
>          Issue Type: Bug
>            Reporter: Michael Vorburger
>            Priority: Blocker
>
> See FINERACT-932 for general background; I've found this in logs of https://www.fineract.dev:
> {code:java}com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated object at line 1 column 55 path $.
>         at com.google.gson.Gson.fromJson (Gson.java:947)
>         at com.google.gson.Gson.fromJson (Gson.java:897)
>         at com.google.gson.Gson.fromJson (Gson.java:846)
>         at org.apache.fineract.commands.service.SynchronousCommandProcessingService.publishEvent (SynchronousCommandProcessingService.java:273)
>         at org.apache.fineract.commands.service.SynchronousCommandProcessingService.publishErrorEvent (SynchronousCommandProcessingService.java:236)
>         at org.apache.fineract.commands.service.SynchronousCommandProcessingService.processAndLogCommand (SynchronousCommandProcessingService.java:98)
>         at org.apache.fineract.commands.service.SynchronousCommandProcessingService$$FastClassBySpringCGLIB$$ec92d53f.invoke (<generated>)
>         at org.springframework.cglib.proxy.MethodProxy.invoke (MethodProxy.java:218)
>         at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint (CglibAopProxy.java:771)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed (ReflectiveMethodInvocation.java:163)
>         at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed (CglibAopProxy.java:749)
>         at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction (TransactionAspectSupport.java:367)
>         at org.springframework.transaction.interceptor.TransactionInterceptor.invoke (TransactionInterceptor.java:118)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed (ReflectiveMethodInvocation.java:186)
>         at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed (CglibAopProxy.java:749)
>         at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept (CglibAopProxy.java:691)
>         at org.apache.fineract.commands.service.SynchronousCommandProcessingService$$EnhancerBySpringCGLIB$$3f40ed52.processAndLogCommand (<generated>)
>         at org.apache.fineract.commands.service.PortfolioCommandSourceWritePlatformServiceImpl.logCommandSource (PortfolioCommandSourceWritePlatformServiceImpl.java:99)
>         at org.apache.fineract.commands.service.PortfolioCommandSourceWritePlatformServiceImpl$$FastClassBySpringCGLIB$$31c15082.invoke (<generated>)
>         at org.springframework.cglib.proxy.MethodProxy.invoke (MethodProxy.java:218)
>         at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept (CglibAopProxy.java:687)
>         at org.apache.fineract.commands.service.PortfolioCommandSourceWritePlatformServiceImpl$$EnhancerBySpringCGLIB$$97e600fb.logCommandSource (<generated>)
>         at org.apache.fineract.organisation.office.api.OfficesApiResource.createOffice (OfficesApiResource.java:162){code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)