|
|
|
[
Permlink
| « Hide
]
Jens Halm - 18/Nov/09 02:24 PM
Hm, seems that you did not attach anything?
I tried several times with Opera. But failed everytime.
Now with IE it's done. I was browsing another issues and seems to me that this one is related with http://opensource.powerflasher.com/jira/browse/PSL-286
After some initial investigation it looks like this will be a difficult issue. I narrowed the problem down a bit, but still no idea why this is happening.
You define a String object in your module configuration, so Parsley must reflect on the String class. When the module Context is created for the first time, the describeType output for String looks good: <type name="String" base="Class" isDynamic="true" isFinal="true" isStatic="true"> <extendsClass type="Class"/> <extendsClass type="Object"/> <constant name="length" type="int"/> <accessor name="prototype" access="readonly" type="*" declaredBy="Class"/> <factory type="String"> <extendsClass type="Object"/> <constructor> <parameter index="1" type="*" optional="true"/> </constructor> <accessor name="length" access="readonly" type="int" declaredBy="String"/> </factory> </type> When loading it the second time the output looks like this: <type name="null" isDynamic="false" isFinal="true" isStatic="false"/> The Spicelib Reflection API which Parsley relies on chokes on this strange output, obviously. So the next task is to find out how/why this is happening. I just reload it without unloading. And that is the problem...after reading your comment I started to unload the modules before reloading a new one. Just to be sure. And everything started to work. Is it advisable to unload it every time?
No, usually you are not required to unload before reloading, only as a workaround until bug #290 is fixed, which deals with exactly that issue: The internal logic in Parsley's module support is broken, if the same module gets loaded twice without unloading inbetween.
Apart from that, even if the bug is fixed you may consider unloading under certain circumstances, depending on the size and number of modules and their memory consumption. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||