Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Groovy:unable to resolve class error

Posted on 2016-11-07
2
Medium Priority
?
488 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

Question has a verified solution.

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

Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
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…
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 …
Suggested Courses

688 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