Closed neoludo closed 5 years ago
Hi Ludovic,
Thank you for a message. We are taking this bug to work. It will be fixed in version 1.10 (Planned date: 10.26.2018)
regards, Dmytro
Hi, Ludovic! Currently I am working on this issue. Could you please help me and describe how did you get the error? I would be grateful for the data you tested it with and the general situation, because I have tried to recreate NullPointer you had and didn't succeed. Thank you in advance.
Hi,
to reproduce the problem, I've just create a consent via REST API, then tried to retrieve All accounts (still via REST API) via postman
Ludovic
I have checked all types of consents, and now in the latest version of develop we have no such an error. Check it yourself, please, if you want to be sure, and let us know if something is still wrong.
I've just do a git pull to be up to date... I still have the problem.
Scenario 1/ request consent : POST /v1/consents/ HTTP/1.1 Host: localhost Accept: application/json X-Request-ID: 2f77a125-aa7a-45c0-b414-cea25a116038 TPP-Transaction-ID: 21d40f65-a150-8343-b539-b9a822ae98c0 Content-Type: application/json cache-control: no-cache Postman-Token: dce1884f-f2aa-4ac1-89ee-4e8277cd98d3 { "access": { "availableAccounts": "allAccounts", "accounts" : [ ], "transactions": [ ] }, "recurringIndicator": "false", "validUntil": "2019-11-06", "frequencyPerDay": "100" }------WebKitFormBoundary7MA4YWxkTrZu0gW--
2/ Request account list with consent ID GET /v1/accounts/ HTTP/1.1 Host: localhost Content-Type: application/json X-Request-Id: 2f77a125-aa7a-45c0-b414-cea25a116038 Consent-ID: c4f3da4c-2065-4036-b3da-de871dd07a43 cache-control: no-cache Postman-Token: ca4485a7-2b8a-4875-83c5-92676bcea6bc
the stacktrace :
java.lang.NullPointerException: null
at de.adorsys.aspsp.xs2a.service.ConsentService.getValidatedSpiAccountConsent(ConsentService.java:300)
at de.adorsys.aspsp.xs2a.service.ConsentService.getValidatedConsent(ConsentService.java:175)
at de.adorsys.aspsp.xs2a.service.AccountService.getAccountDetailsList(AccountService.java:76)
at de.adorsys.aspsp.xs2a.service.AccountService$$FastClassBySpringCGLIB$$610c505e.invoke(
FIX
If I modify class ConsentService to pass public the method ResponseObject
then it works
Thank you for your response. We have tried several times to recreate your error according to the flow you gave, and still no success. I would suggest you to organize a TeamViewer session for us, so we can see the error on you machine.
We could not reproduce the error, so we are closing the issue.If you have any suggestions how to reproduce the error - please, let us know.
Occasionally error was reproduced. The fix is merged to develop, will be released in 1.13. We're sorry for delays with this issue
Hi,
I got that exception when calling : /v1/accounts/ java.lang.NullPointerException: null at de.adorsys.aspsp.xs2a.service.ConsentService.getValidatedSpiAccountConsent(ConsentService.java:284) at de.adorsys.aspsp.xs2a.service.ConsentService.getValidatedConsent(ConsentService.java:162) at de.adorsys.aspsp.xs2a.service.AccountService.getAccountDetailsList(AccountService.java:96) at de.adorsys.aspsp.xs2a.service.AccountService$$FastClassBySpringCGLIB$$610c505e.invoke()
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:736)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at org.springframework.validation.beanvalidation.MethodValidationInterceptor.invoke(MethodValidationInterceptor.java:150)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:55)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:168)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:671)
at de.adorsys.aspsp.xs2a.service.AccountService$$EnhancerBySpringCGLIB$$deb0535.getAccountDetailsList()
at de.adorsys.aspsp.xs2a.web.AccountController.getAccountList(AccountController.java:52)
at de.adorsys.psd2.api.AccountApi._getAccountList(AccountApi.java:78)
[...]
After investigation, call to ConsentService#getValidatedConsent is made on proxy instead of real object. That's because method cannot be proxified as it is package-visible.
You need to declare it as public
Regards Ludovic