'java.lang.IllegalArgumentException: Content type is not supported' Thrown for an XHTML Portal
(Doc ID 1323866.1)
Last updated on JULY 08, 2022
Applies to:
Oracle WebLogic Portal - Version 10.3.2 and laterInformation in this document applies to any platform.
Symptoms
When attempting to render an XHTML JSR portlet within an XHTML enabled portal (as documented in the section 'Enabling XHTML in a Portal' of the WLP 10.3.2 Portal Development Guide), the following IllegalArgumentException is thrown:
java.lang.IllegalArgumentException: Content type text/html is not supported for portlet <PORTLET NAME> for this request.
at com.bea.portlet.container.MimeResponseImpl.setContentType(MimeResponseImpl.java:198)
at javax.portlet.filter.RenderResponseWrapper.setContentType(RenderResponseWrapper.java:139)
at com.bea.portlet.container.MimeResponseDispatcherWrapper.setContentType(MimeResponseDispatcherWrapper.java:177)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:222)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.ServletStubImpl.execute(SerlvetStubImpl.java:222)
at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:408)
...
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |
References |