[Blue Ocean] Unknown java.lang.RuntimeException: java.lang.ClassNotFoundException

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[Blue Ocean] Unknown java.lang.RuntimeException: java.lang.ClassNotFoundException

陈晓晖
Hi!

 I am developing a plugin for jenkins/blue ocean  base on jenkinsci/blueocean-plugin.  I introduce the  dependency  gmessner/gitlab4j-api which contain org.glassfish.jersey.core:jersey-client:jar:2.25.1. 
When I debug my code , the following code throw an exception:

GitLabApi gitLabApi = new GitLabApi(GitLabApi.ApiVersion.V3, url, accessToken);
try{
    gitLabApi.getGroupApi().getGroups();
    .....
}

 The attached stack trace :

org.gitlab4j.api.GitLabApiException: java.lang.ClassNotFoundException: org.glassfish.jersey.client.JerseyClientBuilder
        at org.gitlab4j.api.AbstractApi.handle(AbstractApi.java:304)
        at org.gitlab4j.api.AbstractApi.get(AbstractApi.java:63)
        at org.gitlab4j.api.GroupApi.getGroups(GroupApi.java:33)
        at io.jenkins.blueocean.GitlabEnterpriseScm.validateAccessToken(GitlabEnterpriseScm.java:186)
        at io.jenkins.blueocean.GitlabEnterpriseScm.validateAndCreate(GitlabEnterpriseScm.java:136)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:324)
        at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:167)
        at org.kohsuke.stapler.SelectionInterceptedFunction$Adapter.invoke(SelectionInterceptedFunction.java:36)
        at org.kohsuke.stapler.verb.HttpVerbInterceptor.invoke(HttpVerbInterceptor.java:48)
        at org.kohsuke.stapler.SelectionInterceptedFunction.bindAndInvoke(SelectionInterceptedFunction.java:26)
        at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:100)
        at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:124)
        at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
        at org.kohsuke.stapler.MetaClass$11.dispatch(MetaClass.java:380)
        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
        at org.kohsuke.stapler.MetaClass$11.dispatch(MetaClass.java:380)
        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
        at org.kohsuke.stapler.MetaClass$11.dispatch(MetaClass.java:380)
        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
        at org.kohsuke.stapler.MetaClass$11.dispatch(MetaClass.java:380)
        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
        at org.kohsuke.stapler.MetaClass$11.dispatch(MetaClass.java:380)
        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:686)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
        at org.kohsuke.stapler.MetaClass$11.dispatch(MetaClass.java:380)
        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
        at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:135)
        at org.jenkinsci.plugins.ssegateway.Endpoint$SSEListenChannelFilter.doFilter(Endpoint.java:225)
        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
        at io.jenkins.blueocean.auth.jwt.impl.JwtAuthenticationFilter.doFilter(JwtAuthenticationFilter.java:51)
        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
        at jenkins.metrics.impl.MetricsFilter.doFilter(MetricsFilter.java:125)
        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
        at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:126)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:86)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
        at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
        at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
        at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
        at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:135)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
        at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
        at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
        at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
        at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
        at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
        at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:553)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
        at org.eclipse.jetty.server.Server.handle(Server.java:499)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
        at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: org.glassfish.jersey.client.JerseyClientBuilder
        at javax.ws.rs.client.ClientBuilder.newBuilder(ClientBuilder.java:103)
        at org.gitlab4j.api.GitLabApiClient.invocation(GitLabApiClient.java:429)
        at org.gitlab4j.api.GitLabApiClient.invocation(GitLabApiClient.java:423)
        at org.gitlab4j.api.GitLabApiClient.get(GitLabApiClient.java:285)
        at org.gitlab4j.api.GitLabApiClient.get(GitLabApiClient.java:273)
        at org.gitlab4j.api.AbstractApi.get(AbstractApi.java:61)
        ... 97 more
