HTTPBidning XSLT problem

195 views
Skip to first unread message

PakoZM

unread,
Mar 1, 2012, 2:30:54 AM3/1/12
to openhab
Hi openHAB people!!

We are configuring an item that uses as provider a http binding. The
provider generates a simple xml that we could process with XSLT. This
is our XSLT:


<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output indent="yes" method="xml" encoding="UTF-8" omit-xml-
declaration="yes" />
<xsl:template match="/">
<xsl:value-of select="//group/data[@measure='DCInV']/@max" /
>
</xsl:template>
</xsl:stylesheet>

And this is our provider XML file:

<readback name="Inverter 162" model="GT">
<group type="DcInput" name="PV Input">
<data measure="DCInV" value="0.0" units="V" min="0.0" max="600.00"/>
<data measure="DCInI" value="0.0" units="A" min="0.0" max="10.00"/>
</group>
<group type="AcOutput" name="GT Output">
<data measure="ACOutV" value="0.0" units="Vrms" min="0.0" max="275.82"/
>
<data measure="ACOutI" value="0.0" units="Arms" min="0.0" max="14.59"/
>
<data measure="ACOutF" value="0.0" units="Hz" min="44.9" max="55.0"/>
</group>
</readback>

Our item configuration is:

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)]" }



Our problem is that openHAB couldn't execute the binding, and throws
this error:

20:03:22.972 [FolderObserver] ERROR
o.o.m.i.internal.GenericItemProvider - Binding information of type
'http' for item <D4>Voltaje_Entrada_Fotovoltaica_1<D4> could not be
parsed correctly.
org.openhab.model.item.binding.BindingConfigParseException:
bindingConfig 'http://10.5.10.128/xml/Inverter%20148/
rb.xml:XSLT(voltaje_entrada_xantrex.xsl)' doesn't contain a valid in-
binding-configuration
at
org.openhab.binding.http.internal.HttpGenericBindingProvider.parseInBindingConfig(HttpGenericBindingProvider.java:
187) ~[na:na]
at
org.openhab.binding.http.internal.HttpGenericBindingProvider.parseBindingConfig(HttpGenericBindingProvider.java:
151) ~[na:na]
at
org.openhab.binding.http.internal.HttpGenericBindingProvider.processBindingConfiguration(HttpGenericBindingProvider.java:
117) ~[na:na]
at
org.openhab.model.item.internal.GenericItemProvider.dispatchBindings(GenericItemProvider.java:
199) [org.openhab.model.item_0.9.0.201201221638.jar:na]
at
org.openhab.model.item.internal.GenericItemProvider.getItems(GenericItemProvider.java:
173) [org.openhab.model.item_0.9.0.201201221638.jar:na]
at
org.openhab.core.internal.items.ItemRegistryImpl.allItemsChanged(ItemRegistryImpl.java:
183) [org.openhab.core_0.9.0.201201221638.jar:na]
at
org.openhab.model.item.internal.GenericItemProvider.modelChanged(GenericItemProvider.java:
245) [org.openhab.model.item_0.9.0.201201221638.jar:na]
at
org.openhab.model.core.internal.ModelRepositoryImpl.notifyListeners(ModelRepositoryImpl.java:
169) [org.openhab.model.core_0.9.0.201201221638.jar:na]
at
org.openhab.model.core.internal.ModelRepositoryImpl.addOrRefreshModel(ModelRepositoryImpl.java:
98) [org.openhab.model.core_0.9.0.201201221638.jar:na]
at
org.openhab.model.core.internal.folder.FolderObserver.checkFolder(FolderObserver.java:
162) [org.openhab.model.core_0.9.0.201201221638.jar:na]
at
org.openhab.model.core.internal.folder.FolderObserver.run(FolderObserver.java:
119) [org.openhab.model.core_0.9.0.201201221638.jar:na]


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.

Any ideas???

Thanks!!!

Thomas Eichstädt-Engelen

unread,
Mar 1, 2012, 4:22:20 AM3/1/12
to ope...@googlegroups.com
Hi,

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.

PakoZM

unread,
Mar 1, 2012, 4:37:02 AM3/1/12
to openhab
The refresh interval is in seconds??

thanks!!

On 1 mar, 10:22, Thomas Eichstädt-Engelen <teich...@googlemail.com>
wrote:
> Hi,
>
> 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_entra...)]" }

Thomas Eichstädt-Engelen

