2009-09-15 2 views
1
content of The application-content.xml is 
<?xml version="1.0" encoding="utf-8"?> 
<objects xmlns="http://www.springactionscript.org/schema/objects" 
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     xsi:schemaLocation="http://www.springactionscript.org/schema/objects 
           http://www.springactionscript.org/schema/objects/spring-actionscript-objects-1.0.xsd"> 

    <property file="strings.properties" /> 

    <object id="string1" class="String"/> 
    <object id="string2" class="String"/> 
    <object id="nlslzf" class="com.sgb.model.MyClass"/> 

</objects> 

содержание strings.properties является:проблема приложения context.xml для Spring ActionScript

s1=Firststring 
s2=Secondstring 

но ошибка:

Main Thread (Suspended: Error: An object definition for 'string1' was not found.) 
       org.springextensions.actionscript.ioc.factory.support::AbstractObjectFactory/getObject 
       SpringActionScript/test 
       SpringActionScript/onCreationComplete 
       SpringActionScript/___SpringActionScript_Application1_creationComplete 
       flash.events::EventDispatcher/dispatchEventFunction [no source] 
       mx.core::UIComponent/dispatchEvent 
       mx.core::UIComponent/set initialized  
       mx.managers::LayoutManager/doPhasedInstantiation  
       Function/http://adobe.com/AS3/2006/builtin::apply [no source] 
       mx.core::UIComponent/callLaterDispatcher2 
       mx.core::UIComponent/callLaterDispatcher2 
       mx.core::UIComponent/callLaterDispatcher  

я могу работать нормально, если удалена '' почему это? Ошибка Springactionscript?

+0

Исправьте это. Отделите код от фактического вопроса. – erelender

ответ

0

Это действительно «пахнет» как ошибка Spring Actionscript. Пожалуйста, отчет об ошибке для этого в нашей системе JIRA:

SpringAS JIRA

Если вы можете добавить образец проекта, который демонстрирует ошибку, таким образом мы сможем отследить проблему проще и быстрее ,

спасибо заранее,

Roland