Caused by: java.lang.ClassNotFoundException: org.glassfish.jersey.client.JerseyClientBuilder
        at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1376)
        at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
        at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at javax.ws.rs.client.FactoryFinder.newInstance(FactoryFinder.java:113)
        at javax.ws.rs.client.FactoryFinder.find(FactoryFinder.java:206)
        at javax.ws.rs.client.ClientBuilder.newBuilder(ClientBuilder.java:86)
        ... 102 more

If anyone have idea about this problem ?

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/7bf25c19-385f-4f33-b510-7aa24327239e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Blue Ocean] Unknown java.lang.RuntimeException: java.lang.ClassNotFoundException

Keith Zantow-2
AFAIK JerseyClientBuilder is not a BlueOcean dependency, maybe you have some other plugin(s) misbehaving?

On Fri, Jul 21, 2017 at 8:12 AM, 陈晓晖 <[hidden email]> wrote:
Hi!

 I am developing a plugin for jenkins/blue ocean  base on jenkinsci/blueocean-plugin.  I introduce the  dependency  gmessner/gitlab4j-api which contain org.glassfish.jersey.core:jersey-client:jar:2.25.1. 
When I debug my code , the following code throw an exception:

GitLabApi gitLabApi = new GitLabApi(GitLabApi.ApiVersion.V3, url, accessToken);
try{
    gitLabApi.getGroupApi().getGroups();
    .....
}

 The attached stack trace :

org.gitlab4j.api.GitLabApiException: java.lang.ClassNotFoundException: org.glassfish.jersey.client.JerseyClientBuilder
        at org.gitlab4j.api.AbstractApi.handle(AbstractApi.java:304)
        at org.gitlab4j.api.AbstractApi.get(AbstractApi.java:63)
        at org.gitlab4j.api.GroupApi.getGroups(GroupApi.java:33)
        at io.jenkins.blueocean.GitlabEnterpriseScm.validateAccessToken(GitlabEnterpriseScm.java:186)
        at io.jenkins.blueocean.GitlabEnterpriseScm.validateAndCreate(GitlabEnterpriseScm.java:136)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:324)
        at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:167)
        at org.kohsuke.stapler.SelectionInterceptedFunction$Adapter.invoke(SelectionInterceptedFunction.java:36)
        at org.kohsuke.stapler.verb.HttpVerbInterceptor.invoke(HttpVerbInterceptor.java:48)
        at org.kohsuke.stapler.SelectionInterceptedFunction.bindAndInvoke(SelectionInterceptedFunction.java:26)
        at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:100)
        at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:124)
        at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
        at org.kohsuke.stapler.MetaClass$11.dispatch(MetaClass.java:380)
        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
        at org.kohsuke.stapler.MetaClass$11.dispatch(MetaClass.java:380)
        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
        at org.kohsuke.stapler.MetaClass$11.dispatch(MetaClass.java:380)
        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
        at org.kohsuke.stapler.MetaClass$11.dispatch(MetaClass.java:380)
        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
        at org.kohsuke.stapler.MetaClass$11.dispatch(MetaClass.java:380)
        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:686)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
        at org.kohsuke.stapler.MetaClass$11.dispatch(MetaClass.java:380)
        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
        at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:135)
        at org.jenkinsci.plugins.ssegateway.Endpoint$SSEListenChannelFilter.doFilter(Endpoint.java:225)
        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
        at io.jenkins.blueocean.auth.jwt.impl.JwtAuthenticationFilter.doFilter(JwtAuthenticationFilter.java:51)
        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
        at jenkins.metrics.impl.MetricsFilter.doFilter(MetricsFilter.java:125)
        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
        at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:126)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:86)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
        at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
        at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
        at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
        at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:135)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
        at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
        at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
        at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
        at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
        at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
        at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:553)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
        at org.eclipse.jetty.server.Server.handle(Server.java:499)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
        at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: org.glassfish.jersey.client.JerseyClientBuilder
        at javax.ws.rs.client.ClientBuilder.newBuilder(ClientBuilder.java:103)
        at org.gitlab4j.api.GitLabApiClient.invocation(GitLabApiClient.java:429)
        at org.gitlab4j.api.GitLabApiClient.invocation(GitLabApiClient.java:423)
        at org.gitlab4j.api.GitLabApiClient.get(GitLabApiClient.java:285)
        at org.gitlab4j.api.GitLabApiClient.get(GitLabApiClient.java:273)
        at org.gitlab4j.api.AbstractApi.get(AbstractApi.java:61)
        ... 97 more
