Results 1 to 3 of 3

Thread: Sun One Portal Issue: contentType either contains a wildcard

  1. #1
    Join Date
    Sep 2004
    Posts
    346

    Default Sun One Portal Issue: contentType either contains a wildcard

    I am getting following error in Sun One Portal. Is this a Sun One Portal issue or should framework set content type automatically?

    ERROR:
    ViewRendererServlet: 96 - Could not complete request
    java.lang.IllegalStateException: RenderResponseImpl.getWriter: contentType either contains a wildcard or is not set

  2. #2
    Join Date
    Sep 2004
    Posts
    346

    Default To fix problem I included following code

    I tried to fix problem by including the following code in ViewRendererServlet
    Code:
           
     ...     	
                    if (view instanceof AbstractView) {
                		response.setContentType(((AbstractView) view).getContentType());
                	}
                    view.render(model, request, response);
    ...
    however I saw comment in InternalResourceView that
    // Note: The JSP is supposed to determine the content type itself.

    Is that in JSP spec?

    And if so does that mean thet Sun One Portal is performing incorrectly?


    the request passed into ViewRendererServlet is com.sun.portal.portlet.impl.RDResponseWrapper and a set content on it has no effect on wrapped response so that's why my solution did not work.


    What's the recommended approach or work-around here?

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

    Default Fixed (Hopefully?)

    I think this problem is fixed in the latest update to the Spring Portlet MVC framework, but I don't have an environment where I can test this. You can get the new download at:

    http://opensource.atlassian.com/conf...ay/JSR168/Home

    Let me know if it works.

Similar Threads

  1. Workaround for BeanUtils Issue in Spring??
    By tdanecito in forum Container
    Replies: 4
    Last Post: Apr 5th, 2006, 02:26 PM
  2. jBoss Portal & Acegi
    By assamese in forum Security
    Replies: 3
    Last Post: Aug 21st, 2005, 09:40 AM
  3. Replies: 5
    Last Post: Aug 11th, 2005, 02:38 AM
  4. BEA Portal 8.1 and Spring WebFlow
    By sgulics in forum Web Flow
    Replies: 0
    Last Post: Aug 8th, 2005, 04:51 PM
  5. Spring Support in BEA Portal 8.1
    By sgulics in forum Web
    Replies: 0
    Last Post: Aug 8th, 2005, 04:51 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
  •