Title: problem with WebServiceProxyGenerator

Hello out there,

I'm developing a webapp with cocoon-2.1m2 and want to use the wsproxy. but wsproxy doesn't work, instead it throws an IllegalArgumentException "host parameter is null". the configuration is quite simple and should be correct - as far as the documentation is up to date.

<map:generator name="wsproxy" logger="webapp.wsproxy" pool-grow="2" pool-max="16" pool-min="2" src="">

<map:generate type="wsproxy" src="" href="http://localhost:8080/comnetSkat/login.skat">http://localhost:8080/comnetSkat/login.skat">
        <map:parameter name="wsproxy-method" value="POST"/>
</map:generate>


here's a snippet of the stack trace
ERROR   (2003-07-01) 17:12.05:452   [access] (/comnetCocoon/login.skat) Thread-10/CocoonServlet: Internal Cocoon Problem

org.apache.cocoon.ProcessingException: Error invoking remote service: java.lang.IllegalArgumentException: host parameter is null: java.lang.IllegalArgumentException: host parameter is null

        at org.apache.cocoon.generation.WebServiceProxyGenerator.fetch(WebServiceProxyGenerator.java:278)
        at org.apache.cocoon.generation.WebServiceProxyGenerator.generate(WebServiceProxyGenerator.java:158)
        at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:545)

        at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:489)

……...
Caused by: java.lang.IllegalArgumentException: host parameter is null
        at org.apache.commons.httpclient.HttpConnection.<init>(HttpConnection.java:227)
        at org.apache.commons.httpclient.HttpConnection.<init>(HttpConnection.java:148)
        at org.apache.commons.httpclient.SimpleHttpConnectionManager.getConnection(SimpleHttpConnectionManager.java:123)

        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:548)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:476)
        at org.apache.cocoon.generation.WebServiceProxyGenerator.fetch(WebServiceProxyGenerator.java:251)


so, what's going wrong here? i would be glad, if anybody could give an answer.


thanks you very much in advance.


stefan hübner


ps: I tried the HttpProxyGenerator, but this one doesn't fit my needs, because it passes only those parameters to the remote service which I configure in the sitemap - am I wrong?

Reply via email to