cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hübner, Stefan" <>
Subject problem with WebServiceProxyGenerator
Date Tue, 01 Jul 2003 15:41:06 GMT
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"


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

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(
	at org.apache.cocoon.generation.WebServiceProxyGenerator.generate(
	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(
	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(
Caused by: java.lang.IllegalArgumentException: host parameter is null
	at org.apache.commons.httpclient.HttpConnection.<init>(
	at org.apache.commons.httpclient.HttpConnection.<init>(
	at org.apache.commons.httpclient.SimpleHttpConnectionManager.getConnection(
	at org.apache.commons.httpclient.HttpClient.executeMethod(
	at org.apache.commons.httpclient.HttpClient.executeMethod(
	at org.apache.cocoon.generation.WebServiceProxyGenerator.fetch(

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?

View raw message