Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caused: java.io.NotSerializableException: sun.net.www.protocol.https.HttpsURLConnectionImpl #1078

Open
yaqsun opened this issue Jul 11, 2024 · 0 comments
Labels
generation Issues that provide enhancements or fixes to the job generators

Comments

@yaqsun
Copy link

yaqsun commented Jul 11, 2024

What are you trying to do?

When I tried to build build-scripts related process on my own platform, I always get "sun.net.www.protocol.https.HttpsURLConnectionImpl" errors in "ci-jenkins-pipelines/pipelines/build/regeneration/build_pipeline_generator.groovy" script.

Expected behaviour:

build-scripts/utils/build-pipeline-generator runs successful, and generates the top level pipeline jobs that live at https://ci.adoptopenjdk.net/job/build-scripts/

Observed behaviour:

[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is used...
[WS-CLEANUP] done
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
an exception which occurred:
	in field com.cloudbees.groovy.cps.impl.BlockScopeEnv.locals
	in object com.cloudbees.groovy.cps.impl.BlockScopeEnv@54aa50e4
	in field com.cloudbees.groovy.cps.impl.CpsClosureDef.capture
	in object com.cloudbees.groovy.cps.impl.CpsClosureDef@530d0cc
	in field com.cloudbees.groovy.cps.impl.CpsClosure.def
	in object org.jenkinsci.plugins.workflow.cps.CpsClosure2@15b0400b
	in field org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.closures
	in object org.jenkinsci.plugins.workflow.cps.CpsThreadGroup@56e8329c
	in object org.jenkinsci.plugins.workflow.cps.CpsThreadGroup@56e8329c
Also:   org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: a89bd20d-9e7e-417e-9034-c67e416c6ed3
Caused: java.io.NotSerializableException: sun.net.www.protocol.https.HttpsURLConnectionImpl

Any other comments:

I think it's a problem with the following code parsing JSON files in my environment.

def getAdopt = new URL(ADOPT_DEFAULTS_FILE_URL).openConnection()
Map<String, ?> ADOPT_DEFAULTS_JSON = new JsonSlurper().parseText(getAdopt.getInputStream().getText()) as Map
@github-actions github-actions bot added the generation Issues that provide enhancements or fixes to the job generators label Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
generation Issues that provide enhancements or fixes to the job generators
Projects
Status: Todo
Development

No branches or pull requests

1 participant