[jboss-jira] [JBoss JIRA] Created: (JBFORUMS-254) ClassCastException in org.jboss.portlet.forums.ui.PortalUtil in function getPoster

Lukasz Wiktor (JIRA) jira-events at lists.jboss.org
Mon Oct 8 17:58:03 EDT 2007


ClassCastException in org.jboss.portlet.forums.ui.PortalUtil in function getPoster
----------------------------------------------------------------------------------

                 Key: JBFORUMS-254
                 URL: http://jira.jboss.com/jira/browse/JBFORUMS-254
             Project: JBoss Forums
          Issue Type: Bug
    Affects Versions: 1.0.0 GA
         Environment: JBoss Portal 2.6.1.GA bundled with JBoss AS 4.2.1 and  integrated with OpenLDAP
            Reporter: Lukasz Wiktor
         Assigned To: Ryszard Kozmik


In class org.jboss.portlet.forums.ui.PortalUtil in function getPoster() userId is casted to Long. That causes ClassCastException when userId is for example type of String (in LDAP).

2007-10-04 15:35:07,700 ERROR [org.jboss.portlet.forums.ui.JSFUtil] org.jboss.portlet.forums.ui.JSFUtil
java.lang.ClassCastException: java.lang.String
	at org.jboss.portlet.forums.ui.PortalUtil.getPoster(PortalUtil.java:467)
             ...

It prevents from e.g. creating new topic.

See my posts on the forum. I have proposed the solution.

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

        



More information about the jboss-jira mailing list