For a mapping from a property with cardinality 0..1 called "NAME" to another property with 1 using a groovy script(greedy) with this script
"BP_Plan_" + _.crypto.sha256 (NAME)
an error is displayed but there is no error message displayed as expected.
Usually, when groovy scripts cause errors, the respective error message is displayed on top of the dialogue.
When disabling the validation in the function and letting the transformation run, this is the error message displayed:
eu.esdihumboldt.hale.common.align.transformation.function.TransformationException
at eu.esdihumboldt.cst.functions.groovy.GroovyTransformation.evaluate(GroovyTransformation.java:186)
at eu.esdihumboldt.cst.functions.groovy.GroovyGreedyTransformation.evaluate(GroovyGreedyTransformation.java:94)
at eu.esdihumboldt.hale.common.align.transformation.function.impl.AbstractSingleTargetPropertyTransformation.evaluate(AbstractSingleTargetPropertyTransformation.java:57)
at eu.esdihumboldt.hale.common.align.transformation.function.impl.AbstractPropertyTransformation.execute(AbstractPropertyTransformation.java:102)
at eu.esdihumboldt.cst.internal.FunctionExecutor.executeTransformation(FunctionExecutor.java:224)
at eu.esdihumboldt.cst.internal.FunctionExecutor.processValid(FunctionExecutor.java:133)
at eu.esdihumboldt.hale.common.align.model.transformation.tree.visitor.CellNodeValidator.visit(CellNodeValidator.java:110)
at eu.esdihumboldt.hale.common.align.model.transformation.tree.impl.CellNodeImpl.accept(CellNodeImpl.java:103)
at eu.esdihumboldt.hale.common.align.model.transformation.tree.impl.TargetNodeImpl.accept(TargetNodeImpl.java:177)
at eu.esdihumboldt.hale.common.align.model.transformation.tree.impl.TransformationTreeImpl.accept(TransformationTreeImpl.java:129)
at eu.esdihumboldt.cst.internal.TreePropertyTransformer$2.lambda$0(TreePropertyTransformer.java:224)
at eu.esdihumboldt.hale.common.core.report.SimpleLogContext.withLog(SimpleLogContext.java:112)
at eu.esdihumboldt.cst.internal.TreePropertyTransformer$2.run(TreePropertyTransformer.java:181)
at eu.esdihumboldt.cst.internal.TreePropertyTransformer.publish(TreePropertyTransformer.java:264)
at eu.esdihumboldt.cst.functions.core.Retype.execute(Retype.java:71)
at eu.esdihumboldt.cst.ConceptualSchemaTransformer.doTypeTransformation(ConceptualSchemaTransformer.java:327)
at eu.esdihumboldt.cst.ConceptualSchemaTransformer.transform(ConceptualSchemaTransformer.java:155)
at eu.esdihumboldt.hale.ui.service.instance.internal.orient.OrientInstanceService$5.run(OrientInstanceService.java:473)
at eu.esdihumboldt.hale.ui.util.io.ThreadProgressMonitor$1.run(ThreadProgressMonitor.java:122)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor161.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at eu.esdihumboldt.cst.functions.groovy.helper.extension.HelperFunctionsExtension$2.call(HelperFunctionsExtension.java:284)
at eu.esdihumboldt.cst.functions.groovy.helper.extension.HelperFunctionContextWrapper$1.call(HelperFunctionContextWrapper.java:53)
at sun.reflect.GeneratedMethodAccessor160.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1225)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1034)
at org.codehaus.groovy.runtime.InvokerHelper.invokePojoMethod(InvokerHelper.java:935)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:926)
at eu.esdihumboldt.cst.functions.groovy.helper.HelperFunctions.invokeMethod(HelperFunctions.java:93)
at eu.esdihumboldt.cst.functions.groovy.internal.GroovyObjectMetaClass.invokeMethod(GroovyObjectMetaClass.java:63)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:41)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:120)
at org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(GroovyInterceptor.java:21)
at eu.esdihumboldt.util.groovy.sandbox.internal.RestrictiveGroovyInterceptor.onMethodCall(RestrictiveGroovyInterceptor.java:266)
at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:118)
at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:115)
at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:236)
at Script1.run(Script1.groovy)
at eu.esdihumboldt.util.groovy.sandbox.DefaultGroovyService.evaluate(DefaultGroovyService.java:189)
at eu.esdihumboldt.hale.ui.service.groovy.internal.PreferencesGroovyService.evaluate(PreferencesGroovyService.java:154)
at eu.esdihumboldt.cst.functions.groovy.GroovyTransformation.evaluate(GroovyTransformation.java:127)
... 19 more
Caused by: java.lang.NumberFormatException: For input string: "Hochstein II"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:580)
at java.lang.Byte.parseByte(Byte.java:149)
at java.lang.Byte.valueOf(Byte.java:205)
at java.lang.Byte.valueOf(Byte.java:231)
at org.codehaus.groovy.runtime.StringGroovyMethods.asType(StringGroovyMethods.java:182)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.asType(DefaultGroovyMethods.java:16226)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1463)
at org.codehaus.groovy.runtime.InvokerHelper.invokeStaticMethod(InvokerHelper.java:973)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.asArrayType(DefaultGroovyMethods.java:15795)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.asType(DefaultGroovyMethods.java:10837)
at org.codehaus.groovy.runtime.dgm$53.doMethodInvoke(Unknown Source)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1225)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1034)
at groovy.lang.DelegatingMetaClass.invokeMethod(DelegatingMetaClass.java:151)
at eu.esdihumboldt.cst.functions.groovy.internal.AsMultiValueMetaClass.invokeMethod(AsMultiValueMetaClass.java:69)
at eu.esdihumboldt.cst.functions.groovy.helpers.CryptoHelpers._sha256(CryptoHelpers.groovy:54)
... 48 more
This issue has been automatically marked as stale because it has not had activity in the last 60 days. It will be closed in two weeks if no further activity occurs. Thank you for your contributions.
For a mapping from a property with cardinality 0..1 called "NAME" to another property with 1 using a groovy script(greedy) with this script
"BP_Plan_" + _.crypto.sha256 (NAME)
an error is displayed but there is no error message displayed as expected.Usually, when groovy scripts cause errors, the respective error message is displayed on top of the dialogue.
When disabling the validation in the function and letting the transformation run, this is the error message displayed: