jenkinsci / gitlab-plugin

A Jenkins plugin for interfacing with GitLab
https://plugins.jenkins.io/gitlab-plugin/
GNU General Public License v2.0
1.44k stars 618 forks source link

Huge problem with updateGitlabCommitStatus after Jackson2 API plugin update #1206

Open gandadil opened 2 years ago

gandadil commented 2 years ago

Issue

Error bellow is occuring after update Jackson2 API plugin to version 2.13.1-242.v1a45bad25ceb (This plugin can't be rollbacked to previous version). The problem is occuring everytime I use updateGitlabCommitStatus and this is a huge impact on my CI/CD process.

[Pipeline] updateGitlabCommitStatus Error when executing success post condition: java.lang.ClassNotFoundException: javax.ws.rs.ext.MessageBodyReader at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1402) at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1357) at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1112) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:1086) at java.base/java.lang.ClassLoader.defineClassImpl(Native Method) at java.base/java.lang.ClassLoader.defineClassInternal(ClassLoader.java:481) at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:442) at org.apache.tools.ant.AntClassLoader.defineClassFromData(AntClassLoader.java:1172) at org.apache.tools.ant.AntClassLoader.getClassFromStream(AntClassLoader.java:1340) at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1392) at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1357) at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1112) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:1086) at java.base/java.lang.ClassLoader.defineClassImpl(Native Method) at java.base/java.lang.ClassLoader.defineClassInternal(ClassLoader.java:481) at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:442) at org.apache.tools.ant.AntClassLoader.defineClassFromData(AntClassLoader.java:1172) at org.apache.tools.ant.AntClassLoader.getClassFromStream(AntClassLoader.java:1340) at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1392) at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1357) at jenkins.ClassLoaderReflectionToolkit.loadClass(ClassLoaderReflectionToolkit.java:148) at hudson.ClassicPluginStrategy$DependencyClassLoader.findClass(ClassicPluginStrategy.java:649) at java.base/java.lang.ClassLoader.loadClassHelper(ClassLoader.java:1188) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:1103) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:1086) at org.apache.tools.ant.AntClassLoader.findBaseClass(AntClassLoader.java:1421) at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1108)

Context

gandadil commented 2 years ago

Oh my god, I don't know what to do, all my merge request jobs can't be executed because I can't feedback to gitlab the result of the job

gandadil commented 2 years ago

I have this problem just after update Jackson 2 API plugin, so I have sure that there is something new on this plugin, but jenkins is not offer a downgrade for this plugin so I can't do anything to resolve this. Maybe install jackson 2 api old version manually?

jchychot commented 2 years ago

Found this issue in our testing deployment, so I can confirm that its a real problem. Luckly, we have not upgraded our production systems yet for we have many pipelines that would break and would hault our development.

gandadil commented 2 years ago

I am trying to install the old jackson 2 api version (2.13.0-230) and will update with news later.

Edit: No error loading jenkins with just this plugin rolled back but I am waiting developers to do new merge requests to see if everthing is ok.

Edit2: I have to rollback gitlab plugin to 1.5.24 too because 1.5.25 need the new jackson 2 API. A new job have been started to test and everything is OK now. So, after the tests, I have sure that there is something wrong between gitlab 1.5.25 and jackson 2 api 2.13.1-242.

r-work commented 2 years ago

Same issue here, hope this gets resolved soon.

dhruv-dave commented 2 years ago

I am trying to install the old jackson 2 api version (2.13.0-230) and will update with news later.

Edit: No error loading jenkins with just this plugin rolled back but I am waiting developers to do new merge requests to see if everthing is ok.

Edit2: I have to rollback gitlab plugin to 1.5.24 too because 1.5.25 need the new jackson 2 API. A new job have been started to test and everything is OK now. So, after the tests, I have sure that there is something wrong between gitlab 1.5.25 and jackson 2 api 2.13.1-242.

So using the following versions work for me:

basil commented 2 years ago

Turns out there was no test coverage for this in the existing code base. I wrote a new test in jenkinsci/gitlab-plugin#1207 which reproduces the problem. The full stack trace:

java.lang.ClassNotFoundException: javax.ws.rs.ext.MessageBodyReader
        at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1387)
        at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1342)
        at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1089)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
        at java.base/java.lang.ClassLoader.defineClass1(Native Method)
        at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
        at jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1155)
        at hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:715)
        at jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1326)
        at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1377)
        at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1342)
        at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1089)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
        at java.base/java.lang.ClassLoader.defineClass1(Native Method)
        at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
        at jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1155)
        at hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:715)
        at jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1326)
        at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1377)
        at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1342)
        at java.base/jdk.internal.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at jenkins.ClassLoaderReflectionToolkit.invoke(ClassLoaderReflectionToolkit.java:44)
        at jenkins.ClassLoaderReflectionToolkit._findClass(ClassLoaderReflectionToolkit.java:81)
        at hudson.ClassicPluginStrategy$DependencyClassLoader.findClass(ClassicPluginStrategy.java:634)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
        at jenkins.util.AntClassLoader.findBaseClass(AntClassLoader.java:1406)
        at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1085)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
        at com.dabsquared.gitlabjenkins.gitlab.api.impl.ResteasyGitLabClientBuilder.buildClient(ResteasyGitLabClientBuilder.java:139)
        at com.dabsquared.gitlabjenkins.gitlab.api.impl.ResteasyGitLabClientBuilder.buildClient(ResteasyGitLabClientBuilder.java:91)
        at com.dabsquared.gitlabjenkins.connection.GitLabConnection.getClient(GitLabConnection.java:131)
        at com.dabsquared.gitlabjenkins.connection.GitLabConnectionConfig.getClient(GitLabConnectionConfig.java:66)
        at com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty.getClient(GitLabConnectionProperty.java:78)
        at com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty.getClient(GitLabConnectionProperty.java:91)
        at com.dabsquared.gitlabjenkins.util.CommitStatusUpdater.updateCommitStatus(CommitStatusUpdater.java:51)
        at com.dabsquared.gitlabjenkins.util.CommitStatusUpdater.updateCommitStatus(CommitStatusUpdater.java:97)
        at com.dabsquared.gitlabjenkins.workflow.UpdateGitLabCommitStatusStep$UpdateGitLabCommitStatusStepExecution.run(UpdateGitLabCommitStatusStep.java:80)
        at com.dabsquared.gitlabjenkins.workflow.UpdateGitLabCommitStatusStep$UpdateGitLabCommitStatusStepExecution.run(UpdateGitLabCommitStatusStep.java:64)
        at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousStepExecution.start(AbstractSynchronousStepExecution.java:42)
        at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:319)
        at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:193)
        at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122)
        at groovy.lang.MetaClassImpl.invokeMethodOnGroovyObject(MetaClassImpl.java:1278)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1172)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
        at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
        at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:20)
