You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by "German Eichberger (JIRA)" <no...@atlassian.com> on 2007/12/18 00:55:33 UTC

[Roller-JIRA] Created: (ROL-1637) Can't add new entry to Blog

Can't add new entry to Blog
---------------------------

                 Key: ROL-1637
                 URL: http://opensource.atlassian.com/projects/roller/browse/ROL-1637
             Project: Roller
          Issue Type: Bug
          Components: Database Access & Data Model, JPA Backend
    Affects Versions: 4.0
         Environment: Tomcat winbdows, Postgres, etc.
            Reporter: German Eichberger
            Assignee: Roller Unassigned


When I try to create a new entry (URL http://playersblog-local.station.sony.com/roller-ui/authoring/entryAdd!save.rol) I am getting an error "Error saving new entry" --

In the log file I am seeing the following exceptions:

Caused by: org.apache.openjpa.lib.jdbc.ReportingSQLException: ERROR: unterminated quoted string at or near "'\') GROUP
BY t0.name, t0.total ORDER BY t0.name ASC" {prepstmnt 29686429 SELECT t0.name, SUM(t0.total) FROM roller_weblogentrytagagg t0 WHERE (t0.websiteid = ? AND t0.name LIKE ? ESCAPE '\') GROUP BY t0.name, t0.total ORDER BY t0.name ASC [params=(String) 49fe2f46-d4e8-4f88-b824-d2a365b9445d, (String) test%]} [code=0, state=42601]

....

Caused by: org.apache.openjpa.lib.jdbc.ReportingSQLException: ERROR: syntax error at or near "t0" {prepstmnt 18493627 UPDATE roller_tasklock t0 SET timeacquired = CURRENT_TIMESTAMP, client = ?, lastrun = ?, timeleased = ? WHERE (t0.name = ? AND t0.timeacquired = ? AND ? < CURRENT_TIMESTAMP) [params=(String) defaultClientId, (Timestamp) 2007-12-17 15:50:00.0, (int) 30, (String) ScheduledEntriesTask, (Timestamp) 1969-12-31 16:00:00.0, (Timestamp) 1969-12-31 16:00:00.0]} [code=0, state=42601]

...

WARN  2007-12-17 15:50:00,119 JPAThreadManagerImpl:registerLease - Error obtaining lease, assuming race condition.
<0.9.7-incubating nonfatal general error> org.apache.openjpa.persistence.PersistenceException: ERROR: syntax error at or near "t0" {prepstmnt 9144209 UPDATE roller_tasklock t0 SET timeacquired = CURRENT_TIMESTAMP, client = ?, lastrun = ?, timeleased = ? WHERE (t0.name = ? AND t0.timeacquired = ? AND ? < CURRENT_TIMESTAMP) [params=(String) defaultClientId, (Timestamp) 2007-12-17 15:50:00.0, (int) 30, (String) PingQueueTask, (Timestamp) 1969-12-31 16:00:00.0, (Timestamp) 1969-12-31 16:00:00.0]} [code=0, state=42601]
FailedObject: org.apache.openjpa.jdbc.kernel.exps.ExpContext@1dfb8d0

....

WARN  2007-12-17 15:50:34,572 WebloggerRuntimeConfig:getProperty - Trouble accessing property: site.shortName
<0.9.7-incubating nonfatal general error> org.apache.openjpa.persistence.PersistenceException: ERROR: current transaction is aborted, commands ignored until end of transaction block {prepstmnt 24230640 SELECT t0.value FROM roller_properties t0 WHERE t0.name = ? [params=(String) site.shortName]} [code=0, state=25P02]

....

NestedThrowables:
java.sql.SQLException: ERROR: current transaction is aborted, commands ignored until end of transaction block

....






-- 
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

        

[Roller-JIRA] Commented: (ROL-1637) Can't add new entry to Blog

Posted by "German Eichberger (JIRA)" <no...@atlassian.com>.
    [ http://opensource.atlassian.com/projects/roller/browse/ROL-1637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_14209 ] 

German Eichberger commented on ROL-1637:
----------------------------------------

I chnaged the theme from "Roller Homepage" to "Brushed metal" and I can see all my entries --

I played around more and noticed that I ONLY get this error if I fill something into the field "Tags" -- strange...


> Can't add new entry to Blog
> ---------------------------
>
>                 Key: ROL-1637
>                 URL: http://opensource.atlassian.com/projects/roller/browse/ROL-1637
>             Project: Roller
>          Issue Type: Bug
>          Components: Database Access & Data Model, JPA Backend
>    Affects Versions: 4.0
>         Environment: Tomcat winbdows, Postgres, etc.
>            Reporter: German Eichberger
>            Assignee: Roller Unassigned
>
> When I try to create a new entry (URL http://playersblog-local.station.sony.com/roller-ui/authoring/entryAdd!save.rol) I am getting an error "Error saving new entry" --
> In the log file I am seeing the following exceptions:
> Caused by: org.apache.openjpa.lib.jdbc.ReportingSQLException: ERROR: unterminated quoted string at or near "'\') GROUP
> BY t0.name, t0.total ORDER BY t0.name ASC" {prepstmnt 29686429 SELECT t0.name, SUM(t0.total) FROM roller_weblogentrytagagg t0 WHERE (t0.websiteid = ? AND t0.name LIKE ? ESCAPE '\') GROUP BY t0.name, t0.total ORDER BY t0.name ASC [params=(String) 49fe2f46-d4e8-4f88-b824-d2a365b9445d, (String) test%]} [code=0, state=42601]
> ....
> Caused by: org.apache.openjpa.lib.jdbc.ReportingSQLException: ERROR: syntax error at or near "t0" {prepstmnt 18493627 UPDATE roller_tasklock t0 SET timeacquired = CURRENT_TIMESTAMP, client = ?, lastrun = ?, timeleased = ? WHERE (t0.name = ? AND t0.timeacquired = ? AND ? < CURRENT_TIMESTAMP) [params=(String) defaultClientId, (Timestamp) 2007-12-17 15:50:00.0, (int) 30, (String) ScheduledEntriesTask, (Timestamp) 1969-12-31 16:00:00.0, (Timestamp) 1969-12-31 16:00:00.0]} [code=0, state=42601]
> ...
> WARN  2007-12-17 15:50:00,119 JPAThreadManagerImpl:registerLease - Error obtaining lease, assuming race condition.
> <0.9.7-incubating nonfatal general error> org.apache.openjpa.persistence.PersistenceException: ERROR: syntax error at or near "t0" {prepstmnt 9144209 UPDATE roller_tasklock t0 SET timeacquired = CURRENT_TIMESTAMP, client = ?, lastrun = ?, timeleased = ? WHERE (t0.name = ? AND t0.timeacquired = ? AND ? < CURRENT_TIMESTAMP) [params=(String) defaultClientId, (Timestamp) 2007-12-17 15:50:00.0, (int) 30, (String) PingQueueTask, (Timestamp) 1969-12-31 16:00:00.0, (Timestamp) 1969-12-31 16:00:00.0]} [code=0, state=42601]
> FailedObject: org.apache.openjpa.jdbc.kernel.exps.ExpContext@1dfb8d0
> ....
> WARN  2007-12-17 15:50:34,572 WebloggerRuntimeConfig:getProperty - Trouble accessing property: site.shortName
> <0.9.7-incubating nonfatal general error> org.apache.openjpa.persistence.PersistenceException: ERROR: current transaction is aborted, commands ignored until end of transaction block {prepstmnt 24230640 SELECT t0.value FROM roller_properties t0 WHERE t0.name = ? [params=(String) site.shortName]} [code=0, state=25P02]
> ....
> NestedThrowables:
> java.sql.SQLException: ERROR: current transaction is aborted, commands ignored until end of transaction block
> ....

-- 
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