roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Johnson (JIRA)" <nore...@atlassian.com>
Subject [Roller-JIRA] Updated: (ROL-1506) ArgumentException occurs when select to query comments with date data
Date Mon, 30 Jul 2007 18:15:25 GMT

     [ http://opensource.atlassian.com/projects/roller/browse/ROL-1506?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

David Johnson updated ROL-1506:
-------------------------------

         Assignee: David Johnson  (was: Roller Unassigned)
    Fix Version/s: 4.0

Looks like a JPA issue

> ArgumentException occurs when select to query comments with date data
> ---------------------------------------------------------------------
>
>                 Key: ROL-1506
>                 URL: http://opensource.atlassian.com/projects/roller/browse/ROL-1506
>             Project: Roller
>          Issue Type: Bug
>          Components: Weblog Categories
>    Affects Versions: 4.0
>         Environment: glassfish V2 / winXP
>            Reporter: Davis Nguyen
>            Assignee: David Johnson
>            Priority: Critical
>             Fix For: 4.0
>
>
> when select to query comments with using filter data as date field,  ArgumentException
occurs
> STEPS TO REPRODUCE:
> 1. Install glassfish V2 with Sun custom Roller (7/27/2007) build
> 2. Start Roller > register a user > create a weblog > a log entry
> 3. Go to Create & Edit > Comments > select to query with filter as
>        Start date: 07/27/07
>        End date: 07/27/07
>    Click Query button
> BUG:
> Status Code 500 
> Message <0.9.7-incubating nonfatal user error> org.apache.openjpa.persistence.ArgumentException:
An error occurred while parsing the query filter 'SELECT c FROM WeblogEntryComment c WHERE
c.weblogEntry.website = ?1 AND (c.url LIKE ?2 OR c.content LIKE ?2) AND c.postTime >= ?
AND c.postTime <= ? ORDER BY c.postTime DESC'. Error message: <0.9.7-incubating nonfatal
user error> org.apache.openjpa.kernel.jpql.ParseException: Encountered "c . postTime >=
? AND" at character 115, but expected: ["(", "*", "+", "-", ".", "/", ":", "<", "<=",
"<>", "=", ">", ">=", "?", "ABS", "ALL", "AND", "ANY", "AS", "ASC", "AVG", "BETWEEN",
"BOTH", "BY", "CONCAT", "COUNT", "CURRENT_DATE", "CURRENT_TIME", "CURRENT_TIMESTAMP", "DELETE",
"DESC", "DISTINCT", "EMPTY", "ESCAPE", "EXISTS", "FETCH", "FROM", "GROUP", "HAVING", "IN",
"INNER", "IS", "JOIN", "LEADING", "LEFT", "LENGTH", "LIKE", "LOCATE", "LOWER", "MAX", "MEMBER",
"MIN", "MOD", "NEW", "NOT", "NULL", "OBJECT", "OF", "OR", "ORDER", "OUTER", "SELECT", "SET",
"SIZE", "SOME", "SQRT", "SUBSTRING", "SUM", "TRAILING", "TRIM", "UPDATE", "UPPER", "WHERE",
<DECIMAL_LITERAL>, <IDENTIFIER>, <INTEGER_LITERAL>, <STRING_LITERAL>].

> Type  
> Exception Roller has encountered and logged an unexpected exception. 
> DENTIFIER>, <INTEGER_LITERAL>, <STRING_LITERAL>].

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/roller/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message