Re: [ANNOUNCE] Apache Groovy 2.5.9 released

2020-01-14 Thread Robert Stagner
It appears that the online documentation is missing:
https://groovy-lang.org/single-page-documentation.html

On Tue, Jan 14, 2020 at 12:30 AM Paul King  wrote:

> Dear community,
>
> The Apache Groovy team is pleased to announce version 2.5.9 of Apache
> Groovy.
> Apache Groovy is a multi-faceted programming language for the JVM.
> Further details can be found at the https://groovy.apache.org website.
>
> This release is a maintenance release of the GROOVY_2_5_X branch.
> It is strongly encouraged that all users using prior
> versions on this branch upgrade to this version.
>
> This release includes 30 bug fixes/improvements as outlined in the
> changelog:
>
> https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12318123=12345981
>
> Sources, convenience binaries, downloadable documentation and an SDK
> bundle can be found at: https://groovy.apache.org/download.html
> We recommend you verify your installation using the information on that
> page.
>
> Jars are also available within the major binary repositories.
>
> We welcome your help and feedback and in particular want
> to thank everyone who contributed to this release.
>
> For more information on how to report problems, and to get involved,
> visit the project website at https://groovy.apache.org/
>
> Best regards,
>
> The Apache Groovy team.
>


-- 
Regards,
Robert

   - *The human race has one really effective weapon, and that is laughter.*
   - *If you tell the truth, you don't have to remember anything.*
   - *Whenever you find yourself on the side of the majority, it is time to
   pause and reflect.*

*-- Mark Twain*


MissingMethodException

2019-09-20 Thread Robert Stagner
I'm thoroughly *stumped* by a recent MissingMethodException.  When I
execute the code on an Amazon EC2 instance, I consistently receive the
noted exception.

However, when I run the code on my local Linux workstation, the tests *pass
successfully*.  Here are the specs on the EC2 instance

Java:

java version "1.8.0_181"
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)


Maven:

Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe;
2018-06-17T18:33:14Z)
Maven home: /home/ec2-user/apache-maven-3.5.4
Java version: 1.8.0_181, vendor: Oracle Corporation, runtime:
/home/ec2-user/jdk1.8.0_181/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.14.138-114.102.amzn2.x86_64", arch: "amd64",
family: "unix"



And, here is the error message Groovy is throwing. I've checked the code
and I am calling the method correctly.  From the message below, it would
seem to be a class loader issue.  Unfortunately, I have no experience with
resolving this sort of issue.  Any help would be appreciated.

groovy.lang.MissingMethodException: No signature of method:
com.disney.studio.qa.ui.domain.workflow.RuleWorkflow.setCastAndGuildParameters()
is applicable for argument types: (com.disney.studio.qa.c
ommon.testdata.deserialization.rules.ObligationDetails...) values:
[com.disney.studio.qa.common.testdata.deserialization.rules.ObligationDetails(null,
com.disney.studio.qa.common.testdata.deserializ
ation.rules.CastParameter([ptmin:[[value:$2000], [value:$1000],
[value:$1500], [value:$500], [value:$75]]], null, null, null, null, null,
null, null, null, null, null, null, null, null, null, null,
null), null,
com.disney.studio.qa.common.testdata.deserialization.rules.Calculation([com.disney.studio.qa.common.testdata.deserialization.rules.CalculationRecord(com.disney.studio.qa.common.testdata

.deserialization.rules.Iteration(null, null,
com.disney.studio.qa.common.testdata.deserialization.rules.IterationRecord([[description:network
primetime run, value:0%, min:0, max:0], [description:net
work primetime run, value:0%, min:1, max:1], [description:network primetime
run, value:100%, min:2, max:2], [description:network primetime run,
value:100%, min:3, max:3], [description:network primet
ime run, value:100%, min:4, max:4], [description:network primetime run,
value:100%, min:5, max:null]]), null, null, null, null, null, null, null),
null, null, null, null, null, null, null, null, nul
l, null, null, null, null, null, null, null, null, true)], null, null,
com.disney.studio.qa.common.testdata.deserialization.rules.CalculationRecord(com.disney.studio.qa.common.testdata.deserializati

on.rules.Iteration(null, null,
com.disney.studio.qa.common.testdata.deserialization.rules.IterationRecord([[description:network
primetime run, value:0%, min:0, max:0], [description:network primetime
run, value:0%, min:1, max:1], [description:network primetime run,
value:100%, min:2, max:2], [description:network primetime run, value:100%,
min:3, max:3], [description:network primetime run, value
:100%, min:4, max:4], [description:network primetime run, value:100%,
min:5, max:null]]), null, null, null, null, null, null, null), null, null,
null, null, null, null, null, null, null, null, null,
null, null, null, null, null, null, true), null, null, null, null, null,
null, null)), ...]
Possible solutions:
setCastAndGuildParameters(com.disney.studio.qa.common.testdata.deserialization.rules.ObligationDetails,
com.disney.studio.qa.ui.steps.support.world.DataModelProperty, java.lang.B
oolean),
setCastAndGuildParameters(com.disney.studio.qa.common.testdata.deserialization.rules.ObligationDetails,
com.disney.studio.qa.ui.steps.support.world.DataModelProperty,
java.lang.Boolean, jav
a.util.Map)
The following classes appear as argument class and as parameter class, but
are defined by different class loader:
com.disney.studio.qa.ui.steps.support.world.DataModelProperty (defined by
'groovy.lang.GroovyClassLoader$InnerLoader@7e41e1e4' and
'sun.misc.Launcher$AppClassLoader@6bc7c054')
If one of the method suggestions matches the method you wanted to call,
then check your class loader setup.
   at
