You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Hübner, Stefan" <St...@gft-systems.de> on 2003/07/01 17:41:06 UTC

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="org.apache.cocoon.generation.WebServiceProxyGenerator"/>

...

<map:generate type="wsproxy" src="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?

Re: problem with WebServiceProxyGenerator

Posted by "Tony Collen (UMN IMAP)" <co...@umn.edu>.
Tony Collen wrote:

&snip;

> Does anybody know if commons-httpclient has changed recently?

It looks like a bit of stuff that the WSPG uses is currently marked as 
deprecated in commons-httpclient, which could be the cause of our 
problems here. I'll put working on this on my plate ASAP.


Tony


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: problem with WebServiceProxyGenerator

Posted by Tony Collen <co...@umn.edu>.
Joerg Heinicke wrote:
> There seems to be a real problem with WebServiceProxyGenerator:
> 
> http://www.mail-archive.com/cocoon-users@xml.apache.org/msg27925.html

Yeah, It's looking that way :(

I've noticed posts from other people asking about this, too -- no replies.

I'm a little short on time this afternoon, I'll try to dig into it tonight after class...


Tony


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: problem with WebServiceProxyGenerator

Posted by Joerg Heinicke <jo...@gmx.de>.
There seems to be a real problem with WebServiceProxyGenerator:

http://www.mail-archive.com/cocoon-users@xml.apache.org/msg27925.html

Joerg

Tony Collen wrote:
> Hübner, Stefan wrote:
> 
>> 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="org.apache.cocoon.generation.WebServiceProxyGenerator"/>
> 
> 
> [snip/]
> 
>> so, what's going wrong here? i would be glad, if anybody could give an 
>> answer.
> 
> 
> Well, Looking at the source to commons-httpclient at 
> http://jakarta.apache.org/commons/httpclient/xref/org/apache/commons/httpclient/HttpConnection.html, 
> it looks like the 'host' which is being passed to the constructor is 
> null.  Obviously, it's very strange this is happening.  I'll try to dig 
> into the WSPG code today and see if I find anything...
> 
> Does anybody know if commons-httpclient has changed recently?
> 
> 
> Tony


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: problem with WebServiceProxyGenerator

Posted by Tony Collen <co...@umn.edu>.
Hübner, Stefan wrote:
> 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="org.apache.cocoon.generation.WebServiceProxyGenerator"/>

[snip/]

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

Well, Looking at the source to commons-httpclient at 
http://jakarta.apache.org/commons/httpclient/xref/org/apache/commons/httpclient/HttpConnection.html, 
it looks like the 'host' which is being passed to the constructor is null.  Obviously, it's very 
strange this is happening.  I'll try to dig into the WSPG code today and see if I find anything...

Does anybody know if commons-httpclient has changed recently?


Tony



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org