[OS-JIRA] Created: (WOL-1107) Cannot create a new WebObjects project if there is a space in the path to the Eclipse.exe

From: Kieran Kelleher (JIRA) ("Kieran)
Date: Thu Sep 24 2009 - 15:59:01 EDT

  • Next message: Mike Schrag: "WOLips Install Sites"

    Cannot create a new WebObjects project if there is a space in the path to the Eclipse.exe
    -----------------------------------------------------------------------------------------

                     Key: WOL-1107
                     URL: http://issues.objectstyle.org/jira/browse/WOL-1107
                 Project: WOProject/WOLips
              Issue Type: Bug
              Components: WOLips General
        Affects Versions: WOLips Nightly
             Environment: Windows XP, Eclipse 3.4.2, WOLips 3.4.5950 Nightly
                Reporter: Kieran Kelleher
                Priority: Critical

    Cannot create a new WebObjects project if there is a space in the path to the Eclipse.exe

    One line of the stack tells the story:
    Caused by: java.net.URISyntaxException: Illegal character in path at index 18: file:/C:/Documents and Settings/Administrator/My Documents/Applications/eclipse-SDK-3.4.2-win32/eclipse/configuration/org.eclipse.osgi/bundles/204/1/.cp/ProjectTemplates/

    Here is the whole stack
    java.lang.IllegalArgumentException: bundleresource://204/ProjectTemplates cannot be turned into a File.
    at org.objectstyle.wolips.baseforplugins.util.URLUtils.cheatAndTurnIntoFile(URLUtils.java:200)
    at org.objectstyle.wolips.templateengine.ProjectTemplate.templateBaseFolders(ProjectTemplate.java:324)
    at org.objectstyle.wolips.templateengine.ProjectTemplate.loadProjectTemplates(ProjectTemplate.java:372)
    at org.objectstyle.wolips.templateengine.ProjectTemplate.loadProjectTemplateNamed(ProjectTemplate.java:452)
    at org.objectstyle.wolips.templateengine.ProjectTemplate.loadProjectTemplateNamed(ProjectTemplate.java:438)
    at org.objectstyle.wolips.wizards.NewWOProjectWizard.<init>(NewWOProjectWizard.java:239)
    at org.objectstyle.wolips.wizards.WOApplicationWizard.<init>(WOApplicationWizard.java:68)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at java.lang.Class.newInstance0(Class.java:350)
    at java.lang.Class.newInstance(Class.java:303)
    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:170)
    at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:867)
    at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
    at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
    at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:267)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
    at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:263)
    at org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.createExecutableExtension(WorkbenchWizardElement.java:117)
    at org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.createWizard(WorkbenchWizardElement.java:261)
    at org.eclipse.ui.internal.actions.NewWizardShortcutAction.run(NewWizardShortcutAction.java:87)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
    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:1003)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
    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)
    Caused by: java.net.URISyntaxException: Illegal character in path at index 18: file:/C:/Documents and Settings/Administrator/My Documents/Applications/eclipse-SDK-3.4.2-win32/eclipse/configuration/org.eclipse.osgi/bundles/204/1/.cp/ProjectTemplates/
    at java.net.URI$Parser.fail(URI.java:2816)
    at java.net.URI$Parser.checkChars(URI.java:2989)
    at java.net.URI$Parser.parseHierarchical(URI.java:3073)
    at java.net.URI$Parser.parse(URI.java:3021)
    at java.net.URI.<init>(URI.java:578)
    at org.objectstyle.wolips.baseforplugins.util.URLUtils.cheatAndTurnIntoFile(URLUtils.java:196)
    ... 50 more

    Workaround: Move Eclipse.exe to somewhere without a space in the path. FWIW, I despise Windoze.

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



    This archive was generated by hypermail 2.0.0 : Thu Sep 24 2009 - 16:00:14 EDT