Bug 979398 - http binding throws NPE if ONE-WAY service is used
http binding throws NPE if ONE-WAY service is used
Status: CLOSED CURRENTRELEASE
Product: JBoss Fuse Service Works 6
Classification: JBoss
Component: SwitchYard (Show other bugs)
6.0.0 GA
Unspecified Unspecified
unspecified Severity urgent
: ER1
: ---
Assigned To: Magesh Kumar Bojan
Jiri Sedlacek
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-28 08:34 EDT by Jiri Sedlacek
Modified: 2015-10-18 18:38 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
reproducer app (1.77 KB, application/x-compressed-tar)
2013-06-28 08:34 EDT, Jiri Sedlacek
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
JBoss Issue Tracker SWITCHYARD-1571 Major Closed HTTP service binding throws NPE if bound with in-only MEP service 2014-06-16 19:52:39 EDT

  None (edit)
Description Jiri Sedlacek 2013-06-28 08:34:57 EDT
Created attachment 766555 [details]
reproducer app

If one-way service is used with http binding, NPE is thrown:

ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/http-binding].[HttpGatewayServlet]] (http-localhost/127.0.0.1:8080-1) JBWEB000236: Servlet.service() for servlet HttpGatewayServlet threw exception: java.lang.NullPointerException
	at org.switchyard.component.http.HttpGatewayServlet.handle(HttpGatewayServlet.java:162) [switchyard-component-http-1.0.0.Alpha1.jar:1.0.0.Alpha1]
	at org.switchyard.component.http.HttpGatewayServlet.service(HttpGatewayServlet.java:119) [switchyard-component-http-1.0.0.Alpha1.jar:1.0.0.Alpha1]
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920)
	at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_21]


reproducer project is attached.
Comment 1 Jiri Sedlacek 2013-06-28 09:04:41 EDT
problem visible in DR6 (switchyard 1.0.0.Alpha1)
Comment 2 Keith Babo 2013-07-01 13:29:04 EDT
Looks like HttpResponseBindingData is returning null for status when it's not set explicitly, which is triggering the NPE.

I disagree that this is a blocker for Alpha 2 as it only applies to in-only MEPs in one gateway (HTTP).
Comment 3 JBoss JIRA Server 2013-07-02 09:42:03 EDT
Keith Babo <kbabo@redhat.com> made a comment on jira SWITCHYARD-1571

pushed
Comment 5 Jiri Sedlacek 2013-09-16 14:05:11 EDT
verified in ER2
Comment 9 JBoss JIRA Server 2014-06-16 19:52:39 EDT
Keith Babo <kbabo@redhat.com> updated the status of jira SWITCHYARD-1571 to Closed

Note You need to log in before you can comment on or make changes to this bug.