Using graphql plugin in grails ends up with: java.lang.ClassNotFoundException: org.grails.compiler.web.converters.RenderConverterTrait - eclipse

I try to make my 1st experience with graphql in the grails context.
I'm using:
jdk1.8.0_162
Eclipse Java EE IDE for Web Developers.
Version: Oxygen.2 Release (4.7.2)
Build id: 20171218-0600
OS: Linux, v.4.4.0-116-generic, x86_64 / gtk 3.18.9
Grails Version: 3.3.3
Groovy Version: 2.4.14
In build.gradle I entered the graphql-plugin via
compile "org.grails.plugins:gorm-graphql:1.0.3.BUILD-SNAPSHOT"
in the dependencies section. Starting grails ends up with build successful, run-up ends up in
java.lang.ClassNotFoundException: org.grails.compiler.web.converters.RenderConverterTrait
Any hints on Incompatibilities or missing entries in build.gradle?
Peter

Please change dependency from
compile "org.grails.plugins:gorm-graphql:1.0.3.BUILD-SNAPSHOT"
To
compile 'org.grails.plugins:converters:3.3.1'
OR
compile "org.grails.plugins:converters"
This is the Converters plugin that has been part of Grails core up until version 3.3 and now is a standalone plugin.
Users of Grails 3.3.x and above should use this plugin.
see plugin repository here
Hope this will helps you

Related

How to install old version of 'Vaadin Plug-in for Eclipse'?

After I updated 'Vaadin Plug-in for Eclipse' from version 4.1.6 to version 4.1.7 (and Vaadin Designer from 4.6.18 to 4.6.20) something broke.
I started to get constant error when oppened Vaadin design (LitTamplate) java file:
An internal error occurred during: "Requesting Java AST from selection".
'boolean com.ibm.icu.text.UTF16.isSurrogate(char)'
This error does not happen when using Eclipse 2022-12 with Vaadin Plug-in 4.1.7 and Vaadin Designer 4.6.20.
But there is other issues there:
https://github.com/vaadin/designer/issues/2443
I was using Eclipse 2021-12 with 'Vaadin Plug-in for Eclipse' 4.1.6 and 'Vaadin Designer' 4.6.18 before update. Now I can not install old versions back into the Eclipse.
Vaadin plugin guide will always offer only the latest version.
https://vaadin.com/eclipse
It would be nice to have version links for installing older versions.
Something like this:
https://vaadin.com/eclipse/2021-12/plugin/4.1.6/designer/4.6.18

jbake plugin requires maven upgrade in eclipse

I'm using a maven plugin in my POM file. When I build the project, I get an error:
`[ERROR] Failed to execute goal br.com.ingenieux:jbake-maven-plugin:0.0.9:generate (default-cli) on project uts-documentation: The plugin br.com.ingenieux:jbake-maven-plugin:0.0.9 requires Maven version 3.1.1 -> [Help 1]`
My embedded maven version is 3.0.4. How can I update to the required version without installing a separate instance of maven (would like to avoid that if possible)?
Upgrading to a more recent Eclipse version will bring an updated embedded version of Maven. For example the Eclipse Luna installation that I am running has Maven 3.2.1 embedded.

grails groovy version issue

