KB Article #176413

Content-type for SetMessage Filter throws: com.vordel.circuit.FilterContainer.configureFilter(FilterContainer.java:45)

Problem

- during executing a REST to SOAP transformation, this message is got:

ERROR   2014/06/05 16:03:59.593    Error in circuit "rest_to_soap_conversion":
com.vordel.es.EntityStoreException: Failed to configure filter: /[CircuitContainer]name=0_cdtu_testing/[FilterCircuit]name=rest_to_soap_conversion/[ChangeMessageFilter]name=Create new SOAP request
    at com.vordel.circuit.FilterContainer.configureFilter(FilterContainer.java:45)
    at com.vordel.circuit.Circuit.createContainer(Circuit.java:270)
    at com.vordel.circuit.Circuit.loadFilter(Circuit.java:214)
    at com.vordel.circuit.Circuit.loadFilter(Circuit.java:218)
    at com.vordel.circuit.Circuit.loadFilter(Circuit.java:218)
    at com.vordel.circuit.Circuit.configure(Circuit.java:183)
    at com.vordel.circuit.CircuitCache.getCircuit(CircuitCache.java:61)
    at com.vordel.circuit.CircuitChainFilter.resolveCircuits(CircuitChainFilter.java:68)
    at com.vordel.circuit.CircuitChainProcessor.attach(CircuitChainProcessor.java:25)
    at com.vordel.dwe.http.HTTPPlugin.configureCircuits(HTTPPlugin.java:163)
    at com.vordel.dwe.http.HTTPPlugin.configure(HTTPPlugin.java:117)
    at com.vordel.dwe.NativeModule.configure(NativeModule.java:127)
    at com.vordel.dwe.NativeModule.configure(NativeModule.java:58)
    at com.vordel.precipitate.SolutionPack.loadModules(SolutionPack.java:592)
    at com.vordel.dwe.Service.refresh(Service.java:427)
    at com.vordel.api.configuration.ConfigurationService.updateConfiguration(ConfigurationService.java:85)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
    at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)
    at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
    at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
    at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
    at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
    at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
    at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)
    at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)
    at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)
    at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)
    at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
    at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
    at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:699)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 61
    at java.lang.String.charAt(String.java:658)
    at com.vordel.mime.ContentTypeHeaderParser.parse(ContentTypeHeaderParser.java:95)
    at com.vordel.circuit.conversion.ConversionProcessor.getContentType(ConversionProcessor.java:44)
    at com.vordel.circuit.conversion.ConversionProcessor.filterAttached(ConversionProcessor.java:28)
    at com.vordel.circuit.conversion.ChangeMessageProcessor.filterAttached(ChangeMessageProcessor.java:21)
    at com.vordel.circuit.FilterContainer.configureFilter(FilterContainer.java:43)
    ... 34 more

Resolution

* Content-type for SetMessage Filter was set not properly:
wrong:

    application/soap+xml; action="http://ws.cdyne.com/ResolveIP"

correct:
    application/soap+xml