Spicefactory Forum Index Spicefactory
Forum Archive
 
 SearchSearch    Log inLog in 

Flex4 SDK build 11418 exception on parsley initialization

 
Post new topic   Reply to topic    Spicefactory Forum Index -> Spicefactory
View previous topic :: View next topic  
Author Message
atabachyn



Joined: 09 Nov 2009
Posts: 2

PostPosted: Mon Nov 09, 2009 1:50 pm    Post subject: Flex4 SDK build 11418 exception on parsley initialization Reply with quote

Hi,

I receive exception when I try to initialize parsley in my flex4 air application:

<s:WindowedApplication
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:view="com.epam.crossword.view.*"
xmlns:core="com.epam.crossword.core.*"
xmlns:spicefactory="http://www.spicefactory.org/parsley/flex"
showStatusBar="false"
height="340"
width="620"
preinitialize="FlexContextBuilder.build(Config, this)">

...

</s:WindowedApplication>

Config.mxml:
<?xml version="1.0" encoding="utf-8"?>
<fx:Object
xmlns="*"
xmlns:fx="http://ns.adobe.com/mxml/2009">
</fx:Object>

Please advice.

Here is error I receive:

WARN: Probably unable to look for parent Context and ApplicationDomain in the view hierarchy - specified view root has not been added to the stage yet

param 2 incompatible
virt Object mx.core::IFlexModuleFactory/mx.core:IFlexModuleFactory::callInContext()
VerifyError: Error #1053: Illegal override of FlexModuleFactoryProxy in FlexModuleSupport.as$169.FlexModuleFactoryProxy.

at global$init()
at org.spicefactory.parsley.flex::FlexContextBuilder$/mergeAll()[I:\Spicefactory\Parsley\parsley-flex\org\spicefactory\parsley\flex\FlexContextBuilder.as:101]
at org.spicefactory.parsley.flex::FlexContextBuilder$/buildAll()[I:\Spicefactory\Parsley\parsley-flex\org\spicefactory\parsley\flex\FlexContextBuilder.as:76]
at org.spicefactory.parsley.flex::FlexContextBuilder$/build()[I:\Spicefactory\Parsley\parsley-flex\org\spicefactory\parsley\flex\FlexContextBuilder.as:59]
at Crossword/___Crossword_WindowedApplication1_preinitialize()[D:\programming\research\flex\workspace\Crossword\src\Crossword.mxml:11]
at flash.events::EventDispatcher/dispatchEventFunction()
Back to top
View user's profile Send private message
atabachyn



Joined: 09 Nov 2009
Posts: 2

PostPosted: Mon Nov 09, 2009 3:56 pm    Post subject: the same on latest SDK 4. build 11566 Reply with quote

Just downloaded latest sdk 4.11566 and I see the same exception.

Btw, In my libs folder I have latest parsley-complete-flex4-2.1.0.swc and spicelib-complete-flex-2.1.0.swc

Thank you.
Back to top
View user's profile Send private message
Jens Halm
Site Admin


Joined: 21 Sep 2007
Posts: 2631
Location: Cologne, Germany

PostPosted: Mon Nov 09, 2009 5:49 pm    Post subject: Reply with quote

Yeah I know, it's annoying. They keep changing the Flex Modules API all the time, it's quite hard to keep up. Smile

The 2.1.0 release only works with build 10485. I'm going to adapt trunk for the latest changes soon, and that'll make it into the 2.2.0 release.
_________________
Jens Halm
Spicefactory
Back to top
View user's profile Send private message
giles.roadnight



Joined: 20 Jul 2009
Posts: 76
Location: London

PostPosted: Mon Nov 16, 2009 3:55 pm    Post subject: Reply with quote

Is there any progress on this problem? At the moment with build 10708 and parsley 2.1 it all works but I get the warning on init:

WARN: Probably unable to look for parent Context and ApplicationDomain in the view hierarchy - specified view root has not been added to the stage yet

but everything still works. if I move the context build step into the added to stage handler instead everythign works and I don't get that warning.

