Thanks for reporting that. I don't currently use or rely on RAP, so I
haven't been testing it. I'll take a look at this problem before the
next 4.0 RC.

I opened an issue to track this:
   http://opensource.atlassian.com/projects/roller/browse/ROL-1560

Which version of Roller are you using?

- Dave



On 9/7/07, Jens Dürr <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> 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
> java.lang.NullPointerException
>      at
> sun.util.calendar.ZoneInfoFile.getFileName(ZoneInfoFile.java:468)
>     at
> sun.util.calendar.ZoneInfoFile.createZoneInfo(ZoneInfoFile.java:556)
>     at
> sun.util.calendar.ZoneInfoFile.getZoneInfo(ZoneInfoFile.java
> :526)
>     at
> sun.util.calendar.ZoneInfo.getTimeZone(ZoneInfo.java:582)
>     at java.util.TimeZone.getTimeZone(TimeZone.java:482)
>     at java.util.TimeZone.getTimeZone(TimeZone.java:478)
>     at
> org.apache.roller.weblogger.webservices.adminprotocol.sdk.UserEntry.setTimezone
> (UserEntry.java:308)
>     at
> org.apache.roller.weblogger.webservices.adminprotocol.RollerUserHandler.toUserEntry(RollerUserHandler.java:252)
>     at
> org.apache.roller.weblogger.webservices.adminprotocol.RollerUserHandler.toUserEntrySet
> (RollerUserHandler.java:269)
>     at
> org.apache.roller.weblogger.webservices.adminprotocol.RollerUserHandler.deleteEntry(RollerUserHandler.java:236)
>     at
> org.apache.roller.weblogger.webservices.adminprotocol.RollerUserHandler.processDelete
> (RollerUserHandler.java:82)
>     at
> org.apache.roller.weblogger.webservices.adminprotocol.AdminServlet.doDelete(AdminServlet.java:123)
>     at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:716)
>     at javax.servlet.http.HttpServlet.service
> (HttpServlet.java:803)
>
> - 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: ["(", "+", "-", ":",
> "<>", "=", "?", "ABS", "ALL", "ANY", "ASC", "AVG", "CONCAT", "COUNT",
> "CURRENT_DATE", "CURRENT_TIME", "CURRENT_TIMESTAMP", "DESC", "EMPTY",
> "EXISTS", "LENGTH", "LOCATE", "LOWER", "MAX", "MEMBER", "MIN", "MOD", "NEW",
> "NOT", "ORDER", "SELECT", "SIZE", "SOME", "SQRT", "SUBSTRING", "SUM",
> "TRIM", "UPPER", <BOOLEAN_LITERAL>, <DECIMAL_LITERAL>, <IDENTIFIER>,
> <INTEGER_LITERAL>, <STRING_LITERAL>].
>
> 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.
>
> Jens
>
>
>
>
>

Reply via email to