Skip to content
This repository has been archived by the owner on Sep 29, 2021. It is now read-only.

Empy pages (no HTML whatsoever) for any URL served by this plugin #15

Open
aadnk opened this issue May 28, 2013 · 1 comment
Open

Empy pages (no HTML whatsoever) for any URL served by this plugin #15

aadnk opened this issue May 28, 2013 · 1 comment

Comments

@aadnk
Copy link

aadnk commented May 28, 2013

I recently moved my Jenkins server from a Windows 2003 Server to Centos 6 64-bit (running OpenJDK 7) by copying most of the Jenkins folder to /var/lib/jenkins/. This seems to be working for Jenkins itself along with all its plugins, with the exception of the Jenkins Maven Repository Server plugin.

Even after reinstalling it multiple times (and removing /var/lib/jenkins/plugins/repository/), I still get a blank page when I try to access the Maven repository or an artificial by build number. I noticed the following exception in jenkins.log, which might be responsible:

WARNING: Failed to load com.nirima.jenkins.token.RepositoryTokenMacro
java.lang.InstantiationException: file:/var/lib/jenkins/plugins/repository/WEB-INF/classes/META-INF/annotations/hudson.Extension might need to be rebuilt: java.lang.ClassNotFoundException: com.nirima.jenkins.token.RepositoryTokenMacro
        at net.java.sezpoz.IndexItem.element(IndexItem.java:144)
        at hudson.ExtensionFinder$Sezpoz._find(ExtensionFinder.java:628)
        at hudson.ExtensionFinder$Sezpoz.find(ExtensionFinder.java:617)
        at hudson.ExtensionFinder._find(ExtensionFinder.java:151)
        at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:318)
        at hudson.ExtensionList.load(ExtensionList.java:295)
        at hudson.ExtensionList.ensureLoaded(ExtensionList.java:248)
        at hudson.ExtensionList.iterator(ExtensionList.java:138)
        at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:311)
        at hudson.ExtensionList.load(ExtensionList.java:295)
        at hudson.ExtensionList.ensureLoaded(ExtensionList.java:248)
        at hudson.ExtensionList.iterator(ExtensionList.java:138)
        at jenkins.model.Jenkins.getDescriptor(Jenkins.java:1157)
        at hudson.plugins.git.GitTool.onLoaded(GitTool.java:81)
        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:601)
        at hudson.init.InitializerFinder.invoke(InitializerFinder.java:120)
        at hudson.init.InitializerFinder$TaskImpl.run(InitializerFinder.java:184)
        at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
        at jenkins.model.Jenkins$7.runTask(Jenkins.java:893)
        at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
        at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.ClassNotFoundException: com.nirima.jenkins.token.RepositoryTokenMacro
        at hudson.PluginManager$UberClassLoader.findClass(PluginManager.java:966)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
        at net.java.sezpoz.IndexItem.element(IndexItem.java:134)
        ... 26 more
@timboudreau
Copy link
Contributor

I'm having a similar issue with the maven repo plugin after updating to 1.5.5.

FWIW, it appears not to actually be a blank page that is served, but you need to try the URL from the command-line using curl to see anything - the browser is expecting gzip-encoded data and Jenkins then tries to write an error page as plaintext - at the moment, you can observe this here

I started having problems with the Maven repository plugin in October, and am running a patched version which solved the problems then, but with 1.545 it seems to be broken again. Tough to decipher what's at fault, but I'm dead in the water without a fix for this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants