Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Higgins » Problem Running Demo App and Saving Context
Problem Running Demo App and Saving Context [message #2627] Thu, 13 April 2006 17:31 Go to next message
Eclipse UserFriend
Originally posted by: jiaychen.gmail.com

Hi everyone, I'm trying to run the demo application, and received some
problem with running Demo App 1 and 2 to share profiles. I can launch the
ECF Server Application without problem. However, when I launch the demo
apps, I could not see the facet information I saved in app1 from app2. I'm
including below the console output that highlights the following errors:

1. classnotfoundexpection with
org.eclipse.ecf.provider.rss.http.Client$Creator
this happens when i initally launch the Demo App GUI
2. nullpointerexception at
org.eclipse.higgins.context.store.ProjectFolder.associateRes ource(ProjectFolder.java:133)
this happens when i try to save the changes made to a profile from the
demo app GUI

I'm using the following configuations and plugins in Eclipse:
Eclipse-SDK-3.1-win32
Eclipse Modeling Framework (EMF) 2.2.0v200604060931
EMF Service Data Objects (SDO) 2.2.0v200604060931
EODM SDK 1.0.0.v200603021130
ECF 0.7.6

When I first downloaded Higgins plugins from CVS using
http://www.eclipse.org/higgins/org.eclipse.higgins.docs/higg ins-anonymous.psf, i
had to download separately the org.eclipse.ecf.provider.rss and
org.eclipsehiggins.context.rss to resolve compile problems in
orgeclipse.higgins.test. i also had to modify "Higins Demo App 1.lanuch"
file to include all workspace and enabled external plugins. Otherwise, the
demo app GUI will not launch. These changes were not documented in the
installation instructions, and I'm not sure if i missed something else.
Console output is pasted below, please adivce. Thanks!

Simon

!SESSION 2006-04-13
12:59:22.515 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0_06
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -application
org.eclipse.higgins.app.RcpApplication -pdelaunch
Command-line arguments: -application
org.eclipse.higgins.app.RcpApplication -data runtime\workspace -dev
file:C:/workspace3/.metadata/.plugins/org.eclipse.pde.core/H iggins Demo App
1/dev.properties -pdelaunch -consoleLog -os win32 -ws win32 -arch x86
!ENTRY org.eclipse.higgins.internal 1 0 2006-04-13 12:59:23.375
!MESSAGE Higgins starting
Processing xid=org.eclipse.higgins.context.profileshare.context, member
name=context
Processing xid=org.eclipse.higgins.context.user.context, member name=context
Processing xid=org.eclipse.higgins.context.example.context, member
name=context
Processing xid=org.eclipse.higgins.context.rss.context, member name=context
!ENTRY org.eclipse.ecf 4 20 2006-04-13 12:59:24.500
!MESSAGE
!ExtPointError.ContainerNameCollisionPrefix!org.eclipse.ecf. provider.rss.Client!ExtPointError.ContainerNameCollisionSuff ix!org.eclipse.ecf.containerFactory
!ENTRY org.eclipse.core.runtime 4 1 2006-04-13 12:59:24.546
!MESSAGE Plug-in org.eclipse.ecf.provider.rss was unable to load class
org.eclipse.ecf.provider.rss.http.Client$Creator.
!STACK 0

java.lang.ClassNotFoundException:
org.eclipse.ecf.provider.rss.http.Client$Creator
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:405)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:350)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(AbstractClassLoader.java:78)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:275)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1248)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:152)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:142)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:129)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 48)
at
org.eclipse.ecf.internal.core.ECFPlugin.addCommExtensions(EC FPlugin.java:536)
at
org.eclipse.ecf.internal.core.ECFPlugin.setupCommExtensionPo int(ECFPlugin.java:595)
at org.eclipse.ecf.internal.core.ECFPlugin.start(ECFPlugin.java :645)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:994)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:988)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:969)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:313)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:264)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLoca lClass(EclipseClassLoader.java:116)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:337)
at
org.eclipse.osgi.framework.internal.core.SingleSourcePackage .loadClass(SingleSourcePackage.java:37)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:386)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:350)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(AbstractClassLoader.java:78)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at
org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.d efineClass(DefaultClassLoader.java:370)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.defineCl ass(EclipseClassLoader.java:233)
at
org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.f indClassImpl(DefaultClassLoader.java:343)
at
org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.f indClass(DefaultClassLoader.java:235)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. findLocalClass(AbstractClassLoader.java:183)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.basicFin dLocalClass(EclipseClassLoader.java:141)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLoca lClass(EclipseClassLoader.java:122)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:337)
at
org.eclipse.osgi.framework.internal.core.SingleSourcePackage .loadClass(SingleSourcePackage.java:37)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:386)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:350)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(AbstractClassLoader.java:78)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at
org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.d efineClass(DefaultClassLoader.java:370)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.defineCl ass(EclipseClassLoader.java:233)
at
org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.f indClassImpl(DefaultClassLoader.java:343)
at
org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.f indClass(DefaultClassLoader.java:235)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. findLocalClass(AbstractClassLoader.java:183)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.basicFin dLocalClass(EclipseClassLoader.java:141)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLoca lClass(EclipseClassLoader.java:82)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:337)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:389)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:350)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(AbstractClassLoader.java:78)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
org.eclipse.higgins.context.profileshare.plugin.ProfileShare Plugin.start(ProfileSharePlugin.java:82)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:994)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:988)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:969)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:313)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:264)
at
org.eclipse.higgins.internal.ProcessExtensions.demandLoad(Pr ocessExtensions.java:68)
at
org.eclipse.higgins.internal.ContextExtensionRegistry.demand LoadExtensions(ContextExtensionRegistry.java:80)
at org.eclipse.higgins.internal.Higgins.open(Higgins.java:99)
at
org.eclipse.higgins.app.RcpWorkbenchAdvisor.initPlatform(Rcp WorkbenchAdvisor.java:174)
at
org.eclipse.higgins.app.RcpWorkbenchAdvisor.preWindowOpen(Rc pWorkbenchAdvisor.java:148)
at
org.eclipse.ui.internal.application.CompatibilityWorkbenchWi ndowAdvisor.preWindowOpen(CompatibilityWorkbenchWindowAdviso r.java:45)
at
org.eclipse.ui.internal.WorkbenchWindow.fireWindowOpening(Wo rkbenchWindow.java:1038)
at org.eclipse.ui.internal.WorkbenchWindow.<init>(WorkbenchWindow.java:304)
at org.eclipse.ui.internal.Workbench.newWorkbenchWindow(Workben ch.java:1173)
at
org.eclipse.ui.internal.Workbench.busyOpenWorkbenchWindow(Wo rkbench.java:662)
at
org.eclipse.ui.internal.Workbench.doOpenFirstTimeWindow(Work bench.java:1282)
at
org.eclipse.ui.internal.Workbench.openFirstTimeWindow(Workbe nch.java:1223)
at
org.eclipse.ui.internal.WorkbenchConfigurer.openFirstTimeWin dow(WorkbenchConfigurer.java:190)
at
org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:706)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:1034)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1636)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at org.eclipse.higgins.app.RcpApplication.run(RcpApplication.ja va:24)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
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.core.launcher.Main.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
Processing xid=org.eclipse.higgins.context.store.contextStore, member
name=contextStore
Open context: extensionId=org.eclipse.higgins.context.user.context id=Other
Person
Open context: extensionId=org.eclipse.higgins.context.user.context id=Simon
!ENTRY org.eclipse.ui 4 4 2006-04-13 12:59:26.609Invalid Menu Extension
(Path is invalid): converstLineDelimitersTo
Invalid Menu Extension (Path is invalid):
org.eclipse.ui.edit.text.delimiter.macOS9
Invalid Menu Extension (Path is invalid):
org.eclipse.ui.edit.text.delimiter.unix
!MESSAGE Invalid Menu Extension (Path is invalid): converstLineDelimitersTo
!ENTRY org.eclipse.ui 4 4 2006-04-13 12:59:26.609
!MESSAGE Invalid Menu Extension (Path is invalid):
org.eclipse.ui.edit.text.delimiter.macOS9
!ENTRY org.eclipse.ui 4 4 2006-04-13 12:59:26.625
!MESSAGE Invalid Menu Extension (Path is invalid):
org.eclipse.ui.edit.text.delimiter.unix
!ENTRY org.eclipse.ui 4 4 2006-04-13 12:59:26.625
!MESSAGE Invalid Menu Extension (Path is invalid):
org.eclipse.ui.edit.text.delimiter.windows
!ENTRY org.eclipse.ui 4 4 2006-04-13 12:59:26.625
!MESSAGE Invalid Menu Extension (Path is invalid):
org.eclipse.ui.edit.text.openExternalFile
!ENTRY org.eclipse.ui 4 4 2006-04-13 12:59:26.625
!MESSAGE Invalid Menu Extension (Path is invalid):
org.eclipse.update.ui.updateMenu
!ENTRY org.eclipse.ui 4 4 2006-04-13 12:59:26.640
!MESSAGE Invalid Menu Extension (Path is invalid):
org.eclipse.update.ui.configManager
!ENTRY org.eclipse.ui 4 4 2006-04-13 12:59:26.640
!MESSAGE Invalid Menu Extension (Path is invalid):
org.eclipse.update.ui.newUpdates
!ENTRY org.eclipse.ui 4 4 2006-04-13 12:59:26.640
!MESSAGE Invalid Menu Extension (Path is invalid):
org.eclipse.ui.actions.showKeyAssistHandler
!ENTRY org.eclipse.ui 4 4 2006-04-13 12:59:26.656
!MESSAGE Invalid Menu Extension (Path is invalid):
org.eclipse.ui.edit.text.gotoLastEditPosition
!ENTRY org.eclipse.ui 4 4 2006-04-13 12:59:26.656
!MESSAGE Invalid Menu Extension (Path is invalid):
org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction
Invalid Menu Extension (Path is invalid):
org.eclipse.ui.edit.text.delimiter.windows
Invalid Menu Extension (Path is invalid):
org.eclipse.ui.edit.text.openExternalFile
Invalid Menu Extension (Path is invalid): org.eclipse.update.ui.updateMenu
Invalid Menu Extension (Path is invalid):
org.eclipse.update.ui.configManager
Invalid Menu Extension (Path is invalid): org.eclipse.update.ui.newUpdates
Invalid Menu Extension (Path is invalid):
org.eclipse.ui.actions.showKeyAssistHandler
Invalid Menu Extension (Path is invalid):
org.eclipse.ui.edit.text.gotoLastEditPosition
Invalid Menu Extension (Path is invalid):
org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction
rc=1 rc == Window.OK ? false rc == Window.CANCEL ? true
rc=0 rc == Window.OK ? true rc == Window.CANCEL ? false
Open context: extensionId=org.eclipse.higgins.context.profileshare.context
id=ps1
!ENTRY org.eclipse.higgins.context.profileshare 1 0 2006-04-13 13:08:39.453
!MESSAGE ProfileShare start
!ENTRY org.eclipse.higgins.context.profileshare 1 0 2006-04-13 13:08:39.906
!MESSAGE ProfileShare start
!ENTRY org.eclipse.higgins.context.model 1 0 2006-04-13 13:08:40.46
!MESSAGE Context: new IFacet name=demo1
!ENTRY org.eclipse.higgins.context.model 1 0 2006-04-13 13:08:40.218
!MESSAGE Context: new IFacet name=demo1

