[ 
https://issues.apache.org/jira/browse/TUSCANY-1091?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12473444
 ] 

Yang ZHONG commented on TUSCANY-1091:
-------------------------------------

Can't explain twice XMLStreamHelperPerformanceTestCase.java:64 either.

61:    DataObject child = quote.createDataObject("quotes");
64:    DataObject quote3 = quote.createDataObject("quotes3");

Success of 61 indicates some XSD similar to XMLStreamHelper.xsd has been loaded,
however maybe not 
http://issues.apache.org/jira/secure/attachment/12350306/XMLStreamHelper.xsd
Here is DataObjectUtil.java:476 where NullPointerException happened

475:    Property property = (Property)getProperty(dataObject, propertyName);
476:    Type type = property.getType()

XMLStreamHelper.xsd imports 
http://issues.apache.org/jira/secure/attachment/12350307/simple3.xsd
for element/Property "quotes3", if that helps.

I use Windows XP SP2, SubVersion 1.3.1 and maven 2.0.4.

> DataObjectXMLStreamReader doesn't have to repeat NameSpace declaration which 
> impacts performance
> ------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1091
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1091
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SDO Implementation
>    Affects Versions: Java-SDO-Mx
>            Reporter: Yang ZHONG
>             Fix For: Java-SDO-Mx
>
>         Attachments: bindLessNS, bindLessNS, bindLessNS.patch, 
> org.apache.tuscany.sdo.test.XMLStreamHelperPerformanceTestCase.txt, 
> simple3.xsd, T-1091.log, XMLStreamHelper.xsd, 
> XMLStreamHelperPerformanceTestCase.java
>
>
>       <p0:quotes3>
>               <p1:symbol3 
> xmlns:p1="http://www.example.com/simple3";>IBM</p1:symbol3>
>               <p1:company3 xmlns:p1="http://www.example.com/simple3";>IBM 
> Corp.</p1:company3>
>       </p0:quotes3>
> can be optimized as
>       <p0:quotes3 xmlns:p1="http://www.example.com/simple3";>
>               <p1:symbol3>IBM</p1:symbol3>
>               <p1:company3>IBM Corp.</p1:company3>
>       </p0:quotes3>
> Thanks to Fuhwei Lwo for prototyping the Test Case. I've made small changes 
> to make use of HelperContext so that it will neither interfere nor be 
> interfereed by other build test(s).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to