Skip to Content
2
Feb 15, 2017 at 10:49 AM

Error on deleting pricerow from product cockpit.

74 Views

Hi,

I am trying to give an option for a user to delete a price row from product cockpit.

I modified listViewContentBrowserContext_PriceRow.xml as follows:

 <custom spring-bean="PriceRowBrowserActionColumn" name="Actions"
             visible="true" selectable="true" />

and in productcockpit-web.xml as:

 <bean id="PriceRowBrowserActionColumn" class="de.hybris.platform.cockpit.components.listview.impl.DefaultActionColumnConfiguration"
         scope="prototype">
         <constructor-arg value="Actions" />
         <property name="actions">
             <list>
                 <ref bean="DeleteAction" />
             </list>
         </property>
     </bean>

Now delete button appears in product cockpit:

alt text

When I try to delete the price row from product cockpit using this trash bin button, the price row is deleted however I get the following exception in backend. any fix to this.

WARN [Thread-53] [DefaultTypedObject] Can not retrieve object. Reason: Item has been removed. ERROR [Thread-53] [ListView] An error occurred while rendering cell. java.lang.NullPointerException at de.hybris.platform.servicelayer.internal.converter.impl.DefaultModelConverterRegistry.getSourceTypeFromModel(DefaultModelConverterRegistry.java:675) ~[coreserver.jar:?] at de.hybris.platform.servicelayer.internal.converter.impl.DefaultModelConverterRegistry.getModelConverterByModel(DefaultModelConverterRegistry.java:655) ~[coreserver.jar:?] at de.hybris.platform.servicelayer.internal.model.impl.DefaultModelService.getModelConverterByModel(DefaultModelService.java:946) ~[coreserver.jar:?] at de.hybris.platform.servicelayer.internal.model.impl.DefaultModelService.isNew(DefaultModelService.java:486) ~[coreserver.jar:?] at de.hybris.platform.cockpit.components.listview.impl.DefaultActionCellRenderer.render(DefaultActionCellRenderer.java:75) ~[cockpitserver.jar:?] at de.hybris.platform.cockpit.model.listview.impl.ListView$MyCellRenderer.render(ListView.java:143) ~[cockpitserver.jar:?] at de.hybris.platform.cockpit.model.listview.impl.ListView.renderCell(ListView.java:2306) [cockpitserver.jar:?] at de.hybris.platform.cockpit.model.listview.impl.ListView.continueRenderRows(ListView.java:1991) [cockpitserver.jar:?] at de.hybris.platform.cockpit.model.listview.impl.ListView.renderRows(ListView.java:2766) [cockpitserver.jar:?] at de.hybris.platform.cockpit.model.listview.impl.ListView.initialize(ListView.java:817) [cockpitserver.jar:?] at de.hybris.platform.cockpit.model.listview.impl.ListView.setModel(ListView.java:895) [cockpitserver.jar:?] at de.hybris.platform.cockpit.model.listview.ListViewHelper.loadListView(ListViewHelper.java:276) [cockpitserver.jar:?] at de.hybris.platform.cockpit.components.contentbrowser.ContextAreaBrowserComponent.loadListView(ContextAreaBrowserComponent.java:767) [cockpitserver.jar:?] at de.hybris.platform.cockpit.components.contentbrowser.ContextAreaBrowserComponent.update(ContextAreaBrowserComponent.java:210) [cockpitserver.jar:?] at de.hybris.platform.cockpit.components.contentbrowser.ContextAreaBrowserComponent.update(ContextAreaBrowserComponent.java:1066) [cockpitserver.jar:?] at de.hybris.platform.cockpit.components.contentbrowser.DefaultAdvancedContentBrowser.updateContextArea(DefaultAdvancedContentBrowser.java:500) [cockpitserver.jar:?] at de.hybris.platform.cockpit.session.impl.DefaultSearchContextBrowserModelListener.contextItemsChanged(DefaultSearchContextBrowserModelListener.java:45) [cockpitserver.jar:?] at de.hybris.platform.cockpit.session.impl.AbstractAdvancedBrowserModel.fireContextItemsChanged(AbstractAdvancedBrowserModel.java:546) [cockpitserver.jar:?] at de.hybris.platform.cockpit.session.impl.DefaultSearchBrowserModel.updateItems(DefaultSearchBrowserModel.java:149) [cockpitserver.jar:?] at de.hybris.platform.cockpit.session.impl.AbstractPageableBrowserModel.updateItems(AbstractPageableBrowserModel.java:143) [cockpitserver.jar:?] at de.hybris.platform.admincockpit.components.listview.impl.DeleteAction$1.onEvent(DeleteAction.java:84) [admincockpitserver.jar:?] at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:197) [zk-3.6.4-hybris-patched.jar:3.6.4] at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:141) [zk-3.6.4-hybris-patched.jar:3.6.4] at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.process0(EventProcessingThreadImpl.java:519) [zk-3.6.4-hybris-patched.jar:3.6.4] at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.run(EventProcessingThreadImpl.java:446) [zk-3.6.4-hybris-patched.jar:3.6.4] WARN [Thread-53] [DefaultTypedObject] Can not retrieve object. Reason: Item has been removed.

Attachments

7762-error.jpg (14.1 kB)