java.lang.NullPointerException
at
org.eclipse.higgins.context.store.ProjectFolder.associateRes ource(ProjectFolder.java:133)
at
org.eclipse.higgins.context.store.ProjectFolder.preSave(Proj ectFolder.java:105)
at
org.eclipse.higgins.context.store.ProjectFolder.writeFile(Pr ojectFolder.java:70)
at
org.eclipse.higgins.context.store.ContextStore.write0(Contex tStore.java:76)
at
org.eclipse.higgins.context.store.ContextStore.write(Context Store.java:48)
at
org.eclipse.higgins.context.store.WrappedContextStore.write( WrappedContextStore.java:39)
at
org.eclipse.higgins.context.model.persistence.model.impl.IPe rsistentContextImpl.sync(IPersistentContextImpl.java:244)
at
org.eclipse.higgins.internal.Higgins$SyncOperation.process(H iggins.java:260)
at
org.eclipse.higgins.internal.Higgins.walkContextLinkTree(Hig gins.java:540)
at org.eclipse.higgins.internal.Higgins.sync(Higgins.java:254)
at org.eclipse.higgins.app.actions.SaveAction.run(SaveAction.ja va:31)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:996 )
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:538)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2713)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at org.eclipse.higgins.app.RcpApplication.run(RcpApplication.ja va:24)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
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.core.launcher.Main.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
Re: Problem Running Demo App and Saving Context [message #2657 is a reply to message #2627] Sat, 15 April 2006 05:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: paul.socialphysics.org

Hi Simon,

Please:
1. delete org.eclipse.higgins.test
2. delete org.eclipse.higgins.rss
....try the Demo App then.

We need to fix the .psf (and the bug you found), but the above should get
the app to run in the short term.

-Paul


"Simon Chen" <jiaychen@gmail.com> wrote in message
news:e1m1to$jmc$1@utils.eclipse.org...
> Hi everyone, I'm trying to run the demo application, and received some
> problem with running Demo App 1 and 2 to share profiles. I can launch the
> ECF Server Application without problem. However, when I launch the demo
> apps, I could not see the facet information I saved in app1 from app2.
> I'm including below the console output that highlights the following
> errors:
>
> 1. classnotfoundexpection with
> org.eclipse.ecf.provider.rss.http.Client$Creator
> this happens when i initally launch the Demo App GUI
> 2. nullpointerexception at
> org.eclipse.higgins.context.store.ProjectFolder.associateRes ource(ProjectFolder.java:133)
> this happens when i try to save the changes made to a profile from the
> demo app GUI
>
> I'm using the following configuations and plugins in Eclipse:
> Eclipse-SDK-3.1-win32
> Eclipse Modeling Framework (EMF) 2.2.0v200604060931
> EMF Service Data Objects (SDO) 2.2.0v200604060931
> EODM SDK 1.0.0.v200603021130
> ECF 0.7.6
>
> When I first downloaded Higgins plugins from CVS using
> http://www.eclipse.org/higgins/org.eclipse.higgins.docs/higg ins-anonymous.psf, i
> had to download separately the org.eclipse.ecf.provider.rss and
> org.eclipsehiggins.context.rss to resolve compile problems in
> orgeclipse.higgins.test. i also had to modify "Higins Demo App 1.lanuch"
> file to include all workspace and enabled external plugins. Otherwise,
> the demo app GUI will not launch. These changes were not documented in
> the installation instructions, and I'm not sure if i missed something
> else.
> Console output is pasted below, please adivce. Thanks!
>
> Simon
>
> !SESSION 2006-04-13
> 12:59:22.515 -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.5.0_06
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
> Framework arguments: -application
> org.eclipse.higgins.app.RcpApplication -pdelaunch
> Command-line arguments: -application
> org.eclipse.higgins.app.RcpApplication -data runtime\workspace -dev
> file:C:/workspace3/.metadata/.plugins/org.eclipse.pde.core/H iggins Demo
> App 1/dev.properties -pdelaunch -consoleLog -os win32 -ws win32 -arch x86
> !ENTRY org.eclipse.higgins.internal 1 0 2006-04-13 12:59:23.375
> !MESSAGE Higgins starting
> Processing xid=org.eclipse.higgins.context.profileshare.context, member
> name=context
> Processing xid=org.eclipse.higgins.context.user.context, member
> name=context
> Processing xid=org.eclipse.higgins.context.example.context, member
> name=context
> Processing xid=org.eclipse.higgins.context.rss.context, member
> name=context
> !ENTRY org.eclipse.ecf 4 20 2006-04-13 12:59:24.500
> !MESSAGE
> !ExtPointError.ContainerNameCollisionPrefix!org.eclipse.ecf. provider.rss.Client!ExtPointError.ContainerNameCollisionSuff ix!org.eclipse.ecf.containerFactory
> !ENTRY org.eclipse.core.runtime 4 1 2006-04-13 12:59:24.546
> !MESSAGE Plug-in org.eclipse.ecf.provider.rss was unable to load class
> org.eclipse.ecf.provider.rss.http.Client$Creator.
> !STACK 0
>
> java.lang.ClassNotFoundException:
> org.eclipse.ecf.provider.rss.http.Client$Creator
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:405)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:350)
> at
> org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(AbstractClassLoader.java:78)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:275)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1248)
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:152)
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:142)
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:129)
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 48)
> at
> org.eclipse.ecf.internal.core.ECFPlugin.addCommExtensions(EC FPlugin.java:536)
> at
> org.eclipse.ecf.internal.core.ECFPlugin.setupCommExtensionPo int(ECFPlugin.java:595)
> at org.eclipse.ecf.internal.core.ECFPlugin.start(ECFPlugin.java :645)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:994)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:988)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:969)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:313)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:264)
> at
> org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLoca lClass(EclipseClassLoader.java:116)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:337)
> at
> org.eclipse.osgi.framework.internal.core.SingleSourcePackage .loadClass(SingleSourcePackage.java:37)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:386)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:350)
> at
> org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(AbstractClassLoader.java:78)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(Unknown Source)
> at
> org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.d efineClass(DefaultClassLoader.java:370)
> at
> org.eclipse.core.runtime.adaptor.EclipseClassLoader.defineCl ass(EclipseClassLoader.java:233)
> at
> org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.f indClassImpl(DefaultClassLoader.java:343)
> at
> org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.f indClass(DefaultClassLoader.java:235)
> at
> org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. findLocalClass(AbstractClassLoader.java:183)
> at
> org.eclipse.core.runtime.adaptor.EclipseClassLoader.basicFin dLocalClass(EclipseClassLoader.java:141)
> at
> org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLoca lClass(EclipseClassLoader.java:122)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:337)
> at
> org.eclipse.osgi.framework.internal.core.SingleSourcePackage .loadClass(SingleSourcePackage.java:37)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:386)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:350)
> at
> org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(AbstractClassLoader.java:78)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(Unknown Source)
> at
> org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.d efineClass(DefaultClassLoader.java:370)
> at
> org.eclipse.core.runtime.adaptor.EclipseClassLoader.defineCl ass(EclipseClassLoader.java:233)
> at
> org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.f indClassImpl(DefaultClassLoader.java:343)
> at
> org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.f indClass(DefaultClassLoader.java:235)
> at
> org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. findLocalClass(AbstractClassLoader.java:183)
> at
> org.eclipse.core.runtime.adaptor.EclipseClassLoader.basicFin dLocalClass(EclipseClassLoader.java:141)
> at
> org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLoca lClass(EclipseClassLoader.java:82)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:337)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:389)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:350)
> at
> org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(AbstractClassLoader.java:78)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Unknown Source)
> at
> org.eclipse.higgins.context.profileshare.plugin.ProfileShare Plugin.start(ProfileSharePlugin.java:82)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:994)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:988)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:969)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:313)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:264)
> at
> org.eclipse.higgins.internal.ProcessExtensions.demandLoad(Pr ocessExtensions.java:68)
> at
> org.eclipse.higgins.internal.ContextExtensionRegistry.demand LoadExtensions(ContextExtensionRegistry.java:80)
> at org.eclipse.higgins.internal.Higgins.open(Higgins.java:99)
> at
> org.eclipse.higgins.app.RcpWorkbenchAdvisor.initPlatform(Rcp WorkbenchAdvisor.java:174)
> at
> org.eclipse.higgins.app.RcpWorkbenchAdvisor.preWindowOpen(Rc pWorkbenchAdvisor.java:148)
> at
> org.eclipse.ui.internal.application.CompatibilityWorkbenchWi ndowAdvisor.preWindowOpen(CompatibilityWorkbenchWindowAdviso r.java:45)
> at
> org.eclipse.ui.internal.WorkbenchWindow.fireWindowOpening(Wo rkbenchWindow.java:1038)
> at
> org.eclipse.ui.internal.WorkbenchWindow.<init>(WorkbenchWindow.java:304)
> at
> org.eclipse.ui.internal.Workbench.newWorkbenchWindow(Workben ch.java:1173)
> at
> org.eclipse.ui.internal.Workbench.busyOpenWorkbenchWindow(Wo rkbench.java:662)
> at
> org.eclipse.ui.internal.Workbench.doOpenFirstTimeWindow(Work bench.java:1282)
> at
> org.eclipse.ui.internal.Workbench.openFirstTimeWindow(Workbe nch.java:1223)
> at
> org.eclipse.ui.internal.WorkbenchConfigurer.openFirstTimeWin dow(WorkbenchConfigurer.java:190)
> at
> org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:706)
> at org.eclipse.ui.internal.Workbench.init(Workbench.java:1034)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1636)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
> at org.eclipse.higgins.app.RcpApplication.run(RcpApplication.ja va:24)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
> 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.core.launcher.Main.invokeFramework(Main.java:334 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
> at org.eclipse.core.launcher.Main.run(Main.java:973)
> at org.eclipse.core.launcher.Main.main(Main.java:948)
> Processing xid=org.eclipse.higgins.context.store.contextStore, member
> name=contextStore
> Open context: extensionId=org.eclipse.higgins.context.user.context
> id=Other Person
> Open context: extensionId=org.eclipse.higgins.context.user.context
> id=Simon
> !ENTRY org.eclipse.ui 4 4 2006-04-13 12:59:26.609Invalid Menu Extension
> (Path is invalid): converstLineDelimitersTo
> Invalid Menu Extension (Path is invalid):
> org.eclipse.ui.edit.text.delimiter.macOS9
> Invalid Menu Extension (Path is invalid):
> org.eclipse.ui.edit.text.delimiter.unix
> !MESSAGE Invalid Menu Extension (Path is invalid):
> converstLineDelimitersTo
> !ENTRY org.eclipse.ui 4 4 2006-04-13 12:59:26.609
> !MESSAGE Invalid Menu Extension (Path is invalid):
> org.eclipse.ui.edit.text.delimiter.macOS9
> !ENTRY org.eclipse.ui 4 4 2006-04-13 12:59:26.625
> !MESSAGE Invalid Menu Extension (Path is invalid):
> org.eclipse.ui.edit.text.delimiter.unix
> !ENTRY org.eclipse.ui 4 4 2006-04-13 12:59:26.625
> !MESSAGE Invalid Menu Extension (Path is invalid):
> org.eclipse.ui.edit.text.delimiter.windows
> !ENTRY org.eclipse.ui 4 4 2006-04-13 12:59:26.625
> !MESSAGE Invalid Menu Extension (Path is invalid):
> org.eclipse.ui.edit.text.openExternalFile
> !ENTRY org.eclipse.ui 4 4 2006-04-13 12:59:26.625
> !MESSAGE Invalid Menu Extension (Path is invalid):
> org.eclipse.update.ui.updateMenu
> !ENTRY org.eclipse.ui 4 4 2006-04-13 12:59:26.640
> !MESSAGE Invalid Menu Extension (Path is invalid):
> org.eclipse.update.ui.configManager
> !ENTRY org.eclipse.ui 4 4 2006-04-13 12:59:26.640
> !MESSAGE Invalid Menu Extension (Path is invalid):
> org.eclipse.update.ui.newUpdates
> !ENTRY org.eclipse.ui 4 4 2006-04-13 12:59:26.640
> !MESSAGE Invalid Menu Extension (Path is invalid):
> org.eclipse.ui.actions.showKeyAssistHandler
> !ENTRY org.eclipse.ui 4 4 2006-04-13 12:59:26.656
> !MESSAGE Invalid Menu Extension (Path is invalid):
> org.eclipse.ui.edit.text.gotoLastEditPosition
> !ENTRY org.eclipse.ui 4 4 2006-04-13 12:59:26.656
> !MESSAGE Invalid Menu Extension (Path is invalid):
> org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction
> Invalid Menu Extension (Path is invalid):
> org.eclipse.ui.edit.text.delimiter.windows
> Invalid Menu Extension (Path is invalid):
> org.eclipse.ui.edit.text.openExternalFile
> Invalid Menu Extension (Path is invalid): org.eclipse.update.ui.updateMenu
> Invalid Menu Extension (Path is invalid):
> org.eclipse.update.ui.configManager
> Invalid Menu Extension (Path is invalid): org.eclipse.update.ui.newUpdates
> Invalid Menu Extension (Path is invalid):
> org.eclipse.ui.actions.showKeyAssistHandler
> Invalid Menu Extension (Path is invalid):
> org.eclipse.ui.edit.text.gotoLastEditPosition
> Invalid Menu Extension (Path is invalid):
> org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction
> rc=1 rc == Window.OK ? false rc == Window.CANCEL ? true
> rc=0 rc == Window.OK ? true rc == Window.CANCEL ? false
> Open context: extensionId=org.eclipse.higgins.context.profileshare.context
> id=ps1
> !ENTRY org.eclipse.higgins.context.profileshare 1 0 2006-04-13
> 13:08:39.453
> !MESSAGE ProfileShare start
> !ENTRY org.eclipse.higgins.context.profileshare 1 0 2006-04-13
> 13:08:39.906
> !MESSAGE ProfileShare start
> !ENTRY org.eclipse.higgins.context.model 1 0 2006-04-13 13:08:40.46
> !MESSAGE Context: new IFacet name=demo1
> !ENTRY org.eclipse.higgins.context.model 1 0 2006-04-13 13:08:40.218
> !MESSAGE Context: new IFacet name=demo1
>
> java.lang.NullPointerException
> at
> org.eclipse.higgins.context.store.ProjectFolder.associateRes ource(ProjectFolder.java:133)
> at
> org.eclipse.higgins.context.store.ProjectFolder.preSave(Proj ectFolder.java:105)
> at
> org.eclipse.higgins.context.store.ProjectFolder.writeFile(Pr ojectFolder.java:70)
> at
> org.eclipse.higgins.context.store.ContextStore.write0(Contex tStore.java:76)
> at
> org.eclipse.higgins.context.store.ContextStore.write(Context Store.java:48)
> at
> org.eclipse.higgins.context.store.WrappedContextStore.write( WrappedContextStore.java:39)
> at
> org.eclipse.higgins.context.model.persistence.model.impl.IPe rsistentContextImpl.sync(IPersistentContextImpl.java:244)
> at
> org.eclipse.higgins.internal.Higgins$SyncOperation.process(H iggins.java:260)
> at
> org.eclipse.higgins.internal.Higgins.walkContextLinkTree(Hig gins.java:540)
> at org.eclipse.higgins.internal.Higgins.sync(Higgins.java:254)
> at org.eclipse.higgins.app.actions.SaveAction.run(SaveAction.ja va:31)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:996 )
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:538)
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
> at
> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3080)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2713)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
> at org.eclipse.higgins.app.RcpApplication.run(RcpApplication.ja va:24)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
> 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.core.launcher.Main.invokeFramework(Main.java:334 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
> at org.eclipse.core.launcher.Main.run(Main.java:973)
> at org.eclipse.core.launcher.Main.main(Main.java:948)
>
Re: Problem Running Demo App and Saving Context [message #2686 is a reply to message #2657] Sat, 15 April 2006 16:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jiaychen.gmail.com

Hi Paul,
thanks for the response. I still cannot save my context information, and I
think this is because I'm trying to run the demo app under Windows.

Bascially, in org.eclipse.higgins.context.store.ProjectFolder.java, the
following function always returns null:

private static Resource associateResource(Object root, IFile ifile,
ResourceSet rs) throws IOException {
if (root == null)
throw new IllegalArgumentException();
if (debug)
System.out.println("[debug]AssociateResource "
+ ifile.getFullPath().toString());
// Get the URI of the model file.
URI fileURI = URI.createPlatformResourceURI(ifile.getFullPath()
.toString());
// Create a resource for this file.
Resource resource = rs.createResource(fileURI);
// Add the initial model object to the contents.
resource.getContents().add(root);
return resource;
}

The line "Resource resource=rs.createResource(fileURI);" always returns
null, and fileURI has the value, for example, "/simon/Simon.context.xml". I
haven't tried on Linux, but I assume this fileURI works under Linux since
it's a valid file path. However, under Windows, how do I resolve the
fileURI to the proper format such as "C:\\simon\\Simon\\context.xml"?
What's the proper way of doing this conversion?

Thanks,
Simon
Re: Problem Running Demo App and Saving Context [message #4044 is a reply to message #2686] Sun, 16 April 2006 06:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jiaychen.gmail.com

Hey Paul,
On a second thought, I was looking through the javadoc of
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.createRe source(URI), and
the description states that this function "delegates to the resource factory
registry to determine the correct factory, and then uses the factory to
create the resource and add it to the contents. If there is no registered
factory, null will be returned; when running within Eclipse, a default XMI
factory will be registered, and this will never return null"

In your function ProjectFolder.preSave(), when the resource set is created
using "new ResourceSetImpl(), its resourceFactoryRegistry is null. I'm not
sure when would Eclipse add the default XMI factory, so I made the following
modification to the preSave() function:
...
rs = new ResourceSetImpl();
rs.getResourceFactoryRegistry().getExtensionToFactoryMap().p ut(
"xml",new XMLResourceFactoryImpl());
...

I don't get a null from "resource=rs.createResource(fileURI);" in the
associateResource() function as before, but I still cannot resolve the uri
to a valid window's filepath. The value of "fileURI" in my case is
"platform:/resource/simon/Simon/context.xml".

Please help.
Regards,
Sion



"Simon Chen" <jiaychen@gmail.com> wrote in message
news:e1r87b$l5f$1@utils.eclipse.org...
> Hi Paul,
> thanks for the response. I still cannot save my context information, and
> I think this is because I'm trying to run the demo app under Windows.
>
> Bascially, in org.eclipse.higgins.context.store.ProjectFolder.java, the
> following function always returns null:
>
> private static Resource associateResource(Object root, IFile ifile,
> ResourceSet rs) throws IOException {
> if (root == null)
> throw new IllegalArgumentException();
> if (debug)
> System.out.println("[debug]AssociateResource "
> + ifile.getFullPath().toString());
> // Get the URI of the model file.
> URI fileURI = URI.createPlatformResourceURI(ifile.getFullPath()
> .toString());
> // Create a resource for this file.
> Resource resource = rs.createResource(fileURI);
> // Add the initial model object to the contents.
> resource.getContents().add(root);
> return resource;
> }
>
> The line "Resource resource=rs.createResource(fileURI);" always returns
> null, and fileURI has the value, for example, "/simon/Simon.context.xml".
> I haven't tried on Linux, but I assume this fileURI works under Linux
> since it's a valid file path. However, under Windows, how do I resolve
> the fileURI to the proper format such as "C:\\simon\\Simon\\context.xml"?
> What's the proper way of doing this conversion?
>
> Thanks,
> Simon
>
Re: Problem Running Demo App and Saving Context [message #4111 is a reply to message #4044] Mon, 17 April 2006 04:32 Go to previous message
Eclipse UserFriend
Originally posted by: jiaychen.gmail.com

Hey Paul,
I think I fixed my runtime errors with the following modifications to
org.eclipse.higgins.context.store.ProjectFolder.java, but I don't know if
they have side-effects since I'm still pretty new to EMF and Eclipe RCP.

in preSave(), added line:
rs.getResourceFactoryRegistry().getExtensionToFactoryMap().p ut(
"xml",new XMLResourceFactoryImpl());

in associateResource(), changed:
URI fileURI =
URI.createPlatformResourceURI(ifile.getFullPath().toString() );
to:
URI fileURI = URI.createFileURI(ifile.getFullPath().toString());

Also, I had to include a few more required plugins in "Higgins Demo App
1.launch" and "Higgins Demo App 2.launch" to get the demos runing.

Let me know what you think about the above changes. I think you didn't use
createFileURI() for a reason.

Regards,
Simon
Re: Problem Running Demo App and Saving Context [message #561705 is a reply to message #2627] Sat, 15 April 2006 05:10 Go to previous message
Paul Trevithick is currently offline Paul TrevithickFriend
Messages: 17
Registered: July 2009
Junior Member
Hi Simon,

Please:
1. delete org.eclipse.higgins.test
2. delete org.eclipse.higgins.rss
....try the Demo App then.

We need to fix the .psf (and the bug you found), but the above should get
the app to run in the short term.

-Paul


"Simon Chen" <jiaychen@gmail.com> wrote in message
news:e1m1to$jmc$1@utils.eclipse.org...
> Hi everyone, I'm trying to run the demo application, and received some
> problem with running Demo App 1 and 2 to share profiles. I can launch the
> ECF Server Application without problem. However, when I launch the demo
> apps, I could not see the facet information I saved in app1 from app2.
> I'm including below the console output that highlights the following
> errors:
>
> 1. classnotfoundexpection with
> org.eclipse.ecf.provider.rss.http.Client$Creator
> this happens when i initally launch the Demo App GUI
> 2. nullpointerexception at
> org.eclipse.higgins.context.store.ProjectFolder.associateRes ource(ProjectFolder.java:133)
> this happens when i try to save the changes made to a profile from the
> demo app GUI
>
> I'm using the following configuations and plugins in Eclipse:
> Eclipse-SDK-3.1-win32
> Eclipse Modeling Framework (EMF) 2.2.0v200604060931
> EMF Service Data Objects (SDO) 2.2.0v200604060931
> EODM SDK 1.0.0.v200603021130
> ECF 0.7.6
>
> When I first downloaded Higgins plugins from CVS using
> http://www.eclipse.org/higgins/org.eclipse.higgins.docs/higg ins-anonymous.psf, i
> had to download separately the org.eclipse.ecf.provider.rss and
> org.eclipsehiggins.context.rss to resolve compile problems in
> orgeclipse.higgins.test. i also had to modify "Higins Demo App 1.lanuch"
> file to include all workspace and enabled external plugins. Otherwise,
> the demo app GUI will not launch. These changes were not documented in
> the installation instructions, and I'm not sure if i missed something
> else.
> Console output is pasted below, please adivce. Thanks!
>
> Simon
>
> !SESSION 2006-04-13
> 12:59:22.515 -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.5.0_06
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
> Framework arguments: -application
> org.eclipse.higgins.app.RcpApplication -pdelaunch
> Command-line arguments: -application
> org.eclipse.higgins.app.RcpApplication -data runtime\workspace -dev
> file:C:/workspace3/.metadata/.plugins/org.eclipse.pde.core/H iggins Demo
> App 1/dev.properties -pdelaunch -consoleLog -os win32 -ws win32 -arch x86
> !ENTRY org.eclipse.higgins.internal 1 0 2006-04-13 12:59:23.375
> !MESSAGE Higgins starting
> Processing xid=org.eclipse.higgins.context.profileshare.context, member
> name=context
> Processing xid=org.eclipse.higgins.context.user.context, member
> name=context
> Processing xid=org.eclipse.higgins.context.example.context, member
> name=context
> Processing xid=org.eclipse.higgins.context.rss.context, member
> name=context
> !ENTRY org.eclipse.ecf 4 20 2006-04-13 12:59:24.500
> !MESSAGE
> !ExtPointError.ContainerNameCollisionPrefix!org.eclipse.ecf. provider.rss.Client!ExtPointError.ContainerNameCollisionSuff ix!org.eclipse.ecf.containerFactory
> !ENTRY org.eclipse.core.runtime 4 1 2006-04-13 12:59:24.546
> !MESSAGE Plug-in org.eclipse.ecf.provider.rss was unable to load class
> org.eclipse.ecf.provider.rss.http.Client$Creator.
> !STACK 0
>
> java.lang.ClassNotFoundException:
> org.eclipse.ecf.provider.rss.http.Client$Creator
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:405)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:350)
> at
> org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(AbstractClassLoader.java:78)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:275)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1248)
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:152)
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:142)
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:129)
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 48)
> at
> org.eclipse.ecf.internal.core.ECFPlugin.addCommExtensions(EC FPlugin.java:536)
> at
> org.eclipse.ecf.internal.core.ECFPlugin.setupCommExtensionPo int(ECFPlugin.java:595)
> at org.eclipse.ecf.internal.core.ECFPlugin.start(ECFPlugin.java :645)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:994)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:988)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:969)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:313)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:264)
> at
> org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLoca lClass(EclipseClassLoader.java:116)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:337)
> at
> org.eclipse.osgi.framework.internal.core.SingleSourcePackage .loadClass(SingleSourcePackage.java:37)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:386)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:350)
> at
> org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(AbstractClassLoader.java:78)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(Unknown Source)
> at
> org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.d efineClass(DefaultClassLoader.java:370)
> at
> org.eclipse.core.runtime.adaptor.EclipseClassLoader.defineCl ass(EclipseClassLoader.java:233)
> at
> org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.f indClassImpl(DefaultClassLoader.java:343)
> at
> org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.f indClass(DefaultClassLoader.java:235)
> at
> org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. findLocalClass(AbstractClassLoader.java:183)
> at
> org.eclipse.core.runtime.adaptor.EclipseClassLoader.basicFin dLocalClass(EclipseClassLoader.java:141)
> at
> org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLoca lClass(EclipseClassLoader.java:122)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:337)
> at
> org.eclipse.osgi.framework.internal.core.SingleSourcePackage .loadClass(SingleSourcePackage.java:37)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:386)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:350)
> at
> org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(AbstractClassLoader.java:78)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(Unknown Source)
> at
> org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.d efineClass(DefaultClassLoader.java:370)
> at
> org.eclipse.core.runtime.adaptor.EclipseClassLoader.defineCl ass(EclipseClassLoader.java:233)
> at
> org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.f indClassImpl(DefaultClassLoader.java:343)
> at
> org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.f indClass(DefaultClassLoader.java:235)
> at
> org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. findLocalClass(AbstractClassLoader.java:183)
> at
> org.eclipse.core.runtime.adaptor.EclipseClassLoader.basicFin dLocalClass(EclipseClassLoader.java:141)
> at
> org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLoca lClass(EclipseClassLoader.java:82)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:337)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:389)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:350)
> at
> org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(AbstractClassLoader.java:78)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Unknown Source)
> at
> org.eclipse.higgins.context.profileshare.plugin.ProfileShare Plugin.start(ProfileSharePlugin.java:82)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:994)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:988)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:969)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:313)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:264)
> at
> org.eclipse.higgins.internal.ProcessExtensions.demandLoad(Pr ocessExtensions.java:68)
> at
> org.eclipse.higgins.internal.ContextExtensionRegistry.demand LoadExtensions(ContextExtensionRegistry.java:80)
> at org.eclipse.higgins.internal.Higgins.open(Higgins.java:99)
> at
> org.eclipse.higgins.app.RcpWorkbenchAdvisor.initPlatform(Rcp WorkbenchAdvisor.java:174)
> at
> org.eclipse.higgins.app.RcpWorkbenchAdvisor.preWindowOpen(Rc pWorkbenchAdvisor.java:148)
> at
> org.eclipse.ui.internal.application.CompatibilityWorkbenchWi ndowAdvisor.preWindowOpen(CompatibilityWorkbenchWindowAdviso r.java:45)
> at
> org.eclipse.ui.internal.WorkbenchWindow.fireWindowOpening(Wo rkbenchWindow.java:1038)
> at
> org.eclipse.ui.internal.WorkbenchWindow.<init>(WorkbenchWindow.java:304)
> at
> org.eclipse.ui.internal.Workbench.newWorkbenchWindow(Workben ch.java:1173)
> at
> org.eclipse.ui.internal.Workbench.busyOpenWorkbenchWindow(Wo rkbench.java:662)
> at
> org.eclipse.ui.internal.Workbench.doOpenFirstTimeWindow(Work bench.java:1282)
> at
> org.eclipse.ui.internal.Workbench.openFirstTimeWindow(Workbe nch.java:1223)
> at
> org.eclipse.ui.internal.WorkbenchConfigurer.openFirstTimeWin dow(WorkbenchConfigurer.java:190)
> at
> org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:706)
> at org.eclipse.ui.internal.Workbench.init(Workbench.java:1034)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1636)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
> at org.eclipse.higgins.app.RcpApplication.run(RcpApplication.ja va:24)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
> 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.core.launcher.Main.invokeFramework(Main.java:334 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
> at org.eclipse.core.launcher.Main.run(Main.java:973)
> at org.eclipse.core.launcher.Main.main(Main.java:948)
> Processing xid=org.eclipse.higgins.context.store.contextStore, member
> name=contextStore
> Open context: extensionId=org.eclipse.higgins.context.user.context
> id=Other Person
> Open context: extensionId=org.eclipse.higgins.context.user.context
> id=Simon
> !ENTRY org.eclipse.ui 4 4 2006-04-13 12:59:26.609Invalid Menu Extension
> (Path is invalid): converstLineDelimitersTo
> Invalid Menu Extension (Path is invalid):
> org.eclipse.ui.edit.text.delimiter.macOS9
> Invalid Menu Extension (Path is invalid):
> org.eclipse.ui.edit.text.delimiter.unix
> !MESSAGE Invalid Menu Extension (Path is invalid):
> converstLineDelimitersTo
> !ENTRY org.eclipse.ui 4 4 2006-04-13 12:59:26.609
> !MESSAGE Invalid Menu Extension (Path is invalid):
> org.eclipse.ui.edit.text.delimiter.macOS9
> !ENTRY org.eclipse.ui 4 4 2006-04-13 12:59:26.625
> !MESSAGE Invalid Menu Extension (Path is invalid):
> org.eclipse.ui.edit.text.delimiter.unix
> !ENTRY org.eclipse.ui 4 4 2006-04-13 12:59:26.625
> !MESSAGE Invalid Menu Extension (Path is invalid):
> org.eclipse.ui.edit.text.delimiter.windows
> !ENTRY org.eclipse.ui 4 4 2006-04-13 12:59:26.625
> !MESSAGE Invalid Menu Extension (Path is invalid):
> org.eclipse.ui.edit.text.openExternalFile
> !ENTRY org.eclipse.ui 4 4 2006-04-13 12:59:26.625
> !MESSAGE Invalid Menu Extension (Path is invalid):
> org.eclipse.update.ui.updateMenu
> !ENTRY org.eclipse.ui 4 4 2006-04-13 12:59:26.640
> !MESSAGE Invalid Menu Extension (Path is invalid):
> org.eclipse.update.ui.configManager
> !ENTRY org.eclipse.ui 4 4 2006-04-13 12:59:26.640
> !MESSAGE Invalid Menu Extension (Path is invalid):
> org.eclipse.update.ui.newUpdates
> !ENTRY org.eclipse.ui 4 4 2006-04-13 12:59:26.640
> !MESSAGE Invalid Menu Extension (Path is invalid):
> org.eclipse.ui.actions.showKeyAssistHandler
> !ENTRY org.eclipse.ui 4 4 2006-04-13 12:59:26.656
> !MESSAGE Invalid Menu Extension (Path is invalid):
> org.eclipse.ui.edit.text.gotoLastEditPosition
> !ENTRY org.eclipse.ui 4 4 2006-04-13 12:59:26.656
> !MESSAGE Invalid Menu Extension (Path is invalid):
> org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction
> Invalid Menu Extension (Path is invalid):
> org.eclipse.ui.edit.text.delimiter.windows
> Invalid Menu Extension (Path is invalid):
> org.eclipse.ui.edit.text.openExternalFile
> Invalid Menu Extension (Path is invalid): org.eclipse.update.ui.updateMenu
> Invalid Menu Extension (Path is invalid):
> org.eclipse.update.ui.configManager
> Invalid Menu Extension (Path is invalid): org.eclipse.update.ui.newUpdates
> Invalid Menu Extension (Path is invalid):
> org.eclipse.ui.actions.showKeyAssistHandler
> Invalid Menu Extension (Path is invalid):
> org.eclipse.ui.edit.text.gotoLastEditPosition
> Invalid Menu Extension (Path is invalid):
> org.eclipse.ui.cheatsheets.actions.CheatSheetHelpMenuAction
> rc=1 rc == Window.OK ? false rc == Window.CANCEL ? true
> rc=0 rc == Window.OK ? true rc == Window.CANCEL ? false
> Open context: extensionId=org.eclipse.higgins.context.profileshare.context
> id=ps1
> !ENTRY org.eclipse.higgins.context.profileshare 1 0 2006-04-13
> 13:08:39.453
> !MESSAGE ProfileShare start
> !ENTRY org.eclipse.higgins.context.profileshare 1 0 2006-04-13
> 13:08:39.906
> !MESSAGE ProfileShare start
> !ENTRY org.eclipse.higgins.context.model 1 0 2006-04-13 13:08:40.46
> !MESSAGE Context: new IFacet name=demo1
> !ENTRY org.eclipse.higgins.context.model 1 0 2006-04-13 13:08:40.218
> !MESSAGE Context: new IFacet name=demo1
>
> java.lang.NullPointerException
> at
> org.eclipse.higgins.context.store.ProjectFolder.associateRes ource(ProjectFolder.java:133)
> at
> org.eclipse.higgins.context.store.ProjectFolder.preSave(Proj ectFolder.java:105)
> at
> org.eclipse.higgins.context.store.ProjectFolder.writeFile(Pr ojectFolder.java:70)
> at
> org.eclipse.higgins.context.store.ContextStore.write0(Contex tStore.java:76)
> at
> org.eclipse.higgins.context.store.ContextStore.write(Context Store.java:48)
> at
> org.eclipse.higgins.context.store.WrappedContextStore.write( WrappedContextStore.java:39)
> at
> org.eclipse.higgins.context.model.persistence.model.impl.IPe rsistentContextImpl.sync(IPersistentContextImpl.java:244)
> at
> org.eclipse.higgins.internal.Higgins$SyncOperation.process(H iggins.java:260)
> at
> org.eclipse.higgins.internal.Higgins.walkContextLinkTree(Hig gins.java:540)
> at org.eclipse.higgins.internal.Higgins.sync(Higgins.java:254)
> at org.eclipse.higgins.app.actions.SaveAction.run(SaveAction.ja va:31)
> at org.eclipse.jface.action.Action.runWithEvent(Action.java:996 )
> at
> org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:538)
> at
> org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:488)
> at
> org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:400)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3080)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2713)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
> at org.eclipse.higgins.app.RcpApplication.run(RcpApplication.ja va:24)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
> 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.core.launcher.Main.invokeFramework(Main.java:334 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
> at org.eclipse.core.launcher.Main.run(Main.java:973)
> at org.eclipse.core.launcher.Main.main(Main.java:948)
>
Re: Problem Running Demo App and Saving Context [message #561725 is a reply to message #2657] Sat, 15 April 2006 16:49 Go to previous message
Simon Chen is currently offline Simon ChenFriend
Messages: 4
Registered: July 2009
Junior Member
Hi Paul,
thanks for the response. I still cannot save my context information, and I
think this is because I'm trying to run the demo app under Windows.

Bascially, in org.eclipse.higgins.context.store.ProjectFolder.java, the
following function always returns null:

private static Resource associateResource(Object root, IFile ifile,
ResourceSet rs) throws IOException {
if (root == null)
throw new IllegalArgumentException();
if (debug)
System.out.println("[debug]AssociateResource "
+ ifile.getFullPath().toString());
// Get the URI of the model file.
URI fileURI = URI.createPlatformResourceURI(ifile.getFullPath()
.toString());
// Create a resource for this file.
Resource resource = rs.createResource(fileURI);
// Add the initial model object to the contents.
resource.getContents().add(root);
return resource;
}

The line "Resource resource=rs.createResource(fileURI);" always returns
null, and fileURI has the value, for example, "/simon/Simon.context.xml". I
haven't tried on Linux, but I assume this fileURI works under Linux since
it's a valid file path. However, under Windows, how do I resolve the
fileURI to the proper format such as "C:\\simon\\Simon\\context.xml"?
What's the proper way of doing this conversion?

Thanks,
Simon
Re: Problem Running Demo App and Saving Context [message #561744 is a reply to message #2686] Sun, 16 April 2006 06:11 Go to previous message
Simon Chen is currently offline Simon ChenFriend
Messages: 4
Registered: July 2009
Junior Member
Hey Paul,
On a second thought, I was looking through the javadoc of
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.createRe source(URI), and
the description states that this function "delegates to the resource factory
registry to determine the correct factory, and then uses the factory to
create the resource and add it to the contents. If there is no registered
factory, null will be returned; when running within Eclipse, a default XMI
factory will be registered, and this will never return null"

In your function ProjectFolder.preSave(), when the resource set is created
using "new ResourceSetImpl(), its resourceFactoryRegistry is null. I'm not
sure when would Eclipse add the default XMI factory, so I made the following
modification to the preSave() function:
...
rs = new ResourceSetImpl();
rs.getResourceFactoryRegistry().getExtensionToFactoryMap().p ut(
"xml",new XMLResourceFactoryImpl());
...

I don't get a null from "resource=rs.createResource(fileURI);" in the
associateResource() function as before, but I still cannot resolve the uri
to a valid window's filepath. The value of "fileURI" in my case is
"platform:/resource/simon/Simon/context.xml".

Please help.
Regards,
Sion



"Simon Chen" <jiaychen@gmail.com> wrote in message
news:e1r87b$l5f$1@utils.eclipse.org...
> Hi Paul,
> thanks for the response. I still cannot save my context information, and
> I think this is because I'm trying to run the demo app under Windows.
>
> Bascially, in org.eclipse.higgins.context.store.ProjectFolder.java, the
> following function always returns null:
>
> private static Resource associateResource(Object root, IFile ifile,
> ResourceSet rs) throws IOException {
> if (root == null)
> throw new IllegalArgumentException();
> if (debug)
> System.out.println("[debug]AssociateResource "
> + ifile.getFullPath().toString());
> // Get the URI of the model file.
> URI fileURI = URI.createPlatformResourceURI(ifile.getFullPath()
> .toString());
> // Create a resource for this file.
> Resource resource = rs.createResource(fileURI);
> // Add the initial model object to the contents.
> resource.getContents().add(root);
> return resource;
> }
>
> The line "Resource resource=rs.createResource(fileURI);" always returns
> null, and fileURI has the value, for example, "/simon/Simon.context.xml".
> I haven't tried on Linux, but I assume this fileURI works under Linux
> since it's a valid file path. However, under Windows, how do I resolve
> the fileURI to the proper format such as "C:\\simon\\Simon\\context.xml"?
> What's the proper way of doing this conversion?
>
> Thanks,
> Simon
>
Re: Problem Running Demo App and Saving Context [message #561763 is a reply to message #4044] Mon, 17 April 2006 04:32 Go to previous message
Simon Chen is currently offline Simon ChenFriend
Messages: 4
Registered: July 2009
Junior Member
Hey Paul,
I think I fixed my runtime errors with the following modifications to
org.eclipse.higgins.context.store.ProjectFolder.java, but I don't know if
they have side-effects since I'm still pretty new to EMF and Eclipe RCP.

in preSave(), added line:
rs.getResourceFactoryRegistry().getExtensionToFactoryMap().p ut(
"xml",new XMLResourceFactoryImpl());

in associateResource(), changed:
URI fileURI =
URI.createPlatformResourceURI(ifile.getFullPath().toString() );
to:
URI fileURI = URI.createFileURI(ifile.getFullPath().toString());

Also, I had to include a few more required plugins in "Higgins Demo App
1.launch" and "Higgins Demo App 2.launch" to get the demos runing.

Let me know what you think about the above changes. I think you didn't use
createFileURI() for a reason.

Regards,
Simon
Previous Topic:Problem Running Demo App and Saving Context
Next Topic:error while running higgins product
Goto Forum:
  


Current Time: Tue Apr 23 10:37:41 GMT 2024

Powered by FUDForum. Page generated in 0.04298 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top