[JIRA] (JENKINS-54355) ClassNotFound: java.sql.Date in JDK 11 in Pipeline Utility Steps

49 views
Skip to first unread message

o.v.nenashev@gmail.com (JIRA)

unread,
Nov 28, 2018, 3:20:02 AM11/28/18
to jenkinsc...@googlegroups.com
Oleg Nenashev updated an issue
 
Jenkins / Bug JENKINS-54355
ClassNotFound: java.sql.Date in JDK 11 in Pipeline Utility Steps
Change By: Oleg Nenashev
Summary: ClassNotFound: java.sql.Date in JDK 11 in Pipeline Utility Steps
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

o.v.nenashev@gmail.com (JIRA)

unread,
Nov 30, 2018, 2:43:02 AM11/30/18
to jenkinsc...@googlegroups.com

o.v.nenashev@gmail.com (JIRA)

unread,
Nov 30, 2018, 2:43:02 AM11/30/18
to jenkinsc...@googlegroups.com

o.v.nenashev@gmail.com (JIRA)

unread,
Nov 30, 2018, 2:43:02 AM11/30/18
to jenkinsc...@googlegroups.com

batmat@batmat.net (JIRA)

unread,
Dec 22, 2018, 5:03:02 PM12/22/18
to jenkinsc...@googlegroups.com

batmat@batmat.net (JIRA)

unread,
Dec 22, 2018, 5:03:02 PM12/22/18
to jenkinsc...@googlegroups.com

adrien.lecharpentier@gmail.com (JIRA)

unread,
Jan 3, 2019, 6:36:02 AM1/3/19
to jenkinsc...@googlegroups.com

adrien.lecharpentier@gmail.com (JIRA)

unread,
Jan 4, 2019, 8:49:02 AM1/4/19
to jenkinsc...@googlegroups.com
Adrien Lecharpentier commented on Bug JENKINS-54355
 
Re: ClassNotFound: java.sql.Date in JDK 11 in Pipeline Utility Steps

I do not believe this is related to pipeline-utility-steps-plugin anymore. I have the same problem with metrics-plugin when solving JENKINS-52017.

The problem seems that we are using commons-beanutils, which is provided by Jenkins Core and is not Java 9+ compatible and is using java.sql.* classes.

adrien.lecharpentier@gmail.com (JIRA)

unread,
Jan 4, 2019, 8:54:02 AM1/4/19
to jenkinsc...@googlegroups.com
Adrien Lecharpentier started work on Bug JENKINS-54355
 
Change By: Adrien Lecharpentier
Status: Open In Progress

batmat@batmat.net (JIRA)

unread,
Jan 4, 2019, 8:57:01 AM1/4/19
to jenkinsc...@googlegroups.com

The goal of this very report was to modify the code of pipeline-utility-steps itself to avoid needing java.sql module.

But given this is used in many places, and you see failures more globally, I think in the short term, we should quite urgently see if adding the java.sql module is enough to not be blocked anymore by this. Because even if we fix pipeline-utility-steps, then many other plugins would fail in production.

I mean, we'd add java.sql to various places, like:

 

adrien.lecharpentier@gmail.com (JIRA)

unread,
Jan 4, 2019, 9:02:02 AM1/4/19
to jenkinsc...@googlegroups.com

I agree. This is out of our reach, as upgrading the library is not enough (latest release performed in 2016). If we wanted to solve this, I guess we'd have to change the library used, which would break many plugins / code as well.

batmat@batmat.net (JIRA)

unread,
Jan 4, 2019, 9:12:02 AM1/4/19
to jenkinsc...@googlegroups.com

But let's not mix up things too much.

I think for the pipeline-utility-steps, reading the code it's about the fact snakeyaml is vendored (yay, so we do Golang, how fancy) and depends on java.sql.Date

Commented in https://github.com/jenkinsci/pipeline-utility-steps-plugin/pull/17

adrien.lecharpentier@gmail.com (JIRA)

unread,
Jan 4, 2019, 10:46:01 AM1/4/19
to jenkinsc...@googlegroups.com

To check something, I just ran a simple pipeline job to read a yaml structure on jenkins/jenkins:jdk11 and I don't have the same problem at all.

adrien.lecharpentier@gmail.com (JIRA)

unread,
Jan 9, 2019, 5:12:03 AM1/9/19
to jenkinsc...@googlegroups.com

So, I can see that the plugin is loading java.sql.Date and java.sql.Timestamp in Tag.java. I can fill a PR to "solve" this, but I cannot prove that it's currently a problem as the latest release of the plugin is in fact running fine in a Jenkins on JDK 11.

adrien.lecharpentier@gmail.com (JIRA)

unread,
Jan 9, 2019, 6:38:04 AM1/9/19
to jenkinsc...@googlegroups.com

adrien.lecharpentier@gmail.com (JIRA)

unread,
Jan 9, 2019, 8:33:01 AM1/9/19
to jenkinsc...@googlegroups.com
 
Re: ClassNotFound: java.sql.Date in JDK 11 in Pipeline Utility Steps

I filled a PR to load the classes if they are available and log if they are not.

This should solve this ticket and let's create another one to track the suspected PCT issue.

o.v.nenashev@gmail.com (JIRA)

unread,
Mar 18, 2019, 3:14:03 AM3/18/19
to jenkinsc...@googlegroups.com
Oleg Nenashev updated Bug JENKINS-54355
 

PCT was fix, and the small patch has been integrated in Pipeline Utility Steps 2.3.0. I think we can just close it

Change By: Oleg Nenashev
Status: In Review Resolved
Resolution: Fixed
Released As: pipeline-utility-steps-2.3.0
Reply all
Reply to author
Forward
0 new messages