unread,
Mar 1, 2012, 4:44:18 AM3/1/12
to ope...@googlegroups.com

The refresh interval is in seconds??

no, milliseconds.

Did you notice the HttpBinding Wiki-Page http://code.google.com/p/openhab/wiki/HttpBinding?ts=1330594967&updated=HttpBinding? I added the unit of the refresh interval recently.

Regards,

Thomas E.-E.

PakoZM

unread,
Mar 1, 2012, 5:08:37 AM3/1/12
to openhab
thanks, it works!! :D

On 1 mar, 10:44, Thomas Eichstädt-Engelen <teich...@googlemail.com>
wrote:
> > The refresh interval is in seconds??
>
> no, milliseconds.
>
> Did you notice the HttpBinding Wiki-Pagehttp://code.google.com/p/openhab/wiki/HttpBinding?ts=1330594967&updat...I added the unit of the refresh interval recently.
>
> Regards,
>
> Thomas E.-E.

PakoZM

unread,
Mar 1, 2012, 5:18:35 AM3/1/12
to openhab
Ok, it loads the items configuration file, but it throws this error:

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'

The item configuration is:

Number Voltaje_Entrada_Fotovoltaica_1 "Voltaje entrada [%.1f V]"
<temperature> (SolarFotovoltaica1,Status) { http="<[http://10.5.10.128/
xml/Inverter%20162/rb.xml:6000:XSLT(voltaje_entrada_xantrex.xsl)]" }

and the host 10.5.10.128 is reachable from the network where openHAB
is working, I can do a telnet:

$ telnet 10.5.10.128 80
Trying 10.5.10.128...
Connected to mariluz.uch.ceu.es.
Escape character is '^]'.
GET /xml/Inverter%20162/rb.xml


HTTP/1.0 200Document follows
Content-type: text/xml

<readback name="Inverter 162" model="GT">
<group type="DcInput" name="PV Input">
<data measure="DCInV" value="234.20" units="V" min="0.0" max="600.00" /
>
<data measure="DCInI" value="2.66" units="A" min="0.0" max="10.00" />
</group>
<group type="AcOutput" name="GT Output">
<data measure="ACOutV" value="224.50" units="Vrms" min="0.0"
max="275.82" />
<data measure="ACOutI" value="2.69" units="Arms" min="0.0"
max="14.59" />
<data measure="ACOutF" value="50.0" units="Hz" min="44.9" max="55.0" /
>
</group>
</readback>
Connection closed by foreign host.


Thanks!

On 1 mar, 11:08, PakoZM <pak...@gmail.com> wrote:
> thanks, it works!! :D
>
> On 1 mar, 10:44, Thomas Eichstädt-Engelen <teich...@googlemail.com>
> wrote:
>
>
>
>
>
>
>
> > > The refresh interval is in seconds??
>
> > no, milliseconds.
>
> > Did you notice the HttpBinding Wiki-Pagehttp://code.google.com/p/openhab/wiki/HttpBinding?ts=1330594967&updat...added the unit of the refresh interval recently.
>
> > Regards,
>
> > Thomas E.-E.

Thomas Eichstädt-Engelen

unread,
Mar 1, 2012, 5:43:45 AM3/1/12
to ope...@googlegroups.com
i'm a bit busy at the moment.

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.
>

Thomas Eichstädt-Engelen

unread,
Mar 1, 2012, 6:03:05 AM3/1/12
to ope...@googlegroups.com

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 please post some more (10-20) lines around this line?

PakoZM

unread,
Mar 1, 2012, 6:04:41 AM3/1/12
to openhab
is this piece of code:

logger.debug("item '{}' is about to be refreshed now", itemName);

String response = HttpUtil.executeUrl("GET", url, timeout);