I have a grails application with 2.4.1 grails version and used 2.3 groovy compiler.
I am getting following error when I try to run
java.lang.NoSuchMethodError: org.codehaus.groovy.runtime.DefaultGroovyMethods.count(Ljava/lang/Iterable;Lgroovy/lang/Closure;)Ljava/lang/Number;
at org.codehaus.groovy.grails.compiler.web.ControllerActionTransformer.processMethods(ControllerActionTransformer.java:234)
at org.codehaus.groovy.grails.compiler.web.ControllerActionTransformer.performInjectionOnAnnotatedClass(ControllerActionTransformer.java:204)
at org.codehaus.groovy.grails.compiler.web.ControllerActionTransformer.performInjection(ControllerActionTransformer.java:196)
at org.codehaus.groovy.grails.compiler.injection.GrailsAwareInjectionOperation.call(GrailsAwareInjectionOperation.java:154)
at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1213)
at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:645)
at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:623)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:600)
at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.processToPhase(GroovyCompilationUnitDeclaration.java:185)
at org.codehaus.jdt.groovy.internal.compiler.ast.GroovyCompilationUnitDeclaration.analyseCode(GroovyCompilationUnitDeclaration.java:2213)
at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:834)
at org.eclipse.jdt.internal.compiler.ProcessTaskManager.run(ProcessTaskManager.java:137)
at java.lang.Thread.run(Thread.java:701)
Grails 2.4.1 shipped with Groovy 2.3.3 and that is the only version of Groovy supported with that version of Grails. Normally you don't do anything to associate a version of Groovy with a version of Grails. Grails uses the version that is shipped with it.
Make sure that your GRAILS_HOME points to Grails 2.4.1 and that GRAILS_HOME/bin is on your PATH. If you have a different version of Grails on your PATH than the one that GRAILS_HOME points to, that can sometimes cause peculiar behavior.
I hope that helps.

Is there a ScalaTest Plugin for Eclipse Luna and Scala IDE Lithium?

Trying to find the ScalaTest plugin for use with Eclipse Luna and Scala IDE for Eclipse 4.0.0 (aka Lithium). Currently using Milestone 2 of the Scala IDE for Eclipse Lithium plugin.
The ScalaTest plugin used to be part of the Scala IDE for Eclipse plugin (appeared on the list and you could check the box it to install--Scala IDE for Eclipse is supposed to be an ecosystem of plugins, ScalaTest being one of them). It doesn't appear to be there any more.
It's not on the list,
When I check "Installation Details" it doesn't appear either, and
Test configurations don't appear under "Run As..."
But there is mention of Luna in the ScalaTest plugin Github site for the scalatest plugin (https://github.com/scalatest/scalatest-eclipse-plugin), which is supposed to be part of the Scala IDE for Eclipse ecosystem.
The tests run fine from the SBT command line. So I know the ScalaTest jar file is in the classpath and is of a compatible version for my project. The ScalaTest jar file appears as an external jar file in my project in Eclipse, and the tests compile in Eclipse. Other Scala IDE for Eclipse functions seem to work correctly.
System Configuration:
Eclipse Version: Luna (4.4.0),
Scala IDE for Eclipse Version: Lithium 4.0.0 Milestone 2, for Luna and Scala 2.11.1 (download site http://download.scala-ide.org/sdk/lithium/e44/scala211/dev/site)
Java Version: Java 1.8_05,
Scala Version: 2.11.1,
Build Tool: SBT 0.13.5, running under Java 1.8_05,
ScalaTest Version: scalatest_2.11-2.2.0.jar (copied into the lib directory of my project)
My Eclipse project file is generated by SBT using the eclipse SBT command, and loaded into Eclipse using the standard "Import->Existing Projects Into Workspace..." method. The build.sbt file is a single line reading scalaVersion := "2.11.1".
Is there a ScalaTest plugin for Eclipse Luna and Scala IDE for Eclipse 4.0 (Lithium)? If so, where do I go about finding it?
This is a version of the Scala IDE that works with Eclipse Luna (version 4.4).
http://download.scala-ide.org/sdk/lithium/e44/scala211/dev/site

How to exclude work module from the compile, when deploying to GAE?

Our standard module file is: Myproject.gwt.xml
We have added an extra modulefile for fast compilation called:
MyprojectWork.gwt.xml
When deploying to GAE, it compiles both Myproject.gwt.xml and
MyprojectWork.gwt.xml.
How to exclude MyprojectWork.gwt.xml from the compile, when deploying
to GAE ?
Config:
GWT SDK 1.7.0
Google Plugin for Eclipse 3.5
GAE SDK 1.2.2
If you use Maven than this may solve your problem: stackoverflow #1745315