koolking12 / hudson-eclipse

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

Invalid thread access refreshing status #58

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Our hudson server is in a state where the XML API isn't returning valid
XML.  This is causing the following runtime error:
java.lang.RuntimeException: org.xml.sax.SAXParseException: The element type
"init" must be terminated by the matching end-tag "</init>".
    at dk.contix.eclipse.hudson.HudsonClient.getJobs(HudsonClient.java:97)
    at dk.contix.eclipse.hudson.HudsonClient.getJobs(HudsonClient.java:61)
    at
dk.contix.eclipse.hudson.JobContentProvider.refresh(JobContentProvider.java:87)
    at dk.contix.eclipse.hudson.views.HudsonView$10$1.run(HudsonView.java:380)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.xml.sax.SAXParseException: The element type "init" must be
terminated by the matching end-tag "</init>".
    at
com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:239)
    at
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilde
rImpl.java:283)
    at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124)
    at dk.contix.eclipse.hudson.HudsonClient.getJob(HudsonClient.java:144)
    at dk.contix.eclipse.hudson.HudsonClient.getJobs(HudsonClient.java:86)
    ... 4 more

This error fails to display due to an invalid thread access in the content
provider.  The error dialog should be opened in a syncExec.  There are
quite a few other places in the same file that have the same issue
(requires the popup preferences to be enabled though).

org.eclipse.swt.SWTException: Invalid thread access
    at org.eclipse.swt.SWT.error(SWT.java:3881)
    at org.eclipse.swt.SWT.error(SWT.java:3796)
    at org.eclipse.swt.SWT.error(SWT.java:3767)
    at org.eclipse.swt.widgets.Widget.error(Widget.java:463)
    at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:355)
    at org.eclipse.swt.widgets.Control.getShell(Control.java:1404)
    at
dk.contix.eclipse.hudson.JobContentProvider.refresh(JobContentProvider.java:130)
    at dk.contix.eclipse.hudson.views.HudsonView$10$1.run(HudsonView.java:380)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Original issue reported on code.google.com by bro...@gmail.com on 2 Nov 2009 at 10:41

GoogleCodeExporter commented 8 years ago
This patch seems to be working for me.

Original comment by rgbou...@googlemail.com on 4 Nov 2009 at 3:17

Attachments:

GoogleCodeExporter commented 8 years ago
Fixed in svn, thanks

Original comment by jre...@gmail.com on 5 Nov 2009 at 7:35