Caused: java.lang.NoClassDefFoundError: javax/ws/rs/ext/MessageBodyReader
        at java.base/java.lang.ClassLoader.defineClass1(Native Method)
        at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
        at jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1155)
        at hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:715)
        at jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1326)
        at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1377)
        at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1342)
        at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1089)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
        at java.base/java.lang.ClassLoader.defineClass1(Native Method)
        at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
        at jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1155)
        at hudson.ClassicPluginStrategy$AntClassLoader2.defineClassFromData(ClassicPluginStrategy.java:715)
        at jenkins.util.AntClassLoader.getClassFromStream(AntClassLoader.java:1326)
        at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1377)
        at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1342)
        at java.base/jdk.internal.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at jenkins.ClassLoaderReflectionToolkit.invoke(ClassLoaderReflectionToolkit.java:44)
        at jenkins.ClassLoaderReflectionToolkit._findClass(ClassLoaderReflectionToolkit.java:81)
        at hudson.ClassicPluginStrategy$DependencyClassLoader.findClass(ClassicPluginStrategy.java:634)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
        at jenkins.util.AntClassLoader.findBaseClass(AntClassLoader.java:1406)
        at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1085)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
        at com.dabsquared.gitlabjenkins.gitlab.api.impl.ResteasyGitLabClientBuilder.buildClient(ResteasyGitLabClientBuilder.java:139)
        at com.dabsquared.gitlabjenkins.gitlab.api.impl.ResteasyGitLabClientBuilder.buildClient(ResteasyGitLabClientBuilder.java:91)
        at com.dabsquared.gitlabjenkins.connection.GitLabConnection.getClient(GitLabConnection.java:131)
        at com.dabsquared.gitlabjenkins.connection.GitLabConnectionConfig.getClient(GitLabConnectionConfig.java:66)
        at com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty.getClient(GitLabConnectionProperty.java:78)
        at com.dabsquared.gitlabjenkins.connection.GitLabConnectionProperty.getClient(GitLabConnectionProperty.java:91)
        at com.dabsquared.gitlabjenkins.util.CommitStatusUpdater.updateCommitStatus(CommitStatusUpdater.java:51)
        at com.dabsquared.gitlabjenkins.util.CommitStatusUpdater.updateCommitStatus(CommitStatusUpdater.java:97)
        at com.dabsquared.gitlabjenkins.workflow.UpdateGitLabCommitStatusStep$UpdateGitLabCommitStatusStepExecution.run(UpdateGitLabCommitStatusStep.java:80)
        at com.dabsquared.gitlabjenkins.workflow.UpdateGitLabCommitStatusStep$UpdateGitLabCommitStatusStepExecution.run(UpdateGitLabCommitStatusStep.java:64)
        at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousStepExecution.start(AbstractSynchronousStepExecution.java:42)
        at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:319)
        at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:193)
        at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122)
        at groovy.lang.MetaClassImpl.invokeMethodOnGroovyObject(MetaClassImpl.java:1278)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1172)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
        at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
        at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:20)
        at com.dabsquared.gitlabjenkins.workflow.pipeline.WorkflowScript.run(WorkflowScript:8)
        at ___cps.transform___(Native Method)
        at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:86)
        at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:113)
        at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:83)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
        at com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.dispatch(CollectionLiteralBlock.java:55)
        at com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.item(CollectionLiteralBlock.java:45)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
        at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21)
        at com.cloudbees.groovy.cps.Next.step(Next.java:83)
        at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174)
        at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163)
        at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:129)
        at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:268)
        at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163)
        at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:185)
        at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:400)
        at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$400(CpsThreadGroup.java:96)
        at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:312)
        at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:276)
        at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:67)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:136)
        at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
        at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:829)
basil commented 2 years ago

Incremental build 2.13.1-243.v04a926c036e7 is available for testing. The incremental build is available from: https://repo.jenkins-ci.org/incrementals/org/jenkins-ci/plugins/jackson2-api/2.13.1-243.v04a926c036e7/

@dhruv-dave @gandadil @jchychot @medanets-admin @r-work Can you please test the incremental build and confirm the issue is resolved? For instructions on how to install a custom build, see: https://www.jenkins.io/doc/book/managing/plugins/#advanced-installation

dhruv-dave commented 2 years ago

Incremental build 2.13.1-243.v04a926c036e7 is available for testing. The incremental build is available from: https://repo.jenkins-ci.org/incrementals/org/jenkins-ci/plugins/jackson2-api/2.13.1-243.v04a926c036e7/

@dhruv-dave @gandadil @jchychot @medanets-admin @r-work Can you please test the incremental build and confirm the issue is resolved? For instructions on how to install a custom build, see: https://www.jenkins.io/doc/book/managing/plugins/#advanced-installation

Yes, I can test the incremental build and provide an update once tested.

jchychot commented 2 years ago

I work with @dhruv-dave so we will be testing together.

gandadil commented 2 years ago

I have update the version here and waiting a develop to test a merge request.

derqurps commented 2 years ago

Incremental build 2.13.1-243.v04a926c036e7 is available for testing. The incremental build is available from: https://repo.jenkins-ci.org/incrementals/org/jenkins-ci/plugins/jackson2-api/2.13.1-243.v04a926c036e7/

@dhruv-dave @gandadil @jchychot @medanets-admin @r-work Can you please test the incremental build and confirm the issue is resolved? For instructions on how to install a custom build, see: https://www.jenkins.io/doc/book/managing/plugins/#advanced-installation

I have installed the incremental build and so far our builds are working again. Thanks @basil for the quick reaction!

gandadil commented 2 years ago

It's working for me too.

basil commented 2 years ago

I have opened jenkinsci/jackson2-api-plugin#111 for the Jackson 2 API plugin, so the next step would be for the maintainers of that plugin to merge and release the PR.

dhruv-dave commented 2 years ago

Hello, I can also confirm that it is working and tested with a new deployments in k8s.

Ran two tests:

  1. old gitlab-plugin (1.5.24) with the new version of jackson2-api
  2. new gitlab-plugin (1.5.25) with the new version of jackson2-api.

Both builds passed successfully.

dhruv-dave commented 2 years ago

I have opened jenkinsci/jackson2-api-plugin#111 for the Jackson 2 API plugin, so the next step would be for the maintainers of that plugin to merge and release the PR.

Thank you very much for the help and a quick fix!

r-work commented 2 years ago

It works, thanks for the quick fix.

bmaehr commented 2 years ago

For those who need a quick fix:

cd /tmp
wget https://repo1.maven.org/maven2/javax/ws/rs/javax.ws.rs-api/2.1.1/javax.ws.rs-api-2.1.1.jar
cp /tmp/javax.ws.rs-api-2.1.1.jar /var/cache/jenkins/war/WEB-INF/lib/
j-p-e commented 2 years ago

for those coming here - the fix is in the Jackson 2 plugin in a version that isn't quite out yet - mine (2.13.1.242) still has the issue, there's an incremental build 2.13.1.243 that maybe doesn't. Or the quick fix above for windows (worked for me) is save https://repo1.maven.org/maven2/javax/ws/rs/javax.ws.rs-api/2.1.1/javax.ws.rs-api-2.1.1.jar to c:\program files\jenkins\.jenkins\plugins\jackson2-api\web-inf\lib\ and then https://[jenkins]/safeRestart

basil commented 2 years ago

jenkinsci/jackson2-api-plugin#111 was merged, so the next step would be for the maintainers of that plugin to perform a release.

gleitoncampos commented 2 years ago

Hi guys! I'm new to Jenkins. I had the same problem, used the workaround and now is working. My question is: When the manteiner perform a new release, can we update with no problems even with this workaround in place?

ganeshwankhede commented 2 years ago

This is still persist for me on 2.13.1 version of jackson

basil commented 2 years ago

This is still persist for me on 2.13.1 version of jackson

As I wrote previously:

jenkinsci/jackson2-api-plugin#111 was merged, so the next step would be for the maintainers of that plugin to perform a release.

suncodeer commented 2 years ago

I use homebrew install jenkins-lts. How to maintain the cache foldler. Currently your solution not work for me.

cristobal-tello commented 2 years ago

Using docker image (Jenkins 2.319.1) and upgraded to Jenkins 2.319.1 (VirtualBox: Linux Mint 20.2 Uma)

I follow workaround steps:

Gitlab plugin : 1.5.25 Jackson 2 API Plugin : 2.13.1-243.v04a926c036e7

Problem not solved:

Error while serving http://jenkins.local:8080/descriptorByName/com.dabsquared.gitlabjenkins.connection.GitLabConnection/testConnection java.lang.ClassNotFoundException: javax.ws.rs.ext.MessageBodyReader at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1417) at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1372) at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1127) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) Caused: java.lang.NoClassDefFoundError: javax/ws/rs/ext/MessageBodyReader at java.base/java.lang.ClassLoader.defineClass1(Native Method) at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017) at jenkins.util.AntClassLoader.defineClassFromData(AntClassLoader.java:1187)

