Solved

Groovy:unable to resolve class error

Posted on 2016-11-07
2
27 Views
Last Modified: 2016-11-08
I'm following a tutorial here for a product called bonitasoft.  

The tutorial calls a webservice (http://www.webserviceX.NET getWeather) and then if the call was successful, it tries to load the data onto a form for the user.

The form has a table widget and then as can be seen in the script creates rows for each key pair value brought back from the web service.

In order to do this, the form uses a grovy script to parse the data from a Map object into the table.

As I have cut and pasted the text from the tutorial onto the script which is launched on the form I can't get any further as I get the error shown in the title of this post (see file).  It creates the error in regard to "Entry".

I don't expect an answer that will make the tutorial work, I'm looking for an understanding as to why this error has been raised.  If there is something really obvious missing than I wouldn't know as I'm only following the tutorial and I'm not a groovy expert.

Thanks for reading and please get in contact with any questions that you may have.
bonita2.png
0
Comment
Question by:Anthony Horner
2 Comments
 
LVL 26

Accepted Solution

by:
dpearson earned 500 total points
Comment Utility
I'm also not a groovy expert, but groovy generally follows the rules from Java and in Java the type "Entry" is internal to the Map class.

So I'd try modifying the lines where it says Entry<String,String> to be Map.Entry<String, String> and see if that works.

Another way to solve this would be adding an import statement - but I'm less clear on where those go in a groovy script.

Hope that helps,

Doug
0
 

Author Closing Comment

by:Anthony Horner
Comment Utility
Yes, that worked!

You can import libraries in the normal way (listed above it doesn't seem to throw an error, bonitasoft it seems is based on the eclipse IDE in that respect.

However just including Map. before made the errors go away so thanks!
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now