You are viewing a plain text version of this content. The canonical link for it is here.
Posted to portalapps-dev@portals.apache.org by "Woonsan Ko (JIRA)" <ji...@apache.org> on 2012/06/07 18:13:40 UTC
[jira] [Commented] (APA-49) Classcast Exception HttpPut in
ReverseProxyServlet
[ https://issues.apache.org/jira/browse/APA-49?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13291097#comment-13291097 ]
Woonsan Ko commented on APA-49:
-------------------------------
Thanks a lot for spotting this!
I've just committed the fix (r1347697).
It would take some time to get a new release. Hopefully I'd like to make a new release by the end of this month.
Would you possibly try to build/test from the trunk to see if it works?
$ svn checkout https://svn.apache.org/repos/asf/portals/applications/webcontent/trunk webcontent
$ cd webcontent
$ mvn install
And, you can use 1.3-SNAPSHOT in your project for the time being.
Regards,
Woonsan
> Classcast Exception HttpPut in ReverseProxyServlet
> --------------------------------------------------
>
> Key: APA-49
> URL: https://issues.apache.org/jira/browse/APA-49
> Project: Portals Apps
> Issue Type: Bug
> Components: apa-webcontent
> Affects Versions: apa-webcontent-1.2
> Environment: Maven Jetty project with a ReverseProxyServlet
> Reporter: Thijs Borst
> Assignee: Woonsan Ko
> Priority: Critical
> Labels: ReverseProxyServlet
> Fix For: apa-webcontent-1.3
>
>
> Currently developing against a REST service with a reverse proxy layer running on a local jetty server within maven (mvn jetty:run).
> The project is currently depending on this ReverseProxyServlet. We need this fixed badly!
> When performing a PUT to the REST server the following error occurs:
> java.lang.ClassCastException: org.apache.http.client.methods.HttpPut cannot be cast to org.apache.http.client.methods.HttpPost
> at org.apache.portals.applications.webcontent.proxy.impl.RewritableHttpReverseProxyServiceImpl.invoke(RewritableHttpReverseProxyServiceImpl.java:353)
> at org.apache.portals.applications.webcontent.proxy.impl.DefaultHttpReverseProxyServlet.service(DefaultHttpReverseProxyServlet.java:463)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401)
> at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
> at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
> at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> at org.mortbay.jetty.Server.handle(Server.java:326)
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
> at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
> at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
> at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira