2

かなり大規模なFlexアプリケーションがあり、QAはランダムになりましたが、Flex開発者が再現できなかった再現可能なエラーが発生していました。これらのエラーのいくつかは、次のようなFlashPlayerのデバッグバージョンからスローされていました。

ReferenceError: Specified ApplicationDomain does not contain the class ::LineSeriesLegendMarker
    at org.spicefactory.lib.reflect::ClassInfo$/getClassDefinitionByName()
    at org.spicefactory.lib.reflect::ClassInfo$/getClassInfo()
    at org.spicefactory.lib.reflect::ClassInfo$/forInstance()
    at org.spicefactory.parsley.core.view.impl::DefaultViewConfigurator/getDefinitionByType()
    at org.spicefactory.parsley.core.view.impl::DefaultViewConfigurator/getDefinition()
    at org.spicefactory.parsley.core.view.handler::ViewAutowireHandler/processAutowireEvent()
    at org.spicefactory.parsley.core.view.util::ContextAwareEventHandler/handleEvent()
    at org.spicefactory.parsley.core.view.handler::ViewAutowireHandler/handleAutowireEvent()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at org.spicefactory.parsley.core.view.handler::ViewAutowireHandler/prefilterView()
    at flash.display::DisplayObjectContainer/addChildAt()
    at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$addChildAt()
    at mx.core::Container/addChildAt()
    at mx.core::Container/addChild()
    at mx.charts::Legend/addLegendItem()
    at mx.charts::Legend/populateFromArray()
    at mx.charts::Legend/commitProperties()
    at mx.core::UIComponent/validateProperties()
    at mx.managers::LayoutManager/validateProperties()
    at mx.managers::LayoutManager/doPhasedInstantiation()
    at mx.managers::LayoutManager/doPhasedInstantiationCallback()

その他のエラーには、コンボボックスが正しく入力されていないことや、一般的なタイミングの問題と思われるものが含まれます。

これをメインのSWFに絞り込み、mxmlcパラメーター-debug=trueと-debug=false以外の変数は使用しないことを強調したいと思います。他の誰かがこれに遭遇したか、ビルドが異なる動作をもたらす理由を知っていますか?

4

1 に答える 1

0

それよりも多くのコードを表示する必要があります。主にパセリの設定。

debug=trueとdebug=falseの違いは、debug=trueは最終製品のエラーをトレースしないことです。開発者は常にdebug=trueで実行し、FlashPlayerDebugをインストールする必要があります。

また、Parsleyがビューコンポーネントについて知る必要がある理由についても興味があります。Configureタグを使用していますか?これを使用せず、代わりに、テスト容易性に優れた適切なプレゼンターモデルでFastInjectを使用することをお勧めします。構成とは、Parsleyがビュー内のすべてのプロパティを反映する必要があることを意味しますが、これは役に立たず、時間がかかります。Configureの代わりにFastInjectを使用すると、問題が解消されることを保証します。これは、コンポーネントにビューを挿入しようとしている場合を除いて、実行すべきではありません。その場合は、より良い方法でアプリケーションを設計する必要があります。

于 2011-06-28T13:08:41.390 に答える