~/Roots update nightmare [was: Re: WOLips newbie question...]

From: Sébastien Sahuc (lis..ahuc.net)
Date: Mon Sep 11 2006 - 17:13:50 EDT

  • Next message: Anjo Krank: "Re: ~/Roots update nightmare [was: Re: WOLips newbie question...]"

    Anjo,

    (This is added in a new Jira ticket: http://objectstyle.org/jira/
    browse/WOL-284)

    I'm trying to update to latest WOLips which I haven't done since
    early August (WWDC). It seems that ~/Roots has been removed however
    we heavily depend on it as the location where we install pre-built
    wonder and other prebuilt third party frameworks. I tried setting the
    following in my ~/Library/wobuild.properties in the machine where I
    build the WOLips package:

    wo.externalbuildroot=/Users/sebastien/Roots

    But to no eval. The Eclipse throws TONS of NPE for not being able to
    resolve existing classpath:

    !ENTRY org.eclipse.jface 4 2 2006-09-11 13:55:03.316
    !MESSAGE Problems occurred when invoking code from plug-in:
    "org.eclipse.jface".
    !STACK 0
    java.lang.NullPointerException
            at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath
    (JavaProject.java:2186)
            at org.eclipse.jdt.internal.core.ClasspathEntry.validateClasspath
    (ClasspathEntry.java:1312)
            at org.eclipse.jdt.core.JavaConventions.validateClasspath
    (JavaConventions.java:434)
            at
    org.eclipse.jdt.internal.ui.wizards.buildpaths.BuildPathsBlock.updateBui
    ldPathStatus(BuildPathsBlock.java:613)
    [....] the rest is copied below.

    So next, with a clean workspace I tried looking in the Preferences-
    >Java->Build Path->Classpath, and I'm getting this error, as well
    and the exception below to the screen shot:




    !ENTRY org.eclipse.ui.ide 2 1 2006-09-11 13:57:23.178
    !MESSAGE Problems occurred while trying to save the state of the
    workbench.
    !SUBENTRY 1 org.eclipse.core.resources 2 566 2006-09-11 13:57:23.178
    !MESSAGE Problems occurred during save.
    !STACK 0
    java.lang.NullPointerException
            at org.eclipse.jdt.internal.compiler.util.HashtableOfObjectToInt.get
    (HashtableOfObjectToInt.java:71)
            at org.eclipse.jdt.internal.core.JavaModelManager
    $VariablesAndContainersSaveHelper.saveNewId(JavaModelManager.java:3054)
            at org.eclipse.jdt.internal.core.JavaModelManager
    $VariablesAndContainersSaveHelper.saveClasspathEntry
    (JavaModelManager.java:3008)
            at org.eclipse.jdt.internal.core.JavaModelManager
    $VariablesAndContainersSaveHelper.saveClasspathEntries
    (JavaModelManager.java:3003)
            at org.eclipse.jdt.internal.core.JavaModelManager
    $VariablesAndContainersSaveHelper.saveContainers
    (JavaModelManager.java:3045)
            at org.eclipse.jdt.internal.core.JavaModelManager
    $VariablesAndContainersSaveHelper.saveProjects(JavaModelManager.java:
    3109)
            at org.eclipse.jdt.internal.core.JavaModelManager
    $VariablesAndContainersSaveHelper.save(JavaModelManager.java:2947)
            at
    org.eclipse.jdt.internal.core.JavaModelManager.saveVariablesAndContainer
    s(JavaModelManager.java:2855)
            at org.eclipse.jdt.internal.core.JavaModelManager.saving
    (JavaModelManager.java:3151)
            at org.eclipse.core.internal.resources.SaveManager.executeLifecycle
    (SaveManager.java:322)
            at org.eclipse.core.internal.resources.SaveManager$1.run
    (SaveManager.java:151)
            at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
            at org.eclipse.core.internal.resources.SaveManager.broadcastLifecycle
    (SaveManager.java:154)
            at org.eclipse.core.internal.resources.SaveManager.save
    (SaveManager.java:955)
            at org.eclipse.core.internal.resources.Workspace.save(Workspace.java:
    1764)
            at org.eclipse.ui.internal.ide.IDEWorkbenchAdvisor$3.run
    (IDEWorkbenchAdvisor.java:367)
            at org.eclipse.jface.operation.ModalContext$ModalContextThread.run
    (ModalContext.java:113)

    ------- original exception from the workign workspace:
    !ENTRY org.eclipse.jface 4 2 2006-09-11 13:55:03.316
    !MESSAGE Problems occurred when invoking code from plug-in:
    "org.eclipse.jface".
    !STACK 0
    java.lang.NullPointerException
            at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath
    (JavaProject.java:2186)
            at org.eclipse.jdt.internal.core.ClasspathEntry.validateClasspath
    (ClasspathEntry.java:1312)
            at org.eclipse.jdt.core.JavaConventions.validateClasspath
    (JavaConventions.java:434)
            at
    org.eclipse.jdt.internal.ui.wizards.buildpaths.BuildPathsBlock.updateBui
    ldPathStatus(BuildPathsBlock.java:613)
            at
    org.eclipse.jdt.internal.ui.wizards.buildpaths.BuildPathsBlock.updateOut
    putLocationStatus(BuildPathsBlock.java:601)
            at
    org.eclipse.jdt.internal.ui.wizards.buildpaths.BuildPathsBlock.buildPath
    DialogFieldChanged(BuildPathsBlock.java:494)
            at
    org.eclipse.jdt.internal.ui.wizards.buildpaths.BuildPathsBlock.access
    $1(BuildPathsBlock.java:490)
            at org.eclipse.jdt.internal.ui.wizards.buildpaths.BuildPathsBlock
    $BuildPathAdapter.dialogFieldChanged(BuildPathsBlock.java:477)
            at
    org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField.dialogField
    Changed(DialogField.java:70)
            at
    org.eclipse.jdt.internal.ui.wizards.dialogfields.StringDialogField.setTe
    xt(StringDialogField.java:162)
            at
    org.eclipse.jdt.internal.ui.wizards.buildpaths.BuildPathsBlock.init
    (BuildPathsBlock.java:321)
            at
    org.eclipse.jdt.internal.ui.preferences.BuildPathsPropertyPage.setVisibl
    e(BuildPathsPropertyPage.java:131)
            at org.eclipse.jface.preference.PreferenceDialog.showPage
    (PreferenceDialog.java:1227)
            at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.showPage
    (FilteredPreferenceDialog.java:439)
            at org.eclipse.jface.preference.PreferenceDialog$8.selectionChanged
    (PreferenceDialog.java:661)
            at org.eclipse.jface.viewers.StructuredViewer$3.run
    (StructuredViewer.java:839)
            at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
            at org.eclipse.core.runtime.Platform.run(Platform.java:843)
            at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
            at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:149)
            at
    org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged
    (StructuredViewer.java:837)
            at org.eclipse.jface.viewers.StructuredViewer.handlePostSelect
    (StructuredViewer.java:1143)
            at org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected
    (StructuredViewer.java:1163)
            at org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent
    (OpenStrategy.java:236)
            at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:230)
            at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java:404)
            at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
            at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages
    (Synchronizer.java:123)
            at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3181)
            at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2944)
            at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
            at org.eclipse.jface.window.Window.open(Window.java:796)
            at org.eclipse.ui.dialogs.PropertyDialogAction.run
    (PropertyDialogAction.java:156)
            at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
            at
    org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
    (ActionContributionItem.java:539)
            at org.eclipse.jface.action.ActionContributionItem.access$2
    (ActionContributionItem.java:488)
            at org.eclipse.jface.action.ActionContributionItem$5.handleEvent
    (ActionContributionItem.java:400)
            at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1496)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1505)
            at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1279)
            at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3312)
            at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2941)
            at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
            at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
            at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
    (Workbench.java:419)
            at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
            at org.eclipse.ui.internal.ide.IDEApplication.run
    (IDEApplication.java:95)
            at org.eclipse.core.internal.runtime.PlatformActivator$1.run
    (PlatformActivator.java:78)
            at
    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplicat
    ion(EclipseAppLauncher.java:92)
            at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start
    (EclipseAppLauncher.java:68)
            at org.eclipse.core.runtime.adaptor.EclipseStarter.run
    (EclipseStarter.java:400)
            at org.eclipse.core.runtime.adaptor.EclipseStarter.run
    (EclipseStarter.java:177)
            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.core.launcher.Main.invokeFramework(Main.java:336)
            at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
            at org.eclipse.core.launcher.Main.run(Main.java:977)
            at org.eclipse.core.launcher.Main.main(Main.java:952)

    On Aug 22, 2006, at 6:05 AM, Anjo Krank wrote:

    > OK, the last commit removed ~/Roots from the UI. You should still
    > be able to use it if you set
    >
    > wo.externalbuildroot=<whatever> in your wobuild.properties
    >
    > Cheers, Anjo
    >
    > Am 15.08.2006 um 23:08 schrieb Anjo Krank:
    >
    >>
    >> Am 15.08.2006 um 21:27 schrieb Kieran Kelleher:
    >>
    >>> f I select ERExtensions, etc. in the Local (representing /Library
    >>> folder) expanded list, the Build Path actually shows the
    >>> ERExtensions in my ~/Roots folder. Now if I go back into Edit
    >>> Library, the checked items are in External Build Root. How did
    >>> WOLips pick up or even know about my ~/Roots folder which is my
    >>> sandbox for unstable Project WOnder builds?
    >>
    >> I'll remove this ~Roots thing some time later this month. You
    >> should either link Wonder as Source projects or as /Library. The
    >> only way that currently works is to delete or rename ~/Roots.
    >>
    >> Cheers, Anjo
    >>
    >



    This archive was generated by hypermail 2.0.0 : Mon Sep 11 2006 - 17:14:04 EDT