The Module error is stopping us upgrading to a later SDk though.
_________________
Giles Roadnight
http://giles.roadnight.name
blog: http://blog.giles.roadnight.name
Back to top
View user's profile Send private message
Jens Halm
Site Admin


Joined: 21 Sep 2007
Posts: 2631
Location: Cologne, Germany

PostPosted: Tue Nov 17, 2009 12:13 pm    Post subject: Reply with quote

You can watch ticket PSL-283 in Jira to get notified when this is adjusted.

The warning is something completely different. You can safely ignore it when creating the root Context. I probably should improve the wording to make that clear. Was also discussed in this thread:
http://www.spicefactory.org/forum/viewtopic.php?t=373
_________________
Jens Halm
Spicefactory
Back to top
View user's profile Send private message
giles.roadnight



Joined: 20 Jul 2009
Posts: 76
Location: London

PostPosted: Fri Dec 18, 2009 3:27 pm    Post subject: Reply with quote

Hi Jens

According to PSL-283 thsi is now fixed:

http://opensource.powerflasher.com/jira/browse/PSL-283

but I am still getting the problem. I have checked out the latest version from main and compiled parsley my self and still get the problem:

VerifyError: Error #1053: Illegal override of FlexModuleFactoryProxy in FlexModuleSupport.as$169.FlexModuleFactoryProxy.

This is with SDK #13099.

I notice that this is fixed in 2.1.1. The downlaod is still 2.1.0 and when I do my build the swcs come out as 2.1.0 as well. How do I check 2.1.0 out from svn? There is no tag for it (presumably as it's not finished yet) should this fix be in main?

Many Thanks
_________________
Giles Roadnight
http://giles.roadnight.name
blog: http://blog.giles.roadnight.name
Back to top
View user's profile Send private message
Jens Halm
Site Admin


Joined: 21 Sep 2007
Posts: 2631
Location: Cologne, Germany

PostPosted: Fri Dec 18, 2009 3:56 pm    Post subject: Reply with quote

Every release has been tagged, including 2.1.0. For 2.1.1 which is not finished yet, you'd have to check out main from trunk. If you then look at the FlexModuleSupport class you'll see that the signature of callInContext now reflects newest SDK versions. So it should work.
_________________
Jens Halm
Spicefactory
Back to top
View user's profile Send private message
Jens Halm
Site Admin


Joined: 21 Sep 2007
Posts: 2631
Location: Cologne, Germany

PostPosted: Fri Dec 18, 2009 4:00 pm    Post subject: Reply with quote

Btw. I'm using SDK build 12087, but there is no difference to the newest build regarding the API of IFlexModuleFactory. And with 12087 I can compile successfully. I'm sorry, but I cannot recheck every week. Smile
_________________
Jens Halm
Spicefactory
Back to top
View user's profile Send private message
giles.roadnight



Joined: 20 Jul 2009
Posts: 76
Location: London

PostPosted: Fri Dec 18, 2009 4:37 pm    Post subject: Reply with quote

Ok, I was apparently doing something wrong earlier and I seem to have been able to check out the fix for this issue from SVN. I am now however getting a different error:

param 2 incompatible
virt Object mx.core::FlexModuleFactory/callInContext()
over * GeneratedResourceModule7445881329779043571_mx_core_FlexModuleFactory/callInContext()
VerifyError: Error #1053: Illegal override of GeneratedResourceModule7445881329779043571_mx_core_FlexModuleFactory in GeneratedResourceModule7445881329779043571_mx_core_FlexModuleFactory.

at global$init()

I've looked into this as much as I can and can't figure out what is going on at all!

This file:

http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/i18n/I18nUtils.java

Indicates that the generatedModule is created for resource bundles. I can't see anywhere in the parsley code that deals with IResourceModule.

EDIT:

Ok, I think this issue is nothing to with parsley. I think it was just because I hadn't re-built my Resource bundles after updating my SDK.
_________________
Giles Roadnight
http://giles.roadnight.name
blog: http://blog.giles.roadnight.name
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Spicefactory Forum Index -> Spicefactory All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group