You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Torsten Curdt <tc...@dff.st> on 2000/07/12 13:33:43 UTC

ApacheJServ

kinda OT:

Does anyone know where I can get a

 apache+mod_sll+mod_jserv win32 binary

I've been looking at mod_sll.org but there
are only rpms for linux.
--
Torsteb

AW: Error: XIncludeProcessor using HTTPRequests -Solution

Posted by Carsten Ziegeler <cz...@sundn.de>.
Donald Ball wrote:
> I've never even heard of anything with this particular problem. The error
> seems to be in the JDK-1.3, so the people to report it to are Sun's JDK
> team. I'd try dropping back down to a 1.2 series JVM and see if you get
> the same error. You might also try messing around with hotspot and/or
> classic modes to see if anything changes. You might also check your apache
> configuration files to see if you've got a rule that's blocking the
> java.net HTTP client from accessing the site. Slim chance, but it's
> perhaps more likely than a buggy JDK-1.3 for WinNT - that's a not uncommon
> operation on a high profile platform.
OK, shame on me, the solution is (of course) very simple. I say just one
word: Proxy.
Setting the http.proxyHost property to the right value is enough.
So finally, no bug but a happy cocoon developer who just learned more about
java networking.

Hope this might help at least others...

Carsten

------------------------------------------------------------------------------------------
...this mail was scanned for viruses by mailserver...

Re: AW: Error: XIncludeProcessor using HTTPRequests

Posted by Donald Ball <ba...@webslingerZ.com>.
On Thu, 13 Jul 2000, Carsten Ziegeler wrote:

> Yes, the URL is proper and I have written I small standalone java class
> which tries to hit the URL and: this doesn't work either.
> So this seems to be not a problem of the XIncludeProcessor (Sorry, for
> accusing it) but a problem of ...? I will check the standard java places if
> others had already such a problem. Using signed applets with IE or NN which
> try to connect to that url just works.
> But I am really wondering if none of you had similar problems?

I've never even heard of anything with this particular problem. The error
seems to be in the JDK-1.3, so the people to report it to are Sun's JDK
team. I'd try dropping back down to a 1.2 series JVM and see if you get
the same error. You might also try messing around with hotspot and/or
classic modes to see if anything changes. You might also check your apache
configuration files to see if you've got a rule that's blocking the
java.net HTTP client from accessing the site. Slim chance, but it's
perhaps more likely than a buggy JDK-1.3 for WinNT - that's a not uncommon
operation on a high profile platform.

- donald


AW: Error: XIncludeProcessor using HTTPRequests

Posted by Carsten Ziegeler <cz...@sundn.de>.
Donald Ball wrote
> On Wed, 12 Jul 2000, Carsten Ziegeler wrote:
>
> > Hi,
> >
> > using the following include processing instructing results in a
> > NullPointerException from the XIncludeProcssor:
> >
> > <xinclude:include parse="xml"
> >
> href="http://www.mtnartinst.com/inst/Category.xml?parentID=13&amp;
> categoryID
> > =13"/>
> >
> > Using local filenames works fine.
> > I am working with the latest cvs version of Cocoon/XInclude, Tomcat 3.1,
> > Apache 1.3.12, JDK 1.3, Windows NT 4.
> >
> > The XIncludeProcessorWorker class throws in line 233 the following
> > exception:
> >
> > java.net.ConnectException: Connection refused: no further information
> > 	at java.net.PlainSocketImpl.socketConnect(Native Method)
> > 	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:312)
> > 	at
> java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125)
> > 	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112)
> > 	at java.net.Socket.(Socket.java:273)
> > 	at java.net.Socket.(Socket.java:100)
> > 	at sun.net.NetworkClient.doConnect(NetworkClient.java:50)
> > 	at sun.net.www.http.HttpClient.openServer(HttpClient.java:331)
> > 	at sun.net.www.http.HttpClient.openServer(HttpClient.java:517)
> > 	at sun.net.www.http.HttpClient.(HttpClient.java:267)
> > 	at sun.net.www.http.HttpClient.(HttpClient.java:277)
> > 	at sun.net.www.http.HttpClient.New(HttpClient.java:289)
> > 	at
> >
> sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnect
> ion.java:3
> > 79)
> > 	at
> >
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURL
> Connection
> > .java:472)
> > 	at java.net.URLConnection.getContent(URLConnection.java:558)
> > 	at java.net.URL.getContent(URL.java:812)
> > 	at
> >
> org.apache.cocoon.processor.xinclude.XIncludeProcessor$XIncludePro
> cessorWork
> > er.processXIncludeElement(XIncludeProcessor.java:233)
>
> Geez. URLConnection.getContent is failing - what can I do about
> that? Well, one sanity check - try logging the URL to System.err or
> through jdb and make sure that the XInclude processor is trying to hit the
> proper URL. If it is (and I'm pretty sure it is) then I don't know what to
> tell you - maybe your web server is refusing requests from the JVM
> User-Agent, maybe... uh... I can't think of anything else. you might try
> writing a little standalone java class to hit that URL and see if it
> works.
>
Yes, the URL is proper and I have written I small standalone java class
which tries to hit the URL and: this doesn't work either.
So this seems to be not a problem of the XIncludeProcessor (Sorry, for
accusing it) but a problem of ...? I will check the standard java places if
others had already such a problem. Using signed applets with IE or NN which
try to connect to that url just works.
But I am really wondering if none of you had similar problems?

Carsten

------------------------------------------------------------------------------------------
...this mail was scanned for viruses by mailserver...

Re: Error: XIncludeProcessor using HTTPRequests

Posted by Donald Ball <ba...@webslingerZ.com>.
On Wed, 12 Jul 2000, Carsten Ziegeler wrote:

> Hi,
> 
> using the following include processing instructing results in a
> NullPointerException from the XIncludeProcssor:
> 
> <xinclude:include parse="xml"
> href="http://www.mtnartinst.com/inst/Category.xml?parentID=13&amp;categoryID
> =13"/>
> 
> Using local filenames works fine.
> I am working with the latest cvs version of Cocoon/XInclude, Tomcat 3.1,
> Apache 1.3.12, JDK 1.3, Windows NT 4.
> 
> The XIncludeProcessorWorker class throws in line 233 the following
> exception:
> 
> java.net.ConnectException: Connection refused: no further information
> 	at java.net.PlainSocketImpl.socketConnect(Native Method)
> 	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:312)
> 	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125)
> 	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112)
> 	at java.net.Socket.(Socket.java:273)
> 	at java.net.Socket.(Socket.java:100)
> 	at sun.net.NetworkClient.doConnect(NetworkClient.java:50)
> 	at sun.net.www.http.HttpClient.openServer(HttpClient.java:331)
> 	at sun.net.www.http.HttpClient.openServer(HttpClient.java:517)
> 	at sun.net.www.http.HttpClient.(HttpClient.java:267)
> 	at sun.net.www.http.HttpClient.(HttpClient.java:277)
> 	at sun.net.www.http.HttpClient.New(HttpClient.java:289)
> 	at
> sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:3
> 79)
> 	at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection
> .java:472)
> 	at java.net.URLConnection.getContent(URLConnection.java:558)
> 	at java.net.URL.getContent(URL.java:812)
> 	at
> org.apache.cocoon.processor.xinclude.XIncludeProcessor$XIncludeProcessorWork
> er.processXIncludeElement(XIncludeProcessor.java:233)

Geez. URLConnection.getContent is failing - what can I do about
that? Well, one sanity check - try logging the URL to System.err or
through jdb and make sure that the XInclude processor is trying to hit the
proper URL. If it is (and I'm pretty sure it is) then I don't know what to
tell you - maybe your web server is refusing requests from the JVM
User-Agent, maybe... uh... I can't think of anything else. you might try
writing a little standalone java class to hit that URL and see if it
works.

- donald


Error: XIncludeProcessor using HTTPRequests

Posted by Carsten Ziegeler <cz...@sundn.de>.
Hi,

using the following include processing instructing results in a
NullPointerException from the XIncludeProcssor:

<xinclude:include parse="xml"
href="http://www.mtnartinst.com/inst/Category.xml?parentID=13&amp;categoryID
=13"/>

Using local filenames works fine.
I am working with the latest cvs version of Cocoon/XInclude, Tomcat 3.1,
Apache 1.3.12, JDK 1.3, Windows NT 4.

The XIncludeProcessorWorker class throws in line 233 the following
exception:

java.net.ConnectException: Connection refused: no further information
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:312)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112)
	at java.net.Socket.(Socket.java:273)
	at java.net.Socket.(Socket.java:100)
	at sun.net.NetworkClient.doConnect(NetworkClient.java:50)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:331)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:517)
	at sun.net.www.http.HttpClient.(HttpClient.java:267)
	at sun.net.www.http.HttpClient.(HttpClient.java:277)
	at sun.net.www.http.HttpClient.New(HttpClient.java:289)
	at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:3
79)
	at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection
.java:472)
	at java.net.URLConnection.getContent(URLConnection.java:558)
	at java.net.URL.getContent(URL.java:812)
	at
org.apache.cocoon.processor.xinclude.XIncludeProcessor$XIncludeProcessorWork
er.processXIncludeElement(XIncludeProcessor.java:233)
	at
org.apache.cocoon.processor.xinclude.XIncludeProcessor$XIncludeProcessorWork
er.process(XIncludeProcessor.java:162)
	at
org.apache.cocoon.processor.xinclude.XIncludeProcessor$XIncludeProcessorWork
er.process(XIncludeProcessor.java:193)
	at
org.apache.cocoon.processor.xinclude.XIncludeProcessor$XIncludeProcessorWork
er.process(XIncludeProcessor.java:193)
	at
org.apache.cocoon.processor.xinclude.XIncludeProcessor$XIncludeProcessorWork
er.process(XIncludeProcessor.java:193)
	at
org.apache.cocoon.processor.xinclude.XIncludeProcessor$XIncludeProcessorWork
er.process(XIncludeProcessor.java:193)
	at
org.apache.cocoon.processor.xinclude.XIncludeProcessor$XIncludeProcessorWork
er.process(XIncludeProcessor.java:193)
	at
org.apache.cocoon.processor.xinclude.XIncludeProcessor$XIncludeProcessorWork
er.process(XIncludeProcessor.java:193)
	at
org.apache.cocoon.processor.xinclude.XIncludeProcessor$XIncludeProcessorWork
er.process(XIncludeProcessor.java:146)
	at
org.apache.cocoon.processor.xinclude.XIncludeProcessor.process(XIncludeProce
ssor.java:80)
	at org.apache.cocoon.Engine.handle(Engine.java:305)
	at org.apache.cocoon.Cocoon.service(Cocoon.java:167)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
	at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:156)
	at org.apache.tomcat.service.TcpWorkerThread.run(PoolTcpEndpoint.java:366)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:411)
	at java.lang.Thread.run(Thread.java:484)

Also using local http request (http://localhost/....) results in the same
exception using xinclude. Typen them directly into the browser works.

Carsten Ziegeler

------------------------------------------------------------------------------------------
...this mail was scanned for viruses by mailserver...