kstephan-wescale commented 2 years ago

jackson2-api-plugin v2.13.1-244.v773c36c5b330 with the fix has been released.

1765659645 commented 2 years ago

jackson2-api-plugin v2.13.1-244.v773c36c5b330 with the fix has been released.

Yes, we still need to wait for the author to publish to the jenkins plugin.

r-work commented 2 years ago

jackson2-api-plugin v2.13.1-244.v773c36c5b330 with the fix has been released.

Just updated, working as expected.

yashra commented 2 years ago

The Latest plugin released 2.13.1-246.va8a9f3eaf46a again causing the same issue

malice00 commented 2 years ago

The Latest plugin released 2.13.1-246.va8a9f3eaf46a again causing the same issue

Looking at the code, might this be because the dependency to the (new?) jersey-plugin is optional and you don't have this plugin installed? If so: Shouldn't this plugin depend on the jersey-plugin from now on?

basil commented 2 years ago

If so: @basil: Why is this dependency optional when we actually need it?

@malice00 See the plugin site. As of gitlab-plugin 1.5.27, the dependency on jersey2-api is not optional but required.

malice00 commented 2 years ago

@malice00 See the plugin site. As of gitlab-plugin 1.5.27, the dependency on jersey2-api is not optional but required.

Ah, sorry, hadn't seen the new version yet!

yashra commented 2 years ago

If so: @basil: Why is this dependency optional when we actually need it?

@malice00 See the plugin site. As of gitlab-plugin 1.5.27, the dependency on jersey2-api is not optional but required.

But when we refresh the plugin list for update in Jenkins version below 2.289.1 it shows the latest jackson-api plugin with optional dependency as jersey-api https://plugins.jenkins.io/jackson2-api/#dependencies

basil commented 2 years ago

But when we refresh the plugin list for update in Jenkins version below 2.289.1 it shows the latest jackson-api plugin with optional dependency as jersey-api https://plugins.jenkins.io/jackson2-api/#dependencies

So install jersey2-api explicitly then.

yashra commented 2 years ago

But when we refresh the plugin list for update in Jenkins version below 2.289.1 it shows the latest jackson-api plugin with optional dependency as jersey-api https://plugins.jenkins.io/jackson2-api/#dependencies

So install jersey2-api explicitly then.

Yes but shouldn't be as a required dependency then?

basil commented 2 years ago

Yes but shouldn't be as a required dependency then?

It is a required dependency in the latest version of gitlab-plugin, which you can't upgrade to because you're running a Jenkins release that is 6 months old ;-)

yashra commented 2 years ago

Yes but shouldn't be as a required dependency then?

It is a required dependency in the latest version of gitlab-plugin, which you can't upgrade to because you're running a Jenkins release that is 6 months old ;-)

I agree on that, but with Jackson-Api too the jersey-plugin should be required dependency than instead optional.. :)

basil commented 2 years ago

with Jackson-Api too the jersey-plugin should be required dependency than instead optional..

So open an issue against the Jackson 2 API plugin. I am not a maintainer of the Jackson 2 API plugin, and it is not appropriate to raise Jackson 2 API plugin issues in this repository.

yashra commented 2 years ago

oka sorry for that.. 👍

byangtri commented 2 years ago

Hi Team, I am encountering this issue with Jackson 2 API plugin version 2.13.1-246.va8a9f3eaf46a and running Jersey 2 API plugin version 2.35-3. Any resolution on this issue?

Gaibhne commented 2 years ago

We are also still (or again ?) seeing this problem in 2.13.1-246.va8a9f3eaf46a. All incoming webhooks are broken.

anoopcs9 commented 2 years ago

Recently we also started noticing the following error from URLTrigger plugin:

Polling on master.
Resolving environment variables using global values
[ERROR] - Polling error...
[ERROR] - Error message: javax/ws/rs/ext/MessageBodyReader
[ERROR] - Error cause: javax.ws.rs.ext.MessageBodyReader

Are there any new dependencies to be installed now?

diginc commented 2 years ago

Recently we also started noticing the following error from URLTrigger plugin:

There's a 0.51 release for URLTrigger that works with Jackson2 246 https://github.com/jenkinsci/urltrigger-plugin/issues/45

ukuko commented 2 years ago

I had this issue with Jenkins LTS 2.319.3 and GitLab plugin 1.5.24, and solved it installing "Jersey 2 API" plugin, which is normally listed as not mandatory

mpluhar commented 2 years ago

Thanks for posting the comment @ukuko . I can confirm that also fixed my issue on Jenkins 2.332.1. I had to restart Jenkins after installing the "Jersey 2 API" plugin.

JakubPiasekAGH commented 2 years ago

Hi, any news about the issue? At:

JakubPiasekAGH commented 2 years ago

Hi, any news about the issue? At:

  • jenkins 2.332.3 with
  • Jackson 2 API Plugin version 2.13.2.20220328-273.v11d70a_b_a_1a_52
  • gitlab plugin version 1.5.31
  • Jersey 2 API version 2.35-7 this error also is reproducible.

Just to make it clear - for now we solve it with downgrading gitlab plugin to version 1.5.28 and added javax.ws.rs-api-2.1.1.jar to /lib dir. It seems like this upgrade to version 1.5.31 may break something.

lvhaojian commented 1 year ago

This error will still be reported when introducing eurekaClient Spring cloud starter netflix eureka client version 2.1.0

