sarins / hudson-eclipse

Automatically exported from code.google.com/p/hudson-eclipse
0 stars 0 forks source link

Exception when trying to display the Hudson view #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Simply trying to display the Hudson view 

What is the expected output? What do you see instead?
"Could not create the view. An unexpected exception was thrown"

What version of the product are you using? On what operating system?
Eclipse 3.4, Hudson plugin v. 1.0.4

Please provide any additional information below.

This was working fine for me, but I believe may have been triggered by some
other plugins I installed. One was AnyEdits, and I think I may have
installed the 1-2 add'l plugins provided via the same UpdateSite. 

Full stack trace included here: 

org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: No suitable Log
constructor [Ljava.lang.Class;@c9d448 for
org.apache.commons.logging.impl.Log4JLogger (Caused by
java.lang.NoClassDefFoundError: org/apache/log4j/Category) (Caused by
org.apache.commons.logging.LogConfigurationException: No suitable Log
constructor [Ljava.lang.Class;@c9d448 for
org.apache.commons.logging.impl.Log4JLogger (Caused by
java.lang.NoClassDefFoundError: org/apache/log4j/Category))
    at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:5
43)
    at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:2
35)
    at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:2
09)
    at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
    at org.apache.commons.httpclient.HttpClient.<clinit>(HttpClient.java:66)
    at dk.contix.eclipse.hudson.HudsonClient.getClient(HudsonClient.java:209)
    at dk.contix.eclipse.hudson.HudsonClient.getJobs(HudsonClient.java:57)
    at dk.contix.eclipse.hudson.HudsonClient.getJobs(HudsonClient.java:53)
    at
dk.contix.eclipse.hudson.JobContentProvider.getElements(JobContentProvider.java:
87)
    at
org.eclipse.jface.viewers.StructuredViewer.getRawChildren(StructuredViewer.java:
937)
    at
org.eclipse.jface.viewers.ColumnViewer.getRawChildren(ColumnViewer.java:703)
    at
org.eclipse.jface.viewers.AbstractTableViewer.getRawChildren(AbstractTableViewer
.java:1071)
    at
org.eclipse.jface.viewers.StructuredViewer.getFilteredChildren(StructuredViewer.
java:871)
    at
org.eclipse.jface.viewers.StructuredViewer.getSortedChildren(StructuredViewer.ja
va:994)
    at
org.eclipse.jface.viewers.AbstractTableViewer.internalRefreshAll(AbstractTableVi
ewer.java:685)
    at
org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewe
r.java:633)
    at
org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewe
r.java:620)
    at
org.eclipse.jface.viewers.AbstractTableViewer$2.run(AbstractTableViewer.java:576
)
    at
org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.
java:1365)
    at
org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.
java:1328)
    at
org.eclipse.jface.viewers.AbstractTableViewer.inputChanged(AbstractTableViewer.j
ava:574)
    at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:251)
    at
org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1603)
    at
dk.contix.eclipse.hudson.views.HudsonView.createPartControl(HudsonView.java:126)
    at
org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:371)
    at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:230)
    at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.ja
va:594)
    at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:306)
    at org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:531)
    at
org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart
.java:180)
    at
org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(Presenta
blePartFolder.java:270)
    at
org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRigh
tTabOrder.java:65)
    at
org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(Ta
bbedStackPresentation.java:473)
    at
org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:12
56)
    at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:668)
    at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:576)
    at
org.eclipse.ui.internal.PartSashContainer.createControl(PartSashContainer.java:5
68)
    at
org.eclipse.ui.internal.PerspectiveHelper.activate(PerspectiveHelper.java:271)
    at org.eclipse.ui.internal.Perspective.onActivate(Perspective.java:964)
    at org.eclipse.ui.internal.WorkbenchPage.onActivate(WorkbenchPage.java:2593)
    at org.eclipse.ui.internal.WorkbenchWindow$25.run(WorkbenchWindow.java:2869)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
    at
org.eclipse.ui.internal.WorkbenchWindow.setActivePage(WorkbenchWindow.java:2850)
    at
org.eclipse.ui.internal.WorkbenchWindow$19.runWithException(WorkbenchWindow.java
:2167)
    at
org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.ja
va:31)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3378)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3036)
    at
org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:80
3)
    at org.eclipse.ui.internal.Workbench$27.runWithException(Workbench.java:1361)
    at
org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.ja
va:31)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3378)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3036)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2293)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
    at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java
:113)
    at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
    at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Ecli
pseAppLauncher.java:110)
    at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLau
ncher.java:79)
    at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)
    at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
Caused by: org.apache.commons.logging.LogConfigurationException: No
suitable Log constructor [Ljava.lang.Class;@c9d448 for
org.apache.commons.logging.impl.Log4JLogger (Caused by
java.lang.NoClassDefFoundError: org/apache/log4j/Category)
    at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.
java:413)
    at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:5
29)
    ... 74 more
Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
    at java.lang.Class.getConstructor0(Class.java:2671)
    at java.lang.Class.getConstructor(Class.java:1629)
    at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.
java:410)
    ... 75 more

Original issue reported on code.google.com by scott.pf...@gmail.com on 15 Sep 2008 at 3:04

GoogleCodeExporter commented 8 years ago
It looks like log4j is missing in some cases. I've added log4j to the plugin so 
this
shouldn't happen anymore.

Original comment by jre...@gmail.com on 7 Apr 2009 at 4:24