Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regex Analysis and Formatted String mapping on source property with value and attribute not working #1025

Open
JohannaOtt opened this issue May 12, 2023 · 5 comments
Assignees
Labels
bug cst done The issue has been completed
Milestone

Comments

@JohannaOtt
Copy link
Contributor

JohannaOtt commented May 12, 2023

For regex analysis function, the stacktrace is the following with a ConverterNotFoundException:

Stacktrace:
ERROR e.e.h.c.a.t.r.i.DefaultTransformationReporter(169) - Skipping property transformation: Executing property transformation failed. (2 times) org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type eu.esdihumboldt.hale.common.instance.model.impl.DefaultInstance to type java.lang.String at org.springframework.core.convert.support.GenericConversionService.handleConverterNotFound(GenericConversionService.java:475) ~[spring-core-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:175) ~[spring-core-3.1.1.RELEASE.jar:3.1.1.RELEASE] at org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:154) ~[spring-core-3.1.1.RELEASE.jar:3.1.1.RELEASE] at eu.esdihumboldt.hale.common.align.transformation.function.impl.PropertyValueImpl.getValueAs(PropertyValueImpl.java:77) ~[eu.esdihumboldt.hale.common.align-4.2.0-SNAPSHOT.jar:na] at eu.esdihumboldt.cst.functions.string.RegexAnalysis.evaluate(RegexAnalysis.java:65) ~[eu.esdihumboldt.cst.functions.string-4.2.0-SNAPSHOT.jar:na] at eu.esdihumboldt.hale.common.align.transformation.function.impl.AbstractSingleTargetPropertyTransformation.evaluate(AbstractSingleTargetPropertyTransformation.java:57) ~[eu.esdihumboldt.hale.common.align-4.2.0-SNAPSHOT.jar:na] at eu.esdihumboldt.hale.common.align.transformation.function.impl.AbstractPropertyTransformation.execute(AbstractPropertyTransformation.java:102) ~[eu.esdihumboldt.hale.common.align-4.2.0-SNAPSHOT.jar:na] at eu.esdihumboldt.cst.internal.FunctionExecutor.executeTransformation(FunctionExecutor.java:224) ~[eu.esdihumboldt.cst-4.2.0-SNAPSHOT.jar:na] at eu.esdihumboldt.cst.internal.FunctionExecutor.processValid(FunctionExecutor.java:133) ~[eu.esdihumboldt.cst-4.2.0-SNAPSHOT.jar:na] at eu.esdihumboldt.hale.common.align.model.transformation.tree.visitor.CellNodeValidator.visit(CellNodeValidator.java:110) ~[eu.esdihumboldt.hale.common.align-4.2.0-SNAPSHOT.jar:na] at eu.esdihumboldt.hale.common.align.model.transformation.tree.impl.CellNodeImpl.accept(CellNodeImpl.java:103) ~[eu.esdihumboldt.hale.common.align-4.2.0-SNAPSHOT.jar:na] at eu.esdihumboldt.hale.common.align.model.transformation.tree.impl.TargetNodeImpl.accept(TargetNodeImpl.java:177) ~[eu.esdihumboldt.hale.common.align-4.2.0-SNAPSHOT.jar:na] at eu.esdihumboldt.hale.common.align.model.transformation.tree.impl.TransformationTreeImpl.accept(TransformationTreeImpl.java:129) ~[eu.esdihumboldt.hale.common.align-4.2.0-SNAPSHOT.jar:na] at eu.esdihumboldt.cst.internal.TreePropertyTransformer$2.lambda$0(TreePropertyTransformer.java:224) ~[eu.esdihumboldt.cst-4.2.0-SNAPSHOT.jar:na] at eu.esdihumboldt.hale.common.core.report.SimpleLogContext.withLog(SimpleLogContext.java:112) ~[eu.esdihumboldt.hale.common.core-4.2.0-SNAPSHOT.jar:na] at eu.esdihumboldt.cst.internal.TreePropertyTransformer$2.run(TreePropertyTransformer.java:181) ~[eu.esdihumboldt.cst-4.2.0-SNAPSHOT.jar:na] at eu.esdihumboldt.cst.internal.TreePropertyTransformer.publish(TreePropertyTransformer.java:264) ~[eu.esdihumboldt.cst-4.2.0-SNAPSHOT.jar:na] at eu.esdihumboldt.cst.functions.core.Retype.execute(Retype.java:76) ~[eu.esdihumboldt.cst.functions.core-4.2.0-SNAPSHOT.jar:na] at eu.esdihumboldt.cst.ConceptualSchemaTransformer.doTypeTransformation(ConceptualSchemaTransformer.java:327) ~[eu.esdihumboldt.cst-4.2.0-SNAPSHOT.jar:na] at eu.esdihumboldt.cst.ConceptualSchemaTransformer.transform(ConceptualSchemaTransformer.java:155) ~[eu.esdihumboldt.cst-4.2.0-SNAPSHOT.jar:na] at eu.esdihumboldt.hale.common.headless.transform.Transformation$5.run(Transformation.java:398) [eu.esdihumboldt.hale.common.headless-4.2.0-SNAPSHOT.jar:na] at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63) [org.eclipse.core.jobs-3.10.700.v20200106-1020.jar:na]

First investigation dev team: "it appears to happen only for Regex Analysis cells that map from a source property that has both a value itself as well as an attribute (like gml:identifier or gml:description). If I change the source property e.g. to id, it works. When the source property is set to identifier, the transformation fails and a Java Object description shows up in the field "Sample text"."

Update: This is not happening only for Regex Analysis but at least as well for Formatted String mapping. There is no error message in that case but the target property contains values such as eu.esdihumboldt.hale.common.instance.orient.storage.DatabaseHandle$InstanceHandle@1008ac5f

@JohannaOtt JohannaOtt changed the title Regex Analysis mapping on source property with value and attribute running into ConverterNotFoundException Regex Analysis and Character String mapping on source property with value and attribute running into errors Dec 27, 2023
@JohannaOtt JohannaOtt changed the title Regex Analysis and Character String mapping on source property with value and attribute running into errors Regex Analysis and Formatted String mapping on source property with value and attribute running into errors Dec 27, 2023
@JohannaOtt JohannaOtt changed the title Regex Analysis and Formatted String mapping on source property with value and attribute running into errors Regex Analysis and Formatted String mapping on source property with value and attribute not working Dec 27, 2023
@JohannaOtt
Copy link
Contributor Author

@emanuelaepure10 Can this issue be closed with this PR being merged in the meantime?

@JohannaOtt
Copy link
Contributor Author

@emanuelaepure10 Can this issue be closed?

@emanuelaepure10
Copy link
Contributor

emanuelaepure10 commented May 6, 2024

It will go in the next release. So, feel free to follow the usual workflow.

@JohannaOtt
Copy link
Contributor Author

@florianesser What is the usual workflow? Are issues closed as soon as a fix is available or only once it is released?

@florianesser
Copy link
Member

Was fixed in this commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cst done The issue has been completed
Projects
None yet
Development

No branches or pull requests

3 participants