1 Reply Latest reply on Jan 22, 2009 1:22 PM by BA_3

    HTTPProxyService Error using Tomcat

    BA_3
      I'm using BlazeDS to display RSS feed items in my Flex SWF. When I run the SWF under Eclipse's Tomcat 6 plugin, the SWF gets RSS feed data from external web sites, like Yahoo. However, when I deploy the same SWF file to a test server running Tomcat 6 as a service, I get the following error:

      [Flex]01/21/2009 10:13:41.006 [ERROR] [Message.General] Exception when invoking service: proxy-service
      with message: Flex Message (flex.messaging.messages.HTTPMessage)
      method = GET
      url = null
      headers = {DSEndpoint=connect-http-amf, DSId=9FC02338-2B08-98DD-A334-4F8D3367F834}
      clientId = 9FC02896-AE29-27E3-E802-6B3B1A979578
      destination = TalkibieFeed
      messageId = F17B6D86-2036-848E-080B-F9C0FC4F5D06
      timestamp = 1232550821006
      timeToLive = 0
      body = {}
      hdr(DSEndpoint) = connect-http-amf
      hdr(DSId) = 9FC02338-2B08-98DD-A334-4F8D3367F834
      Exception: java.lang.NullPointerException
      at flex.messaging.services.HTTPProxyService.invokeHttp(HTTPProxyService.java:320)
      at flex.messaging.services.HTTPProxyService.serviceMessage(HTTPProxyService.java:181)
      at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1503)
      at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:884)
      at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBrokerFilter.java:121)
      at flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:158)
      at flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:44)
      at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter.java:67)
      at flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:146)
      at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:278)
      at flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java:322)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
      at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:856)
      at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProto col.java:565)
      at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
      at java.lang.Thread.run(Unknown Source)

      I'm using BlazeDS 3.2 libraries deployed in a non-turnkey Tomcat instance. Line 320 from the HTTPProxyService file is:

      ((HTTPProxyDestinationControl)destination.getControl()).incrementInvokeHTTPCount();

      All of my other Remoting services work over the same AMF channel from both of the environments. What could be causing the null pointer? Any help would be greatly appreciated.