com.disney.studio.qa.ui.steps.ObligationCalcSteps$_run_closure2.doCall(ObligationCalcSteps.groovy:36)

   at ✽.And the product has been setup with the required cast and guild
parameters(parallel_features/ot01-exclusive-pension---obligation-calculation-for-ot01-wga-netprim-or36211-055330-3.featur

e:44)

-- 
Regards,
Robert


Re: [DISCUSS] Groovy 2.6 potential retirement to focus on Groovy 3.0

2018-06-15 Thread Robert Stagner
option #2 for me

On Wed, Jun 13, 2018 at 12:06 AM Paul King  wrote:

>
> Hi everyone,
>
> There was some discussion at gr8conf about how to speed up delivery of
> Groovy 3.0. Some of that discussion was around the scope of what we want to
> include and have yet to complete in 3.0 but I won't discuss that right now.
>
> One of the other discussion points was Groovy around 2.6. As many of you
> know, we have released alpha versions of Groovy 2.6. That version is a
> backport of most but not all of Groovy 3.0 to JDK7 including the Parrot
> parser (though it isn't enabled by default). The purpose of this version
> has always been to assist people/projects wanting to use the Parrot parser
> but who might be stuck on JDK7. So in some sense it is an intermediate
> version to assist with porting towards Groovy 3.0. While that is still a
> noble goal in theory, in practice, many of our users are already on JDK8
> and we have limited resources to work on many potential areas.
>
> With that in mind, we'd like to understand the preferences in our user
> base for the following two options:
>
> Option 1: please continue releasing the best possible 2.6 even if that
> slows down the final release of Groovy 3.0 and delays further work on
> better support for JDK9+.
>
> Option 2: please release one more alpha of 2.6 over the next month or so
> which will become the best version to use to assist porting for users stuck
> on JDK7 and then focus on 3.0. The 2.6 branch will essentially be retired
> though we will consider PRs from the community for critical fixes.
>
> Feedback welcome.
>
> Cheers, Paul.
>
>
>


Re: Availability of 2.5.0 groovy-all in Maven Central

2018-06-03 Thread Robert Stagner
Thanks, Daniel.  This certainly helps.

When you stated "I've refine doco" what are you referring to?  I'm assuming
the documentation.  I reviewed the documentation, specifically,
http://docs.groovy-lang.org/latest/html/documentation/#_maven_integration,
and I do not see a reference to the pom statement.  Am I
missing something here?

On Sun, Jun 3, 2018 at 8:16 PM Daniel.Sun  wrote:

> Here is the twitter to summarize the change:
> https://twitter.com/daniel_sun/status/1003474637697642496
>
>
> Cheers,
> Daniel.Sun
>
>
>
>
> -
> Daniel Sun
> Apache Groovy committer
> Blog: http://blog.sunlan.me
> Twitter: @daniel_sun
>
> --
> Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
>


Re: Availability of 2.5.0 groovy-all in Maven Central

2018-06-03 Thread Robert Stagner
Daniel,

Like the others, I ran into a similar error

Failure to find org.codehaus.groovy:groovy-all:jar:2.5.0 in
https://repo.maven.apache.org/maven2 was cached in the local repository,
resolution will not be reattempted until the update interval of central has
elapsed or updates are forced -> [Help 1]

I am also using IntelliJ IDEA.  And, like you I receive the error from the
command line.  Once I include pom it worked.

On Sun, Jun 3, 2018 at 7:21 PM Daniel.Sun  wrote:

> Hi Keith,
>
> I'll add the `pom` to the doco on "Download" page.
>
> P.S. I'm using IntelliJ IDEA. Even if I don't add `pom`,
> it
> works well too. But if I run via command line, I'll get same error as
> yours.
>
> Cheers,
> Daniel.Sun
>
>
>
>
> -
> Daniel Sun
> Apache Groovy committer
> Blog: http://blog.sunlan.me
> Twitter: @daniel_sun
>
> --
> Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
>


Re: Availability of 2.5.0 groovy-all in Maven Central

2018-06-03 Thread Robert Stagner
Daniel,

How should this be addressed in the POM file, for those of us using Maven
to grab groovy-all?

I tried the simple coordinates like


org.codehaus.groovy
groovy-all
2.5.0


but that did not work for me.

On Sun, Jun 3, 2018 at 8:13 AM Daniel.Sun  wrote:

> Hi Mike,
>
> FYI, http://groovy-lang.org/download.html
>
> ```
> The core plus all the modules. Also includes jarjar'ed versions of Antlr,
> ASM, Commons-CLI. In order to cater to the module system of Java 9+, only
> the individual jar files of the core and all modules will be provided since
> Groovy 2.5.0, i.e. the fat jar file groovy-all-x.y.z.jar will not be
> available. Optional dependencies are marked as optional. You may need to
> include some of the optional dependencies to use some features of Groovy,
> e.g. AntBuilder, GroovyMBeans...
> ```
>
> In short, fat jar file(i.e. groovy-all.jar) has not been provided since
> Groovy 2.5.0, but you still can use `compile
> 'org.codehaus.groovy:groovy-all:x.y.z'` to get all the individual jar
> files.
>
> Cheers,
> Daniel.Sun
>
>
>
>
> --
> Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
>


Re: [ANNOUNCE] MirComp 1.0.0-alpha.1 Released

2017-04-22 Thread Robert Stagner
Fantastic work!! I've just installed it on my MacBook Pro and my Linux
laptop running Kubuntu 14.04 and it works fine on both instances.  Thanks
for this.  I plan on sharing this with my daughter (16) who plays the flute
for her high school band.

On Sat, Apr 22, 2017 at 8:21 AM Mirco  wrote:

> Hi Apache Groovy community,
> I have the pleasure to announce the release of the first alpha version of
> MirComp, the framework for algorithmic and assisted music composition.
> The new website is online with some basic information on how to download,
> install and launch the application:
>
> https://mcolletta.github.io/mircomp
>
> Some notes (not in particular order):
>
> The application is still not completely stable and has some issues but it
> is usable and I was eager to release the prototype :-)
> Even developers without an interest in music can use MirIDE, the main
> application of MirComp, as a multitab alternative to the groovy console by
> simply creating new scripts from the main menu (or from a project) and
> using the "Run" action to execute groovy code (however in case you want
> full control as in the groovyConsole you have to switch off the sandbox and
> compilestatic options by uncheck the voices in the menu). Moreover, since
> my neural network library MiRNN is included in the distribution it is
> possible to make general AI test (even unrelated to music).
> I wish that thanks to MirComp the Groovy language could play an important
> role in the algorithmic music field. Indeed, since when I started designing
> the framework I have always seen mirchord/groovy as a loose analogy of
> html/javascript: MirChord is a declarative notation language while groovy
> should be used for music logic.
> Moreover, my hope is that MirComp could let musicians to gently approach
> the amazing world of computer programming in a fascinating and artistic
> context.
>
> MirComp has beeen tested under Ubuntu 16.04 and Windows 10 but should work
> under OSX as well so a feedbak from Mac users would be very appreciated.
> For example I noted during the development several different behaviors in
> Windows and Linux (just as an example the cut/paste of text with ctrl+c/v
> in the code editor needed some more hacking on Linux).
> You know, as an old joke said: "Write once, debug everywhere!"
> Actually, any kind of feedback is welcome.
> MirComp  requires a recent version Java 8 (preferably >= 1.8.0_74) and
> uses the indy version of Groovy (2.4.10) even if most of the code is
> statically compiled.
>
> Enjoy groovy music (and AI)... in Groovy!
>
> Mirco
>


