Project

General

Profile

Actions

Support #7111

closed

Dataminer is not able return output different than a File type (while SAI let user specify other types)

Added by Emmanuel Blondel over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Category:
Other
Start date:
Feb 15, 2017
Due date:
% Done:

100%

Estimated time:
Infrastructure:
Production

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

Actions #2

Updated by Roberto Cirillo over 8 years ago

  • Category set to Other
  • Assignee set to Gianpaolo Coro
Actions #3

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.

Actions #4

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.

Actions #5

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).

Actions #6

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!

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 8.91 MB)