[Logo] Mango Community
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Error while polling  XML
Forum Index » User help
Author Message
jjconti

Initiate

Joined: 05/04/2010 10:18:32
Messages: 53
Offline

I start Mango with a Modbus IP data source created and get this error in the standar output:

WARN 2010-04-16 10:51:48,781 (com.serotonin.mango.rt.dataSource.PollingDataSour
ce.scheduleTimeout:66) - Modbus ip Prueba: poll at 2010/04/16 10:51:48 aborted b
ecause a previous poll started at 2010/04/16 10:51:38 is still running
WARN 2010-04-16 10:51:54,031 (com.serotonin.mango.rt.dataSource.modbus.ModbusDa
taSource.receivedException:226) - Modbus exception
com.serotonin.messaging.WaitingRoomException: No recipient was found waiting for
response for key com.serotonin.modbus4j.ip.IpWaitingRoomKey@7fa2
at com.serotonin.messaging.WaitingRoom.response(WaitingRoom.java:69)
at com.serotonin.messaging.MessageControl.data(MessageControl.java:147)
at com.serotonin.messaging.InputStreamListener.run(InputStreamListener.j
ava:76)
at java.lang.Thread.run(Thread.java:619)
WARN 2010-04-16 10:51:58,687 (com.serotonin.mango.rt.dataSource.PollingDataSour
ce.scheduleTimeout:66) - Modbus ip Prueba: poll at 2010/04/16 10:51:58 aborted b
ecause a previous poll started at 2010/04/16 10:51:38 is still running

What can be happening? There is now modbus server to connect.
mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1502
Offline

I take it you're using UDP. Some background...

Request messages are sent, and then the thread "sits in the waiting room" for the response to come back. After a timeout the thread leaves the waiting room, shrugs its shoulders, and says that it didn't get a response.

Later, a response is received, but by that time "no recipient was found waiting for response".

Solution: increase your timeout.

Best regards,
Matthew Lohbihler
jjconti

Initiate

Joined: 05/04/2010 10:18:32
Messages: 53
Offline

I'm using TCP.

How can I avoid this error?
jjconti

Initiate

Joined: 05/04/2010 10:18:32
Messages: 53
Offline

Im not responding.
mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1502
Offline

Solution: increase your timeout.

Best regards,
Matthew Lohbihler
jjconti

Initiate

Joined: 05/04/2010 10:18:32
Messages: 53
Offline

How much? I have my modbus server turn off.
mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1502
Offline

As much as needed to make the message go away. Seriously, i can't be more specific than that.

Best regards,
Matthew Lohbihler
luke

Initiate

Joined: 03/02/2011 10:04:43
Messages: 1
Offline

hi,

I have almost the same problem with the WaitingRoomException.
I set the timeout to different values with the same result, but the message
is received anyways.

output:
request:
00 00 00 00 00 06 03 03 00 01 00 0C ............

com.serotonin.messaging.WaitingRoomException: No recipient was found waiting for response for key com.serotonin.modbus4j.ip.xa.XaWaitingRoomKey@8008
at com.serotonin.messaging.WaitingRoom.response(WaitingRoom.java:69)
at com.serotonin.messaging.MessageControl.data(MessageControl.java:153)
at com.serotonin.messaging.InputStreamListener.run(InputStreamListener.java:76)
at java.lang.Thread.run(Thread.java:595)
response:
00 00 00 00 00 1B 03 03 18 43 67 12 25 00 00 00 .........Cg.%...
00 00 00 00 00 43 67 12 25 00 00 00 00 43 67 12 .....Cg.%....Cg.
25 %

{voltage 1=231.07088, voltage 6=231.07088, voltage 4=231.07088, voltage 3=0.0, voltage 2=0.0, voltage 5=0.0}



Source:



Thanking you in anticipation!
mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1502
Offline

How much? I have my modbus server turn off.


I guess i didn't read the entire question. If your modbus server is turned off, shouldn't you expect an error? There is obviously no appropriate timeout for equipment that will never answer.

Best regards,
Matthew Lohbihler
mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1502
Offline

Luke, what happens if you increase the timeout?

Best regards,
Matthew Lohbihler
 
Forum Index » User help
Go to:   
Powered by JForum 2.1.9 © JForum Team