2023-09-17 01:19:23,970 INFO main Initializing Eureka in region us-east-1 2023-09-17 01:19:24,074[ INFO main](com.netflix.discovery.provider.DiscoveryJerseyProvider: 70) Using JSON encoding codec LegacyJacksonJson 2023-09-17 01:19:24,075[ INFO main](com.netflix.discovery.provider.DiscoveryJerseyProvider: 71) Using JSON decoding codec LegacyJacksonJson 2023-09-17 01:19:24,219[ INFO main](com.netflix.discovery.provider.DiscoveryJerseyProvider: 80) Using XML encoding codec XStreamXml 2023-09-17 01:19:24,220[ INFO main](com.netflix.discovery.provider.DiscoveryJerseyProvider: 81) Using XML decoding codec XStreamXml 2023-09-17 01:19:24.426 ERROR 13788 --- [ main] o.s.c.n.e.s.EurekaRegistration : error getting CloudEurekaClient

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scopedTarget.eurekaClient' defined in class path resource [org/springframework/cloud/netflix/eureka/EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.netflix.discovery.EurekaClient]: Factory method 'eurekaClient' threw exception; nested exception is java.lang.RuntimeException: Failed to initialize DiscoveryClient! at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:607) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1288) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1127) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:538) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$1(AbstractBeanFactory.java:356) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.cloud.context.scope.GenericScope$BeanLifecycleWrapper.getBean(GenericScope.java:390) ~[spring-cloud-context-2.1.0.RC2.jar!/:2.1.0.RC2] at org.springframework.cloud.context.scope.GenericScope.get(GenericScope.java:184) ~[spring-cloud-context-2.1.0.RC2.jar!/:2.1.0.RC2] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:353) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.aop.target.SimpleBeanTargetSource.getTarget(SimpleBeanTargetSource.java:35) ~[spring-aop-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.cloud.netflix.eureka.serviceregistry.EurekaRegistration.getTargetObject(EurekaRegistration.java:171) ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.serviceregistry.EurekaRegistration.getEurekaClient(EurekaRegistration.java:160) [spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_341] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_341] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_341] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_341] at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:246) [spring-core-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.cloud.context.scope.GenericScope$LockedScopedProxyFactoryBean.invoke(GenericScope.java:494) [spring-cloud-context-2.1.0.RC2.jar!/:2.1.0.RC2] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) [spring-aop-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688) [spring-aop-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.cloud.netflix.eureka.serviceregistry.EurekaRegistration$$EnhancerBySpringCGLIB$$c3bc1a33.getEurekaClient() [spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.serviceregistry.EurekaServiceRegistry.maybeInitializeClient(EurekaServiceRegistry.java:57) [spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.serviceregistry.EurekaServiceRegistry.register(EurekaServiceRegistry.java:39) [spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.serviceregistry.EurekaAutoServiceRegistration.start(EurekaAutoServiceRegistration.java:82) [spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:182) [spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:53) [spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:360) [spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:158) [spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:122) [spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:879) [spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.finishRefresh(ServletWebServerApplicationContext.java:163) [spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) [spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) [spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) [spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) [spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:316) [spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] at cn.com.do1.component.dqdpboot.DqdpBootStarter.main(DqdpBootStarter.java:89) [dqdp-boot-3.01.00-SNAPSHOT.jar!/:3.01.00-SNAPSHOT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_341] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_341] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_341] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_341] at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [dqsf-apps-learnonline.jar:1.1.0-SNAPSHOT] at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [dqsf-apps-learnonline.jar:1.1.0-SNAPSHOT] at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [dqsf-apps-learnonline.jar:1.1.0-SNAPSHOT] at cn.com.do1.license.boot.DqdpJarLauncher.main(DqdpJarLauncher.java:34) [dqsf-apps-learnonline.jar:1.1.0-SNAPSHOT] Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.netflix.discovery.EurekaClient]: Factory method 'eurekaClient' threw exception; nested exception is java.lang.RuntimeException: Failed to initialize DiscoveryClient! at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] ... 46 more Caused by: java.lang.RuntimeException: Failed to initialize DiscoveryClient! at com.netflix.discovery.DiscoveryClient.(DiscoveryClient.java:411) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.DiscoveryClient.(DiscoveryClient.java:269) ~[eureka-client-1.9.8.jar!/:1.9.8] at org.springframework.cloud.netflix.eureka.CloudEurekaClient.(CloudEurekaClient.java:63) ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration.eurekaClient(EurekaClientAutoConfiguration.java:302) ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$d9281f05.CGLIB$eurekaClient$0() ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$d9281f05$$FastClassBySpringCGLIB$$3e555137.invoke() ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363) ~[spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$d9281f05.eurekaClient() ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_341] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_341] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_341] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_341] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] ... 46 more Caused by: java.lang.RuntimeException: Cannot create Jersey client at com.netflix.discovery.shared.transport.jersey.EurekaJerseyClientImpl$EurekaJerseyClientBuilder.build(EurekaJerseyClientImpl.java:182) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.JerseyEurekaHttpClientFactory$JerseyEurekaHttpClientFactoryBuilder.buildLegacy(JerseyEurekaHttpClientFactory.java:230) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.JerseyEurekaHttpClientFactory$JerseyEurekaHttpClientFactoryBuilder.build(JerseyEurekaHttpClientFactory.java:204) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.JerseyEurekaHttpClientFactory.create(JerseyEurekaHttpClientFactory.java:161) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.Jersey1TransportClientFactories.newTransportClientFactory(Jersey1TransportClientFactories.java:59) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.DiscoveryClient.scheduleServerEndpointTask(DiscoveryClient.java:485) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.DiscoveryClient.(DiscoveryClient.java:398) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.DiscoveryClient.(DiscoveryClient.java:269) ~[eureka-client-1.9.8.jar!/:1.9.8] at org.springframework.cloud.netflix.eureka.CloudEurekaClient.(CloudEurekaClient.java:63) ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration.eurekaClient(EurekaClientAutoConfiguration.java:302) ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$d9281f05.CGLIB$eurekaClient$0() ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$d9281f05$$FastClassBySpringCGLIB$$3e555137.invoke() ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363) ~[spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$d9281f05.eurekaClient() ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_341] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_341] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_341] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_341] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] ... 46 more Caused by: java.lang.RuntimeException: Cannot create Jersey client at com.netflix.discovery.shared.transport.jersey.EurekaJerseyClientImpl.(EurekaJerseyClientImpl.java:61) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.EurekaJerseyClientImpl$EurekaJerseyClientBuilder.build(EurekaJerseyClientImpl.java:180) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.JerseyEurekaHttpClientFactory$JerseyEurekaHttpClientFactoryBuilder.buildLegacy(JerseyEurekaHttpClientFactory.java:230) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.JerseyEurekaHttpClientFactory$JerseyEurekaHttpClientFactoryBuilder.build(JerseyEurekaHttpClientFactory.java:204) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.JerseyEurekaHttpClientFactory.create(JerseyEurekaHttpClientFactory.java:161) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.Jersey1TransportClientFactories.newTransportClientFactory(Jersey1TransportClientFactories.java:59) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.DiscoveryClient.scheduleServerEndpointTask(DiscoveryClient.java:485) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.DiscoveryClient.(DiscoveryClient.java:398) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.DiscoveryClient.(DiscoveryClient.java:269) ~[eureka-client-1.9.8.jar!/:1.9.8] at org.springframework.cloud.netflix.eureka.CloudEurekaClient.(CloudEurekaClient.java:63) ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration.eurekaClient(EurekaClientAutoConfiguration.java:302) ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$d9281f05.CGLIB$eurekaClient$0() ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$d9281f05$$FastClassBySpringCGLIB$$3e555137.invoke() ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363) ~[spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$d9281f05.eurekaClient() ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_341] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_341] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_341] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_341] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] ... 46 more Caused by: java.lang.NoClassDefFoundError: javax/ws/rs/ext/MessageBodyReader at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_341] at java.lang.ClassLoader.defineClass(Unknown Source) ~[?:1.8.0_341] at java.security.SecureClassLoader.defineClass(Unknown Source) ~[?:1.8.0_341] at java.net.URLClassLoader.defineClass(Unknown Source) ~[?:1.8.0_341] at java.net.URLClassLoader.access$100(Unknown Source) ~[?:1.8.0_341] at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.8.0_341] at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.8.0_341] at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_341] at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_341] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_341] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) ~[?:1.8.0_341] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_341] at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:93) ~[dqsf-apps-learnonline.jar:1.1.0-SNAPSHOT] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_341] at java.lang.Class.forName0(Native Method) ~[?:1.8.0_341] at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_341] at com.sun.jersey.core.reflection.ReflectionHelper$3.run(ReflectionHelper.java:284) ~[jersey-core-1.19.1.jar!/:1.19.1] at com.sun.jersey.core.reflection.ReflectionHelper$3.run(ReflectionHelper.java:279) ~[jersey-core-1.19.1.jar!/:1.19.1] at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_341] at com.sun.jersey.spi.service.ServiceFinder$AbstractLazyIterator.hasNext(ServiceFinder.java:697) ~[jersey-core-1.19.1.jar!/:1.19.1] at com.sun.jersey.spi.service.ServiceFinder.toClassArray(ServiceFinder.java:549) ~[jersey-core-1.19.1.jar!/:1.19.1] at com.sun.jersey.core.spi.component.ProviderServices.getServiceClasses(ProviderServices.java:345) ~[jersey-core-1.19.1.jar!/:1.19.1] at com.sun.jersey.core.spi.component.ProviderServices.getServiceClasses(ProviderServices.java:338) ~[jersey-core-1.19.1.jar!/:1.19.1] at com.sun.jersey.core.spi.component.ProviderServices.getServices(ProviderServices.java:162) ~[jersey-core-1.19.1.jar!/:1.19.1] at com.sun.jersey.core.spi.factory.MessageBodyFactory.initReaders(MessageBodyFactory.java:176) ~[jersey-core-1.19.1.jar!/:1.19.1] at com.sun.jersey.core.spi.factory.MessageBodyFactory.init(MessageBodyFactory.java:162) ~[jersey-core-1.19.1.jar!/:1.19.1] at com.sun.jersey.api.client.Client.init(Client.java:343) ~[jersey-client-1.19.1.jar!/:1.19.1] at com.sun.jersey.api.client.Client.access$000(Client.java:119) ~[jersey-client-1.19.1.jar!/:1.19.1] at com.sun.jersey.api.client.Client$1.f(Client.java:192) ~[jersey-client-1.19.1.jar!/:1.19.1] at com.sun.jersey.api.client.Client$1.f(Client.java:188) ~[jersey-client-1.19.1.jar!/:1.19.1] at com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:193) ~[jersey-core-1.19.1.jar!/:1.19.1] at com.sun.jersey.api.client.Client.(Client.java:188) ~[jersey-client-1.19.1.jar!/:1.19.1] at com.sun.jersey.client.apache4.ApacheHttpClient4.(ApacheHttpClient4.java:151) ~[jersey-apache-client4-1.19.1.jar!/:1.19.1] at com.sun.jersey.client.apache4.ApacheHttpClient4.(ApacheHttpClient4.java:137) ~[jersey-apache-client4-1.19.1.jar!/:1.19.1] at com.sun.jersey.client.apache4.ApacheHttpClient4.create(ApacheHttpClient4.java:181) ~[jersey-apache-client4-1.19.1.jar!/:1.19.1] at com.netflix.discovery.shared.transport.jersey.EurekaJerseyClientImpl.(EurekaJerseyClientImpl.java:53) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.EurekaJerseyClientImpl$EurekaJerseyClientBuilder.build(EurekaJerseyClientImpl.java:180) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.JerseyEurekaHttpClientFactory$JerseyEurekaHttpClientFactoryBuilder.buildLegacy(JerseyEurekaHttpClientFactory.java:230) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.JerseyEurekaHttpClientFactory$JerseyEurekaHttpClientFactoryBuilder.build(JerseyEurekaHttpClientFactory.java:204) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.JerseyEurekaHttpClientFactory.create(JerseyEurekaHttpClientFactory.java:161) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.Jersey1TransportClientFactories.newTransportClientFactory(Jersey1TransportClientFactories.java:59) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.DiscoveryClient.scheduleServerEndpointTask(DiscoveryClient.java:485) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.DiscoveryClient.(DiscoveryClient.java:398) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.DiscoveryClient.(DiscoveryClient.java:269) ~[eureka-client-1.9.8.jar!/:1.9.8] at org.springframework.cloud.netflix.eureka.CloudEurekaClient.(CloudEurekaClient.java:63) ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration.eurekaClient(EurekaClientAutoConfiguration.java:302) ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$d9281f05.CGLIB$eurekaClient$0() ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$d9281f05$$FastClassBySpringCGLIB$$3e555137.invoke() ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363) ~[spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$d9281f05.eurekaClient() ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_341] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_341] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_341] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_341] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] ... 46 more Caused by: java.lang.ClassNotFoundException: javax.ws.rs.ext.MessageBodyReader at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_341] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_341] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) ~[?:1.8.0_341] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_341] at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_341] at java.lang.ClassLoader.defineClass(Unknown Source) ~[?:1.8.0_341] at java.security.SecureClassLoader.defineClass(Unknown Source) ~[?:1.8.0_341] at java.net.URLClassLoader.defineClass(Unknown Source) ~[?:1.8.0_341] at java.net.URLClassLoader.access$100(Unknown Source) ~[?:1.8.0_341] at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.8.0_341] at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.8.0_341] at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_341] at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_341] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_341] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) ~[?:1.8.0_341] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_341] at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:93) ~[dqsf-apps-learnonline.jar:1.1.0-SNAPSHOT] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_341] at java.lang.Class.forName0(Native Method) ~[?:1.8.0_341] at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_341] at com.sun.jersey.core.reflection.ReflectionHelper$3.run(ReflectionHelper.java:284) ~[jersey-core-1.19.1.jar!/:1.19.1] at com.sun.jersey.core.reflection.ReflectionHelper$3.run(ReflectionHelper.java:279) ~[jersey-core-1.19.1.jar!/:1.19.1] at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_341] at com.sun.jersey.spi.service.ServiceFinder$AbstractLazyIterator.hasNext(ServiceFinder.java:697) ~[jersey-core-1.19.1.jar!/:1.19.1] at com.sun.jersey.spi.service.ServiceFinder.toClassArray(ServiceFinder.java:549) ~[jersey-core-1.19.1.jar!/:1.19.1] at com.sun.jersey.core.spi.component.ProviderServices.getServiceClasses(ProviderServices.java:345) ~[jersey-core-1.19.1.jar!/:1.19.1] at com.sun.jersey.core.spi.component.ProviderServices.getServiceClasses(ProviderServices.java:338) ~[jersey-core-1.19.1.jar!/:1.19.1] at com.sun.jersey.core.spi.component.ProviderServices.getServices(ProviderServices.java:162) ~[jersey-core-1.19.1.jar!/:1.19.1] at com.sun.jersey.core.spi.factory.MessageBodyFactory.initReaders(MessageBodyFactory.java:176) ~[jersey-core-1.19.1.jar!/:1.19.1] at com.sun.jersey.core.spi.factory.MessageBodyFactory.init(MessageBodyFactory.java:162) ~[jersey-core-1.19.1.jar!/:1.19.1] at com.sun.jersey.api.client.Client.init(Client.java:343) ~[jersey-client-1.19.1.jar!/:1.19.1] at com.sun.jersey.api.client.Client.access$000(Client.java:119) ~[jersey-client-1.19.1.jar!/:1.19.1] at com.sun.jersey.api.client.Client$1.f(Client.java:192) ~[jersey-client-1.19.1.jar!/:1.19.1] at com.sun.jersey.api.client.Client$1.f(Client.java:188) ~[jersey-client-1.19.1.jar!/:1.19.1] at com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:193) ~[jersey-core-1.19.1.jar!/:1.19.1] at com.sun.jersey.api.client.Client.(Client.java:188) ~[jersey-client-1.19.1.jar!/:1.19.1] at com.sun.jersey.client.apache4.ApacheHttpClient4.(ApacheHttpClient4.java:151) ~[jersey-apache-client4-1.19.1.jar!/:1.19.1] at com.sun.jersey.client.apache4.ApacheHttpClient4.(ApacheHttpClient4.java:137) ~[jersey-apache-client4-1.19.1.jar!/:1.19.1] at com.sun.jersey.client.apache4.ApacheHttpClient4.create(ApacheHttpClient4.java:181) ~[jersey-apache-client4-1.19.1.jar!/:1.19.1] at com.netflix.discovery.shared.transport.jersey.EurekaJerseyClientImpl.(EurekaJerseyClientImpl.java:53) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.EurekaJerseyClientImpl$EurekaJerseyClientBuilder.build(EurekaJerseyClientImpl.java:180) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.JerseyEurekaHttpClientFactory$JerseyEurekaHttpClientFactoryBuilder.buildLegacy(JerseyEurekaHttpClientFactory.java:230) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.JerseyEurekaHttpClientFactory$JerseyEurekaHttpClientFactoryBuilder.build(JerseyEurekaHttpClientFactory.java:204) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.JerseyEurekaHttpClientFactory.create(JerseyEurekaHttpClientFactory.java:161) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.Jersey1TransportClientFactories.newTransportClientFactory(Jersey1TransportClientFactories.java:59) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.DiscoveryClient.scheduleServerEndpointTask(DiscoveryClient.java:485) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.DiscoveryClient.(DiscoveryClient.java:398) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.DiscoveryClient.(DiscoveryClient.java:269) ~[eureka-client-1.9.8.jar!/:1.9.8] at org.springframework.cloud.netflix.eureka.CloudEurekaClient.(CloudEurekaClient.java:63) ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration.eurekaClient(EurekaClientAutoConfiguration.java:302) ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$d9281f05.CGLIB$eurekaClient$0() ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$d9281f05$$FastClassBySpringCGLIB$$3e555137.invoke() ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363) ~[spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$d9281f05.eurekaClient() ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_341] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_341] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_341] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_341] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] ... 46 more

2023-09-17 01:19:24.449 WARN 13788 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Failed to start bean 'eurekaAutoServiceRegistration'; nested exception is java.lang.NullPointerException 2023-09-17 01:19:24.470 INFO 13788 --- [ main] o.s.s.q.SchedulerFactoryBean : Shutting down Quartz Scheduler 2023-09-17 01:19:24.607 INFO 13788 --- [ main] ConditionEvaluationReportLoggingListener :

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2023-09-17 01:19:24.609 ERROR 13788 --- [ main] o.s.b.SpringApplication : Application run failed

org.springframework.context.ApplicationContextException: Failed to start bean 'eurekaAutoServiceRegistration'; nested exception is java.lang.NullPointerException at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:185) ~[spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:53) ~[spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:360) ~[spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:158) ~[spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:122) ~[spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:879) ~[spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.finishRefresh(ServletWebServerApplicationContext.java:163) ~[spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) ~[spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) ~[spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) [spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) [spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:316) [spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] at cn.com.do1.component.dqdpboot.DqdpBootStarter.main(DqdpBootStarter.java:89) [dqdp-boot-3.01.00-SNAPSHOT.jar!/:3.01.00-SNAPSHOT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_341] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_341] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_341] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_341] at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [dqsf-apps-learnonline.jar:1.1.0-SNAPSHOT] at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [dqsf-apps-learnonline.jar:1.1.0-SNAPSHOT] at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [dqsf-apps-learnonline.jar:1.1.0-SNAPSHOT] at cn.com.do1.license.boot.DqdpJarLauncher.main(DqdpJarLauncher.java:34) [dqsf-apps-learnonline.jar:1.1.0-SNAPSHOT] Caused by: java.lang.NullPointerException at org.springframework.cloud.netflix.eureka.serviceregistry.EurekaServiceRegistry.maybeInitializeClient(EurekaServiceRegistry.java:57) ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.serviceregistry.EurekaServiceRegistry.register(EurekaServiceRegistry.java:39) ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.serviceregistry.EurekaAutoServiceRegistration.start(EurekaAutoServiceRegistration.java:82) ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:182) ~[spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] ... 20 more