Caused by: java.lang.ClassNotFoundException: org.glassfish.jersey.client.JerseyClientBuilder
        at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1376)
        at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
        at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at javax.ws.rs.client.FactoryFinder.newInstance(FactoryFinder.java:113)
        at javax.ws.rs.client.FactoryFinder.find(FactoryFinder.java:206)
        at javax.ws.rs.client.ClientBuilder.newBuilder(ClientBuilder.java:86)
        ... 102 more

If anyone have idea about this problem ?

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/7bf25c19-385f-4f33-b510-7aa24327239e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAJTHQaHPDqntqHyc3d8XrhuMN2hgFo5OTG%3DO50FSZY%3DEo%2BiEpA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Blue Ocean] Unknown java.lang.RuntimeException: java.lang.ClassNotFoundException

陈晓晖
I  have searched  the plugins installed by hpi:run ,but did not find  JerseyClientBuilder

在 2017年7月22日星期六 UTC+8上午1:57:04,Keith Zantow写道:
AFAIK JerseyClientBuilder is not a BlueOcean dependency, maybe you have some other plugin(s) misbehaving?

On Fri, Jul 21, 2017 at 8:12 AM, 陈晓晖 <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="4CEVbf8WBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">xhuic...@...> wrote:
Hi!

 I am developing a plugin for jenkins/blue ocean  base on <a href="https://github.com/jenkinsci" rel="nofollow" style="color:rgb(3,102,214);background-color:transparent" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFgLFBS-sCs7AgyJ7zbYqH_H8xk4g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFgLFBS-sCs7AgyJ7zbYqH_H8xk4g&#39;;return true;">jenkinsci/<a href="https://github.com/jenkinsci/blueocean-plugin" style="color:rgb(3,102,214);background-color:transparent" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fblueocean-plugin\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHUxPoY5Ev1AasHB-6yru9OW_Q02Q&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fblueocean-plugin\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHUxPoY5Ev1AasHB-6yru9OW_Q02Q&#39;;return true;">blueocean-plugin.  I introduce the  dependency  <a href="https://github.com/gmessner/gitlab4j-api" style="color:rgb(3,102,214);background-color:transparent;vertical-align:middle" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fgmessner%2Fgitlab4j-api\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBsyAv0cioA2TI380DDFRyL3-BCQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fgmessner%2Fgitlab4j-api\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEBsyAv0cioA2TI380DDFRyL3-BCQ&#39;;return true;">gmessner/gitlab4j-api which contain org.glassfish.jersey.core:jersey-client:jar:2.25.1. 
When I debug my code , the following code throw an exception:

GitLabApi gitLabApi = new GitLabApi(GitLabApi.ApiVersion.V3, url, accessToken);
try{
    gitLabApi.getGroupApi().getGroups();
    .....
}

 The attached stack trace :

