welcome to openHAB :-)
> We think that the problem could be the %20 (space) in the URL. We try
> using directly a space character too and the problem persists.
No, i don't think so. I think your binding configuration is wrong in deed. It is missing the refresh interval.
> Number Voltaje_Entrada_Fotovoltaica_1 "Voltaje entrada [%.1f V]"
> <temperature> (SolarFotovoltaica1,Status) { http="<[http://10.5.10.128/
> xml/Inverter%20148/rb.xml:XSLT(voltaje_entrada_xantrex.xsl)]" }
http="<[http://10.5.10.128/xml/Inverter%20148/rb.xml:60000:XSLT(voltaje_entrada_xantrex.xsl)]" }
I admit the error message isn't as self explaining as it could be. I will enhance it.
Let us know if that helps,
Thomas E.-E.
The refresh interval is in seconds??
Could you please verify what's happening in HttpUtil.executeUrl() (Line 166). Apparently the responseBoy is null so we have to find out why ...
Regards,
Thomas E.-E.
> --
> You received this message because you are subscribed to the Google Groups "openhab" group.
> To post to this group, send email to ope...@googlegroups.com.
> To unsubscribe from this group, send email to openhab+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/openhab?hl=en.
>
11:15:24.614 ERROR o.o.b.h.internal.HttpInBinding[:129]- No response
received from 'http://10.5.10.128/xml/Inverter%20162/rb.xml'
could you replace "he.getMessage()" by "he" recompile and test again?
This is the trace from HTTP
12:31:01.569 TRACE o.a.c.h.methods.GetMethod[:90]- enter GetMethod(String)
12:31:01.569 DEBUG o.a.c.h.p.DefaultHttpParams[:151]- Set parameter
http.socket.timeout = 30000
12:31:01.569 DEBUG o.a.c.h.p.DefaultHttpParams[:151]- Set parameter
http.method.retry-handler =
org.apache.commons.httpclient.DefaultHttpMethodRetryHandler@168c78e
12:31:01.570 TRACE o.a.c.httpclient.HttpClient[:321]- enter
HttpClient.executeMethod(HttpMethod)
12:31:01.570 TRACE o.a.c.httpclient.HttpClient[:374]- enter
HttpClient.executeMethod(HostConfiguration,HttpMethod,HttpState)
12:31:01.570 TRACE o.a.c.h.HttpMethodDirector[:379]- Attempt number 1
to process request
12:31:01.570 TRACE o.a.c.h.HttpConnection[:685]- enter HttpConnection.open()
12:31:01.570 DEBUG o.a.c.h.HttpConnection[:692]- Open connection to
10.5.10.128:80
12:31:01.571 TRACE o.a.c.h.HttpMethodBase[:1079]- enter
HttpMethodBase.execute(HttpState, HttpConnection)
12:31:01.572 TRACE o.a.c.h.HttpMethodBase[:2057]- enter
HttpMethodBase.writeRequest(HttpState, HttpConnection)
12:31:01.572 TRACE o.a.c.h.HttpMethodBase[:2212]- enter
HttpMethodBase.writeRequestLine(HttpState, HttpConnection)
12:31:01.572 TRACE o.a.c.h.HttpMethodBase[:1496]- enter
HttpMethodBase.generateRequestLine(HttpConnection, String, String,
String, String)
12:31:01.572 TRACE o.a.c.h.HttpConnection[:1032]- enter
HttpConnection.print(String)
12:31:01.572 TRACE o.a.c.h.HttpConnection[:942]- enter
HttpConnection.write(byte[])
12:31:01.573 TRACE o.a.c.h.HttpConnection[:963]- enter
HttpConnection.write(byte[], int, int)
12:31:01.573 TRACE o.a.c.h.HttpMethodBase[:2175]- enter
HttpMethodBase.writeRequestHeaders(HttpState,HttpConnection)
12:31:01.573 TRACE o.a.c.h.HttpMethodBase[:1417]- enter
HttpMethodBase.addRequestHeaders(HttpState, HttpConnection)
12:31:01.573 TRACE o.a.c.h.HttpMethodBase[:1442]- enter
HttpMethodBase.addUserAgentRequestHeaders(HttpState, HttpConnection)
12:31:01.574 TRACE o.a.c.h.HttpMethodBase[:1328]- enter
HttpMethodBase.addHostRequestHeader(HttpState, HttpConnection)
12:31:01.574 DEBUG o.a.c.h.HttpMethodBase[:1352]- Adding Host request header
12:31:01.574 TRACE o.a.c.h.HttpMethodBase[:1266]- enter
HttpMethodBase.addCookieRequestHeader(HttpState, HttpConnection)
12:31:01.574 TRACE o.a.c.httpclient.HttpState[:173]- enter
HttpState.getCookies()
12:31:01.574 TRACE o.a.c.h.cookie.CookieSpec[:549]- enter
CookieSpecBase.match(String, int, String, boolean, Cookie[])
12:31:01.575 TRACE o.a.c.h.HttpMethodBase[:1379]- enter
HttpMethodBase.addProxyConnectionHeader(HttpState, HttpConnection)
12:31:01.575 TRACE o.a.c.h.HttpConnection[:1032]- enter
HttpConnection.print(String)
12:31:01.575 TRACE o.a.c.h.HttpConnection[:942]- enter
HttpConnection.write(byte[])
12:31:01.575 TRACE o.a.c.h.HttpConnection[:963]- enter
HttpConnection.write(byte[], int, int)
12:31:01.576 TRACE o.a.c.h.HttpConnection[:1032]- enter
HttpConnection.print(String)
12:31:01.576 TRACE o.a.c.h.HttpConnection[:942]- enter
HttpConnection.write(byte[])
12:31:01.576 TRACE o.a.c.h.HttpConnection[:963]- enter
HttpConnection.write(byte[], int, int)
12:31:01.576 TRACE o.a.c.h.HttpConnection[:1001]- enter
HttpConnection.writeLine()
12:31:01.576 TRACE o.a.c.h.HttpConnection[:942]- enter
HttpConnection.write(byte[])
12:31:01.577 TRACE o.a.c.h.HttpConnection[:963]- enter
HttpConnection.write(byte[], int, int)
12:31:01.577 TRACE o.a.c.h.HttpConnection[:826]- enter
HttpConnection.flushRequestOutputStream()
12:31:01.577 TRACE o.a.c.h.HttpMethodBase[:1730]- enter
HttpMethodBase.readResponse(HttpState, HttpConnection)
12:31:01.577 TRACE o.a.c.h.HttpMethodBase[:1964]- enter
HttpMethodBase.readStatusLine(HttpState, HttpConnection)
12:31:01.577 TRACE o.a.c.h.HttpConnection[:1113]- enter
HttpConnection.readLine()
12:31:01.578 TRACE o.a.c.httpclient.HttpParser[:105]- enter
HttpParser.readLine(InputStream, String)
12:31:01.578 TRACE o.a.c.httpclient.HttpParser[:74]- enter
HttpParser.readRawLine()
12:31:03.401 DEBUG o.a.c.h.HttpMethodDirector[:450]- Closing the connection.
12:31:03.401 TRACE o.a.c.h.HttpConnection[:1148]- enter HttpConnection.close()
12:31:03.401 TRACE o.a.c.h.HttpConnection[:1215]- enter
HttpConnection.closeSockedAndStreams()
12:31:03.402 TRACE o.a.c.h.HttpConnection[:1174]- enter
HttpConnection.releaseConnection()
12:31:03.402 DEBUG o.a.c.h.HttpConnection[:1178]- Releasing connection
back to connection manager.
12:31:03.402 ERROR o.openhab.io.net.http.HttpUtil[:175]- Fatal
protocol violation:
12:31:03.402 TRACE o.a.c.h.HttpConnection[:1174]- enter
HttpConnection.releaseConnection()
12:31:03.402 DEBUG o.a.c.h.HttpConnection[:1178]- Releasing connection
back to connection manager.
12:31:03.403 ERROR o.o.b.h.internal.HttpInBinding[:129]- No response
received from 'http://10.5.10.128/xml/Inverter%20148/rb.xml'
El 1 de març de 2012 12:26, Thomas Eichstädt-Engelen
<teic...@googlemail.com> ha escrit:Ok, I do the debug thing and tell you the results!okthanks for your help Thomas!!you are welcome :-)
--
Pako ZM :)
Is possible to use the execbinding to get the measure of an item??
because this would solve the problem.
On Mar 1, 2012, at 2:07 PM, Paco Zamora Martínez wrote:
> ok, here is the log:
>
> 14:06:44.689 TRACE o.a.c.h.methods.GetMethod[:90]- enter GetMethod(String)
> 14:06:44.689 DEBUG o.a.c.h.p.DefaultHttpParams[:151]- Set parameter
> http.socket.timeout = 30000
> 14:06:44.690 DEBUG o.a.c.h.p.DefaultHttpParams[:151]- Set parameter
> http.method.retry-handler =
> org.apache.commons.httpclient.DefaultHttpMethodRetryHandler@2bb129
> 14:06:44.690 TRACE o.a.c.httpclient.HttpClient[:321]- enter
> HttpClient.executeMethod(HttpMethod)
> 14:06:44.690 TRACE o.a.c.httpclient.HttpClient[:374]- enter
> HttpClient.executeMethod(HostConfiguration,HttpMethod,HttpState)
> 14:06:44.690 TRACE o.a.c.h.HttpMethodDirector[:379]- Attempt number 1
> to process request
> 14:06:44.690 TRACE o.a.c.h.HttpConnection[:685]- enter HttpConnection.open()
> 14:06:44.691 DEBUG o.a.c.h.HttpConnection[:692]- Open connection to
> 10.5.10.128:80
> 14:06:44.691 TRACE o.a.c.h.HttpMethodBase[:1079]- enter
> HttpMethodBase.execute(HttpState, HttpConnection)
> 14:06:44.692 TRACE o.a.c.h.HttpMethodBase[:2057]- enter
> HttpMethodBase.writeRequest(HttpState, HttpConnection)
> 14:06:44.692 TRACE o.a.c.h.HttpMethodBase[:2212]- enter
> HttpMethodBase.writeRequestLine(HttpState, HttpConnection)
> 14:06:44.692 TRACE o.a.c.h.HttpMethodBase[:1496]- enter
> HttpMethodBase.generateRequestLine(HttpConnection, String, String,
> String, String)
> 14:06:44.692 DEBUG httpclient.wire.header[:70]- >> "GET
> /xml/Inverter%20162/rb.xml HTTP/1.1[\r][\n]"
> 14:06:44.693 TRACE o.a.c.h.HttpConnection[:1032]- enter
> HttpConnection.print(String)
> 14:06:44.693 TRACE o.a.c.h.HttpConnection[:942]- enter
> HttpConnection.write(byte[])
> 14:06:44.693 TRACE o.a.c.h.HttpConnection[:963]- enter
> HttpConnection.write(byte[], int, int)
> 14:06:44.693 TRACE o.a.c.h.HttpMethodBase[:2175]- enter
> HttpMethodBase.writeRequestHeaders(HttpState,HttpConnection)
> 14:06:44.693 TRACE o.a.c.h.HttpMethodBase[:1417]- enter
> HttpMethodBase.addRequestHeaders(HttpState, HttpConnection)
> 14:06:44.693 TRACE o.a.c.h.HttpMethodBase[:1442]- enter
> HttpMethodBase.addUserAgentRequestHeaders(HttpState, HttpConnection)
> 14:06:44.694 TRACE o.a.c.h.HttpMethodBase[:1328]- enter
> HttpMethodBase.addHostRequestHeader(HttpState, HttpConnection)
> 14:06:44.694 DEBUG o.a.c.h.HttpMethodBase[:1352]- Adding Host request header
> 14:06:44.694 TRACE o.a.c.h.HttpMethodBase[:1266]- enter
> HttpMethodBase.addCookieRequestHeader(HttpState, HttpConnection)
> 14:06:44.694 TRACE o.a.c.httpclient.HttpState[:173]- enter
> HttpState.getCookies()
> 14:06:44.694 TRACE o.a.c.h.cookie.CookieSpec[:549]- enter
> CookieSpecBase.match(String, int, String, boolean, Cookie[])
> 14:06:44.695 TRACE o.a.c.h.HttpMethodBase[:1379]- enter
> HttpMethodBase.addProxyConnectionHeader(HttpState, HttpConnection)
> 14:06:44.695 DEBUG httpclient.wire.header[:70]- >> "User-Agent:
> Jakarta Commons-HttpClient/3.1[\r][\n]"
> 14:06:44.695 TRACE o.a.c.h.HttpConnection[:1032]- enter
> HttpConnection.print(String)
> 14:06:44.695 TRACE o.a.c.h.HttpConnection[:942]- enter
> HttpConnection.write(byte[])
> 14:06:44.695 TRACE o.a.c.h.HttpConnection[:963]- enter
> HttpConnection.write(byte[], int, int)
> 14:06:44.696 DEBUG httpclient.wire.header[:70]- >> "Host: 10.5.10.128[\r][\n]"
> 14:06:44.696 TRACE o.a.c.h.HttpConnection[:1032]- enter
> HttpConnection.print(String)
> 14:06:44.696 TRACE o.a.c.h.HttpConnection[:942]- enter
> HttpConnection.write(byte[])
> 14:06:44.696 TRACE o.a.c.h.HttpConnection[:963]- enter
> HttpConnection.write(byte[], int, int)
> 14:06:44.696 TRACE o.a.c.h.HttpConnection[:1001]- enter
> HttpConnection.writeLine()
> 14:06:44.696 TRACE o.a.c.h.HttpConnection[:942]- enter
> HttpConnection.write(byte[])
> 14:06:44.697 TRACE o.a.c.h.HttpConnection[:963]- enter
> HttpConnection.write(byte[], int, int)
> 14:06:44.697 DEBUG httpclient.wire.header[:70]- >> "[\r][\n]"
> 14:06:44.697 TRACE o.a.c.h.HttpConnection[:826]- enter
> HttpConnection.flushRequestOutputStream()
> 14:06:44.697 TRACE o.a.c.h.HttpMethodBase[:1730]- enter
> HttpMethodBase.readResponse(HttpState, HttpConnection)
> 14:06:44.697 TRACE o.a.c.h.HttpMethodBase[:1964]- enter
> HttpMethodBase.readStatusLine(HttpState, HttpConnection)
> 14:06:44.698 TRACE o.a.c.h.HttpConnection[:1113]- enter
> HttpConnection.readLine()
> 14:06:44.698 TRACE o.a.c.httpclient.HttpParser[:105]- enter
> HttpParser.readLine(InputStream, String)
> 14:06:44.698 TRACE o.a.c.httpclient.HttpParser[:74]- enter
> HttpParser.readRawLine()
> 14:06:46.318 DEBUG httpclient.wire.header[:70]- << "HTTP/1.0
> 200Document follows[\r][\n]"
> 14:06:46.319 DEBUG httpclient.wire.header[:70]- << "HTTP/1.0
> 200Document follows[\r][\n]"
> 14:06:46.319 DEBUG o.a.c.h.HttpMethodDirector[:450]- Closing the connection.
> 14:06:46.319 TRACE o.a.c.h.HttpConnection[:1148]- enter HttpConnection.close()
> 14:06:46.319 TRACE o.a.c.h.HttpConnection[:1215]- enter
> HttpConnection.closeSockedAndStreams()
> 14:06:46.320 TRACE o.a.c.h.HttpConnection[:1174]- enter
> HttpConnection.releaseConnection()
> 14:06:46.320 DEBUG o.a.c.h.HttpConnection[:1178]- Releasing connection
> back to connection manager.
> 14:06:46.320 ERROR o.openhab.io.net.http.HttpUtil[:175]- Fatal
> protocol violation:
> 14:06:46.320 TRACE o.a.c.h.HttpConnection[:1174]- enter
> HttpConnection.releaseConnection()
> 14:06:46.320 DEBUG o.a.c.h.HttpConnection[:1178]- Releasing connection
> back to connection manager.
> 14:06:46.321 ERROR o.o.b.h.internal.HttpInBinding[:129]- No response
> received from 'http://10.5.10.128/xml/Inverter%20162/rb.xml'
>
> thanks!
>
> El 1 de març de 2012 13:29, Thomas Eichstädt-Engelen
> <teic...@googlemail.com> ha escrit:
>>
> --
> Pako ZM :)