jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shelby, Sean" <sshe...@roundarch.com>
Subject RE: Broadvision 6.0 and Cactus
Date Fri, 11 Mar 2005 23:54:41 GMT
I believe I've found the cause of the problem.  Because Broadvision's
implementation of the servlet 2.2 spec is based on BV components,
certain methods are not supported.  Among these is
ServletRequest.getInputStream(), which retrieves the body of the request
as binary data using a ServletInputStream.  This method is called by the
Cactus object that wraps HttpServletRequests
(AbstractHttpServletRequestWrapper).  Any calls to this method lead to
the following exception in BV:

com.broadvision.servlet.BVServletUnsupportedOperationException:
Unsupported operation: HttpServletRequest.getInputStream()
	at
com.broadvision.servlet.BVHttpServletRequest.getInputStream(BVHttpServle
tRequest.java:1357)
	at SampleServlet.doGet(SampleServlet.java:42)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
com.broadvision.servlet.ServletContainer.service(ServletContainer.java:4
04)
	at
com.broadvision.servlet.ServletContainer.processRequest(ServletContainer
java:348)
	at
com.broadvision.servlet.ServletContextContainer.processRequest(ServletCo
ntextContainer.java:819)
	at
com.broadvision.servlet.BVServletEngine.service(BVServletEngine.java:243
)
	at
com.broadvision.servlet.BVServletConnector.service(BVServletConnector.ja
va:141)

This matches end of the trace that was provided by the Cactus test in my
subsequent post.  Does anyone know a way to work around this.  Is it
possible to get the body of the request without using the
getInputStream() or getReader() methods?
 

Sean

 


Mime
View raw message