Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0052771
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Modules] Remittancemajoralways2023-06-16 14:212023-06-26 16:48
ReporterngarciaView Statuspublic 
Assigned Tofrank_gonzalez 
PriorityurgentResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Regression date
Regression introduced by commit
Regression level
Review Assigned To
Regression introduced in release
Summary

0052771: Cannot reactivate any Payment if 3.2.232000 version of Remittance Infrastructure module is installed

DescriptionCannot reactivate any Payment if 3.2.232000 version of Remittance Infrastructure module is installed
Steps To ReproduceInstall 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) ~[?:?]
...
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
caused by defect 0051594 closedfrancisco_ofarril Several files in org.openbravo.module.remittance are not using bind-params and are not following HQL-style 

-  Notes
(0151348)
hgbot (developer)
2023-06-20 08:29

Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/916 [^]
(0151356)
hgbot (developer)
2023-06-20 10:00

Merge request closed: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/916 [^]
(0151361)
hgbot (developer)
2023-06-20 10:10

Merge Request created: https://gitlab.com/openbravo/product/mods/org.openbravo.module.remittance/-/merge_requests/10 [^]
(0151379)
hgbot (developer)
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 (developer)
2023-06-20 14:28

Merge request merged: https://gitlab.com/openbravo/product/mods/org.openbravo.module.remittance/-/merge_requests/10 [^]
(0151642)
hgbot (developer)
2023-06-26 14:20

Merge Request created: https://gitlab.com/openbravo/product/mods/org.openbravo.module.remittance/-/merge_requests/11 [^]
(0151653)
hgbot (developer)
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 (developer)
2023-06-26 16:48

Merge request merged: https://gitlab.com/openbravo/product/mods/org.openbravo.module.remittance/-/merge_requests/11 [^]

- Issue History
Date Modified Username Field Change
2023-06-16 14:21 ngarcia New Issue
2023-06-16 14:21 ngarcia Assigned To => Triage Omni OMS
2023-06-16 14:21 ngarcia Relationship added caused by 0051594
2023-06-16 14:26 aferraz Assigned To Triage Omni OMS => frank_gonzalez
2023-06-20 08:29 hgbot Note Added: 0151348
2023-06-20 08:34 frank_gonzalez Status new => acknowledged
2023-06-20 10:00 hgbot Note Added: 0151356
2023-06-20 10:10 hgbot Note Added: 0151361
2023-06-20 13:16 frank_gonzalez Status acknowledged => scheduled
2023-06-20 14:28 hgbot Resolution open => fixed
2023-06-20 14:28 hgbot Status scheduled => closed
2023-06-20 14:28 hgbot Note Added: 0151379
2023-06-20 14:28 hgbot Note Added: 0151380
2023-06-26 14:20 hgbot Note Added: 0151642
2023-06-26 16:48 hgbot Note Added: 0151653
2023-06-26 16:48 hgbot Note Added: 0151654


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker