I had a similar problem where I was using cairngorm without including the swc and I got an error from IServiceLocator because it couldn't find the mx.data.DataService class. So I imported the cairngorm swc into the library path and everything was kosher. I'm still using flex 2.0. Is it suppose to be that way? -Dustin
--- In [email protected], "Oliver Tupman" <[EMAIL PROTECTED]> wrote: > > Okay, I've had a bit more of a play and I have appeared to narrow it down on > this: I can't seem to be able to use the Cairngorm from a Flex Library > project. It doesn't work if it's included as an SWC or as a project link. > > If anyone from Adobe's listening, the exception that FB bombs out on is > this: > > !ENTRY org.eclipse.ui 4 4 2007-02-14 17:19:07.937 > !MESSAGE Unhandled event loop exception > > !ENTRY org.eclipse.ui 4 0 2007-02-14 17:19:07.953 > !MESSAGE java.lang.StackOverflowError > !STACK 0 > java.lang.StackOverflowError > at > org.eclipse.core.internal.filesystem.local.LocalFileNatives.internalGetF\ ileInfoW(Native > Method) > at > org.eclipse.core.internal.filesystem.local.LocalFileNatives.fetchFileInf\ o( > LocalFileNatives.java:60) > at org.eclipse.core.internal.filesystem.local.LocalFile.fetchInfo( > LocalFile.java:119) > at org.eclipse.core.filesystem.provider.FileStore.fetchInfo( > FileStore.java:253) > at > org.eclipse.core.internal.localstore.FileSystemResourceManager.fastIsSyn\ chronized > (FileSystemResourceManager.java:295) > at org.eclipse.core.internal.resources.File.refreshLocal(File.java:333) > at > com.adobe.flexbuilder.project.persist.PersistableSettings.readPersistenc\ eFile(Unknown > Source) > at > com.adobe.flexbuilder.project.actionscript.internal.ActionScriptProjectS\ ettings.<init>(Unknown > Source) > at com.adobe.flexbuilder.project.internal.FlexLibraryProjectSettings.<init>\ (Unknown > Source) > at > com.adobe.flexbuilder.project.internal.FlexLibraryProject.createDescript\ ion(Unknown > Source) > at > com.adobe.flexbuilder.project.actionscript.internal.ActionScriptProject.\ loadDescription(Unknown > Source) > at > com.adobe.flexbuilder.project.actionscript.internal.ActionScriptProject.\ <init>(Unknown > Source) > at com.adobe.flexbuilder.project.internal.FlexBasedProject.<init>(Unknown > Source) > at com.adobe.flexbuilder.project.internal.FlexLibraryProject.<init>(Unknown > Source) > at > com.adobe.flexbuilder.project.actionscript.ActionScriptCore$3.doCreate(U\ nknown > Source) > at > com.adobe.flexbuilder.project.actionscript.ActionScriptCore$ProjectCreat\ or.run(Unknown > Source) > --- This portion repeats until Eclipse dies > at org.eclipse.core.internal.resources.Workspace.run(Workspace.java > :1737) > at com.adobe.flexbuilder.project.FlexWorkspaceRunner.run(Unknown Source) > at > com.adobe.flexbuilder.project.actionscript.ActionScriptCore$ProjectCreat\ or.safeGetOrCreate(Unknown > Source) > at > com.adobe.flexbuilder.project.actionscript.ActionScriptCore.getProject(U\ nknown > Source) > at com.adobe.flexbuilder.project.internal.FlexLibraryCore.getProject(Unknow\ n > Source) > at > com.adobe.flexbuilder.project.ClassPathEntryFactory$LibraryFilePath.getP\ roject(Unknown > Source) > at com.adobe.flexbuilder.project.ClassPathEntryFactory$LibraryFilePath.<ini\ t>(Unknown > Source) > at com.adobe.flexbuilder.project.ClassPathEntryFactory.newEntry(Unknown > Source) > at com.adobe.flexbuilder.project.persist.ClassPathSetting.read(Unknown > Source) > at com.adobe.flexbuilder.project.persist.ContainerTag.read(Unknown > Source) > at com.adobe.flexbuilder.project.persist.ContainerTag.read(Unknown > Source) > at > com.adobe.flexbuilder.project.persist.PersistableSettings.readPersistenc\ eFile(Unknown > Source) > at > com.adobe.flexbuilder.project.actionscript.internal.ActionScriptProjectS\ ettings.<init>(Unknown > Source) > at com.adobe.flexbuilder.project.internal.FlexLibraryProjectSettings.<init>\ (Unknown > Source) > at > com.adobe.flexbuilder.project.internal.FlexLibraryProject.createDescript\ ion(Unknown > Source) > at > com.adobe.flexbuilder.project.actionscript.internal.ActionScriptProject.\ loadDescription(Unknown > Source) > at > com.adobe.flexbuilder.project.actionscript.internal.ActionScriptProject.\ <init>(Unknown > Source) > at com.adobe.flexbuilder.project.internal.FlexBasedProject.<init>(Unknown > Source) > at com.adobe.flexbuilder.project.internal.FlexLibraryProject.<init>(Unknown > Source) > at > com.adobe.flexbuilder.project.actionscript.ActionScriptCore$3.doCreate(U\ nknown > Source) > at > com.adobe.flexbuilder.project.actionscript.ActionScriptCore$ProjectCreat\ or.run(Unknown > Source) > --- This portion repeats until Eclipse dies > > > > On 14/02/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: > > > > Hmm, I'm doing the same thing and it's working fine. I have been in > > situations like that before (not the same scenario), and deleting the > > .project files and recreating usually works. > > > > > > > > Otherwise, try removing the .swc dependency for both projects and > > re-adding it, or open up Cairngorm as a project and link directly to the > > project. > > > > > > > > Eclipse is definitely a finicky IDE. > > > > > > > > *Jay Proulx* > > > > [EMAIL PROTECTED] > > ------------------------------ > > > > *From:* [email protected] [mailto:[EMAIL PROTECTED] *On > > Behalf Of *Oliver Tupman > > *Sent:* February 14, 2007 11:20 AM > > *To:* [email protected] > > *Subject:* [flexcoders] Included SWC dependency problem with Cairngorm - > > anyone else? > > > > > > > > Hey all, > > > > I've got two Flex projects, both of which need to depend on the Cairngorm > > SWC. > > > > One project is the main application, the second is a series of helper > > classes to aid and abet it. So like this: > > > > [Main Application]----\ > > | >------ [Cairngorm SWC] > > [Helper project]--------/ > > > > If I cause both projects to link to the Cairngorm SWC file Flex Builder > > inevitably crashes, normally with an Eclipse stack overflow error. > > > > Does anyone else have this problem? How does anyone else handle such > > dependencies? > > > > Cheers, > > > > Oliver Tupman > > > > > > >

