History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: PSL-28
Type: Bug Bug
Status: Resolved Resolved
Resolution: Duplicate
Priority: Major Major
Assignee: Jens Halm
Reporter: Nico Zimmermann
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Parsley - Spicelib

Variable expressions are not accessible from other context-xml's of the same context-parser.

Created: 19/Mar/08 04:19 PM   Updated: 29/Mar/08 10:14 PM
Component/s: Parsley IOC Container
Affects Version/s: 1.0.RC1, 1.0.0
Fix Version/s: 1.0.1

Issue Links:
Duplicate
 


 Description  « Hide
FileA

<expressions>
<variable name="lang">
<string>de</string>
</variable>
</expressions>

FileB
<constructor-args>
<object-ref id="layerController"/>
<string>a${lang}b</string>
</constructor-args>

parser.addFile("FileA.xml")
parser.addFile("FileB.xml")

${lang} in File B is not accessable. Exception:

  *** ERROR *** org.spicefactory.parsley.context.ApplicationContextParser ***
Error parsing ApplicationContext
TypeError: Error #1009: Der Zugriff auf eine Eigenschaft oder eine Methode eines null-Objektverweises ist nicht möglich.
at org.spicefactory.parsley.context.tree.setup::ExpressionsConfig/merge()[D:\nz\workspaces\workspace\_niczim_parsley\01_dev\src\org\spicefactory\parsley\context\tree\setup\ExpressionsConfig.as:112]
at org.spicefactory.parsley.context.tree.setup::SetupConfig/set expressionsConfig()[D:\nz\workspaces\workspace\_niczim_parsley\01_dev\src\org\spicefactory\parsley\context\tree\setup\SetupConfig.as:124]
at org.spicefactory.parsley.context.tree.setup::SetupConfig/merge()[D:\nz\workspaces\workspace\_niczim_parsley\01_dev\src\org\spicefactory\parsley\context\tree\setup\SetupConfig.as:160]
at org.spicefactory.parsley.context.tree.core::ApplicationContextConfig/set setupConfig()[D:\nz\workspaces\workspace\_niczim_parsley\01_dev\src\org\spicefactory\parsley\context\tree\core\ApplicationContextConfig.as:70]
at org.spicefactory.parsley.context.xml::DefaultElementProcessor/parseAndApplyChildren()[D:\nz\workspaces\workspace\_niczim_parsley\01_dev\src\org\spicefactory\parsley\context\xml\DefaultElementProcessor.as:316]
at org.spicefactory.parsley.context.xml::DefaultElementProcessor/parseChildMap()[D:\nz\workspaces\workspace\_niczim_parsley\01_dev\src\org\spicefactory\parsley\context\xml\DefaultElementProcessor.as:278]
at org.spicefactory.parsley.context.xml::DefaultElementProcessor/parse()[D:\nz\workspaces\workspace\_niczim_parsley\01_dev\src\org\spicefactory\parsley\context\xml\DefaultElementProcessor.as:160]
at org.spicefactory.parsley.context.tree::AbstractElementConfig/parse()[D:\nz\workspaces\workspace\_niczim_parsley\01_dev\src\org\spicefactory\parsley\context\tree\AbstractElementConfig.as:41]
at org.spicefactory.parsley.context::ApplicationContextParser/parse()[D:\nz\workspaces\workspace\_niczim_parsley\01_dev\src\org\spicefactory\parsley\context\ApplicationContextParser.as:300]
at org.spicefactory.parsley.context::ApplicationContextParser/onLoad()[D:\nz\workspaces\workspace\_niczim_parsley\01_dev\src\org\spicefactory\parsley\context\ApplicationContextParser.as:285]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at org.spicefactory.lib.task::Task/fireCompleteEvent()[D:\nz\workspaces\workspace\_niczim_spicelib\01_dev\src\org\spicefactory\lib\task\Task.as:526]
at org.spicefactory.lib.task::Task/complete()[D:\nz\workspaces\workspace\_niczim_spicelib\01_dev\src\org\spicefactory\lib\task\Task.as:371]
at org.spicefactory.parsley.util::XmlLoaderTask/onComplete()[D:\nz\workspaces\workspace\_niczim_parsley\01_dev\src\org\spicefactory\parsley\util\XmlLoaderTask.as:64]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()

  *** ERROR *** org.spicefactory.parsley.context.ApplicationContextParser ***
Error #1009: Der Zugriff auf eine Eigenschaft oder eine Methode eines null-Objektverweises ist nicht möglich.

Error loading context: Error #1009: Der Zugriff auf eine Eigenschaft oder eine Methode eines null-Objektverweises ist nicht möglich.


 All   Comments   Change History      Sort Order:
Jens Halm - 29/Mar/08 10:13 PM
The NPE from the provided stacktrace is caused by the lazy initialization errors described in PSL-30.