lvhaojian commented 1 year ago

jackson2-api-plugin v2.13.1-244.v773c36c5b330及修复程序已发布。

This error will still be reported when introducing eurekaClient

Spring cloud starter netflix eureka client version 2.1.0

2023-09-17 01:19:24,219[ INFO main](com.netflix.discovery.provider.DiscoveryJerseyProvider: 80) Using XML encoding codec XStreamXml 2023-09-17 01:19:24,220[ INFO main](com.netflix.discovery.provider.DiscoveryJerseyProvider: 81) Using XML decoding codec XStreamXml 2023-09-17 01:19:24.426 ERROR 13788 --- [ main] o.s.c.n.e.s.EurekaRegistration : error getting CloudEurekaClient

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scopedTarget.eurekaClient' defined in class path resource [org/springframework/cloud/netflix/eureka/EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.netflix.discovery.EurekaClient]: Factory method 'eurekaClient' threw exception; nested exception is java.lang.RuntimeException: Failed to initialize DiscoveryClient! at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:607) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1288) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1127) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:538) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$1(AbstractBeanFactory.java:356) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.cloud.context.scope.GenericScope$BeanLifecycleWrapper.getBean(GenericScope.java:390) ~[spring-cloud-context-2.1.0.RC2.jar!/:2.1.0.RC2] at org.springframework.cloud.context.scope.GenericScope.get(GenericScope.java:184) ~[spring-cloud-context-2.1.0.RC2.jar!/:2.1.0.RC2] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:353) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.aop.target.SimpleBeanTargetSource.getTarget(SimpleBeanTargetSource.java:35) ~[spring-aop-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.cloud.netflix.eureka.serviceregistry.EurekaRegistration.getTargetObject(EurekaRegistration.java:171) ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.serviceregistry.EurekaRegistration.getEurekaClient(EurekaRegistration.java:160) [spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_341] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_341] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_341] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_341] at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:246) [spring-core-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.cloud.context.scope.GenericScope$LockedScopedProxyFactoryBean.invoke(GenericScope.java:494) [spring-cloud-context-2.1.0.RC2.jar!/:2.1.0.RC2] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) [spring-aop-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688) [spring-aop-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.cloud.netflix.eureka.serviceregistry.EurekaRegistration$$EnhancerBySpringCGLIB$$c3bc1a33.getEurekaClient() [spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.serviceregistry.EurekaServiceRegistry.maybeInitializeClient(EurekaServiceRegistry.java:57) [spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.serviceregistry.EurekaServiceRegistry.register(EurekaServiceRegistry.java:39) [spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.serviceregistry.EurekaAutoServiceRegistration.start(EurekaAutoServiceRegistration.java:82) [spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:182) [spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:53) [spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:360) [spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:158) [spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:122) [spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:879) [spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.finishRefresh(ServletWebServerApplicationContext.java:163) [spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) [spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) [spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) [spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) [spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:316) [spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] at cn.com.do1.component.dqdpboot.DqdpBootStarter.main(DqdpBootStarter.java:89) [dqdp-boot-3.01.00-SNAPSHOT.jar!/:3.01.00-SNAPSHOT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_341] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_341] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_341] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_341] at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [dqsf-apps-learnonline.jar:1.1.0-SNAPSHOT] at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [dqsf-apps-learnonline.jar:1.1.0-SNAPSHOT] at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [dqsf-apps-learnonline.jar:1.1.0-SNAPSHOT] at cn.com.do1.license.boot.DqdpJarLauncher.main(DqdpJarLauncher.java:34) [dqsf-apps-learnonline.jar:1.1.0-SNAPSHOT] Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.netflix.discovery.EurekaClient]: Factory method 'eurekaClient' threw exception; nested exception is java.lang.RuntimeException: Failed to initialize DiscoveryClient! at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] ... 46 more Caused by: java.lang.RuntimeException: Failed to initialize DiscoveryClient! at com.netflix.discovery.DiscoveryClient.(DiscoveryClient.java:411) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.DiscoveryClient.(DiscoveryClient.java:269) ~[eureka-client-1.9.8.jar!/:1.9.8] at org.springframework.cloud.netflix.eureka.CloudEurekaClient.(CloudEurekaClient.java:63) ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration.eurekaClient(EurekaClientAutoConfiguration.java:302) ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$d9281f05.CGLIB$eurekaClient$0() ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$d9281f05$$FastClassBySpringCGLIB$$3e555137.invoke() ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363) ~[spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$d9281f05.eurekaClient() ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_341] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_341] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_341] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_341] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] ... 46 more Caused by: java.lang.RuntimeException: Cannot create Jersey client at com.netflix.discovery.shared.transport.jersey.EurekaJerseyClientImpl$EurekaJerseyClientBuilder.build(EurekaJerseyClientImpl.java:182) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.JerseyEurekaHttpClientFactory$JerseyEurekaHttpClientFactoryBuilder.buildLegacy(JerseyEurekaHttpClientFactory.java:230) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.JerseyEurekaHttpClientFactory$JerseyEurekaHttpClientFactoryBuilder.build(JerseyEurekaHttpClientFactory.java:204) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.JerseyEurekaHttpClientFactory.create(JerseyEurekaHttpClientFactory.java:161) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.Jersey1TransportClientFactories.newTransportClientFactory(Jersey1TransportClientFactories.java:59) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.DiscoveryClient.scheduleServerEndpointTask(DiscoveryClient.java:485) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.DiscoveryClient.(DiscoveryClient.java:398) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.DiscoveryClient.(DiscoveryClient.java:269) ~[eureka-client-1.9.8.jar!/:1.9.8] at org.springframework.cloud.netflix.eureka.CloudEurekaClient.(CloudEurekaClient.java:63) ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration.eurekaClient(EurekaClientAutoConfiguration.java:302) ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$d9281f05.CGLIB$eurekaClient$0() ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$d9281f05$$FastClassBySpringCGLIB$$3e555137.invoke() ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363) ~[spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$d9281f05.eurekaClient() ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_341] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_341] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_341] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_341] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] ... 46 more Caused by: java.lang.RuntimeException: Cannot create Jersey client at com.netflix.discovery.shared.transport.jersey.EurekaJerseyClientImpl.(EurekaJerseyClientImpl.java:61) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.EurekaJerseyClientImpl$EurekaJerseyClientBuilder.build(EurekaJerseyClientImpl.java:180) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.JerseyEurekaHttpClientFactory$JerseyEurekaHttpClientFactoryBuilder.buildLegacy(JerseyEurekaHttpClientFactory.java:230) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.JerseyEurekaHttpClientFactory$JerseyEurekaHttpClientFactoryBuilder.build(JerseyEurekaHttpClientFactory.java:204) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.JerseyEurekaHttpClientFactory.create(JerseyEurekaHttpClientFactory.java:161) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.Jersey1TransportClientFactories.newTransportClientFactory(Jersey1TransportClientFactories.java:59) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.DiscoveryClient.scheduleServerEndpointTask(DiscoveryClient.java:485) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.DiscoveryClient.(DiscoveryClient.java:398) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.DiscoveryClient.(DiscoveryClient.java:269) ~[eureka-client-1.9.8.jar!/:1.9.8] at org.springframework.cloud.netflix.eureka.CloudEurekaClient.(CloudEurekaClient.java:63) ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration.eurekaClient(EurekaClientAutoConfiguration.java:302) ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$d9281f05.CGLIB$eurekaClient$0() ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$d9281f05$$FastClassBySpringCGLIB$$3e555137.invoke() ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363) ~[spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$d9281f05.eurekaClient() ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_341] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_341] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_341] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_341] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] ... 46 more Caused by: java.lang.NoClassDefFoundError: javax/ws/rs/ext/MessageBodyReader at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_341] at java.lang.ClassLoader.defineClass(Unknown Source) ~[?:1.8.0_341] at java.security.SecureClassLoader.defineClass(Unknown Source) ~[?:1.8.0_341] at java.net.URLClassLoader.defineClass(Unknown Source) ~[?:1.8.0_341] at java.net.URLClassLoader.access$100(Unknown Source) ~[?:1.8.0_341] at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.8.0_341] at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.8.0_341] at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_341] at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_341] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_341] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) ~[?:1.8.0_341] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_341] at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:93) ~[dqsf-apps-learnonline.jar:1.1.0-SNAPSHOT] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_341] at java.lang.Class.forName0(Native Method) ~[?:1.8.0_341] at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_341] at com.sun.jersey.core.reflection.ReflectionHelper$3.run(ReflectionHelper.java:284) ~[jersey-core-1.19.1.jar!/:1.19.1] at com.sun.jersey.core.reflection.ReflectionHelper$3.run(ReflectionHelper.java:279) ~[jersey-core-1.19.1.jar!/:1.19.1] at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_341] at com.sun.jersey.spi.service.ServiceFinder$AbstractLazyIterator.hasNext(ServiceFinder.java:697) ~[jersey-core-1.19.1.jar!/:1.19.1] at com.sun.jersey.spi.service.ServiceFinder.toClassArray(ServiceFinder.java:549) ~[jersey-core-1.19.1.jar!/:1.19.1] at com.sun.jersey.core.spi.component.ProviderServices.getServiceClasses(ProviderServices.java:345) ~[jersey-core-1.19.1.jar!/:1.19.1] at com.sun.jersey.core.spi.component.ProviderServices.getServiceClasses(ProviderServices.java:338) ~[jersey-core-1.19.1.jar!/:1.19.1] at com.sun.jersey.core.spi.component.ProviderServices.getServices(ProviderServices.java:162) ~[jersey-core-1.19.1.jar!/:1.19.1] at com.sun.jersey.core.spi.factory.MessageBodyFactory.initReaders(MessageBodyFactory.java:176) ~[jersey-core-1.19.1.jar!/:1.19.1] at com.sun.jersey.core.spi.factory.MessageBodyFactory.init(MessageBodyFactory.java:162) ~[jersey-core-1.19.1.jar!/:1.19.1] at com.sun.jersey.api.client.Client.init(Client.java:343) ~[jersey-client-1.19.1.jar!/:1.19.1] at com.sun.jersey.api.client.Client.access$000(Client.java:119) ~[jersey-client-1.19.1.jar!/:1.19.1] at com.sun.jersey.api.client.Client$1.f(Client.java:192) ~[jersey-client-1.19.1.jar!/:1.19.1] at com.sun.jersey.api.client.Client$1.f(Client.java:188) ~[jersey-client-1.19.1.jar!/:1.19.1] at com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:193) ~[jersey-core-1.19.1.jar!/:1.19.1] at com.sun.jersey.api.client.Client.(Client.java:188) ~[jersey-client-1.19.1.jar!/:1.19.1] at com.sun.jersey.client.apache4.ApacheHttpClient4.(ApacheHttpClient4.java:151) ~[jersey-apache-client4-1.19.1.jar!/:1.19.1] at com.sun.jersey.client.apache4.ApacheHttpClient4.(ApacheHttpClient4.java:137) ~[jersey-apache-client4-1.19.1.jar!/:1.19.1] at com.sun.jersey.client.apache4.ApacheHttpClient4.create(ApacheHttpClient4.java:181) ~[jersey-apache-client4-1.19.1.jar!/:1.19.1] at com.netflix.discovery.shared.transport.jersey.EurekaJerseyClientImpl.(EurekaJerseyClientImpl.java:53) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.EurekaJerseyClientImpl$EurekaJerseyClientBuilder.build(EurekaJerseyClientImpl.java:180) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.JerseyEurekaHttpClientFactory$JerseyEurekaHttpClientFactoryBuilder.buildLegacy(JerseyEurekaHttpClientFactory.java:230) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.JerseyEurekaHttpClientFactory$JerseyEurekaHttpClientFactoryBuilder.build(JerseyEurekaHttpClientFactory.java:204) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.JerseyEurekaHttpClientFactory.create(JerseyEurekaHttpClientFactory.java:161) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.Jersey1TransportClientFactories.newTransportClientFactory(Jersey1TransportClientFactories.java:59) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.DiscoveryClient.scheduleServerEndpointTask(DiscoveryClient.java:485) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.DiscoveryClient.(DiscoveryClient.java:398) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.DiscoveryClient.(DiscoveryClient.java:269) ~[eureka-client-1.9.8.jar!/:1.9.8] at org.springframework.cloud.netflix.eureka.CloudEurekaClient.(CloudEurekaClient.java:63) ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration.eurekaClient(EurekaClientAutoConfiguration.java:302) ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$d9281f05.CGLIB$eurekaClient$0() ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$d9281f05$$FastClassBySpringCGLIB$$3e555137.invoke() ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363) ~[spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$d9281f05.eurekaClient() ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_341] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_341] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_341] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_341] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] ... 46 more Caused by: java.lang.ClassNotFoundException: javax.ws.rs.ext.MessageBodyReader at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_341] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_341] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) ~[?:1.8.0_341] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_341] at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_341] at java.lang.ClassLoader.defineClass(Unknown Source) ~[?:1.8.0_341] at java.security.SecureClassLoader.defineClass(Unknown Source) ~[?:1.8.0_341] at java.net.URLClassLoader.defineClass(Unknown Source) ~[?:1.8.0_341] at java.net.URLClassLoader.access$100(Unknown Source) ~[?:1.8.0_341] at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.8.0_341] at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.8.0_341] at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_341] at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_341] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_341] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) ~[?:1.8.0_341] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_341] at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:93) ~[dqsf-apps-learnonline.jar:1.1.0-SNAPSHOT] at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_341] at java.lang.Class.forName0(Native Method) ~[?:1.8.0_341] at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_341] at com.sun.jersey.core.reflection.ReflectionHelper$3.run(ReflectionHelper.java:284) ~[jersey-core-1.19.1.jar!/:1.19.1] at com.sun.jersey.core.reflection.ReflectionHelper$3.run(ReflectionHelper.java:279) ~[jersey-core-1.19.1.jar!/:1.19.1] at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_341] at com.sun.jersey.spi.service.ServiceFinder$AbstractLazyIterator.hasNext(ServiceFinder.java:697) ~[jersey-core-1.19.1.jar!/:1.19.1] at com.sun.jersey.spi.service.ServiceFinder.toClassArray(ServiceFinder.java:549) ~[jersey-core-1.19.1.jar!/:1.19.1] at com.sun.jersey.core.spi.component.ProviderServices.getServiceClasses(ProviderServices.java:345) ~[jersey-core-1.19.1.jar!/:1.19.1] at com.sun.jersey.core.spi.component.ProviderServices.getServiceClasses(ProviderServices.java:338) ~[jersey-core-1.19.1.jar!/:1.19.1] at com.sun.jersey.core.spi.component.ProviderServices.getServices(ProviderServices.java:162) ~[jersey-core-1.19.1.jar!/:1.19.1] at com.sun.jersey.core.spi.factory.MessageBodyFactory.initReaders(MessageBodyFactory.java:176) ~[jersey-core-1.19.1.jar!/:1.19.1] at com.sun.jersey.core.spi.factory.MessageBodyFactory.init(MessageBodyFactory.java:162) ~[jersey-core-1.19.1.jar!/:1.19.1] at com.sun.jersey.api.client.Client.init(Client.java:343) ~[jersey-client-1.19.1.jar!/:1.19.1] at com.sun.jersey.api.client.Client.access$000(Client.java:119) ~[jersey-client-1.19.1.jar!/:1.19.1] at com.sun.jersey.api.client.Client$1.f(Client.java:192) ~[jersey-client-1.19.1.jar!/:1.19.1] at com.sun.jersey.api.client.Client$1.f(Client.java:188) ~[jersey-client-1.19.1.jar!/:1.19.1] at com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:193) ~[jersey-core-1.19.1.jar!/:1.19.1] at com.sun.jersey.api.client.Client.(Client.java:188) ~[jersey-client-1.19.1.jar!/:1.19.1] at com.sun.jersey.client.apache4.ApacheHttpClient4.(ApacheHttpClient4.java:151) ~[jersey-apache-client4-1.19.1.jar!/:1.19.1] at com.sun.jersey.client.apache4.ApacheHttpClient4.(ApacheHttpClient4.java:137) ~[jersey-apache-client4-1.19.1.jar!/:1.19.1] at com.sun.jersey.client.apache4.ApacheHttpClient4.create(ApacheHttpClient4.java:181) ~[jersey-apache-client4-1.19.1.jar!/:1.19.1] at com.netflix.discovery.shared.transport.jersey.EurekaJerseyClientImpl.(EurekaJerseyClientImpl.java:53) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.EurekaJerseyClientImpl$EurekaJerseyClientBuilder.build(EurekaJerseyClientImpl.java:180) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.JerseyEurekaHttpClientFactory$JerseyEurekaHttpClientFactoryBuilder.buildLegacy(JerseyEurekaHttpClientFactory.java:230) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.JerseyEurekaHttpClientFactory$JerseyEurekaHttpClientFactoryBuilder.build(JerseyEurekaHttpClientFactory.java:204) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.JerseyEurekaHttpClientFactory.create(JerseyEurekaHttpClientFactory.java:161) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.shared.transport.jersey.Jersey1TransportClientFactories.newTransportClientFactory(Jersey1TransportClientFactories.java:59) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.DiscoveryClient.scheduleServerEndpointTask(DiscoveryClient.java:485) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.DiscoveryClient.(DiscoveryClient.java:398) ~[eureka-client-1.9.8.jar!/:1.9.8] at com.netflix.discovery.DiscoveryClient.(DiscoveryClient.java:269) ~[eureka-client-1.9.8.jar!/:1.9.8] at org.springframework.cloud.netflix.eureka.CloudEurekaClient.(CloudEurekaClient.java:63) ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration.eurekaClient(EurekaClientAutoConfiguration.java:302) ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$d9281f05.CGLIB$eurekaClient$0() ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$d9281f05$$FastClassBySpringCGLIB$$3e555137.invoke() ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363) ~[spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration$RefreshableEurekaClientConfiguration$$EnhancerBySpringCGLIB$$d9281f05.eurekaClient() ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_341] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_341] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_341] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_341] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622) ~[spring-beans-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] ... 46 more

