cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

IllegalStateException thrown when loading Jasper report to reportcockpit

Former Member
0 Kudos
345

We are trying to load a report through the reportcockpit wizard, but on the confirmation we get the following error thrown:

  ERROR [Thread-434] [Wizard] Could not finish wizard, reason:
   de.hybris.platform.cockpit.wizards.exception.WizardConfirmationException: java.lang.IllegalStateException: value container already hold value for Media.catalogVersion::REFERENCE? and language null
          at de.hybris.platform.cockpit.reports.wizards.NewJasperReportWizard$4.done(NewJasperReportWizard.java:256) ~[cockpitserver.jar:?]
          at de.hybris.platform.cockpit.wizards.Wizard.doDone(Wizard.java:530) [cockpitserver.jar:?]
          at de.hybris.platform.cockpit.wizards.generic.GenericItemWizard.doDone(GenericItemWizard.java:680) [cockpitserver.jar:?]
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_121]
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_121]
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_121]
          at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_121]
          at bsh.Reflect.invokeMethod(Reflect.java:134) [bsh-2.0b5.jar:2.0b5 2005-06-12 04:50:41]
          at bsh.Reflect.invokeObjectMethod(Reflect.java:80) [bsh-2.0b5.jar:2.0b5 2005-06-12 04:50:41]
          at bsh.Name.invokeMethod(Name.java:858) [bsh-2.0b5.jar:2.0b5 2005-06-12 04:50:41]
          at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:75) [bsh-2.0b5.jar:2.0b5 2005-06-12 04:50:41]
          at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102) [bsh-2.0b5.jar:2.0b5 2005-06-12 04:50:41]
          at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47) [bsh-2.0b5.jar:2.0b5 2005-06-12 04:50:41]
          at bsh.Interpreter.eval(Interpreter.java:645) [bsh-2.0b5.jar:2.0b5 2005-06-12 04:50:41]
          at bsh.Interpreter.eval(Interpreter.java:739) [bsh-2.0b5.jar:2.0b5 2005-06-12 04:50:41]
          at org.zkoss.zk.scripting.bsh.BSHInterpreter.exec(BSHInterpreter.java:119) [zk-3.6.4-hybris-patched.jar:3.6.4]
          at org.zkoss.zk.scripting.util.GenericInterpreter.interpret(GenericInterpreter.java:310) [zk-3.6.4-hybris-patched.jar:3.6.4]
          at org.zkoss.zk.ui.impl.PageImpl.interpret(PageImpl.java:797) [zk-3.6.4-hybris-patched.jar:3.6.4]
          at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:176) [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]
  Caused by: java.lang.IllegalStateException: value container already hold value for Media.catalogVersion::REFERENCE? and language null
          at de.hybris.platform.cockpit.services.values.ObjectValueContainer.addValue(ObjectValueContainer.java:269) ~[cockpitserver.jar:?]
          at de.hybris.platform.cockpit.reports.wizards.NewJasperReportWizard$4.done(NewJasperReportWizard.java:240) ~[cockpitserver.jar:?]
          ... 21 more

This is my first time coming across this kind of error. How should we interpret this error message?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Dear Mr. Mendoza,

This error is returned in class ObjectValueHolder.java If a 'holder' with property value and isocode was already declared once then new 'holder' will not be added to a collection of properties for the file.

An example configuration of these properties for uploaded files can be seen at https://help.hybris.com/6.7.0/hcd/8babc4778669101493e3e9234f73106a.html

Please try to check if there are multiple values for the same property in the file.

Best Regards,