You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by as...@apache.org on 2010/09/09 13:32:29 UTC

svn commit: r995384 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java

Author: ashish
Date: Thu Sep  9 11:32:28 2010
New Revision: 995384

URL: http://svn.apache.org/viewvc?rev=995384&view=rev
Log:
Fixing bug of reading node name. When we read first child element of the response of any third party integration for example ups etc, node name can't be read using "node.getLocalName()". So changing  node.getLocalName() --> node.getNodeName(). 

Thanks Vivek for the contribution. 

Modified:
    ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java?rev=995384&r1=995383&r2=995384&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java Thu Sep  9 11:32:28 2010
@@ -803,7 +803,7 @@ public class UtilXml {
         if (node != null) {
             do {
                 if (node.getNodeType() == Node.ELEMENT_NODE && (childElementName == null ||
-                        childElementName.equals(node.getLocalName()))) {
+                        childElementName.equals(node.getNodeName()))) {
                     Element childElement = (Element) node;
                     return childElement;
                 }



Re: svn commit: r995384 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java

Posted by Ashish Vijaywargiya <vi...@gmail.com>.
For now I have reverted my changes from trunk at r996122 and will get
back here with better fix.

--
Ashish

On Sat, Sep 11, 2010 at 3:51 PM, BJ Freeman <bj...@free-man.net> wrote:
> there was a third person that posted on the user ML and Adrain Responded
> that has an immeadiate need to get is resolved.
> see
> subject: Recent change to UtilXml.java breaks talking to jax-ws.
>
> Ashish Vijaywargiya sent the following on 9/11/2010 1:33 AM:
>
>
> =========================
> BJ Freeman  <http://bjfreeman.elance.com>
> Strategic Power Office with Supplier Automation
>  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
> Specialtymarket.com  <http://www.specialtymarket.com/>
> Systems Integrator-- Glad to Assist
>
> Chat  Y! messenger: bjfr33man
>
>> Thanks for your comment Bilgin.
>> We should discuss this issue in more details once you are back.
>>
>> --
>> Ashish
>>
>> On Sat, Sep 11, 2010 at 12:56 PM, Bilgin Ibryam<bi...@gmail.com>  wrote:
>>>
>>> I have no access to eclıpse for one more week. Feel free to make changes
>>> ıf
>>> needed.
>>>
>>> Bılgın
>>> On Fri, Sep 10, 2010 at 8:01 AM, Ashish Vijaywargiya<
>>> vijaywargiya.ashish@gmail.com>  wrote:
>>>
>>>> Thanks Scott for your comment.
>>>> Bilgin, can you please look into this issue and provide/propose better
>>>> solution that works for both of us?
>>>>
>>>> --
>>>> Ashish
>>>>
>>>> On Fri, Sep 10, 2010 at 4:18 AM, Scott Gray<sc...@hotwaxmedia.com>
>>>> wrote:
>>>>>
>>>>> Hi Ashish,
>>>>>
>>>>> It looks like you and Bilgin are going back and forth on this:
>>>>
>>>> http://svn.apache.org/viewvc?view=revision&revision=894359
>>>>>
>>>>> Regards
>>>>> Scott
>>>>>
>>>>> HotWax Media
>>>>> http://www.hotwaxmedia.com
>>>>>
>>>>> On 9/09/2010, at 11:32 PM, ashish@apache.org wrote:
>>>>>
>>>>>> Author: ashish
>>>>>> Date: Thu Sep  9 11:32:28 2010
>>>>>> New Revision: 995384
>>>>>>
>>>>>> URL: http://svn.apache.org/viewvc?rev=995384&view=rev
>>>>>> Log:
>>>>>> Fixing bug of reading node name. When we read first child element of
>>>>>> the
>>>>
>>>> response of any third party integration for example ups etc, node name
>>>> can't
>>>> be read using "node.getLocalName()". So changing  node.getLocalName()
>>>> -->
>>>> node.getNodeName().
>>>>>>
>>>>>> Thanks Vivek for the contribution.
>>>>>>
>>>>>> Modified:
>>>>>>    ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java
>>>>>>
>>>>>> Modified:
>>>>
>>>> ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java
>>>>>>
>>>>>> URL:
>>>>
>>>>
>>>> http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java?rev=995384&r1=995383&r2=995384&view=diff
>>>>>>
>>>>
>>>> ==============================================================================
>>>>>>
>>>>>> --- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java
>>>>
>>>> (original)
>>>>>>
>>>>>> +++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java
>>>>>> Thu
>>>>
>>>> Sep  9 11:32:28 2010
>>>>>>
>>>>>> @@ -803,7 +803,7 @@ public class UtilXml {
>>>>>>         if (node != null) {
>>>>>>             do {
>>>>>>                 if (node.getNodeType() == Node.ELEMENT_NODE&&
>>>>
>>>> (childElementName == null ||
>>>>>>
>>>>>> -
>>>>>>  childElementName.equals(node.getLocalName())))
>>>>
>>>> {
>>>>>>
>>>>>> +                        childElementName.equals(node.getNodeName())))
>>>>>> {
>>>>>>                     Element childElement = (Element) node;
>>>>>>                     return childElement;
>>>>>>                 }
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>

Re: svn commit: r995384 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java

Posted by BJ Freeman <bj...@free-man.net>.
there was a third person that posted on the user ML and Adrain Responded 
that has an immeadiate need to get is resolved.
see
subject: Recent change to UtilXml.java breaks talking to jax-ws.

Ashish Vijaywargiya sent the following on 9/11/2010 1:33 AM:


=========================
BJ Freeman  <http://bjfreeman.elance.com>
Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man

> Thanks for your comment Bilgin.
> We should discuss this issue in more details once you are back.
>
> --
> Ashish
>
> On Sat, Sep 11, 2010 at 12:56 PM, Bilgin Ibryam<bi...@gmail.com>  wrote:
>> I have no access to eclıpse for one more week. Feel free to make changes ıf
>> needed.
>>
>> Bılgın
>> On Fri, Sep 10, 2010 at 8:01 AM, Ashish Vijaywargiya<
>> vijaywargiya.ashish@gmail.com>  wrote:
>>
>>> Thanks Scott for your comment.
>>> Bilgin, can you please look into this issue and provide/propose better
>>> solution that works for both of us?
>>>
>>> --
>>> Ashish
>>>
>>> On Fri, Sep 10, 2010 at 4:18 AM, Scott Gray<sc...@hotwaxmedia.com>
>>> wrote:
>>>> Hi Ashish,
>>>>
>>>> It looks like you and Bilgin are going back and forth on this:
>>> http://svn.apache.org/viewvc?view=revision&revision=894359
>>>>
>>>> Regards
>>>> Scott
>>>>
>>>> HotWax Media
>>>> http://www.hotwaxmedia.com
>>>>
>>>> On 9/09/2010, at 11:32 PM, ashish@apache.org wrote:
>>>>
>>>>> Author: ashish
>>>>> Date: Thu Sep  9 11:32:28 2010
>>>>> New Revision: 995384
>>>>>
>>>>> URL: http://svn.apache.org/viewvc?rev=995384&view=rev
>>>>> Log:
>>>>> Fixing bug of reading node name. When we read first child element of the
>>> response of any third party integration for example ups etc, node name can't
>>> be read using "node.getLocalName()". So changing  node.getLocalName() -->
>>> node.getNodeName().
>>>>>
>>>>> Thanks Vivek for the contribution.
>>>>>
>>>>> Modified:
>>>>>     ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java
>>>>>
>>>>> Modified:
>>> ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java
>>>>> URL:
>>> http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java?rev=995384&r1=995383&r2=995384&view=diff
>>>>>
>>> ==============================================================================
>>>>> --- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java
>>> (original)
>>>>> +++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java Thu
>>> Sep  9 11:32:28 2010
>>>>> @@ -803,7 +803,7 @@ public class UtilXml {
>>>>>          if (node != null) {
>>>>>              do {
>>>>>                  if (node.getNodeType() == Node.ELEMENT_NODE&&
>>> (childElementName == null ||
>>>>> -                        childElementName.equals(node.getLocalName())))
>>> {
>>>>> +                        childElementName.equals(node.getNodeName()))) {
>>>>>                      Element childElement = (Element) node;
>>>>>                      return childElement;
>>>>>                  }
>>>>>
>>>>>
>>>>
>>>>
>>>
>>
>

Re: svn commit: r995384 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java

Posted by Ashish Vijaywargiya <vi...@gmail.com>.
Thanks for your comment Bilgin.
We should discuss this issue in more details once you are back.

--
Ashish

On Sat, Sep 11, 2010 at 12:56 PM, Bilgin Ibryam <bi...@gmail.com> wrote:
> I have no access to eclıpse for one more week. Feel free to make changes ıf
> needed.
>
> Bılgın
> On Fri, Sep 10, 2010 at 8:01 AM, Ashish Vijaywargiya <
> vijaywargiya.ashish@gmail.com> wrote:
>
>> Thanks Scott for your comment.
>> Bilgin, can you please look into this issue and provide/propose better
>> solution that works for both of us?
>>
>> --
>> Ashish
>>
>> On Fri, Sep 10, 2010 at 4:18 AM, Scott Gray <sc...@hotwaxmedia.com>
>> wrote:
>> > Hi Ashish,
>> >
>> > It looks like you and Bilgin are going back and forth on this:
>> http://svn.apache.org/viewvc?view=revision&revision=894359
>> >
>> > Regards
>> > Scott
>> >
>> > HotWax Media
>> > http://www.hotwaxmedia.com
>> >
>> > On 9/09/2010, at 11:32 PM, ashish@apache.org wrote:
>> >
>> >> Author: ashish
>> >> Date: Thu Sep  9 11:32:28 2010
>> >> New Revision: 995384
>> >>
>> >> URL: http://svn.apache.org/viewvc?rev=995384&view=rev
>> >> Log:
>> >> Fixing bug of reading node name. When we read first child element of the
>> response of any third party integration for example ups etc, node name can't
>> be read using "node.getLocalName()". So changing  node.getLocalName() -->
>> node.getNodeName().
>> >>
>> >> Thanks Vivek for the contribution.
>> >>
>> >> Modified:
>> >>    ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java
>> >>
>> >> Modified:
>> ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java
>> >> URL:
>> http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java?rev=995384&r1=995383&r2=995384&view=diff
>> >>
>> ==============================================================================
>> >> --- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java
>> (original)
>> >> +++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java Thu
>> Sep  9 11:32:28 2010
>> >> @@ -803,7 +803,7 @@ public class UtilXml {
>> >>         if (node != null) {
>> >>             do {
>> >>                 if (node.getNodeType() == Node.ELEMENT_NODE &&
>> (childElementName == null ||
>> >> -                        childElementName.equals(node.getLocalName())))
>> {
>> >> +                        childElementName.equals(node.getNodeName()))) {
>> >>                     Element childElement = (Element) node;
>> >>                     return childElement;
>> >>                 }
>> >>
>> >>
>> >
>> >
>>
>

Re: svn commit: r995384 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java

Posted by Bilgin Ibryam <bi...@gmail.com>.
I have no access to eclıpse for one more week. Feel free to make changes ıf
needed.

Bılgın
On Fri, Sep 10, 2010 at 8:01 AM, Ashish Vijaywargiya <
vijaywargiya.ashish@gmail.com> wrote:

> Thanks Scott for your comment.
> Bilgin, can you please look into this issue and provide/propose better
> solution that works for both of us?
>
> --
> Ashish
>
> On Fri, Sep 10, 2010 at 4:18 AM, Scott Gray <sc...@hotwaxmedia.com>
> wrote:
> > Hi Ashish,
> >
> > It looks like you and Bilgin are going back and forth on this:
> http://svn.apache.org/viewvc?view=revision&revision=894359
> >
> > Regards
> > Scott
> >
> > HotWax Media
> > http://www.hotwaxmedia.com
> >
> > On 9/09/2010, at 11:32 PM, ashish@apache.org wrote:
> >
> >> Author: ashish
> >> Date: Thu Sep  9 11:32:28 2010
> >> New Revision: 995384
> >>
> >> URL: http://svn.apache.org/viewvc?rev=995384&view=rev
> >> Log:
> >> Fixing bug of reading node name. When we read first child element of the
> response of any third party integration for example ups etc, node name can't
> be read using "node.getLocalName()". So changing  node.getLocalName() -->
> node.getNodeName().
> >>
> >> Thanks Vivek for the contribution.
> >>
> >> Modified:
> >>    ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java
> >>
> >> Modified:
> ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java
> >> URL:
> http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java?rev=995384&r1=995383&r2=995384&view=diff
> >>
> ==============================================================================
> >> --- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java
> (original)
> >> +++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java Thu
> Sep  9 11:32:28 2010
> >> @@ -803,7 +803,7 @@ public class UtilXml {
> >>         if (node != null) {
> >>             do {
> >>                 if (node.getNodeType() == Node.ELEMENT_NODE &&
> (childElementName == null ||
> >> -                        childElementName.equals(node.getLocalName())))
> {
> >> +                        childElementName.equals(node.getNodeName()))) {
> >>                     Element childElement = (Element) node;
> >>                     return childElement;
> >>                 }
> >>
> >>
> >
> >
>

Re: svn commit: r995384 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java

Posted by Ashish Vijaywargiya <vi...@gmail.com>.
Thanks Scott for your comment.
Bilgin, can you please look into this issue and provide/propose better
solution that works for both of us?

--
Ashish

On Fri, Sep 10, 2010 at 4:18 AM, Scott Gray <sc...@hotwaxmedia.com> wrote:
> Hi Ashish,
>
> It looks like you and Bilgin are going back and forth on this: http://svn.apache.org/viewvc?view=revision&revision=894359
>
> Regards
> Scott
>
> HotWax Media
> http://www.hotwaxmedia.com
>
> On 9/09/2010, at 11:32 PM, ashish@apache.org wrote:
>
>> Author: ashish
>> Date: Thu Sep  9 11:32:28 2010
>> New Revision: 995384
>>
>> URL: http://svn.apache.org/viewvc?rev=995384&view=rev
>> Log:
>> Fixing bug of reading node name. When we read first child element of the response of any third party integration for example ups etc, node name can't be read using "node.getLocalName()". So changing  node.getLocalName() --> node.getNodeName().
>>
>> Thanks Vivek for the contribution.
>>
>> Modified:
>>    ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java
>>
>> Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java
>> URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java?rev=995384&r1=995383&r2=995384&view=diff
>> ==============================================================================
>> --- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java (original)
>> +++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java Thu Sep  9 11:32:28 2010
>> @@ -803,7 +803,7 @@ public class UtilXml {
>>         if (node != null) {
>>             do {
>>                 if (node.getNodeType() == Node.ELEMENT_NODE && (childElementName == null ||
>> -                        childElementName.equals(node.getLocalName()))) {
>> +                        childElementName.equals(node.getNodeName()))) {
>>                     Element childElement = (Element) node;
>>                     return childElement;
>>                 }
>>
>>
>
>

Re: svn commit: r995384 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java

Posted by Scott Gray <sc...@hotwaxmedia.com>.
Hi Ashish,

It looks like you and Bilgin are going back and forth on this: http://svn.apache.org/viewvc?view=revision&revision=894359

Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 9/09/2010, at 11:32 PM, ashish@apache.org wrote:

> Author: ashish
> Date: Thu Sep  9 11:32:28 2010
> New Revision: 995384
> 
> URL: http://svn.apache.org/viewvc?rev=995384&view=rev
> Log:
> Fixing bug of reading node name. When we read first child element of the response of any third party integration for example ups etc, node name can't be read using "node.getLocalName()". So changing  node.getLocalName() --> node.getNodeName(). 
> 
> Thanks Vivek for the contribution. 
> 
> Modified:
>    ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java
> 
> Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java
> URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java?rev=995384&r1=995383&r2=995384&view=diff
> ==============================================================================
> --- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java (original)
> +++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java Thu Sep  9 11:32:28 2010
> @@ -803,7 +803,7 @@ public class UtilXml {
>         if (node != null) {
>             do {
>                 if (node.getNodeType() == Node.ELEMENT_NODE && (childElementName == null ||
> -                        childElementName.equals(node.getLocalName()))) {
> +                        childElementName.equals(node.getNodeName()))) {
>                     Element childElement = (Element) node;
>                     return childElement;
>                 }
> 
>