Openbravo Issue Tracking System - Modules
View Issue Details
0052771ModulesRemittancepublic2023-06-16 14:212023-06-26 16:48
ngarcia 
frank_gonzalez 
urgentmajoralways
closedfixed 
5
 
 
0052771: Cannot reactivate any Payment if 3.2.232000 version of Remittance Infrastructure module is installed
Cannot reactivate any Payment if 3.2.232000 version of Remittance Infrastructure module is installed
Install the 3.2.232000 version of Remittances Infrastructure module

In the backoffice:

Create a Payment In
Add details
Add a G/L Item
Complete it

Navigate to the financial account transaction related to the payment
Reactivate it
Delete it

Return to the payment and try to reactivate it
The following error message is shown:

java.lang.ClassCastException: class java.lang.String cannot be cast to class org.openbravo.base.structure.BaseOBObject (java.lang.String is in module java.base of loader 'bootstrap'; org.openbravo.base.structure.BaseOBObject is in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @46619a2a)

The log shows:

ERROR org.openbravo.advpaymentmngt.process.FIN_PaymentProcess - class java.lang.String cannot be cast to class org.openbravo.base.structure.BaseOBObject (java.lang.String is in module java.base of loader 'bootstrap'; org.openbravo.base.structure.BaseOBObject is in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @46619a2a)
java.lang.ClassCastException: class java.lang.String cannot be cast to class org.openbravo.base.structure.BaseOBObject (java.lang.String is in module java.base of loader 'bootstrap'; org.openbravo.base.structure.BaseOBObject is in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @46619a2a)
    at org.openbravo.dal.core.DalPropertyAccess$GetterMethod.get(DalPropertyAccess.java:130) ~[classes/:?]
    at org.hibernate.tuple.entity.AbstractEntityTuplizer.getIdentifier(AbstractEntityTuplizer.java:230) ~[hibernate-core-5.6.0.Final.jar:5.6.0.Final]
    at org.hibernate.persister.entity.AbstractEntityPersister.getIdentifier(AbstractEntityPersister.java:5272) ~[hibernate-core-5.6.0.Final.jar:5.6.0.Final]
    at org.hibernate.persister.entity.AbstractEntityPersister.isTransient(AbstractEntityPersister.java:4972) ~[hibernate-core-5.6.0.Final.jar:5.6.0.Final]
    at org.hibernate.engine.internal.ForeignKeys.isTransient(ForeignKeys.java:294) ~[hibernate-core-5.6.0.Final.jar:5.6.0.Final]
    at org.hibernate.engine.internal.ForeignKeys.getEntityIdentifierIfNotUnsaved(ForeignKeys.java:344) ~[hibernate-core-5.6.0.Final.jar:5.6.0.Final]
    at org.hibernate.type.EntityType.getIdentifier(EntityType.java:507) ~[hibernate-core-5.6.0.Final.jar:5.6.0.Final]
    at org.hibernate.type.EntityType.nullSafeSet(EntityType.java:288) ~[hibernate-core-5.6.0.Final.jar:5.6.0.Final]
    at org.hibernate.param.NamedParameterSpecification.bind(NamedParameterSpecification.java:53) ~[hibernate-core-5.6.0.Final.jar:5.6.0.Final]
    at org.hibernate.loader.hql.QueryLoader.bindParameterValues(QueryLoader.java:682) ~[hibernate-core-5.6.0.Final.jar:5.6.0.Final]
    at org.hibernate.loader.Loader.bindPreparedStatement(Loader.java:2150) ~[hibernate-core-5.6.0.Final.jar:5.6.0.Final]
    at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:2127) ~[hibernate-core-5.6.0.Final.jar:5.6.0.Final]
    at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:2059) ~[hibernate-core-5.6.0.Final.jar:5.6.0.Final]
    at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:2037) ~[hibernate-core-5.6.0.Final.jar:5.6.0.Final]
    at org.hibernate.loader.Loader.doQuery(Loader.java:956) ~[hibernate-core-5.6.0.Final.jar:5.6.0.Final]
    at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:357) ~[hibernate-core-5.6.0.Final.jar:5.6.0.Final]
    at org.hibernate.loader.Loader.doList(Loader.java:2868) ~[hibernate-core-5.6.0.Final.jar:5.6.0.Final]
    at org.hibernate.loader.Loader.doList(Loader.java:2850) ~[hibernate-core-5.6.0.Final.jar:5.6.0.Final]
    at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2682) ~[hibernate-core-5.6.0.Final.jar:5.6.0.Final]
    at org.hibernate.loader.Loader.list(Loader.java:2677) ~[hibernate-core-5.6.0.Final.jar:5.6.0.Final]
    at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:540) ~[hibernate-core-5.6.0.Final.jar:5.6.0.Final]
    at org.hibernate.hql.internal.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:400) ~[hibernate-core-5.6.0.Final.jar:5.6.0.Final]
    at org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:219) ~[hibernate-core-5.6.0.Final.jar:5.6.0.Final]
    at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1454) ~[hibernate-core-5.6.0.Final.jar:5.6.0.Final]
    at org.hibernate.query.internal.AbstractProducedQuery.doList(AbstractProducedQuery.java:1649) ~[hibernate-core-5.6.0.Final.jar:5.6.0.Final]
    at org.hibernate.query.internal.AbstractProducedQuery.list(AbstractProducedQuery.java:1617) ~[hibernate-core-5.6.0.Final.jar:5.6.0.Final]
    at org.openbravo.module.remittance.event.PaymentEventHandler.onUpdate(PaymentEventHandler.java:58) ~[classes/:?]
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
...
No tags attached.
caused by defect 0051594 closed francisco_ofarril Several files in org.openbravo.module.remittance are not using bind-params and are not following HQL-style 
Issue History
2023-06-16 14:21ngarciaNew Issue
2023-06-16 14:21ngarciaAssigned To => Triage Omni OMS
2023-06-16 14:21ngarciaRelationship addedcaused by 0051594
2023-06-16 14:26aferrazAssigned ToTriage Omni OMS => frank_gonzalez
2023-06-20 08:29hgbotNote Added: 0151348
2023-06-20 08:34frank_gonzalezStatusnew => acknowledged
2023-06-20 10:00hgbotNote Added: 0151356
2023-06-20 10:10hgbotNote Added: 0151361
2023-06-20 13:16frank_gonzalezStatusacknowledged => scheduled
2023-06-20 14:28hgbotResolutionopen => fixed
2023-06-20 14:28hgbotStatusscheduled => closed
2023-06-20 14:28hgbotNote Added: 0151379
2023-06-20 14:28hgbotNote Added: 0151380
2023-06-26 14:20hgbotNote Added: 0151642
2023-06-26 16:48hgbotNote Added: 0151653
2023-06-26 16:48hgbotNote Added: 0151654

