[JBoss JIRA] Created: (JBDS-353) Web Projects view error
by Stanislav Sabol (JIRA)
Web Projects view error
-----------------------
Key: JBDS-353
URL: http://jira.jboss.com/jira/browse/JBDS-353
Project: Developer Studio
Issue Type: Bug
Components: jsf
Affects Versions: 1.1.0.CR1
Environment: eclipse.buildId=1.1.0.CR1
java.version=1.6.0_05
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=sk_SK
Command-line arguments: -os win32 -ws win32 -arch x86
Reporter: Stanislav Sabol
Assigned To: Max Rydahl Andersen
Fix For: 1.1.0.GA
After i have added JSF capabilities to my project. i switched to "Web Projects" view and i get an error :
java.lang.NullPointerException
at org.eclipse.core.runtime.Path.isPrefixOf(Path.java:634)
at org.jboss.tools.common.model.util.EclipseResourceUtil.findResourceInFileSystem(EclipseResourceUtil.java:361)
at org.jboss.tools.common.model.util.EclipseResourceUtil.getObjectByResource(EclipseResourceUtil.java:106)
at org.jboss.tools.common.model.util.EclipseResourceUtil.createObjectForResource(EclipseResourceUtil.java:282)
at org.jboss.tools.common.model.markers.XMarkerManager.reload(XMarkerManager.java:62)
at org.jboss.tools.common.model.markers.XMarkerManager.reload(XMarkerManager.java:53)
at org.jboss.tools.common.model.markers.XMarkerManager.<init>(XMarkerManager.java:37)
at org.jboss.tools.common.model.markers.XMarkerManager.getInstance(XMarkerManager.java:28)
at org.jboss.tools.common.model.ui.navigator.LabelDecoratorImpl.getErrorState(LabelDecoratorImpl.java:71)
at org.jboss.tools.common.model.ui.navigator.LabelDecoratorImpl.decorateImage(LabelDecoratorImpl.java:40)
at org.eclipse.jface.viewers.DecoratingLabelProvider.getImage(DecoratingLabelProvider.java:94)
at org.eclipse.jface.viewers.DecoratingLabelProvider.updateLabel(DecoratingLabelProvider.java:356)
at org.eclipse.jface.viewers.WrappedViewerLabelProvider.update(WrappedViewerLabelProvider.java:183)
at org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn.java:135)
at org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java:911)
at org.eclipse.jface.viewers.AbstractTreeViewer$UpdateItemSafeRunnable.run(AbstractTreeViewer.java:97)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:857)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:199)
at org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java:991)
at org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.run(StructuredViewer.java:466)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:857)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:199)
at org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:2026)
at org.eclipse.jface.viewers.AbstractTreeViewer.createTreeItem(AbstractTreeViewer.java:806)
at org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractTreeViewer.java:781)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:755)
at org.eclipse.jface.viewers.TreeViewer.createChildren(TreeViewer.java:627)
at org.eclipse.jface.viewers.AbstractTreeViewer.handleTreeExpand(AbstractTreeViewer.java:1410)
at org.eclipse.jface.viewers.TreeViewer.handleTreeExpand(TreeViewer.java:918)
at org.eclipse.jface.viewers.AbstractTreeViewer$4.treeExpanded(AbstractTreeViewer.java:1421)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:125)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:962)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:947)
at org.eclipse.swt.widgets.Tree.wmNotifyChild(Tree.java:7053)
at org.eclipse.swt.widgets.Control.wmNotify(Control.java:4563)
at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:1581)
at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:4216)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3724)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4351)
at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2179)
at org.eclipse.swt.widgets.Tree.callWindowProc(Tree.java:1541)
at org.eclipse.swt.widgets.Tree.WM_LBUTTONDOWN(Tree.java:5798)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3705)
at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:5370)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4364)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2265)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3291)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 12 months
[JBoss JIRA] Created: (JBIDE-2074) NPE when executing JUnit tests for VPE
by Snjezana Peco (JIRA)
NPE when executing JUnit tests for VPE
--------------------------------------
Key: JBIDE-2074
URL: http://jira.jboss.com/jira/browse/JBIDE-2074
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: Visual Page Editor
Affects Versions: 2.1.0.beta1
Reporter: Snjezana Peco
Assigned To: Snjezana Peco
Priority: Minor
Fix For: 2.1.0.cr1
The following code causes NPE in JUnit tests:
// Wait while visual part is loaded
Display.getCurrent().syncExec( new Runnable() {
public void run() {
while( Display.getCurrent().readAndDispatch() && getController()==null) {
}
}
});
I have got the exception in the testJbideMultiple test and in some other tests.
VpeTest.java, line 153
XulRunnerEditor xulRunnerEditor = vpeController.getXulRunnerEditor();
vpeController is null because the above mentioned code doesn't work correctly.
The Display.getCurrent().readAndDispatch() reads and dispatches events and returns false if there isn't any.
It isn't related to loading page in the XULRunner browser.
The correct code that waits for the page has been loaded is the following:
loaded = false;
xulRunnerEditor.getBrowser().addProgressListener(new ProgressListener() {
public void changed(ProgressEvent event) {
}
public void completed(ProgressEvent event) {
loaded = true;
xulRunnerEditor.getBrowser().removeProgressListener(this);
}
});
xulRunnerEditor.setURL(INIT_URL);
// Wait while visual part is loaded
while (!loaded) {
if (!Display.getCurrent().readAndDispatch())
Display.getCurrent().sleep();
}
Max, would you like me to commit this code?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 12 months
[JBoss JIRA] Created: (JBIDE-2358) JSF proposal replaces wrong part of text when inserted into non-ended attribute value.
by Victor Rubezhny (JIRA)
JSF proposal replaces wrong part of text when inserted into non-ended attribute value.
--------------------------------------------------------------------------------------
Key: JBIDE-2358
URL: http://jira.jboss.com/jira/browse/JBIDE-2358
Project: Tools (JBoss Tools)
Issue Type: Bug
Environment: JBDS 3.0 current build
Reporter: Victor Rubezhny
JSF-prompting proposal replaces wrong part of the text when inserted into non-ended attribute value.
Create a Seam project, open home.xhtml file in JBoss Tools HTML editor. Type-in the following text:
<h:outputText style="" value="#{a />
Then place the cursor right after "value=#{a" (there shouldn't be a closing quote-char in the attribute value) and press Ctrl-space to invoke the content assistant. Select "applicationScope" from the list and press Enter.
As the result the text will be: <h:outputText style="" value="#{aapplicationScope}"/> (The initial "a"-character was not replaced while the next space characted has eaten by the replacement)
The same result occures if the initial text is somehow longer then one character, for example, if you'll type "<h:outputText style="" value="#{appli />" and then apply the "applicationScope" JSF-proposal, then the result will be exactly the same: <h:outputText style="" value="#{aapplicationScope}"/>
Test Case:
EXECUTE: Create a Seam project.
EXECUTE: Open home.xhtml file in JBoss Tools HTML editor.
EXECUTE: Type-in the following text: <h:outputText style="" value="#{a />
(Do not close the quotes in the attribute value)
EXECUTE: Press Ctrl-Space to invoke the Content Assistant, select "applicationScope" JSF-proposal from the list and press Enter
ASSERT: the new attribute value is inserted correctly, all the other chars are stood as they were typed-in.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 12 months