json.xq regression in 1.4rc?

View: New views
3 Messages — Rating Filter:   Alert me  

json.xq regression in 1.4rc?

by Joe Wicentowski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I have noticed one odd issue since updating my pre-production code to
recent builds of 1.4rc (I'm now updated to rev.10307).  The problem is
that my json.xq is now returning hundreds of errors in exist.log,
identical to this:

> 2009-10-31 19:29:29,643 [P1-9] ERROR (FunDistinctValues.java [compare]:176) - cannot compare valuesXPTY0004 : cannot apply operator to QName

Below is the code that generates the problem.  I have enabled the json
module in conf.xml.  You'll see below a single "items" element; I've
trimmed this down from 177 such "items" elements.  Even the 1 "items"
element in the example below generates 75 errors - so I get 75 x 177
errors!:

===
import module namespace json="http://www.json.org";

let $xml :=
<root>
    <items>
        <type>Milestone</type>
        <label>1750-1775: Diplomatic Struggles in the Colonial Period</label>
        <xmlid>1750-1775</xmlid>
        <period>1750-1775</period>
        <id>1</id>
        <imageURL>/images/milestones/1750-1775.jpg</imageURL>
        <imageWidth>200</imageWidth>
        <imageHeight>200</imageHeight>
        <imageAlt></imageAlt>
        <url>/milestones/1750-1775</url>
        <inDate>1750-01-01</inDate>
        <outDate>1775-12-31</outDate>
    </items>
</root>

return json:xml-to-json($xml)
===

Does anyone have any idea what could be causing this?  I mention less
because of any immediate urgency, but rather because I wonder if it's
related to any other changes to predicates, etc. that have entered the
code recently?  I'd be happy to do more tests or provide more info if
it would help.

Joe

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: json.xq regression in 1.4rc?

by Wolfgang Meier-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Joe,

> I have noticed one odd issue since updating my pre-production code to
> recent builds of 1.4rc (I'm now updated to rev.10307).  The problem is
> that my json.xq is now returning hundreds of errors in exist.log,

I removed the log message. The exception reported in the message is
expected and should not be considered an error.

Wolfgang

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: json.xq regression in 1.4rc?

by Joe Wicentowski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Wolfgang,

On Sun, Nov 1, 2009 at 5:09 AM, Wolfgang <wolfgang@...> wrote:
>> I have noticed one odd issue since updating my pre-production code to
>> recent builds of 1.4rc (I'm now updated to rev.10307).  The problem is
>> that my json.xq is now returning hundreds of errors in exist.log,
>
> I removed the log message. The exception reported in the message is expected
> and should not be considered an error.

I've rebuilt and can confirm that the error messages are no longer present.

Thank you!
Joe

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open