Solved

Groovy:unable to resolve class error

Posted on 2016-11-07
2
293 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 27

Accepted Solution

by:
dpearson earned 500 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Suggested Solutions

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
The viewer will learn how to implement Singleton Design Pattern in Java.
The viewer will learn how to dynamically set the form action using jQuery.

739 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