File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Portals and Portlets and the fly likes portalURLWriter throws string ClassCastException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "portalURLWriter throws string ClassCastException" Watch "portalURLWriter throws string ClassCastException" New topic

portalURLWriter throws string ClassCastException

E Paisley

Joined: Sep 22, 2008
Posts: 14

Has anyone ever used the portalURLWriter to generate a portal link to another portlet? I'm attempting to do so and I keep getting a
java.lang.ClassCastException: java.lang.String on the code below where I call the portalURLWriter.writePortletRenderURL. How can I fix this?

Here is the stack trace:

I agree. Here's the link:
subject: portalURLWriter throws string ClassCastException
It's not a secret anymore!