30,391 questions
0
votes
0
answers
47
views
GC pause by Metadata GC Threshold for weeks then turned to Full GC
I have a java application running heavily groovy scripts. After running for weeks, the system encountered Full GC in every day, every time it cost about one second which is not acceptable.
How can I ...
0
votes
0
answers
17
views
How to Pull Response from Consumer topic of Kafka Gateway
Struck with some issue on how we can pull response from Kafka Gateway based on some Parameters as we are getting bulk of response when we try to pull response.
ConsumerRecords<String, byte[]> ...
0
votes
1
answer
32
views
Using Groovydoc to document an externally defined global variable
I am writing a snippet of Groovy code that will be executed within the context of a particular application (specifically NoMagic / Cameo Enterprise Architecture).
According to their documentation, ...
0
votes
0
answers
41
views
Jenkins steps.load can't parse a script
I'm using a Jenkins shared library (stored on git) that has a vars/loader.groovy defined as:
void load(String libName, String path) {
setVariableInGlobalBinding(libName, steps.load(path)
}
private ...
0
votes
0
answers
27
views
In Eclipse, how can I auto organize imports and format code when saving groovy files?
The Eclipse Groovy editor save actions section contains only 1 checkbox: "Remove unnecessary semicolons".
Is there a way to enable the same functionality available for Java editor?
The java ...
0
votes
1
answer
22
views
GroovyConsole, simple println "Test" output fails to display when running
I'm attempting to go through the old book of Beginning Groovy and Grails, of course is WAY off, but trying to go through and learn. Anyway, in the groovyconsole on Ubuntu 24.04, I cannot see the ...
0
votes
1
answer
299
views
Duplicate Kotlin classes in an Android Groovy project
The lore
I have decided to try creating an Android App using Groovy, Gradle, and IntelliJ IDEA. (I pick this language as it is the one I am more familiar with.) I have never written a single line of ...
0
votes
1
answer
128
views
Spring Boot 3.4.4 says your build is currently configured to use incompatible Java 24 and Gradle 8.13. Cannot sync the project [duplicate]
I just initialized a Spring Boot 3.4.4 project, with Gradle - Groovy, Language - Java 24.
But it says Your build is currently configured to use incompatible Java 24 and Gradle 8.13. Cannot sync the ...
0
votes
1
answer
52
views
groovy-maven-plugin not supporting in java 17
I am upgrading my application from Java 11 to Java 17. When I try to do mvn clean install, I get the following error related to the groovy-maven-plugin:
[ERROR] Failed to execute goal
org.codehaus....
0
votes
1
answer
35
views
gremlin console with AWS Neptune swap SERVICE_REGION
I have multiple Neptune databases in different regions and am transferring data from a database in west to a database in east using a groovy script via the gremlin console.
For AWS I have to set the ...
0
votes
0
answers
35
views
Switch statement unexpected behavior in groovy (case without break)
I have programmed in C and Java and a switch statement like this:
switch (option) {
case 1:
do A;
case 2:
do B;
break;
default:
do C;
break;
}
In those ...
1
vote
1
answer
38
views
How do I get more than one out parameter from a stored procedure in Groovy
I've been retrieving a single out parameter from Oracle stored procedures in Groovy (for context, in NiFi) for a while now like this:
import groovy.sql.SQL
def inParemter = 'send this value to the ...
0
votes
1
answer
29
views
where does mainClass variable come from in gradle?
plugins {
id 'java'
id 'application'
}
application {
mainClass = "org.example.Main"
}
group = 'org.example'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
...
1
vote
2
answers
44
views
Add XML node dynamically with groovy
I have an XML similarly like below
<root>
<item>
<refitemid>10</refitemid>
</item>
</root>
my requirement is first to add one node <additional_info> to ,...
0
votes
1
answer
34
views
What could be wrong with my groovy in Jenkins pipline? Weird string comparison
===== What could be wrong with my groovy in Jenkins pipline? Weird string comparison
(2025-04-06,15:15)
Here is my code in Jenkins:
pipeline {
agent any
parameters { [...skip...] }
stages {
...