Ticket #60 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Subscription to event sources fails

Reported by: su009 Owned by: elmex
Priority: major Milestone: 0.8
Component: core Version: Trunk
Keywords: Cc:

Description

In rev216, there seems to be a bug in subscribing to event sources (same client- / server-code works fine for rev191).

Output:

own Client:

./mhu_TachoEvent_client -i $theIP -d $theDEVICE

TemperatureEvent_client: Set interface to "192.168.101.20"

TemperatureEvent_client: Set device address to "urn:uuid:cb6ed50e-4e59-4fc4-ac9f-fc3d43a0e0ee"

TachoEventListener: Device urn:uuid:cb6ed50e-4e59-4fc4-ac9f-fc3d43a0e0ee found at addr http://192.168.101.20:51468/cb6ed50e-4e59-4fc4-ac9f-fc3d43a0e0ee

TachoEventListener: Device offers CarDataService at http://192.168.101.20:58687/CarDataService

(/home/cht/dls/ws4d-gSOAP-head/src/libdpws/ws4d_subscription.c:201) assertion failed: (list && id && (ws4d_subslist_getsubs (list, id) != NULL) && alist)
(/home/cht/dls/ws4d-gSOAP-head/src/libdpws/ws4d_subscription.c:98) assertion failed: (subs)
(/home/cht/dls/ws4d-gSOAP-head/src/libdpws/ws4d_subscription.c:87) assertion failed: (subs && subsm)
(/home/cht/dls/ws4d-gSOAP-head/src/libdpws/ws4d_subscription.c:109) assertion failed: (subs)
TachoEventListener: Subscribe to SpeedEvents@CarDataService ... cht@cht-laptop:~/workspace/usecase-build/bin$

own device:

cht@cht-laptop:~/workspace/usecase-build/bin$ ./mhu_myheadunit -i $theIP -u $theDEVICE
Interface set to 192.168.101.20
UUID set to urn:uuid:cb6ed50e-4e59-4fc4-ac9f-fc3d43a0e0ee
dpws_init...
mhu_setup_HostingService...
mhu_setup_RemoteKeyboard...

My Headunit: ready to serve... (Ctrl-C for shut down)
Entering working loop. Somehow triggering events now...

[...]

Sending Event to http://192.168.101.20:47335/
SOAP 1.2 fault: SOAP-ENV:Sender [no subcode]
"Connection refused"
Detail: connect failed in tcp_connect()
Sending Event to http://192.168.101.20:47335/
SOAP 1.2 fault: SOAP-ENV:Sender [no subcode]
"Connection refused"
Detail: connect failed in tcp_connect()
Sending Event to http://192.168.101.20:47335/
SOAP 1.2 fault: SOAP-ENV:Sender [no subcode]
"Connection refused"
Detail: connect failed in tcp_connect()
Sending Event to http://192.168.101.20:47335/
SOAP 1.2 fault: SOAP-ENV:Sender [no subcode]
"Connection refused"
Detail: connect failed in tcp_connect()
^CShutting downThat's all, folks. Leaving working loop now...
cht@cht-laptop:~/workspace/usecase-build/bin$

example client:

cht@cht-laptop:~/dls/aircon-rev216-build/bin$ ./acs_TemperatureEvent_client -i $theIP -d $theDEVICE

TemperatureEvent_client: Set interface to "192.168.101.20"

TemperatureEvent_client: Set device address to "urn:uuid:cb6ed50e-4e59-4fc4-ac9f-fc3d43a0e0ee"

TemperatureEventListener: Device urn:uuid:cb6ed50e-4e59-4fc4-ac9f-fc3d43a0e0ee found at addr http://192.168.101.20:35359/cb6ed50e-4e59-4fc4-ac9f-fc3d43a0e0ee
(/home/cht/dls/ws4d-gSOAP-head/src/libdpws/ws4d_epr.c:313) assertion failed: (epr)

TemperatureEventListener: Device offers AirConditionerService at (null)

(/home/cht/dls/ws4d-gSOAP-head/src/libdpws/ws4d_epr.c:313) assertion failed: (epr)
(/home/cht/dls/ws4d-gSOAP-head/src/libdpws/gsoap/ws-addressing.c:727) assertion failed: (soap && MessageId && To && Action)
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdp="http://docs.oasis-open.org/ws-dd/ns/dpws/2009/01" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing">
        <SOAP-ENV:Body>
                <wse:Subscribe>
                        <wse:Delivery Mode="http://schemas.xmlsoap.org/ws/2004/08/eventing/DeliveryModes/Push">
                                <wse:NotifyTo>
                                        <wsa:Address>http://192.168.101.20:44113/</wsa:Address>
                                </wse:NotifyTo>
                        </wse:Delivery>
                        <wse:Expires>P0Y0M0DT1H0M0S</wse:Expires>
                        <wse:Filter Dialect="http://docs.oasis-open.org/ws-dd/ns/dpws/2009/01/Action">http://www.ws4d.org/axis2/tutorial/AirConditioner/TemperatureEventOut</wse:Filter>
                </wse:Subscribe>
        </SOAP-ENV:Body>
</SOAP-ENV:Envelope>^C
cht@cht-laptop:~/dls/aircon-rev216-build/bin$

example device:

nothing unusual

Attachments

Change History

Changed 4 years ago by elmex

  • status changed from new to assigned
  • milestone set to 0.8

Changed 4 years ago by elmex

  • status changed from assigned to closed
  • resolution set to fixed

(In [218]) fixed #60

Changed 4 years ago by su009

Confirmed. Application runs fine now.

Changed 4 years ago by sonneandgone

Incredible blog I enjoyed reading your info

<a href= http://partyopedia.com>party supplies</a>

Changed 4 years ago by Auto Blog Samurai

I discovered your site on del.icio.us this morning and extremely liked it. I bookmarked your blog and will definitely be back soon to read your new posts!

Changed 4 years ago by Private Krankenversicherung Vergleich

You made a few excellent points there. I did a search about the topic and hardly got any specific details on other sites, but then great to be here, seriously, thanks.

- Lucas

Changed 4 years ago by besten online poker

excellent points and the details are more precise than elsewhere, thanks.

- Joe

Changed 4 years ago by mietwagen mallorca

Very enlightening and beneficial to someone whose been out of the circuit for a long time.

- Kris

Add/Change #60 (Subscription to event sources fails)

Author


E-mail address and user name can be saved in the Preferences.


Action
as closed
The resolution will be deleted. Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.