Hi Ashok,
From my experience the java.lang.NoSuchMethodError exception is usually thrown
when Java classpath contains incompatible modules and this is caused by
configuration error, e.g. two different versions of the same package are
present. To troubleshoot this I need the following info (unfortunately, I do
not have experience with MacOS, so, forgive me my silly :-( questions):
1. How Jenkins was installed on MacOS? Jenkins docs have the page
https://www.jenkins.io/download/lts/macos/ with installation instructions for
MacOS - did you followed it?
2. How Jenkins service is configured? Service configuration file will be
sufficient
3. How JVMs are installed? Can different versions of Java co-exist in MacOS?
4. How JVMs are configured for Jenkins? This information is available in Jenkins on
page Manage Jenkins -> Global Tool Configuration -> JDK (screenshot will be OK)
5. How Jenkins build is configured to use Java8? It would be nice if yoe can
send the config.xml file for this job - it is located in
/var/lib/jenkins/jobs/{JobName}/ folder (the path may differ - this was taken
fron Linux)
6. Can I have a full execution log for the failing build?
In addition - I have found this chat on stackoverflow -
https://stackoverflow.com/questions/74249679/jenkins-groovy-unix-script-error-java-lang-nosuchmethoderror-boolean-mightbepo
- you can have a look
I suggest you to send the info directly to my e-mail - this thread in jenkins-user group become clotted and unmanageable
Regards,
Nick
On 30/03/2023 10:21, Ashok Reddy <ashokrd...@gmail.com> wrote:
Hi Nick,
I have upgraded the jenkins version to 2.387.1 and am using java8 for
building our applications.
I have been facing the following issue:
*java.lang.NoSuchMethodError:
org.kohsuke.groovy.sandbox.SandboxTransformer.mightBePositionalArgumentConstructor(Lorg/codehaus/groovy/ast/expr/VariableExpression;)Z at com.cloudbees.groovy.cps.SandboxCpsTransformer.visitAssignmentOrCast(SandboxCpsTransformer.java:93) at com.cloudbees.groovy.cps.CpsTransformer$42.run(CpsTransformer.java:1171) at com.cloudbees.groovy.cps.CpsTransformer.makeChildren(CpsTransformer.java:446)*
*Note: I did a few findings about issue *
*1). Groovy libraries and groovy plugin issue*
*Not sure how to proceed to fix this issue.*
*Thanks in advance for your help.*
*
*
On Wed, Mar 29, 2023 at 3:34 PM 'Nikolay Sorokin' via Jenkins Users
<jenkinsci-users@googlegroups.com
<mailto:jenkinsci-users@googlegroups.com>> wrote:
Hi Ashok,
To find the answers to the questions asked by your boss I would like
to have more details about your Jenkins environment, both
for 2.176.1 version and the version you are testing. The initial
information I'll be looking for include:
- what operation system is used for both instances: MAC OS for
jenkins, which is currently facing issues and another one is using
RHEL7.9
- how Jenkins is installed, i.e. what application server is used,
how it is started, etc.; Java -jar jenkins.war , application server-
Tomcat
- how different versions of Java are installed: Java -1.8
Additional information may be required further.
If you wish to keep this information confidential you may send it to
me directly to nick.soro...@gmail.com <mailto:nick.soro...@gmail.com>
As to upgrade path: your initial Jenkins is really too old and most
likely there is no upgrade path from your version to the latest one
- there were too many changes in Jenkins API. However you may try to
migrate the required jobs from old system to a new one.
With best regards,
Nick
--
You received this message because you are subscribed to the Google
Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to jenkinsci-users+unsubscr...@googlegroups.com
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/702099d5-5341-4a80-aa68-5d343703ea17n%40googlegroups.com
<https://groups.google.com/d/msgid/jenkinsci-users/702099d5-5341-4a80-aa68-5d343703ea17n%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
You received this message because you are subscribed to a topic in the
Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/jenkinsci-users/gLKZx7Rjj1Q/unsubscribe <https://groups.google.com/d/topic/jenkinsci-users/gLKZx7Rjj1Q/unsubscribe>.
To unsubscribe from this group and all its topics, send an email to
jenkinsci-users+unsubscr...@googlegroups.com
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/CAKRLcHi3xN9ebwfQPZyZH_W83%2BTB8vp9ncH%3D3%2BaN1h7VKLZnEw%40mail.gmail.com <https://groups.google.com/d/msgid/jenkinsci-users/CAKRLcHi3xN9ebwfQPZyZH_W83%2BTB8vp9ncH%3D3%2BaN1h7VKLZnEw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
--
You received this message because you are subscribed to the Google Groups "Jenkins
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/b77f7d3b-e6b9-7c7b-fde8-32963f927a66%40gmail.com.