roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Johnson (JIRA)" <>
Subject [Roller-JIRA] Created: (ROL-1560) RAP is broken in 4.0
Date Mon, 10 Sep 2007 17:29:28 GMT
RAP is broken in 4.0

                 Key: ROL-1560
             Project: Roller
          Issue Type: Bug
          Components: Web Services
            Reporter: David Johnson
            Assignee: David Johnson
            Priority: Minor
             Fix For: 4.0

>From Jens Dürr:

I found a few bugs in RollerAdminProtocol implementation.

- Adding users doesn't work b/c property "screenName" isn't set on UserEntry and therefore
JPA complains about null property (see attached file UserEntryPatch.txt)
- Deleting members and users doesn't work b/c the resulting EntrySet of the delete action
is constructed after flushing the session. JPA sets some properties (in this case the timezone)
to null which leads to NPE (see attached files RollerUserHandlerPatch.txt and RollerMemberHandlerPatch.txt)

ERROR 2007-09-07 11:05:43,859 StandardWrapperValve:invoke - Servlet.service() for servlet
AdminServlet threw exception
    at sun.util.calendar.ZoneInfoFile.getFileName(
    at sun.util.calendar.ZoneInfoFile.createZoneInfo(
    at sun.util.calendar.ZoneInfoFile.getZoneInfo( :526)
    at sun.util.calendar.ZoneInfo.getTimeZone(
    at java.util.TimeZone.getTimeZone(
    at java.util.TimeZone.getTimeZone(
    at org.apache.roller.weblogger.webservices.adminprotocol.sdk.UserEntry.setTimezone (
    at org.apache.roller.weblogger.webservices.adminprotocol.RollerUserHandler.toUserEntry(
    at org.apache.roller.weblogger.webservices.adminprotocol.RollerUserHandler.toUserEntrySet
    at org.apache.roller.weblogger.webservices.adminprotocol.RollerUserHandler.deleteEntry(
    at org.apache.roller.weblogger.webservices.adminprotocol.RollerUserHandler.processDelete
    at org.apache.roller.weblogger.webservices.adminprotocol.AdminServlet.doDelete(
    at javax.servlet.http.HttpServlet.service(
    at javax.servlet.http.HttpServlet.service (

- Retrieveing all users doesn't work b/c JPAUserManagerImpl produces wrong SQL statement b/c
no parameters are provided (see attached file JPAUserManagerImplPatch.txt).

ERROR 2007-09-07 11:42:24,265 StandardWrapperValve:invoke - Servlet.service() for servlet
AdminServlet threw exception
<0.9.7-incubating nonfatal user error> org.apache.openjpa.persistence.ArgumentException:
An error occurred while parsing the query filter 'SELECT u FROM User u WHERE  ORDER BY u.dateCreated
DESC'. Error message: <0.9.7-incubating nonfatal user error> org.apache.openjpa.kernel.jpql.ParseException:
Encountered "ORDER BY" at character 29, but expected: ["(", "+", "-", ":", "<>", "=",

Maybe there is also an encoding problem when using german umlaute in creating users and weblogs
by rap. I'm not sure yet. I have to investigate further.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message