Support #7111
closedDataminer is not able return output different than a File type (while SAI let user specify other types)
100%
Description
I've configured a simple algorithm (2 input strings) for which i want to return a string. The SAI lets me assign a String Type to the Output definition, but Dataminer fails.
Java.lang.RuntimeException: java.io.File cannot be cast to java.lang.String
At first view it looks like a bug, but maybe Dataminer is designed to be limited to File output? If so, user should not be able to change type in the Output definition, it should be always "File".
Thanks in advance
Updated by Roberto Cirillo over 8 years ago
- Category set to Other
- Assignee set to Gianpaolo Coro
Updated by Gianpaolo Coro over 8 years ago
- % Done changed from 0 to 100
Dear Emmanuel, yes, using SAI the output can be only of File type because of some communication issue on strings we found between R and Java, thus we should have disabled the String option.
This will be solved and treated alternatively in the next future, but now is a safeguard to R developers and integrators.
Updated by Emmanuel Blondel over 8 years ago
- Status changed from New to Closed
Ok thanks for your prompt reply, let us now in case/when it is reactivated. For the timebeing, i will use a basic JSON file wrapper then.
Updated by Gianpaolo Coro over 8 years ago
This limitation is not valid for those using the DataMiner Java development framework (https://wiki.gcube-system.org/gcube/How-to_Implement_Algorithms_for_DataMiner).
Updated by Emmanuel Blondel over 8 years ago
humm indeed, good to know, so if i switch to a Java algorithm (as i did in the past) it would solve it. Thanks for this!