Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Hudson » Unable to show latest console output
Unable to show latest console output [message #1693896] Wed, 29 April 2015 08:38 Go to next message
Sascha Horn is currently offline Sascha HornFriend
Messages: 2
Registered: April 2015
Junior Member
Hello,

i updated Hudson from 3.2.0 to 3.2.2.
After the update i am not able to show the latest console output of a job.

The following exception occurs:

Problem accessing /job/Branch%20-%20Distribute%20all%20projects/lastBuild/logText/progressiveHtml. Reason:
Could not initialize class javax.crypto.JceSecurity
Caused by:
java.lang.NoClassDefFoundError: Could not initialize class javax.crypto.JceSecurity
at javax.crypto.Cipher.getInstance(Cipher.java:445)
at hudson.util.Secret.getCipher(Secret.java:155)
at hudson.console.AnnotatedLargeText.writeHtmlTo(AnnotatedLargeText.java:160)
at hudson.console.AnnotatedLargeText.writeLogTo(AnnotatedLargeText.java:141)
at org.kohsuke.stapler.framework.io.LargeText.doProgressText(LargeText.java:206)
at hudson.console.AnnotatedLargeText.doProgressiveHtml(AnnotatedLargeText.java:86)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:622)
at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:274)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:141)
at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:80)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:95)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:45)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:565)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:650)
at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:187)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:45)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:565)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:650)
at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:187)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:45)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:565)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:650)
at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:225)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:45)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:565)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:650)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:481)
at org.kohsuke.stapler.Stapler.service(Stapler.java:152)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:648)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1336)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:86)
at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:78)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:81)
at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:47)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:146)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:73)
at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:156)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:70)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:534)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:365)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)
at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:937)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:998)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:856)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:627)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:51)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
at java.lang.Thread.run(Thread.java:701)

I already googled, but found nothing.

Any ideas?

Thanks in advance.

Regards

Sascha
Re: Unable to show latest console output [message #1693976 is a reply to message #1693896] Wed, 29 April 2015 17:10 Go to previous messageGo to next message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 534
Registered: August 2011
Location: Fremont, CA USA
Senior Member
javax.crypto.JceSecurity is a core class in JRE. This is not due to Hudson upgrade.

This StackOverflow discussion suggest it could be because of JDK update and some solution on how to fix it.

http://stackoverflow.com/questions/27036588/errorcould-not-initialize-class-javax-crypto-jcesecurity


Winston Prakash
Eclipse Hudson team
Re: Unable to show latest console output [message #1694294 is a reply to message #1693976] Mon, 04 May 2015 08:34 Go to previous message
Sascha Horn is currently offline Sascha HornFriend
Messages: 2
Registered: April 2015
Junior Member
Hi Winston,

Java was not updated, just hudson.
The JDK is not from linux repository. It was a fix installed jdk 1.7.0_25.

I tried to update to the current JDK7 update 79 with the same result:

java.lang.NoClassDefFoundError: Could not initialize class javax.crypto.JceSecurity

EDIT...

I found the solution.
Additionally on the ubuntu server a openjdk was installed.

java -version used my jdk, but hudson started with the openjdk.

After uninstall the openjdk everything works fine.

[Updated on: Mon, 04 May 2015 09:15]

Report message to a moderator

Previous Topic:How to evaluate label expressions in a Builder?
Next Topic:Git plugin not working with branch names containing /
Goto Forum:
  


Current Time: Thu Oct 03 17:18:17 GMT 2024

Powered by FUDForum. Page generated in 0.03612 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top