org.gitlab4j.api.GitLabApiException: java.lang.ClassNotFoundException: <a href="http://org.glassfish.jersey.client.Je" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.glassfish.jersey.client.Je\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHjvVIayTei0w2_0h5PgplYKPq1qQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.glassfish.jersey.client.Je\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHjvVIayTei0w2_0h5PgplYKPq1qQ&#39;;return true;">org.glassfish.jersey.client.JerseyClientBuilder
        at org.gitlab4j.api.AbstractApi.handle(AbstractApi.java:304)
        at org.gitlab4j.api.AbstractApi.get(AbstractApi.java:63)
        at org.gitlab4j.api.GroupApi.getGroups(GroupApi.java:33)
        at io.jenkins.blueocean.GitlabEnterpriseScm.validateAccessToken(GitlabEnterpriseScm.java:186)
        at io.jenkins.blueocean.GitlabEnterpriseScm.validateAndCreate(GitlabEnterpriseScm.java:136)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:324)
        at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:167)
        at org.kohsuke.stapler.SelectionInterceptedFunction$Adapter.invoke(SelectionInterceptedFunction.java:36)
        at org.kohsuke.stapler.verb.HttpVerbInterceptor.invoke(HttpVerbInterceptor.java:48)
        at org.kohsuke.stapler.SelectionInterceptedFunction.bindAndInvoke(SelectionInterceptedFunction.java:26)
        at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:100)
        at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:124)
        at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
        at <a href="http://org.kohsuke.stapler.Stapler.tr" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.kohsuke.stapler.Stapler.tr\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFHvIwkGOdyWQ8HT4cPXNm9Gz7AtQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.kohsuke.stapler.Stapler.tr\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFHvIwkGOdyWQ8HT4cPXNm9Gz7AtQ&#39;;return true;">org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
        at <a href="http://org.kohsuke.stapler.Stapler.in" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.kohsuke.stapler.Stapler.in\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNESe7WaraP-m4tqm7X3D9_DHk5UjA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.kohsuke.stapler.Stapler.in\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNESe7WaraP-m4tqm7X3D9_DHk5UjA&#39;;return true;">org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
        at org.kohsuke.stapler.MetaClass$11.dispatch(MetaClass.java:380)
        at <a href="http://org.kohsuke.stapler.Stapler.tr" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.kohsuke.stapler.Stapler.tr\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFHvIwkGOdyWQ8HT4cPXNm9Gz7AtQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.kohsuke.stapler.Stapler.tr\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFHvIwkGOdyWQ8HT4cPXNm9Gz7AtQ&#39;;return true;">org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
        at <a href="http://org.kohsuke.stapler.Stapler.in" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.kohsuke.stapler.Stapler.in\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNESe7WaraP-m4tqm7X3D9_DHk5UjA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.kohsuke.stapler.Stapler.in\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNESe7WaraP-m4tqm7X3D9_DHk5UjA&#39;;return true;">org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
        at org.kohsuke.stapler.MetaClass$11.dispatch(MetaClass.java:380)
        at <a href="http://org.kohsuke.stapler.Stapler.tr" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.kohsuke.stapler.Stapler.tr\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFHvIwkGOdyWQ8HT4cPXNm9Gz7AtQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.kohsuke.stapler.Stapler.tr\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFHvIwkGOdyWQ8HT4cPXNm9Gz7AtQ&#39;;return true;">org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
        at <a href="http://org.kohsuke.stapler.Stapler.in" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.kohsuke.stapler.Stapler.in\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNESe7WaraP-m4tqm7X3D9_DHk5UjA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.kohsuke.stapler.Stapler.in\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNESe7WaraP-m4tqm7X3D9_DHk5UjA&#39;;return true;">org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
        at org.kohsuke.stapler.MetaClass$11.dispatch(MetaClass.java:380)
        at <a href="http://org.kohsuke.stapler.Stapler.tr" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.kohsuke.stapler.Stapler.tr\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFHvIwkGOdyWQ8HT4cPXNm9Gz7AtQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.kohsuke.stapler.Stapler.tr\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFHvIwkGOdyWQ8HT4cPXNm9Gz7AtQ&#39;;return true;">org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
        at <a href="http://org.kohsuke.stapler.Stapler.in" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.kohsuke.stapler.Stapler.in\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNESe7WaraP-m4tqm7X3D9_DHk5UjA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.kohsuke.stapler.Stapler.in\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNESe7WaraP-m4tqm7X3D9_DHk5UjA&#39;;return true;">org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
        at org.kohsuke.stapler.MetaClass$11.dispatch(MetaClass.java:380)
        at <a href="http://org.kohsuke.stapler.Stapler.tr" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.kohsuke.stapler.Stapler.tr\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFHvIwkGOdyWQ8HT4cPXNm9Gz7AtQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.kohsuke.stapler.Stapler.tr\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFHvIwkGOdyWQ8HT4cPXNm9Gz7AtQ&#39;;return true;">org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
        at <a href="http://org.kohsuke.stapler.Stapler.in" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.kohsuke.stapler.Stapler.in\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNESe7WaraP-m4tqm7X3D9_DHk5UjA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.kohsuke.stapler.Stapler.in\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNESe7WaraP-m4tqm7X3D9_DHk5UjA&#39;;return true;">org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
        at org.kohsuke.stapler.MetaClass$11.dispatch(MetaClass.java:380)
        at <a href="http://org.kohsuke.stapler.Stapler.tr" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.kohsuke.stapler.Stapler.tr\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFHvIwkGOdyWQ8HT4cPXNm9Gz7AtQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.kohsuke.stapler.Stapler.tr\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFHvIwkGOdyWQ8HT4cPXNm9Gz7AtQ&#39;;return true;">org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
        at <a href="http://org.kohsuke.stapler.Stapler.in" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.kohsuke.stapler.Stapler.in\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNESe7WaraP-m4tqm7X3D9_DHk5UjA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.kohsuke.stapler.Stapler.in\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNESe7WaraP-m4tqm7X3D9_DHk5UjA&#39;;return true;">org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
        at <a href="http://org.kohsuke.stapler.Stapler.tr" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.kohsuke.stapler.Stapler.tr\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFHvIwkGOdyWQ8HT4cPXNm9Gz7AtQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.kohsuke.stapler.Stapler.tr\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFHvIwkGOdyWQ8HT4cPXNm9Gz7AtQ&#39;;return true;">org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:686)
        at <a href="http://org.kohsuke.stapler.Stapler.in" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.kohsuke.stapler.Stapler.in\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNESe7WaraP-m4tqm7X3D9_DHk5UjA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.kohsuke.stapler.Stapler.in\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNESe7WaraP-m4tqm7X3D9_DHk5UjA&#39;;return true;">org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
        at org.kohsuke.stapler.MetaClass$11.dispatch(MetaClass.java:380)
        at <a href="http://org.kohsuke.stapler.Stapler.tr" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.kohsuke.stapler.Stapler.tr\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFHvIwkGOdyWQ8HT4cPXNm9Gz7AtQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.kohsuke.stapler.Stapler.tr\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFHvIwkGOdyWQ8HT4cPXNm9Gz7AtQ&#39;;return true;">org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
        at <a href="http://org.kohsuke.stapler.Stapler.in" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.kohsuke.stapler.Stapler.in\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNESe7WaraP-m4tqm7X3D9_DHk5UjA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.kohsuke.stapler.Stapler.in\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNESe7WaraP-m4tqm7X3D9_DHk5UjA&#39;;return true;">org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
        at <a href="http://org.kohsuke.stapler.Stapler.in" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.kohsuke.stapler.Stapler.in\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNESe7WaraP-m4tqm7X3D9_DHk5UjA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.kohsuke.stapler.Stapler.in\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNESe7WaraP-m4tqm7X3D9_DHk5UjA&#39;;return true;">org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
        at <a href="http://org.kohsuke.stapler.Stapler.se" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.kohsuke.stapler.Stapler.se\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGUUq2hP5wZnc0K9f3xfKhBCY7Tbw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.kohsuke.stapler.Stapler.se\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGUUq2hP5wZnc0K9f3xfKhBCY7Tbw&#39;;return true;">org.kohsuke.stapler.Stapler.service(Stapler.java:238)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:135)
        at org.jenkinsci.plugins.ssegateway.Endpoint$SSEListenChannelFilter.doFilter(Endpoint.java:225)
        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
        at io.jenkins.blueocean.auth.jwt.impl.JwtAuthenticationFilter.doFilter(JwtAuthenticationFilter.java:51)
        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
        at jenkins.metrics.impl.MetricsFilter.doFilter(MetricsFilter.java:125)
        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
        at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:126)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:86)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
        at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
        at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
        at <a href="http://org.acegisecurity.providers.an" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.acegisecurity.providers.an\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHnkWzlPQLrGa0Y4dFDj34ibp81_A&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.acegisecurity.providers.an\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHnkWzlPQLrGa0Y4dFDj34ibp81_A&#39;;return true;">org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
        at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:135)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
        at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
        at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
        at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
        at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
        at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
        at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:553)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
        at org.eclipse.jetty.server.Server.handle(Server.java:499)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
        at <a href="http://org.eclipse.jetty.io" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.eclipse.jetty.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGdzTJtbmwPQqVTPKyBST83d_KQSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.eclipse.jetty.io\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGdzTJtbmwPQqVTPKyBST83d_KQSQ&#39;;return true;">org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: <a href="http://org.glassfish.jersey.client.Je" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.glassfish.jersey.client.Je\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHjvVIayTei0w2_0h5PgplYKPq1qQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.glassfish.jersey.client.Je\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHjvVIayTei0w2_0h5PgplYKPq1qQ&#39;;return true;">org.glassfish.jersey.client.JerseyClientBuilder
        at javax.ws.rs.client.ClientBuilder.newBuilder(ClientBuilder.java:103)
        at org.gitlab4j.api.GitLabApiClient.invocation(GitLabApiClient.java:429)
        at org.gitlab4j.api.GitLabApiClient.invocation(GitLabApiClient.java:423)
        at org.gitlab4j.api.GitLabApiClient.get(GitLabApiClient.java:285)
        at org.gitlab4j.api.GitLabApiClient.get(GitLabApiClient.java:273)
        at org.gitlab4j.api.AbstractApi.get(AbstractApi.java:61)
        ... 97 more
