[ 
http://issues.apache.org/jira/browse/TUSCANY-707?page=comments#action_12434224 
] 
            
Frank Budinsky commented on TUSCANY-707:
----------------------------------------

It sounds like maybe the threads are running before the actual metadata has 
been properly initialized. It seems that the only way you could not find a 
property (that is defined in the type) is if the call to getProperties() in 
initAliasNames()  isn't returning the complete list of properties. It seems to 
me that would only be possible if one thread is running while another is still 
initializing the model.

How is the metadata initialized in your application? Are you using dynamic SDO 
or generated classes? Can you try to delay starting all the threads until after 
the metadata is initialized?


> IllegalArgumentException at 
> o.a.t.sdo.util.DataObjectUtil.getOpenFeature(DataObjectUtil.java:1782) 
> w/dual-core CPU
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-707
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-707
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Implementation
>    Affects Versions: Java-M1
>         Environment: WinXP Professional w/dual-core CPU
>            Reporter: Ron Gavlin
>            Priority: Critical
>
> I have a load test which concurrently interrogates properties from different 
> "myDataObject" instances in different threads. When the test is run on a 
> dual-core PC, several threads throw the following IllegalArgumentException 
> while other threads execute without problem. When I run the test on a 
> single-processor PC, no exception is thrown. Any suggestions?
> Thanks in advance for your assistance.
> - Ron
> java.lang.IllegalArgumentException: Class 'MyDataObject' does not have a 
> feature named 'myChildDataObject'
> at 
> org.apache.tuscany.sdo.util.DataObjectUtil.getOpenFeature(DataObjectUtil.java:1782)
> at 
> org.apache.tuscany.sdo.util.DataObjectUtil.getProperty(DataObjectUtil.java:2345)
> at 
> org.apache.tuscany.sdo.impl.DataObjectImpl.getProperty(DataObjectImpl.java:1284)
> at 
> org.apache.tuscany.sdo.util.DataObjectUtil$Accessor.setFeatureName(DataObjectUtil.java:2032)
> at 
> org.apache.tuscany.sdo.util.DataObjectUtil$Accessor.process(DataObjectUtil.java:2139)
> at 
> org.apache.tuscany.sdo.util.DataObjectUtil$Accessor.init(DataObjectUtil.java:1918)
> at 
> org.apache.tuscany.sdo.util.DataObjectUtil$Accessor.create(DataObjectUtil.java:1838)
> at org.apache.tuscany.sdo.util.DataObjectUtil.get(DataObjectUtil.java:739)
> at org.apache.tuscany.sdo.impl.DataObjectImpl.get(DataObjectImpl.java:213)
> ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to