[jbosstools-issues] [JBoss JIRA] (JBIDE-13786) Can't create JSF 1.2 project for JBoss AS 7.1 runtime

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Wed Mar 13 19:50:41 EDT 2013


    [ https://issues.jboss.org/browse/JBIDE-13786?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12761041#comment-12761041 ] 

Viacheslav Kabanovich commented on JBIDE-13786:
-----------------------------------------------

Runtime does not matter. The issue is reproduced only when project name coincides with that of a previously deleted project without deleting it from disk. Wizard tries to prompt user with a dialog asking if he wants to overwrite the old project. Since a modification done 5 months ago, operation is run out of UI thread, which causes the exception. The fix will run this part of the operation in UI thread.
                
> Can't create JSF 1.2 project for JBoss AS 7.1 runtime
> -----------------------------------------------------
>
>                 Key: JBIDE-13786
>                 URL: https://issues.jboss.org/browse/JBIDE-13786
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: JSF
>    Affects Versions: 4.1.0.Alpha2
>            Reporter: Alexey Kazakov
>            Assignee: Viacheslav Kabanovich
>            Priority: Blocker
>             Fix For: 4.1.0.Alpha2
>
>
> If I try to create a JSF 1.2 project with libs for AS 7.1. I got the following exception when press finish (it works ok with AS 6.1):
> {code}
> java.lang.reflect.InvocationTargetException
> 	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:421)
> 	at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1028)
> 	at org.jboss.tools.jst.web.ui.wizards.project.NewWebProjectWizard.performFinish(NewWebProjectWizard.java:66)
> 	at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:827)
> 	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:432)
> 	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:628)
> 	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.Widget.sendEvent(Widget.java:1392)
> 	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3705)
> 	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3326)
> 	at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
> 	at org.eclipse.jface.window.Window.open(Window.java:801)
> 	at org.eclipse.ui.actions.NewProjectAction.run(NewProjectAction.java:117)
> 	at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
> 	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
> 	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
> 	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
> 	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1392)
> 	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3705)
> 	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3326)
> 	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1057)
> 	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> 	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:941)
> 	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:79)
> 	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
> 	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> 	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
> 	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
> 	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
> 	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
> 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
> 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
> 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
> 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
> 	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 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
> 	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
> 	at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
> 	at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
> Caused by: org.eclipse.core.runtime.AssertionFailedException: null argument:The dialog should be created in UI thread
> 	at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
> 	at org.eclipse.jface.dialogs.IconAndMessageDialog.getSWTImage(IconAndMessageDialog.java:282)
> 	at org.eclipse.jface.dialogs.IconAndMessageDialog.getWarningImage(IconAndMessageDialog.java:242)
> 	at org.eclipse.jface.dialogs.MessageDialog.<init>(MessageDialog.java:193)
> 	at org.jboss.tools.common.model.ui.wizards.one.ServiceDialogImpl.showDialog(ServiceDialogImpl.java:62)
> 	at org.jboss.tools.jst.web.ui.operation.WebProjectCreationOperation.checkOverwrite(WebProjectCreationOperation.java:193)
> 	at org.jboss.tools.jst.web.ui.operation.WebNatureOperation.clearProjectRoot(WebNatureOperation.java:280)
> 	at org.jboss.tools.jst.web.ui.operation.WebNatureOperation.run(WebNatureOperation.java:216)
> 	at org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation.execute(WorkspaceModifyDelegatingOperation.java:69)
> 	at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
> 	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2345)
> 	at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
> 	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list