Caused by: java.lang.ClassNotFoundException: <a href="http://org.glassfish.jersey.client.Je" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.glassfish.jersey.client.Je\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHjvVIayTei0w2_0h5PgplYKPq1qQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.glassfish.jersey.client.Je\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHjvVIayTei0w2_0h5PgplYKPq1qQ&#39;;return true;">org.glassfish.jersey.client.JerseyClientBuilder
        at <a href="http://jenkins.util.AntClassLoader.fi" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.util.AntClassLoader.fi\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFvKj7hd2po5l-PKnwajBNdT8hntA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.util.AntClassLoader.fi\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFvKj7hd2po5l-PKnwajBNdT8hntA&#39;;return true;">jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1376)
        at <a href="http://jenkins.util.AntClassLoader.fi" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.util.AntClassLoader.fi\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFvKj7hd2po5l-PKnwajBNdT8hntA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjenkins.util.AntClassLoader.fi\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFvKj7hd2po5l-PKnwajBNdT8hntA&#39;;return true;">jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
        at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at javax.ws.rs.client.FactoryFinder.newInstance(FactoryFinder.java:113)
        at javax.ws.rs.client.FactoryFinder.find(FactoryFinder.java:206)
        at javax.ws.rs.client.ClientBuilder.newBuilder(ClientBuilder.java:86)
        ... 102 more

If anyone have idea about this problem ?

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="4CEVbf8WBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-dev/7bf25c19-385f-4f33-b510-7aa24327239e%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7bf25c19-385f-4f33-b510-7aa24327239e%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-dev/7bf25c19-385f-4f33-b510-7aa24327239e%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-dev/7bf25c19-385f-4f33-b510-7aa24327239e%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/3ab49271-9e8a-4833-8fb9-7c0066a8158f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Blue Ocean] Unknown java.lang.RuntimeException: java.lang.ClassNotFoundException

Daniel Beck

> On 22. Jul 2017, at 13:39, CrazyPotato <[hidden email]> wrote:
>
> I  have searched  the plugins installed by hpi:run ,but did not find  JerseyClientBuilder
>
> 在 2017年7月22日星期六 UTC+8上午1:57:04,Keith Zantow写道:
> AFAIK JerseyClientBuilder is not a BlueOcean dependency, maybe you have some other plugin(s) misbehaving?
>
> On Fri, Jul 21, 2017 at 8:12 AM, 陈晓晖 <[hidden email]> wrote:
> Hi!
>
>  I am developing a plugin for jenkins/blue ocean  base on jenkinsci/blueocean-plugin.  I introduce the  dependency  gmessner/gitlab4j-api which contain org.glassfish.jersey.core:jersey-client:jar:2.25.1.
> When I debug my code , the following code throw an exception:
>
> GitLabApi gitLabApi = new GitLabApi(GitLabApi.ApiVersion.V3, url, accessToken);
> try{
>     gitLabApi.getGroupApi().getGroups();
>     .....
> }
>

