[ 
https://issues.apache.org/jira/browse/OFBIZ-1400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12551144
 ] 

Bilgin Ibryam commented on OFBIZ-1400:
--------------------------------------

Jacopo,

Thanks for the suggestion. I added the hidden field you proposed and commited 
in r603765

> NullPointerException in Shipment Plan screen
> --------------------------------------------
>
>                 Key: OFBIZ-1400
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1400
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product
>    Affects Versions: SVN trunk
>            Reporter: Bilgin Ibryam
>            Assignee: Bilgin Ibryam
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: shipment.patch
>
>
> Hi all,
> This bug appears if you create an order with more than one ship group.
> After the order is created and approved, from order view screens you can 
> create a shipment for specific ship group. For example you can use the 
> following link  "New Shipment For Ship Group [00001] "  . At this stage the 
> shipment is created (for this order and this ship group!) and we can go to 
> Shipment Plan  screen. After entering the orderId and submitting the form we 
> can see ALL THE ITEMS from the order, also the items that does not belongs to 
> this ship group.  If we add items that does not belongs to this ship group, 
> to current shipment plan and use  "Shipment Plan --> Order Items" link the 
> following error is generated: 
>      [java] ---- exception report 
> ----------------------------------------------------------
>      [java] WARNING: no cause (from getCause) found for BSH EvalError: 
> Sourced file: 
> component://product/webapp/facility/WEB-INF/actions/shipment/AddItemsFromOrder.bsh
>  : Typed variable declaration : Object constructor : at Line: 207 : in file: 
> component://product/webapp/facility/WEB-INF/actions/shipment/AddItemsFromOrder.bsh
>  : new HashMap ( orderItemShipGroupAssoc )
>      [java] Target exception: java.lang.NullPointerException
>      [java] Exception: bsh.TargetError
>      [java] Message: Sourced file: 
> component://product/webapp/facility/WEB-INF/actions/shipment/AddItemsFromOrder.bsh
>  : Typed variable declaration : Object constructor
>      [java] ---- stack trace 
> I did a fast fix for this bug so it ignores the items that does not belong to 
> this ship group.
> Another solution could be to add a "Ship Group Seq Id" field in Shipment Plan 
> screen,  so the items will be filtered by orderId AND "Ship Group Seq Id" 
> This way it will be not possible to plan items from another ship group, when 
> the shipment is created for a specific Ship Group. What do you think ?
> Bilgin Ibryam

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to