if(response==null) {
logger.error("No response received from '{}'", url);

The execution is getting null, that is true. And if we see the
HttpUtil.executeUrl method, the error that is throwing is:

catch (HttpException he) {
logger.error("Fatal protocol violation: ", he.getMessage());
}

because I see in the log the "Fatal protocol violation: " but the
he.getMessage() is empty.

Any ideas? :SSS

On 1 mar, 11:43, Thomas Eichstädt-Engelen <teich...@googlemail.com>
wrote:
> >>> Did you notice the HttpBinding Wiki-Pagehttp://code.google.com/p/openhab/wiki/HttpBinding?ts=1330594967&updat...the unit of the refresh interval recently.

Thomas Eichstädt-Engelen

unread,
Mar 1, 2012, 6:10:17 AM3/1/12
to ope...@googlegroups.com

> catch (HttpException he) {
> logger.error("Fatal protocol violation: ", he.getMessage());
> }

could you replace "he.getMessage()" by "he" recompile and test again?


PakoZM

unread,
Mar 1, 2012, 6:10:59 AM3/1/12
to openhab
Ok, I have an idea. When I do the telnet to the host the HTTP answer
header is:

HTTP/1.0 200Document follows
Content-type: text/xml

Which is bad formed because must be:

HTTP/1.0 200 OK
Content-type: text/xml

I'm correct???

Coudl be that curl and web navigators ignore the problem but the Java
HTTPRequest object throws an error???

Nevertheless we use a XANTREX power inverter and this device is whom
executes the web server... :SSS
> > >>> Did you notice the HttpBinding Wiki-Pagehttp://code.google.com/p/openhab/wiki/HttpBinding?ts=1330594967&updat...unit of the refresh interval recently.

PakoZM

unread,
Mar 1, 2012, 6:11:26 AM3/1/12
to openhab
yes I paste the lines:

12:11:01.874 ERROR o.openhab.io.net.http.HttpUtil[:175]- Fatal
protocol violation:
12:11:01.874 ERROR o.o.b.h.internal.HttpInBinding[:129]- No response
received from 'http://10.5.10.128/xml/Inverter%20148/rb.xml'
12:11:08.395 ERROR o.openhab.io.net.http.HttpUtil[:175]- Fatal
protocol violation:
12:11:08.396 ERROR o.o.b.h.internal.HttpInBinding[:129]- No response
received from 'http://10.5.10.128/xml/Inverter%20162/rb.xml'
12:11:09.928 ERROR o.openhab.io.net.http.HttpUtil[:175]- Fatal
protocol violation:
12:11:09.929 ERROR o.o.b.h.internal.HttpInBinding[:129]- No response
received from 'http://10.5.10.128/xml/Inverter%20148/rb.xml'
12:11:11.351 ERROR o.openhab.io.net.http.HttpUtil[:175]- Fatal
protocol violation:
12:11:11.352 ERROR o.o.b.h.internal.HttpInBinding[:129]- No response
received from 'http://10.5.10.128/xml/Inverter%20162/rb.xml'
12:11:12.884 ERROR o.openhab.io.net.http.HttpUtil[:175]- Fatal
protocol violation:
12:11:12.885 ERROR o.o.b.h.internal.HttpInBinding[:129]- No response
received from 'http://10.5.10.128/xml/Inverter%20148/rb.xml'

On 1 mar, 12:04, PakoZM <pak...@gmail.com> wrote:
> > >>> Did you notice the HttpBinding Wiki-Pagehttp://code.google.com/p/openhab/wiki/HttpBinding?ts=1330594967&updat...unit of the refresh interval recently.

Pablo Romeu

unread,
Mar 1, 2012, 7:03:50 AM3/1/12
to openhab
Thomas, could we use the EXEC binding to do the "trick"?

Thomas Eichstädt-Engelen

unread,
Mar 1, 2012, 7:29:55 AM3/1/12
to ope...@googlegroups.com

ok, could please add

<logger name="httpclient.wire.header" level="DEBUG" />
<logger name="httpclient.wire.content" level="DEBUG" />

to the logback-config. to see what's going on on the wire?



On Mar 1, 2012, at 12:31 PM, Paco Zamora Martínez wrote:

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!


ok

thanks for your help Thomas!!


you are welcome :-)




--
Pako ZM :)

Thomas Eichstädt-Engelen

unread,
Mar 1, 2012, 7:30:10 AM3/1/12
to ope...@googlegroups.com
Hi Paco, Pablo,

Is possible to use the execbinding to get the measure of an item??
because this would solve the problem.

no, i'm afraid not, because the exec-binding is not (yet) meant to process the output of the executed command.

I assume you thought about calling "wget <url>" or something like that from the exec-binding?

Cheers,

Thomas E.-E.

Thomas Eichstädt-Engelen

unread,
Mar 1, 2012, 8:33:33 AM3/1/12
to ope...@googlegroups.com
thanks Paco, i will have a look at it later …


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 :)

Pablo Romeu

unread,
Mar 1, 2012, 11:10:51 AM3/1/12
to openhab
Yes, that is what we were trying to...

On 1 mar, 13:30, Thomas Eichstädt-Engelen <teich...@googlemail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages