[JBoss JIRA] (JBIDE-17624) (un)checking Early Access while refreshing the connector logs an org.eclipse.swt.SWTException
by Mickael Istria (JIRA)
[ https://issues.jboss.org/browse/JBIDE-17624?page=com.atlassian.jira.plugi... ]
Mickael Istria commented on JBIDE-17624:
----------------------------------------
I guess it may be a difference between how SWT handles graphical resources between Linux/GTK and other OS. Since both Windows and OSX are affected, it's most probably in Central code which happens to work on GTK "by luck".
When UI is refreshing, the "layout" shouldn't be called.
> (un)checking Early Access while refreshing the connector logs an org.eclipse.swt.SWTException
> ---------------------------------------------------------------------------------------------
>
> Key: JBIDE-17624
> URL: https://issues.jboss.org/browse/JBIDE-17624
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: central
> Affects Versions: 4.2.0.Beta2
> Reporter: Fred Bricon
> Assignee: Mickael Istria
> Priority: Minor
> Fix For: 4.2.0.Beta3
>
>
> In Central > Software/Update page, (un)checking Early Access while refreshing the connector logs the following exception :
> {noformat}
> org.eclipse.swt.SWTException: Graphic is disposed
> at org.eclipse.swt.SWT.error(SWT.java:4441)
> at org.eclipse.swt.SWT.error(SWT.java:4356)
> at org.eclipse.swt.SWT.error(SWT.java:4327)
> at org.eclipse.swt.graphics.Image.getBounds(Image.java:1164)
> at org.eclipse.swt.widgets.Label.computeSize(Label.java:149)
> at org.eclipse.swt.layout.GridData.computeSize(GridData.java:491)
> at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:221)
> at org.eclipse.swt.layout.GridLayout.computeSize(GridLayout.java:164)
> at org.eclipse.swt.widgets.Composite.computeSize(Composite.java:234)
> at org.eclipse.swt.layout.GridData.computeSize(GridData.java:491)
> at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:221)
> at org.eclipse.swt.layout.GridLayout.computeSize(GridLayout.java:164)
> at org.eclipse.swt.widgets.Composite.computeSize(Composite.java:234)
> at org.eclipse.swt.layout.GridData.computeSize(GridData.java:491)
> at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:221)
> at org.eclipse.swt.layout.GridLayout.computeSize(GridLayout.java:164)
> at org.eclipse.swt.widgets.Composite.computeSize(Composite.java:234)
> at org.eclipse.swt.layout.GridData.computeSize(GridData.java:491)
> at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:221)
> at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:197)
> at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1290)
> at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1276)
> at org.eclipse.swt.widgets.Composite.layout(Composite.java:665)
> at org.jboss.tools.central.editors.xpl.DiscoveryViewer.updateFilters(DiscoveryViewer.java:628)
> at org.jboss.tools.central.editors.SoftwarePage.handleEarlyAccessChanged(SoftwarePage.java:536)
> at org.jboss.tools.central.editors.SoftwarePage.access$8(SoftwarePage.java:486)
> at org.jboss.tools.central.editors.SoftwarePage$5.widgetSelected(SoftwarePage.java:229)
> {noformat}
> scrolledContents is checked for disposed state, but the error occurs within layout()
> {code}
> if (this.scrolledContents != null && !this.scrolledContents.isDisposed()) {
> this.scrolledContents.layout(true, true); //crashes here
> ...
> }
> {code}
> I don't know how we can prevent that
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years
[JBoss JIRA] (JBIDE-17624) (un)checking Early Access while refreshing the connector logs an org.eclipse.swt.SWTException
by Rastislav Wagner (JIRA)
[ https://issues.jboss.org/browse/JBIDE-17624?page=com.atlassian.jira.plugi... ]
Rastislav Wagner edited comment on JBIDE-17624 at 7/1/14 9:42 AM:
------------------------------------------------------------------
I was able to reproduce on OSX, but unable on ubuntu. Using nightly build.
My stacktrace was different.
{code}
java.lang.NullPointerException
at org.eclipse.swt.widgets.Label.computeSize(Label.java:153)
at org.eclipse.swt.layout.GridData.computeSize(GridData.java:491)
at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:221)
at org.eclipse.swt.layout.GridLayout.computeSize(GridLayout.java:164)
at org.eclipse.swt.widgets.Composite.computeSize(Composite.java:243)
at org.eclipse.swt.layout.GridData.computeSize(GridData.java:491)
at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:221)
at org.eclipse.swt.layout.GridLayout.computeSize(GridLayout.java:164)
at org.eclipse.swt.widgets.Composite.computeSize(Composite.java:243)
at org.eclipse.swt.layout.GridData.computeSize(GridData.java:491)
at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:221)
at org.eclipse.swt.layout.GridLayout.computeSize(GridLayout.java:164)
at org.eclipse.swt.widgets.Composite.computeSize(Composite.java:243)
at org.eclipse.swt.layout.GridData.computeSize(GridData.java:491)
at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:221)
at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:197)
at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1201)
at org.eclipse.swt.widgets.Composite.layout(Composite.java:710)
at org.jboss.tools.central.editors.xpl.DiscoveryViewer.updateFilters(DiscoveryViewer.java:628)
at org.jboss.tools.central.editors.SoftwarePage.handleEarlyAccessChanged(SoftwarePage.java:536)
at org.jboss.tools.central.editors.SoftwarePage.access$8(SoftwarePage.java:486)
at org.jboss.tools.central.editors.SoftwarePage$5.widgetSelected(SoftwarePage.java:229)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4188)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1467)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1490)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1475)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4031)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3658)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:236)
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:483)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
{code}
was (Author: rawagner):
I was able to reproduce on OSX, but unable on ubuntu. Using nightly build.
> (un)checking Early Access while refreshing the connector logs an org.eclipse.swt.SWTException
> ---------------------------------------------------------------------------------------------
>
> Key: JBIDE-17624
> URL: https://issues.jboss.org/browse/JBIDE-17624
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: central
> Affects Versions: 4.2.0.Beta2
> Reporter: Fred Bricon
> Assignee: Mickael Istria
> Priority: Minor
> Fix For: 4.2.0.Beta3
>
>
> In Central > Software/Update page, (un)checking Early Access while refreshing the connector logs the following exception :
> {noformat}
> org.eclipse.swt.SWTException: Graphic is disposed
> at org.eclipse.swt.SWT.error(SWT.java:4441)
> at org.eclipse.swt.SWT.error(SWT.java:4356)
> at org.eclipse.swt.SWT.error(SWT.java:4327)
> at org.eclipse.swt.graphics.Image.getBounds(Image.java:1164)
> at org.eclipse.swt.widgets.Label.computeSize(Label.java:149)
> at org.eclipse.swt.layout.GridData.computeSize(GridData.java:491)
> at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:221)
> at org.eclipse.swt.layout.GridLayout.computeSize(GridLayout.java:164)
> at org.eclipse.swt.widgets.Composite.computeSize(Composite.java:234)
> at org.eclipse.swt.layout.GridData.computeSize(GridData.java:491)
> at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:221)
> at org.eclipse.swt.layout.GridLayout.computeSize(GridLayout.java:164)
> at org.eclipse.swt.widgets.Composite.computeSize(Composite.java:234)
> at org.eclipse.swt.layout.GridData.computeSize(GridData.java:491)
> at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:221)
> at org.eclipse.swt.layout.GridLayout.computeSize(GridLayout.java:164)
> at org.eclipse.swt.widgets.Composite.computeSize(Composite.java:234)
> at org.eclipse.swt.layout.GridData.computeSize(GridData.java:491)
> at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:221)
> at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:197)
> at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1290)
> at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1276)
> at org.eclipse.swt.widgets.Composite.layout(Composite.java:665)
> at org.jboss.tools.central.editors.xpl.DiscoveryViewer.updateFilters(DiscoveryViewer.java:628)
> at org.jboss.tools.central.editors.SoftwarePage.handleEarlyAccessChanged(SoftwarePage.java:536)
> at org.jboss.tools.central.editors.SoftwarePage.access$8(SoftwarePage.java:486)
> at org.jboss.tools.central.editors.SoftwarePage$5.widgetSelected(SoftwarePage.java:229)
> {noformat}
> scrolledContents is checked for disposed state, but the error occurs within layout()
> {code}
> if (this.scrolledContents != null && !this.scrolledContents.isDisposed()) {
> this.scrolledContents.layout(true, true); //crashes here
> ...
> }
> {code}
> I don't know how we can prevent that
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years
[JBoss JIRA] (JBIDE-17735) JAX-RS Application wizard: double comments in generated class
by Radoslav Rábara (JIRA)
Radoslav Rábara created JBIDE-17735:
---------------------------------------
Summary: JAX-RS Application wizard: double comments in generated class
Key: JBIDE-17735
URL: https://issues.jboss.org/browse/JBIDE-17735
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: webservices
Affects Versions: 4.2.0.Beta2
Reporter: Radoslav Rábara
Fix For: 4.2.0.Beta3
JAX-RS Application class looks quite unusual, when is generated using JAX-RS Application wizard with option generate comments into default package.
{code}
@ApplicationPath("/rest")
/**
*
*/
/**
* @author rrabara
*
*/
public class App extends Application {
}
{code}
When it is generated into user defined package, then there is just one java doc comment:
{code}
@ApplicationPath("/rest")
/**
* @author rrabara
*
*/
public class App extends Application {
}
{code}
However, shouldn't the comment be above the annotation? It seems that it's the preferred way (e.g. see examples http://docs.oracle.com/javase/tutorial/java/annotations/predefined.html)
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years
[JBoss JIRA] (JBIDE-17624) (un)checking Early Access while refreshing the connector logs an org.eclipse.swt.SWTException
by Rastislav Wagner (JIRA)
[ https://issues.jboss.org/browse/JBIDE-17624?page=com.atlassian.jira.plugi... ]
Rastislav Wagner commented on JBIDE-17624:
------------------------------------------
I was able to reproduce on OSX, but unable on ubuntu. Using nightly build.
> (un)checking Early Access while refreshing the connector logs an org.eclipse.swt.SWTException
> ---------------------------------------------------------------------------------------------
>
> Key: JBIDE-17624
> URL: https://issues.jboss.org/browse/JBIDE-17624
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: central
> Affects Versions: 4.2.0.Beta2
> Reporter: Fred Bricon
> Assignee: Mickael Istria
> Priority: Minor
> Fix For: 4.2.0.Beta3
>
>
> In Central > Software/Update page, (un)checking Early Access while refreshing the connector logs the following exception :
> {noformat}
> org.eclipse.swt.SWTException: Graphic is disposed
> at org.eclipse.swt.SWT.error(SWT.java:4441)
> at org.eclipse.swt.SWT.error(SWT.java:4356)
> at org.eclipse.swt.SWT.error(SWT.java:4327)
> at org.eclipse.swt.graphics.Image.getBounds(Image.java:1164)
> at org.eclipse.swt.widgets.Label.computeSize(Label.java:149)
> at org.eclipse.swt.layout.GridData.computeSize(GridData.java:491)
> at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:221)
> at org.eclipse.swt.layout.GridLayout.computeSize(GridLayout.java:164)
> at org.eclipse.swt.widgets.Composite.computeSize(Composite.java:234)
> at org.eclipse.swt.layout.GridData.computeSize(GridData.java:491)
> at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:221)
> at org.eclipse.swt.layout.GridLayout.computeSize(GridLayout.java:164)
> at org.eclipse.swt.widgets.Composite.computeSize(Composite.java:234)
> at org.eclipse.swt.layout.GridData.computeSize(GridData.java:491)
> at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:221)
> at org.eclipse.swt.layout.GridLayout.computeSize(GridLayout.java:164)
> at org.eclipse.swt.widgets.Composite.computeSize(Composite.java:234)
> at org.eclipse.swt.layout.GridData.computeSize(GridData.java:491)
> at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:221)
> at org.eclipse.swt.layout.GridLayout.layout(GridLayout.java:197)
> at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1290)
> at org.eclipse.swt.widgets.Composite.updateLayout(Composite.java:1276)
> at org.eclipse.swt.widgets.Composite.layout(Composite.java:665)
> at org.jboss.tools.central.editors.xpl.DiscoveryViewer.updateFilters(DiscoveryViewer.java:628)
> at org.jboss.tools.central.editors.SoftwarePage.handleEarlyAccessChanged(SoftwarePage.java:536)
> at org.jboss.tools.central.editors.SoftwarePage.access$8(SoftwarePage.java:486)
> at org.jboss.tools.central.editors.SoftwarePage$5.widgetSelected(SoftwarePage.java:229)
> {noformat}
> scrolledContents is checked for disposed state, but the error occurs within layout()
> {code}
> if (this.scrolledContents != null && !this.scrolledContents.isDisposed()) {
> this.scrolledContents.layout(true, true); //crashes here
> ...
> }
> {code}
> I don't know how we can prevent that
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years
[JBoss JIRA] (JBIDE-17696) Enabling Maven Dependency Management job waits forever
by Fred Bricon (JIRA)
[ https://issues.jboss.org/browse/JBIDE-17696?page=com.atlassian.jira.plugi... ]
Fred Bricon updated JBIDE-17696:
--------------------------------
Fix Version/s: 4.2.x
> Enabling Maven Dependency Management job waits forever
> ------------------------------------------------------
>
> Key: JBIDE-17696
> URL: https://issues.jboss.org/browse/JBIDE-17696
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: maven
> Affects Versions: 4.2.0.Beta2
> Environment: OpenJDK 1.7, 64b
> Ubuntu 12.04, 64b
> Reporter: Rastislav Wagner
> Fix For: 4.2.x
>
> Attachments: jstack1.out, jstack2.out, jstack_mvn.out, mvn.png, wait1.png, wait2.png
>
>
> I dont have exact steps to reproduce because this usually occurs after longer work. I'm testing various configurators (CDI/Seam/JAXRS..) using this scenario:
> 1. Create Dynamic Web Project
> 2. Convert to maven project (using Configure -> Convert to maven..)
> 3. Add some dependency
> 4. check if proper facet was enabled
> 5. delete project and repeat
> After trying this 10-15 times (sometimes more, sometimes less), during step 2 "Enabling Maven Dependency Management" job is waiting and never ends - see screenshot - there's always "Setting classpath containers".
> JVM thread dump attached.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years