You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Nicolas Malin (Jira)" <ji...@apache.org> on 2025/04/22 07:29:00 UTC

[jira] [Assigned] (OFBIZ-13225) ClassCastException on PO Receipt in OFBiz - GStringImpl cannot be cast to String

     [ https://issues.apache.org/jira/browse/OFBIZ-13225?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nicolas Malin reassigned OFBIZ-13225:
-------------------------------------

    Assignee: Nicolas Malin

> ClassCastException on PO Receipt in OFBiz - GStringImpl cannot be cast to String
> --------------------------------------------------------------------------------
>
>                 Key: OFBIZ-13225
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-13225
>             Project: OFBiz
>          Issue Type: Bug
>          Components: order
>    Affects Versions: Upcoming Branch
>            Reporter: Yashwant Dhakad
>            Assignee: Nicolas Malin
>            Priority: Major
>         Attachments: POReceiveError.png, POScreenshot.png
>
>
> *Issue Description:
> *
> When attempting to receive a Purchase Order in OFBiz, we are encountering the following error:
> {code}
> java.lang.ClassCastException: class org.codehaus.groovy.runtime.GStringImpl cannot be cast to class java.lang.String 
> (org.codehaus.groovy.runtime.GStringImpl is in unnamed module of loader 'app'; java.lang.String is in module java.base of loader 'bootstrap')
> This issue seems related to Groovy GStringImpl being used where a standard java.lang.String is expected, likely due to Groovy string interpolation being passed to a strict Java method.
> {code}
> *Steps to Reproduce:*
> Navigate to the PO Receipt module in OFBiz.
> Attempt to receive an existing Purchase Order.
> The error appears on screen and the receipt process fails.
> *Expected Result:*
> The Purchase Order should be received without any exceptions, and the confirmation message should be displayed.
> *Actual Result:*
> The system throws a ClassCastException during the receipt process, halting further processing.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)