on 2018 Jun 20 7:48 PM
Trying to obtain all countries using Hybris classes but I am getting a NPE. In stack trace my code is trying to get all countries via DefaultCountryDao.findCountries().
Stacktrace:
java.lang.NullPointerException: null
at de.hybris.platform.servicelayer.session.impl.DefaultSessionService.executeInLocalView(DefaultSessionService.java:93) ~[coreserver.jar:?]
at de.hybris.platform.servicelayer.search.impl.DefaultFlexibleSearchService.getJaloResult(DefaultFlexibleSearchService.java:395) ~[coreserver.jar:?]
at de.hybris.platform.servicelayer.search.impl.DefaultFlexibleSearchService.search(DefaultFlexibleSearchService.java:167) ~[coreserver.jar:?]
at de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao.find(DefaultGenericDao.java:44) ~[coreserver.jar:?]
at de.hybris.platform.servicelayer.i18n.daos.impl.DefaultCountryDao.findCountries(DefaultCountryDao.java:47) ~[coreserver.jar:?]
at com.myClass.myMethod(myClass.java:64) ~[classes/:?]## - NPE
I have also noticed same issue using commonI18NService.getAllCountries(). Interesting part is in regards to session service. I'm a bit clueless on where to start to investigate more at?
Request clarification before answering.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.