[ 
http://opensource.atlassian.com/projects/roller/browse/ROL-1417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_13749
 ] 

Anil Gangolli commented on ROL-1417:
------------------------------------

I just fixed this particular instance in trunk and 3.1 branch as revisions 
537687 and 537690.

> ClassCastException on "Getting Weblog Letter Map"
> -------------------------------------------------
>
>                 Key: ROL-1417
>                 URL: 
> http://opensource.atlassian.com/projects/roller/browse/ROL-1417
>             Project: Roller
>          Issue Type: Bug
>          Components: Database Access & Data Model
>    Affects Versions: 3.1
>         Environment: Win XP, MySQL 5.0, Tomcat 5.0
>            Reporter: Dolan Halbrook
>            Assignee: Roller Unassigned
>
> This is related to ROL-1391 (same bug, but in a different place in the 
> source).  Here is the stack trace I'm seeing:
> ERROR 2007-05-15 16:07:14,983 
> HibernateUserManagerImpl:getWeblogHandleLetterMap - Getting weblog letter map
> java.lang.ClassCastException: java.lang.Long
>       at 
> org.apache.roller.business.hibernate.HibernateUserManagerImpl.getWeblogHandleLetterMap(HibernateUserManagerImpl.java:885)
>       at 
> org.apache.roller.ui.rendering.model.SiteModel.getWeblogHandleLetterMap(SiteModel.java:259)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:585)
>       at 
> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:267)
>       at 
> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:197)
>       at 
> org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175)
>       at 
> org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:327)
>       at 
> org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:51)
> Again, line 885 should cast to a Number instead of an Integer.  The following 
> line can then call new Integer(count.intValue()) instead of "count".

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

        

Reply via email to