cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP Status 500 - / by zero

Former Member
0 Kudos

Hi I am working in hybris print and when I create pages under the chapters and again want to edit this via print cockpit it gives / by zero error and if I refresh the page it gives 500 error .Also please suggest how to add the products in publication page I am not able to drug and drop Items .

Thanks in advance

Accepted Solutions (0)

Answers (7)

Answers (7)

Former Member
0 Kudos

Hi, I just tried to reproduce your described behaviour on a hybris 5.3.0.3 - everything works fine. Like Wojtek suggested, please check your available grids. If this does not help please create a support ticket.

Thanks, Christian

former_member632755
Active Contributor
0 Kudos

Hi,

it seems that you must be using a grid of zero capacity. Of course having such a grid makes no practical sense, nevertheless the data models is not validated and it could be considered a defect.

Cheers, Wojtek

Former Member
0 Kudos

It is 5.3

Former Member
0 Kudos

Hi,

which hybris version are you running?

Former Member
0 Kudos

Hi thanks for reply I have got a task to create a publication of a demo catalogue and the steps I am following is

  1. generating new publication Print-cockpit>new publication

  2. Creating a new Chapter

  3. Creating a new Page Now I want to add some demo product and print this page but when I click on page and click on assign product icon it gives error /by zero

here is stack trace

SEVERE: >>java.lang.ArithmeticException: / by zero

  at de.hybris.platform.printcockpit.model.layout.impl.DynamicModel.initPr

eviewPagesModel(DynamicModel.java:66)

  at de.hybris.platform.printcockpit.view.layouts.grid.AbstractPreviewMode

l.initModel(AbstractPreviewModel.java:122)

  at de.hybris.platform.printcockpit.view.browser.publication.PageLayoutCo

ntainer.(PageLayoutContainer.java:147)

  at de.hybris.platform.printcockpit.components.contentbrowser.MainAreaPag

eStructureViewBrowserComponent.createLayoutContainer(MainAreaPageStructureViewBr owserComponent.java:115)

  at de.hybris.platform.printcockpit.components.contentbrowser.MainAreaPag

eStructureViewBrowserComponent.createMainArea(MainAreaPageStructureViewBrowserCo mponent.java:86)

  at de.hybris.platform.cockpit.components.contentbrowser.AbstractMainArea

BrowserComponent.initialize(AbstractMainAreaBrowserComponent.java:108)

  at de.hybris.platform.cockpit.components.contentbrowser.DefaultAdvancedC

ontentBrowser.initialize(DefaultAdvancedContentBrowser.java:260)

  at de.hybris.platform.printcockpit.components.contentbrowser.PrintPageCo

ntentBrowser.initialize(PrintPageContentBrowser.java:106)

  at de.hybris.platform.cockpit.components.contentbrowser.AbstractContentB

rowser.setModel(AbstractContentBrowser.java:154)

  at de.hybris.platform.cockpit.components.contentbrowser.DefaultAdvancedC

ontentBrowser.setModel(DefaultAdvancedContentBrowser.java:81)

  at de.hybris.platform.cockpit.components.contentbrowser.DefaultSearchCon

tentBrowser.setModel(DefaultSearchContentBrowser.java:50)

  at de.hybris.platform.cockpit.session.impl.AbstractBrowserArea.createBro

wserView(AbstractBrowserArea.java:981)

  at de.hybris.platform.cockpit.session.impl.AbstractBrowserArea.getCorres

pondingContentBrowser(AbstractBrowserArea.java:441)

  at de.hybris.platform.cockpit.session.impl.DefaultSearchBrowserModelList

ener.itemsChanged(DefaultSearchBrowserModelListener.java:266)

  at de.hybris.platform.cockpit.session.impl.AbstractBrowserModel.fireItem
Former Member
0 Kudos

And also try to get the exception from the log files which happens.

Former Member
0 Kudos

Hi,

can you please add some more details:
  1. Which hybris version are you using?

  2. Can you describe step-by-step your two use cases? (Create new page and edit, place items)

I just tested both use cases you described on a hybris 5.4 version and it is working fine.

Thanks, Christian