Results 1 to 3 of 3

Thread: Problem with Books sample portlet on JBoss

  1. #1
    Join Date
    Sep 2005
    Posts
    5

    Default Problem with Books sample portlet on JBoss

    Just as a quick test I'm trying to evaluate the upcoming support for portlets. I downloaded the sample portlets from http://opensource2.atlassian.com/con...ay/JSR168/Home and added the JBoss specific deployment descriptors. During the first attempt, both the mode and books samples died with a PortletException that the controller did not handle action requests.

    So I took the BooksController, and added the missing handleActionRequestInternal method, and sure enough the portlet rendered just fine. However, when I hit the refresh button on the browser, JBoss threw a HTTP 500 server error:


    Code:
    javax.servlet.ServletException: Unknown result org.jboss.portal.server.output.FragmentResult@9d52ac
    	org.jboss.portal.core.servlet.CoreServlet.render(CoreServlet.java:223)
    	org.jboss.portal.server.servlet.AbstractMainServlet.invoke(AbstractMainServlet.java:81)
    	org.jboss.portal.server.servlet.AbstractMainServlet.doGet(AbstractMainServlet.java:71)
    	javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
    	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    ... (shortened for brevity)
    Has anybody else tried to deploy the samples in JBoss? I've tried both 4.0 and 4.01RC1 with the same results. I suspect it's some sort of badness in JBoss itself, but haven't had time to track it down yet. The interesting part is that if you wait at least 30 seconds and then hit reload, it works just fine. Also, I see the same behaviour when submitting the form on the Add Book page - if I don't wait 30 seconds, it throws the exact same exception.

  2. #2
    Join Date
    Sep 2005
    Posts
    5

    Default

    Problem "solved". Looks like the problem is with the expiration-cache settings in portlet.xml. I commented out the line:

    <!-- <expiration-cache>60</expiration-cache> -->

    for the books portlet, and it no longer throws the exception, so it looks like a JBoss problem.

  3. #3
    Join Date
    Sep 2004
    Location
    Arizona, USA
    Posts
    383

    Default Interesting JBoss Bug

    Glad you found that. I will simplify the example code and remove the expiration cache setting. Did you report the problem to the JBoss gang?

Similar Threads

  1. Replies: 10
    Last Post: Jun 29th, 2006, 08:19 AM
  2. Replies: 2
    Last Post: Jul 28th, 2005, 06:02 PM
  3. Replies: 1
    Last Post: Jun 21st, 2005, 01:05 AM
  4. Problem with portlet support...
    By garpinc2 in forum Web Flow
    Replies: 10
    Last Post: Jun 19th, 2005, 10:47 AM
  5. Problem with attributes sample (Bank)
    By mazir in forum Security
    Replies: 5
    Last Post: Feb 11th, 2005, 12:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •