cancel
Showing results for 
Search instead for 
Did you mean: 

NullPointerException

Former Member

SEVERE: Servlet.service() for servlet [DispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException: model is required to obtain a value] with root causelink text

Can you please help us to resolve this ?

Regard's,

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi

the issue is evident from this strack trace

 INFO   | jvm 1    | main    | 2017/07/26 00:00:05.520 | java.lang.NullPointerException: model is required to obtain a value
 INFO   | jvm 1    | main    | 2017/07/26 00:00:05.520 |     at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:226)
 INFO   | jvm 1    | main    | 2017/07/26 00:00:05.520 |     at de.hybris.platform.servicelayer.internal.model.impl.DefaultModelService.getAttributeValue(DefaultModelService.java:299)
 INFO   | jvm 1    | main    | 2017/07/26 00:00:05.520 |     at de.hybris.platform.commercefacades.product.converters.populator.AbstractProductPopulator.getProductAttribute(AbstractProductPopulator.java:53)
 INFO   | jvm 1    | main    | 2017/07/26 00:00:05.520 |     at de.hybris.platform.commercefacades.product.converters.populator.ProductBasicPopulator.populate(ProductBasicPopulator.java:32)
 INFO   | jvm 1    | main    | 2017/07/26 00:00:05.521 |     at com.vistex.facades.populators.VistexProductBasicPopulator.populate(VistexProductBasicPopulator.java:38)

Please check if the service/facade class calling this populator is passing the (non-null) Product Model.