Could you show your code? Note that your plugin must bundle its transitive library dependencies as needed. _Some_ plugins exist that provide a library shared among other plugins, but those are the exception.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/DD96B785-849A-4D0F-9727-C317771DA94D%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Blue Ocean] Unknown java.lang.RuntimeException: java.lang.ClassNotFoundException

陈晓晖
The following is the pom of my plugin.

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <parent>
        <artifactId>blueocean-parent</artifactId>
        <groupId>io.jenkins.blueocean</groupId>
        <version>1.2.0-beta-2-SNAPSHOT</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <name>Gitlab Pipeline for Blue Ocean</name>
    <artifactId>blueocean-gitlab-pipeline</artifactId>
    <packaging>hpi</packaging>

    <url>http://maven.apache.org</url>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>


    <dependencies>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>blueocean-pipeline-api-impl</artifactId>
        </dependency>

        <dependency>
            <groupId>org.gitlab4j</groupId>
            <artifactId>gitlab4j-api</artifactId>
            <version>4.4.1</version>
        </dependency>
        <dependency>
            <groupId>org.jenkins-ci.plugins</groupId>
            <artifactId>pubsub-light</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>blueocean-git-pipeline</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>blueocean-github-pipeline</artifactId>
        </dependency>
        <dependency>
            <groupId>org.jenkins-ci.plugins</groupId>
            <artifactId>gitlab-plugin</artifactId>
        </dependency>
    </dependencies>
</project>


在 2017年7月22日星期六 UTC+8下午8:16:24,Daniel Beck写道:

> On 22. Jul 2017, at 13:39, CrazyPotato <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="a0wn5fxSBAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">xhuic...@...> wrote:
>
> I  have searched  the plugins installed by hpi:run ,but did not find  JerseyClientBuilder
>
> 在 2017年7月22日星期六 UTC+8上午1:57:04,Keith Zantow写道:
> AFAIK JerseyClientBuilder is not a BlueOcean dependency, maybe you have some other plugin(s) misbehaving?
>
> On Fri, Jul 21, 2017 at 8:12 AM, 陈晓晖 <[hidden email]> wrote:
> Hi!
>
>  I am developing a plugin for jenkins/blue ocean  base on jenkinsci/blueocean-plugin.  I introduce the  dependency  gmessner/gitlab4j-api which contain org.glassfish.jersey.core:jersey-client:jar:2.25.1.
> When I debug my code , the following code throw an exception:
>
> GitLabApi gitLabApi = new GitLabApi(GitLabApi.ApiVersion.V3, url, accessToken);
> try{
>     gitLabApi.getGroupApi().getGroups();
>     .....
> }
>

Could you show your code? Note that your plugin must bundle its transitive library dependencies as needed. _Some_ plugins exist that provide a library shared among other plugins, but those are the exception.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/039ad6f2-7933-4a6c-ab4e-317298fc5a8f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.