You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Jasmina (JIRA)" <ji...@apache.org> on 2008/01/15 02:53:34 UTC

[jira] Created: (JXPATH-116) Query java.util.Date from java object using JXPATH query

Query java.util.Date from java object using JXPATH query
--------------------------------------------------------

                 Key: JXPATH-116
                 URL: https://issues.apache.org/jira/browse/JXPATH-116
             Project: Commons JXPath
          Issue Type: Bug
         Environment: Java
            Reporter: Jasmina


I am using JXPATH queries to queru Java Objects in memory and filter them.
My client selects  adate range viz. start date and end date and the middle tier stores these dates as java.util.date in a java object.
Now I am trying to write a JXPATH query that would basically query this java object for a range of dates.

I have a query like:

/wirelessDevices[marketData/enteredMarketDate >= xs:date:("2008-01-01") and marketData/enteredMarketDate <= xs:date:("2008-01-14") ]

This gives me an error Invalid XPATH.

Even if I chnage it to 


/wirelessDevices[marketData/enteredMarketDate >= "2008-01-01" and marketData/enteredMarketDate <= "2008-01-14") ]

I get the same error.

I am really confused how to query on java.util.dates using JXPATH.

May be this is a bug. I could not find such a reference in the documentation.

Kindly let me know.

Thanks
Jasmina 


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


[jira] Resolved: (JXPATH-116) Query java.util.Date from java object using JXPATH query

Posted by "Matt Benson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JXPATH-116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Benson resolved JXPATH-116.
--------------------------------

    Resolution: Invalid

We are not in bug territory here; this is a usage issue which we should be able to resolve in the dialogue started on the user list.  I intend to respond there in a few hours; if I do not please feel free to remind me.

> Query java.util.Date from java object using JXPATH query
> --------------------------------------------------------
>
>                 Key: JXPATH-116
>                 URL: https://issues.apache.org/jira/browse/JXPATH-116
>             Project: Commons JXPath
>          Issue Type: Bug
>         Environment: Java
>            Reporter: Jasmina
>
> I am using JXPATH queries to queru Java Objects in memory and filter them.
> My client selects  adate range viz. start date and end date and the middle tier stores these dates as java.util.date in a java object.
> Now I am trying to write a JXPATH query that would basically query this java object for a range of dates.
> I have a query like:
> /wirelessDevices[marketData/enteredMarketDate >= xs:date:("2008-01-01") and marketData/enteredMarketDate <= xs:date:("2008-01-14") ]
> This gives me an error Invalid XPATH.
> Even if I chnage it to 
> /wirelessDevices[marketData/enteredMarketDate >= "2008-01-01" and marketData/enteredMarketDate <= "2008-01-14") ]
> I get the same error.
> I am really confused how to query on java.util.dates using JXPATH.
> May be this is a bug. I could not find such a reference in the documentation.
> Kindly let me know.
> Thanks
> Jasmina 

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


[jira] Commented: (JXPATH-116) Query java.util.Date from java object using JXPATH query

Posted by "Jasmina (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JXPATH-116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12559218#action_12559218 ] 

Jasmina commented on JXPATH-116:
--------------------------------

HI Matt,

How can this be resolved?

Thanks
Jasmina


https://issues.apache.org/jira/browse/JXPATH-116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
--------------------------------------------------------


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


> Query java.util.Date from java object using JXPATH query
> --------------------------------------------------------
>
>                 Key: JXPATH-116
>                 URL: https://issues.apache.org/jira/browse/JXPATH-116
>             Project: Commons JXPath
>          Issue Type: Bug
>         Environment: Java
>            Reporter: Jasmina
>
> I am using JXPATH queries to queru Java Objects in memory and filter them.
> My client selects  adate range viz. start date and end date and the middle tier stores these dates as java.util.date in a java object.
> Now I am trying to write a JXPATH query that would basically query this java object for a range of dates.
> I have a query like:
> /wirelessDevices[marketData/enteredMarketDate >= xs:date:("2008-01-01") and marketData/enteredMarketDate <= xs:date:("2008-01-14") ]
> This gives me an error Invalid XPATH.
> Even if I chnage it to 
> /wirelessDevices[marketData/enteredMarketDate >= "2008-01-01" and marketData/enteredMarketDate <= "2008-01-14") ]
> I get the same error.
> I am really confused how to query on java.util.dates using JXPATH.
> May be this is a bug. I could not find such a reference in the documentation.
> Kindly let me know.
> Thanks
> Jasmina 

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


[jira] Updated: (JXPATH-116) Query java.util.Date from java object using JXPATH query

Posted by "Matt Benson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JXPATH-116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Benson updated JXPATH-116:
-------------------------------

    Comment: was deleted

> Query java.util.Date from java object using JXPATH query
> --------------------------------------------------------
>
>                 Key: JXPATH-116
>                 URL: https://issues.apache.org/jira/browse/JXPATH-116
>             Project: Commons JXPath
>          Issue Type: Bug
>         Environment: Java
>            Reporter: Jasmina
>
> I am using JXPATH queries to queru Java Objects in memory and filter them.
> My client selects  adate range viz. start date and end date and the middle tier stores these dates as java.util.date in a java object.
> Now I am trying to write a JXPATH query that would basically query this java object for a range of dates.
> I have a query like:
> /wirelessDevices[marketData/enteredMarketDate >= xs:date:("2008-01-01") and marketData/enteredMarketDate <= xs:date:("2008-01-14") ]
> This gives me an error Invalid XPATH.
> Even if I chnage it to 
> /wirelessDevices[marketData/enteredMarketDate >= "2008-01-01" and marketData/enteredMarketDate <= "2008-01-14") ]
> I get the same error.
> I am really confused how to query on java.util.dates using JXPATH.
> May be this is a bug. I could not find such a reference in the documentation.
> Kindly let me know.
> Thanks
> Jasmina 

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


[jira] Commented: (JXPATH-116) Query java.util.Date from java object using JXPATH query

Posted by "Jasmina (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JXPATH-116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12559114#action_12559114 ] 

Jasmina commented on JXPATH-116:
--------------------------------

Hi Matt,

Can you please respond to this issue.

Thanks in advance!

Regards
Jasmina


https://issues.apache.org/jira/browse/JXPATH-116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
--------------------------------------------------------


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


> Query java.util.Date from java object using JXPATH query
> --------------------------------------------------------
>
>                 Key: JXPATH-116
>                 URL: https://issues.apache.org/jira/browse/JXPATH-116
>             Project: Commons JXPath
>          Issue Type: Bug
>         Environment: Java
>            Reporter: Jasmina
>
> I am using JXPATH queries to queru Java Objects in memory and filter them.
> My client selects  adate range viz. start date and end date and the middle tier stores these dates as java.util.date in a java object.
> Now I am trying to write a JXPATH query that would basically query this java object for a range of dates.
> I have a query like:
> /wirelessDevices[marketData/enteredMarketDate >= xs:date:("2008-01-01") and marketData/enteredMarketDate <= xs:date:("2008-01-14") ]
> This gives me an error Invalid XPATH.
> Even if I chnage it to 
> /wirelessDevices[marketData/enteredMarketDate >= "2008-01-01" and marketData/enteredMarketDate <= "2008-01-14") ]
> I get the same error.
> I am really confused how to query on java.util.dates using JXPATH.
> May be this is a bug. I could not find such a reference in the documentation.
> Kindly let me know.
> Thanks
> Jasmina 

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