Notes
(0151348)
hgbot   
2023-06-20 08:29   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/916 [^]
(0151356)
hgbot   
2023-06-20 10:00   
Merge request closed: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/916 [^]
(0151361)
hgbot   
2023-06-20 10:10   
Merge Request created: https://gitlab.com/openbravo/product/mods/org.openbravo.module.remittance/-/merge_requests/10 [^]
(0151379)
hgbot   
2023-06-20 14:28   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/mods/org.openbravo.module.remittance [^]
Changeset: 1143c881957119d6c23d2e1f3cfa4fdfadc9f90f
Author: Frank González <frank.gonzalez@openbravo.com>
Date: 20-06-2023 12:28:20
URL: https://gitlab.com/openbravo/product/mods/org.openbravo.module.remittance/-/commit/1143c881957119d6c23d2e1f3cfa4fdfadc9f90f [^]

Fixes ISSUE-52771: Cannot reactivate any Payment

---
M src/org/openbravo/module/remittance/event/PaymentEventHandler.java
---
(0151380)
hgbot   
2023-06-20 14:28   
Merge request merged: https://gitlab.com/openbravo/product/mods/org.openbravo.module.remittance/-/merge_requests/10 [^]
(0151642)
hgbot   
2023-06-26 14:20   
Merge Request created: https://gitlab.com/openbravo/product/mods/org.openbravo.module.remittance/-/merge_requests/11 [^]
(0151653)
hgbot   
2023-06-26 16:48   
Repository: https://gitlab.com/openbravo/product/mods/org.openbravo.module.remittance [^]
Changeset: 490f4fecab8fa8ecca30aa879ece1cbbbf101bb4
Author: Frank González <frank.gonzalez@openbravo.com>
Date: 26-06-2023 14:48:53
URL: https://gitlab.com/openbravo/product/mods/org.openbravo.module.remittance/-/commit/490f4fecab8fa8ecca30aa879ece1cbbbf101bb4 [^]

Related to ISSUE-52771: Changed module version number

---
M src-db/database/sourcedata/AD_MODULE.xml
---
(0151654)
hgbot   
2023-06-26 16:48   
Merge request merged: https://gitlab.com/openbravo/product/mods/org.openbravo.module.remittance/-/merge_requests/11 [^]