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 的内容是:

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 错误?

4

1 回答 1

0

这确实“闻起来”像 Spring Actionscript 错误。请在我们的 JIRA 系统中提交错误报告:

SpringAS JIRA

如果可以,请添加一个演示错误的示例项目,这样我们就可以更轻松、更快地找到问题。

于 2009-09-15T10:30:58.333 回答