[ 
http://issues.apache.org/jira/browse/TUSCANY-707?page=comments#action_12433209 
] 
            
Ron Gavlin commented on TUSCANY-707:
------------------------------------

"myChildDataObject" is an element of type "MyChildDataObject" which is defined 
elsewhere as a complexType.

The test is executing standard SDO-stuff that runs fine on a non-dual-core PC. 
This is the same test that triggered the NPE-problem I reported and you fixed 
last week. Eventhough the symptoms are different, the problems seem closely 
related to me. 

FYI, I attempted to troubleshoot the problem by setting a breakpoint in 
DataObjectUtil.getProperty(DataObject, String) on the line after 'if (property 
== null)'. When executing my test in the debugger on the dual-core PC, two of 
my four threads reach the breakpoint. If I subsequently "DropToFrame" on a 
suspended thread and resume execution of that method, the first line 
successfully "gets" the property and the problem disappears. It seems to me 
like some datastructure is getting clobbered by another thread.

Thanks for the help.

- Ron

> 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