Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Groovy:unable to resolve class error

Posted on 2016-11-07
2
Medium Priority
?
573 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 28

Accepted Solution

by:
dpearson earned 2000 total points
ID: 41878136
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
ID: 41878361
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Measuring Server's processing rate with a simple powershell command. The differences in processing rate also was recorded in different use-cases, when a server in free and busy states.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

885 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