[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-3617) Exception is appeared if .css file has " #url " style class

Max Rydahl Andersen (JIRA) jira-events at lists.jboss.org
Fri Jan 23 06:37:44 EST 2009


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

Max Rydahl Andersen commented on JBIDE-3617:
--------------------------------------------

How hard is it to fix this ?

Does it only happen for #url case or for any # setup ?


> Exception is appeared if .css file has " #url "  style class
> ------------------------------------------------------------
>
>                 Key: JBIDE-3617
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-3617
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>    Affects Versions: 3.0.0.cr1
>            Reporter: Sergey Dzmitrovich
>            Assignee: Maxim Areshkau
>             Fix For: 3.0.0.GA
>
>
> Was described : http://www.jboss.com/index.html?module=bb&op=viewtopic&t=149182
> Steps to reproduce:
> 1. create css file
> 2. add style class  #url {
> ...
> } 
> 3. add link to css file in jsp page
> Stack Trace:
> org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.StringIndexOutOfBoundsException: String index out of range: -1)
> 	at org.eclipse.swt.SWT.error(SWT.java:3777)
> 	at org.eclipse.swt.SWT.error(SWT.java:3695)
> 	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)
> 	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.runEventLoop(Workbench.java:2382)
> 	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
> 	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(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:386)
> 	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.java: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)
> 	at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
> Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
> 	at java.lang.String.substring(String.java:1768)
> 	at org.jboss.tools.vpe.editor.util.VpeStyleUtil.addFullPathIntoURLValue(VpeStyleUtil.java:494)
> 	at org.jboss.tools.vpe.editor.VpeVisualDomBuilder.createLinkNode(VpeVisualDomBuilder.java:1414)
> 	at org.jboss.tools.vpe.editor.VpeVisualDomBuilder.addLinkNodeToHead(VpeVisualDomBuilder.java:1349)
> 	at org.jboss.tools.vpe.editor.template.VpeLinkCreator.create(VpeLinkCreator.java:75)
> 	at org.jboss.tools.vpe.editor.template.VpeHtmlTemplate.createVisualElement(VpeHtmlTemplate.java:203)
> 	at org.jboss.tools.vpe.editor.template.VpeHtmlTemplate.create(VpeHtmlTemplate.java:152)
> 	at org.jboss.tools.vpe.editor.VpeVisualDomBuilder.createNode(VpeVisualDomBuilder.java:469)
> 	at org.jboss.tools.vpe.editor.VpeVisualDomBuilder.addNode(VpeVisualDomBuilder.java:264)
> 	at org.jboss.tools.vpe.editor.VpeVisualDomBuilder.addChildren(VpeVisualDomBuilder.java:624)
> 	at org.jboss.tools.vpe.editor.VpeVisualDomBuilder.createNode(VpeVisualDomBuilder.java:559)
> 	at org.jboss.tools.vpe.editor.VpeVisualDomBuilder.addNode(VpeVisualDomBuilder.java:264)
> 	at org.jboss.tools.vpe.editor.VpeVisualDomBuilder.updateElement(VpeVisualDomBuilder.java:1025)
> 	at org.jboss.tools.vpe.editor.VpeVisualDomBuilder.updateNode(VpeVisualDomBuilder.java:955)
> 	at org.jboss.tools.vpe.editor.VpeController.notifyChangedInUiThread(VpeController.java:608)
> 	at org.jboss.tools.vpe.editor.VpeController$1.runInUIThread(VpeController.java:477)
> 	at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:94)
> 	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
> 	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
> 	... 23 more

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list