To summarize my understanding:

The metadata tag [Mixin], used by databinding's autogenerated 
xxxWatcherSetupUtil classes, causes a reference to added to the main 
apps SystemManager.  If I add a library project to the build path and 
choose link type "External", this reference is still added.  This 
results in a null object exception during startup.  

Is there someway to tell the compiler to ignore/not process the Mixin 
tag for classes from the library project.  Something in addition to 
link type "External"?  My library project contains a module and the 
xxxFlexModuleFactory class ensures that the xxxWatcherSetupClass is 
initialized correctly.  So all I need to do is prevent the exception 
happening during startup.








--- In [email protected], "schtoo2" <[EMAIL PROTECTED]> wrote:
>
> Its trying to load a class called 
> _mypackage_MyPanelSetupWatcherUtil.  This class appears to be an 
> autogenerated class from my MyPanel class in my library project.  
In 
> other words, its trying to reference a class thats part of my 
library 
> project that is not yet loaded.  
> 
> This seems like my problem:
> http://tech.groups.yahoo.com/group/flexcoders/message/50022
> 
> But I'm confused as to what the original poster did to solve the 
> problem.  How can I prevent the SystemManager from trying to init 
> that class?  
> 
> --- In [email protected], "Michael Schmalle" 
> <teoti.graphix@> wrote:
> >
> > By the way Adobe;
> > 
> > This is a good place to put a try{} block and print the mixin 
that 
> isn't
> > being loaded. I have seen this problem a lot. It's hard to get 
this 
> deep and
> > since modules are used it might be informative for the dev.
> > 
> > Mike
> > 
> > On Thu, Sep 18, 2008 at 6:48 PM, Michael Schmalle
> > <teoti.graphix@>wrote:
> > 
> > > Hi,
> > >
> > > This means a mixin class has not been loaded.
> > >
> > > Put a breakpoint here;
> > >
> > > var c:Class = Class(getDefinitionByName(mixinList[i]));
> > >
> > > and see what mixinList[i] is. I have a suspicion it's drag or 
> popup.
> > >
> > > If it's a manager you use, you need to get that manager linked 
> into your
> > > application.
> > >
> > > Mike
> > >
> > >
> > > On Thu, Sep 18, 2008 at 6:29 PM, schtoo2 <schtoo@> wrote:
> > >
> > >>   TypeError: Error #1009: Cannot access a property or method 
of 
> a null
> > >> object reference.
> > >> at
> > >> 
> 
mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal:
> > >> :docFrameHandler()
> > >> 
> 
[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\SystemMana
> > >> ger.as:2324]
> > >>
> > >> --- In [email protected] <flexcoders%
40yahoogroups.com>,
> > >> "Michael Schmalle"
> > >> <teoti.graphix@> wrote:
> > >> >
> > >> > Hi,
> > >> >
> > >> > Post a stack trace for us.
> > >> >
> > >> > Mike
> > >> >
> > >> > On Thu, Sep 18, 2008 at 5:45 PM, schtoo2 <schtoo@> wrote:
> > >> >
> > >> > > I have a library project in FB. I link that library project
> > >> into my
> > >> > > main app as "External" in the build path. I will load it at
> > >> runtime
> > >> > > during my app. But when I run my app now I get a "Cannot 
> access a
> > >> > > property/method of a null object reference".
> > >> > >
> > >> > > It appears that the SystemManager is trying to do some 
static
> > >> > > initialization of classes (xxxWatcherSetupUtil) within my 
> library
> > >> > > project. Is there a way to prevent that? How else would the
> > >> > > link "External" option be viable?
> > >> > >
> > >> > > regards,
> > >> > > -Chris
> > >> > >
> > >> > >
> > >> > >
> > >> >
> > >> >
> > >> >
> > >> > --
> > >> > Teoti Graphix, LLC
> > >> > http://www.teotigraphix.com
> > >> >
> > >> > Teoti Graphix Blog
> > >> > http://www.blog.teotigraphix.com
> > >> >
> > >> > You can find more by solving the problem then by 'asking the
> > >> question'.
> > >> >
> > >>
> > >>  
> > >>
> > >
> > >
> > >
> > > --
> > > Teoti Graphix, LLC
> > > http://www.teotigraphix.com
> > >
> > > Teoti Graphix Blog
> > > http://www.blog.teotigraphix.com
> > >
> > > You can find more by solving the problem then by 'asking the 
> question'.
> > >
> > 
> > 
> > 
> > -- 
> > Teoti Graphix, LLC
> > http://www.teotigraphix.com
> > 
> > Teoti Graphix Blog
> > http://www.blog.teotigraphix.com
> > 
> > You can find more by solving the problem then by 'asking the 
> question'.
> >
>


Reply via email to