Discussion:
[Openjmx-devel] Re: HttpAdaptor
Bronwen Cassidy
2002-01-16 11:14:03 UTC
Permalink
Hi guys,

I am getting the following errors when running the httpAdaptor example. I
putting as command line parameters localhost 1099
D:/dev/openjmx/src/core/openjmx/adaptor/http/xsl.

When i request on the webpage http://localhost:1099/
I get this displayed on the web-page: HTTP/1.0 500 Internal Server Error
Server: OPENJMX-HTTPD/1.0 Content-Type: text/html

when i request http://localhost:1099/server no problems but the image
cannot be seen (properties are url: Loading Image...)
and this is displayed in the command prompt: No suitable command processor
found, requesting from processor path /logo.png

I have xalan and xerces in my classpath xalan first, then xerces first with
the same results??

Exception during http request java.lang.NullPointerException
at
com.icl.saxon.style.XSLGeneralIncorporate.getIncludedStyleSheet(XSLGeneralIn
corporate.java:97)
at com.icl.saxon.style.XSLStyleSheet.spliceIncludes(XSLStyleSheet.java:421)

at com.icl.saxon.style.XSLStyleSheet.preprocess(XSLStyleSheet.java:346)

at
com.icl.saxon.PreparedStyleSheet.setStyleSheetDocument(PreparedStyleSheet.ja
va:176)
at com.icl.saxon.PreparedStyleSheet.prepare(PreparedStyleSheet.java:133)

at
com.icl.saxon.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.jav
a:127)
at
openjmx.adaptor.http.XSLTProcessor.createTransformer(XSLTProcessor.java:144)

at openjmx.adaptor.http.XSLTProcessor.writeResponse(XSLTProcessor.java:96)

at openjmx.adaptor.http.HttpAdaptor.postProcess(HttpAdaptor.java:346)
at openjmx.adaptor.http.HttpAdaptor$HttpClient.run(HttpAdaptor.java:495)
No suitable command processor found, requesting from processor path
/stylesheet.css
No suitable command processor found, requesting from processor path
/logo.png

// the exception below occurs when hitting the refresh button in IE.

java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
at java.io.BufferedOutputStream.write(BufferedOutputStream.java:112)
at java.io.ByteArrayOutputStream.writeTo(ByteArrayOutputStream.java:126)
Exception during http request openjmx.adaptor.http.HttpException: file not
found
at
openjmx.adaptor.http.XSLTProcessor.notFoundElement(XSLTProcessor.java:254)

at openjmx.adaptor.http.HttpAdaptor.findUnknownElement(HttpAdaptor.java:375)

at openjmx.adaptor.http.HttpAdaptor$HttpClient.run(HttpAdaptor.java:490)

at
openjmx.adaptor.http.XSLTProcessor.notFoundElement(XSLTProcessor.java:243)

at openjmx.adaptor.http.HttpAdaptor.findUnknownElement(HttpAdaptor.java:375)

at openjmx.adaptor.http.HttpAdaptor$HttpClient.run(HttpAdaptor.java:490)

Regards
Bronwen

*******************************
Name: Bronwen Cassidy
Title: Software Engineer
Jacobs Rimell
London
UK
e-mail address: ***@jacobsrimell.com
tel: +44 (0)20 7786 4000
fax: +44 (0)20 7786 4004
Address: www.jacobsrimell.com
This email is confidential, may be legally privileged, and is for the
intended recipient only. If you are not the intended recipient, please
inform the sender and delete the email immediately.
******************************
Carlos Quiroz
2002-01-16 11:24:02 UTC
Permalink
Post by Bronwen Cassidy
Hi guys,
I am getting the following errors when running the httpAdaptor example. I
putting as command line parameters localhost 1099
D:/dev/openjmx/src/core/openjmx/adaptor/http/xsl.
When i request on the webpage http://localhost:1099/
I get this displayed on the web-page: HTTP/1.0 500 Internal Server Error
Server: OPENJMX-HTTPD/1.0 Content-Type: text/html
when i request http://localhost:1099/server no problems but the image
cannot be seen (properties are url: http://localhost:1099/logo.png)
and this is displayed in the command prompt: No suitable command
processor found, requesting from processor path /logo.png
I have xalan and xerces in my classpath xalan first, then xerces first with
the same results??
Hi bronwen. It sems that you are using SAXON. Are you sure it is not anywhere
in your classpath or maybe in the JDK's ext dir

Anyway this looks to me that the URIResolver is not working well with saxon.
Another possiblity is that the windows path name resolution is not working. I
only tested in linux
Post by Bronwen Cassidy
Exception during http request java.lang.NullPointerException
at
com.icl.saxon.style.XSLGeneralIncorporate.getIncludedStyleSheet(XSLGeneralI
n corporate.java:97)
at com.icl.saxon.style.XSLStyleSheet.spliceIncludes(XSLStyleSheet.java:421)
at com.icl.saxon.style.XSLStyleSheet.preprocess(XSLStyleSheet.java:346)
at
com.icl.saxon.PreparedStyleSheet.setStyleSheetDocument(PreparedStyleSheet.j
a va:176)
at com.icl.saxon.PreparedStyleSheet.prepare(PreparedStyleSheet.java:133)
at
com.icl.saxon.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.ja
v a:127)
at
openjmx.adaptor.http.XSLTProcessor.createTransformer(XSLTProcessor.java:144
)
at openjmx.adaptor.http.XSLTProcessor.writeResponse(XSLTProcessor.java:96)
at openjmx.adaptor.http.HttpAdaptor.postProcess(HttpAdaptor.java:346)
at openjmx.adaptor.http.HttpAdaptor$HttpClient.run(HttpAdaptor.java:495)
No suitable command processor found, requesting from processor path
/stylesheet.css
No suitable command processor found, requesting from processor path
/logo.png
// the exception below occurs when hitting the refresh button in IE.
java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite(Native Method)
at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
at java.io.BufferedOutputStream.write(BufferedOutputStream.java:112)
at java.io.ByteArrayOutputStream.writeTo(ByteArrayOutputStream.java:126)
Exception during http request openjmx.adaptor.http.HttpException: file not
found
at
openjmx.adaptor.http.XSLTProcessor.notFoundElement(XSLTProcessor.java:254)
at
openjmx.adaptor.http.HttpAdaptor.findUnknownElement(HttpAdaptor.java:375)
at openjmx.adaptor.http.HttpAdaptor$HttpClient.run(HttpAdaptor.java:490)
at
openjmx.adaptor.http.XSLTProcessor.notFoundElement(XSLTProcessor.java:243)
at
openjmx.adaptor.http.HttpAdaptor.findUnknownElement(HttpAdaptor.java:375)
at openjmx.adaptor.http.HttpAdaptor$HttpClient.run(HttpAdaptor.java:490)
Regards
Bronwen
*******************************
Name: Bronwen Cassidy
Title: Software Engineer
Jacobs Rimell
London
UK
tel: +44 (0)20 7786 4000
fax: +44 (0)20 7786 4004
Address: www.jacobsrimell.com
This email is confidential, may be legally privileged, and is for the
intended recipient only. If you are not the intended recipient, please
inform the sender and delete the email immediately.
******************************
_______________________________________________
Openjmx-devel mailing list
https://lists.sourceforge.net/lists/listinfo/openjmx-devel
--
Carlos Quiroz
Software Engineer
Invasio Oy
Mobile +358 (0)40 555 5793
mailto:***@rtse.com
http://www.invasio.com/
Loading...