[ https://issues.apache.org/jira/browse/OFBIZ-2808?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sumit Pandit updated OFBIZ-2808: -------------------------------- Description: Order view page throws an exception in shipment panel. To verify this please visit at https://localhost:8443/ordermgr/control/orderview?orderId=DEMO10091. The issue was caused by following line - <#assign shipmentRoutSegment = Static["org.ofbiz.entity.util.EntityUtil"].getFirst(delegator.findByAnd("ShipmentRouteSegment", {"shipmentId":shipment.shipmentId}))> I would suggest to 1) get ShipmentRouteSegment record separately and if there is any record then get first record from it. and then check for shipmentRoutSegment (please, also correct the name eg. - shipmentRouteSegment) record if it has contents. 2) Create demo record for ShipmentRouteSegment entity. Thanks Rishi Solanki for report it. was: Order view page throws an exception in shipment panel. To verify this please visit at https://localhost:8443/ordermgr/control/orderview?orderId=DEMO10091. The issue was caused by following line - <#assign shipmentRoutSegment = Static["org.ofbiz.entity.util.EntityUtil"].getFirst(delegator.findByAnd("ShipmentRouteSegment", {"shipmentId":shipment.shipmentId}))> I would suggest to get ShipmentRouteSegment record separately and if there is any record then get first record from it. and then check for shipmentRoutSegment (please, also correct the name eg. - shipmentRouteSegment) record if it has contents. Thanks Rishi Solanki for report it. > Order View page is throwing an exception at shipment panel. > ----------------------------------------------------------- > > Key: OFBIZ-2808 > URL: https://issues.apache.org/jira/browse/OFBIZ-2808 > Project: OFBiz > Issue Type: Bug > Components: order > Affects Versions: SVN trunk > Reporter: Sumit Pandit > Priority: Minor > Fix For: SVN trunk > > > Order view page throws an exception in shipment panel. > To verify this please visit at > https://localhost:8443/ordermgr/control/orderview?orderId=DEMO10091. > The issue was caused by following line - > <#assign shipmentRoutSegment = > Static["org.ofbiz.entity.util.EntityUtil"].getFirst(delegator.findByAnd("ShipmentRouteSegment", > {"shipmentId":shipment.shipmentId}))> > I would suggest to 1) get ShipmentRouteSegment record separately and if there > is any record then get first record from it. and then check for > shipmentRoutSegment (please, also correct the name eg. - > shipmentRouteSegment) record if it has contents. > 2) Create demo record for ShipmentRouteSegment entity. > Thanks Rishi Solanki for report it. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.