Announcement Announcement Module
No announcement yet.
Portlet InvalidURLException The provided portlet url is invalid. Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Portlet InvalidURLException The provided portlet url is invalid.

    Iam developing a spring portlet application.

    Iam facing a problem like on every portlet request Iam getting an Invalid url exception and teh message like the provided portlet url is invalid.

    Iam using a portlet renderURL tag.

    <a href='<portlet:renderURL>
    <portletaram name="action" value="selectProduct" />
    select Product </a>

    the generated portlet url looks like this.


    The full stack trace is as below.

    [10-3-08 23:35:41:134 CET] 00000026 SystemOut O [2008-03-10 23:35:41,134] DEBUG nl.rabobank.esavings.controller.SelectProductContr oller Setting form session attribute [nl.rabobank.esavings.controller.SelectProductContr oller.FORM.clientAccountDetails] to: null
    [10-3-08 23:35:41:150 CET] 00000026 DefaultFilter E DefaultFilter doFilter EJPPC2001E: Error occurred during portlet action. : EJPPC2006E: An InvalidURLException occurred. The provided portlet url is invalid.
    at er.analyzePathInfo(
    at er.analyzePathInfo(
    at er.<init>(
    at DefaultFilter.doFilter(
    at PortletDocumentFilterChain.doFilter(PortletDocumen
    at PortletDocumentFilterContainer.doFilter(PortletDoc
    at er.doFilter(
    at oFilter(
    at doFilter(
    at .doFilter(
    at .doFilter(
    at dleRequest(
    at andleRequest(
    at rapper.handleRequest( 2)
    at t(
    at est(
    at (
    at st(
    at y(
    at nk.handleDiscrimination(
    at nk.handleNewInformation(
    at llback.complete(
    at ner.futureCompleted( :165)
    at k(
    at Actions(
    at .java:136)
    at oop(
    at$ .java:873)
    at$ ava:1469)

    can some one please let me know why this exception is occuring.


  • #2
    No idea. This is a straight WebSphere problem. The URL is being generated by WebSphere's implementation of the portlet JSP tags and the exception is being thrown by WebSphere's own portlet URL handling. I suggest you ask this question in an appropriate WebSphere forum.

    One suggestion: try constructing the URL in your Controller via the RenderResponse object and then pass it out as part of your Model. Just to see if the resulting URL is at all different.


    • #3
      Most probably, your application is really producing invalid URLs. This is extremely easy, any relative URL in a portlet page will do. For example, if you have the following <img src="myimg.jpg"> on a page you obtained from /localhost/portletname/portletname/default/ver=1.0/rparam=action=actionname, you just produced the invalid URL /localhost/portletname/portletname/default/ver=1.0/t.jpg.

      I came across this post because I was experiencing the same problem before I realized what was going on. It is a shame the Websphere message does not show the invalid URL, it would be immediately obvious then.


      • #4
        any reason why you used portlet:renderURL tag in place of portlet:actionURL?