You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@taverna.apache.org by Vimig Socrates <vs...@case.edu> on 2018/08/30 04:42:08 UTC

How to Use Beanshells and Lists

Hi,

I've looked across the internet, but can't find a good example on this. I
am trying to take json output from the body of a web service module (called
*jsonedffiles*) here and then output a single element under the key
"fileList" as a JsonArray and I am getting the following error.

Processor 'Beanshell' - Port 'outputVal': Error accessing beanshell
input/output data for net.sf.taverna.t2.activities.
beanshell.BeanshellActivity$1@680a8ae1

I am unsure on why this is, and there is no stack trace for me to debug
with. Any help would be much appreciated. Thank you.

--
Vimig Socrates

Re: How to Use Beanshells and Lists

Posted by Stian Soiland-Reyes <st...@apache.org>.
Hi,

Are you able to paste the Beanshell script in question in here?

Beanshell does not understand JSON directly, so your script would first
need to parse the JSON text string, which means you need to add a JAR
dependency.

The error indicates that either Beanshell can't access an input, or one
of your declared outputs are of a type it does not know how to store.

You can use Advanced -> Show logs folder, if you inspect the log files
you should hopefully find some lines along the line on
ReferenceServiceException that will explain why.

On Thu, 30 Aug 2018 00:42:08 -0400, Vimig Socrates <vs...@case.edu> wrote:
> Hi,
> 
> I've looked across the internet, but can't find a good example on this. I
> am trying to take json output from the body of a web service module (called
> *jsonedffiles*) here and then output a single element under the key
> "fileList" as a JsonArray and I am getting the following error.
> 
> Processor 'Beanshell' - Port 'outputVal': Error accessing beanshell
> input/output data for net.sf.taverna.t2.activities.
> beanshell.BeanshellActivity$1@680a8ae1
> 
> I am unsure on why this is, and there is no stack trace for me to debug
> with. Any help would be much appreciated. Thank you.
> 
> --
> Vimig Socrates
Non-text part: text/html