2023-09-17 01:19:24.449 WARN 13788 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Failed to start bean 'eurekaAutoServiceRegistration'; nested exception is java.lang.NullPointerException 2023-09-17 01:19:24.470 INFO 13788 --- [ main] o.s.s.q.SchedulerFactoryBean : Shutting down Quartz Scheduler 2023-09-17 01:19:24.607 INFO 13788 --- [ main] ConditionEvaluationReportLoggingListener :

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2023-09-17 01:19:24.609 ERROR 13788 --- [ main] o.s.b.SpringApplication : Application run failed

org.springframework.context.ApplicationContextException: Failed to start bean 'eurekaAutoServiceRegistration'; nested exception is java.lang.NullPointerException at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:185) ~[spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:53) ~[spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:360) ~[spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:158) ~[spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:122) ~[spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:879) ~[spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.finishRefresh(ServletWebServerApplicationContext.java:163) ~[spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) ~[spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) ~[spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) [spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) [spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:316) [spring-boot-2.1.1.RELEASE.jar!/:2.1.1.RELEASE] at cn.com.do1.component.dqdpboot.DqdpBootStarter.main(DqdpBootStarter.java:89) [dqdp-boot-3.01.00-SNAPSHOT.jar!/:3.01.00-SNAPSHOT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_341] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_341] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_341] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_341] at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [dqsf-apps-learnonline.jar:1.1.0-SNAPSHOT] at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [dqsf-apps-learnonline.jar:1.1.0-SNAPSHOT] at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [dqsf-apps-learnonline.jar:1.1.0-SNAPSHOT] at cn.com.do1.license.boot.DqdpJarLauncher.main(DqdpJarLauncher.java:34) [dqsf-apps-learnonline.jar:1.1.0-SNAPSHOT] Caused by: java.lang.NullPointerException at org.springframework.cloud.netflix.eureka.serviceregistry.EurekaServiceRegistry.maybeInitializeClient(EurekaServiceRegistry.java:57) ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.serviceregistry.EurekaServiceRegistry.register(EurekaServiceRegistry.java:39) ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.cloud.netflix.eureka.serviceregistry.EurekaAutoServiceRegistration.start(EurekaAutoServiceRegistration.java:82) ~[spring-cloud-netflix-eureka-client-2.1.0.RC3.jar!/:2.1.0.RC3] at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:182) ~[spring-context-5.1.3.RELEASE.jar!/:5.1.3.RELEASE] ... 20 more