View Issue Details

IDProjectCategoryView StatusLast Update
0002233SymmetricDSBugpublic2015-03-16 11:42
Reporterglodererm Assigned To 
Priorityhigh 
Status newResolutionopen 
Product Version3.7.4 
Summary0002233: IgnoreColumnException and IgnoreRowException are not handled correctly in bsh extension scripts
DescriptionWhen throwing an "IgnoreColumnException" or an "IgnoreRowException" in a bsh extension script the extension service does not unwrap the TargetError in which the original exception has been nested by the bsh interpreter.

The "BshColumnTransform" handles this correctly and rethrows the target exception.
Steps To ReproduceSave to file "samples/test.bsh":

transform(platform, context, column, data, sourceValues, newValue, oldValue) {
    throw new org.jumpmind.symmetric.io.data.transform.IgnoreColumnException();
}


Register in symmetric-extensions.xml:

<lang:bsh
    id="test"
    refresh-check-delay="10000"
    script-source="file:samples/test.bsh"
    script-interfaces="org.jumpmind.symmetric.io.data.transform.ISingleValueColumnTransform">
</lang:bsh>

Tagstransformation

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2015-03-16 11:34 glodererm New Issue
2015-03-16 11:42 glodererm Tag Attached: column transformation
2019-04-12 12:50 admin Tag Renamed column transformation => transformation