Re: JsonOutput serialization options feature

2016-09-11 Thread Robert Stagner
+1 from me.  I like the ability to pick and choose what I can exclude

On Sun, Sep 11, 2016 at 8:47 AM Guillaume Laforge 
wrote:

> More options sounds like a good idea.
>
> On Sun, Sep 11, 2016 at 5:43 PM, Suderman Keith  wrote:
>
>> +1
>>
>> I haven't had a chance to look at your pull request, but the lack of
>> configurability is the main reason I use Jackson instead of the Groovy
>> JsonBuilder/JsonOutput classes.
>>
>> Keith
>>
>> On Sep 10, 2016, at 8:59 PM, John Wagenleitner <
>> john.wagenleit...@gmail.com> wrote:
>>
>> Groovy Json users,
>>
>> I recently worked on a project where it would have been helpful if
>> JsonOutput/JsonBuilder/StreamingJsonBuilder had options for controlling the
>> output.  I noticed there were some open tickets [1] for feature requests
>> around this so decided to try to add some options to control the
>> serialization and have proposed a pull request (
>> https://github.com/apache/groovy/pull/371).
>>
>> Just wanted to poll those that use the Json generating features in Groovy
>> to see if you think these options would be useful and would welcome any
>> code review for those that would be interested in reviewing the PR.  For a
>> quick overview I've included a sample below [2].
>>
>> [1]
>> GROOVY-6699: JSON slurper ability to ignore propertie/field names (at
>> least the serializing part)
>> GROOVY-6854: JsonOutput should be configurable with ISO 8601 UTC time
>> zone instead of GMT
>> GROOVY-7682: JsonBuilder or JsonOutput incompatible with JodaTime (for
>> now via a closure converter)
>> GROOVY-7780: JSONBuilder/JSONSlurper: Option to Only Include NonNull
>> values
>> GROOVY-7858: Make JsonBuilder configurable to not write entries with null
>> values
>>
>> [2]
>>
>> import groovy.json.*
>>
>> def options = JsonOutput.options()
>> .excludeNulls()
>> .excludeFieldsByName('make', 'country', 'record')
>> .excludeFieldsByType(Number)
>> .addConverter(URL) { url -> '"http://groovy-lang.org;' }
>>
>> StringWriter writer = new StringWriter()
>> StreamingJsonBuilder builder = new StreamingJsonBuilder(writer, options)
>>
>> builder.records {
>> car {
>> name 'HSV Maloo'
>> make 'Holden'
>> year 2006
>> country 'Australia'
>> homepage new URL('http://example.org')
>> record {
>> type 'speed'
>> description 'production pickup truck with speed of 271kph'
>> }
>> }
>> }
>>
>> assert writer.toString() == '{"records":{"car":{"name":"HSV 
>> Maloo","homepage":"http://groovy-lang.org"}}}'
>>
>>
>> --
>> Research Associate
>> Department of Computer Science
>> Vassar College
>> Poughkeepsie, NY
>>
>>
>>
>> --
>> Research Associate
>> Department of Computer Science
>> Vassar College
>> Poughkeepsie, NY
>>
>>
>
>
> --
> Guillaume Laforge
> Apache Groovy committer & PMC Vice-President
> Developer Advocate @ Google Cloud Platform
>
> Blog: http://glaforge.appspot.com/
> Social: @glaforge  / Google+
> 
>