Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Removing Monitored Items
April 26, 2012
6:57, EEST
Avatar
fred
Member
Members
Forum Posts: 41
Member Since:
January 27, 2012
sp_UserOfflineSmall Offline

Using the newest version of Prosys Java OPC-UA SDK (1.3.2), I figured out that whenever I remove a monitored item (also from sample project), I get the following warning:

04/26/2012 08:50:31.669 WARN Subscription not found: 2
04/26/2012 08:50:31.669 WARN ack error: com.prosysopc.ua.ServiceException ServiceResult=Bad_SubscriptionIdInvalid (0x80280000) “The subscription id is not valid.”

In my opinion, it seems that the item is correctly removed from monitored items list -this is also what size of list tells me, but “Subscription Manager” does not recognize that an item has been removed

I have not tried this with an older version, so you’d might also get this warning in older SDK.

How can I prevent this warning and correctly remove item and subscription?

Thanks

April 26, 2012
7:07, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1015
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

The warning comes if the client tries to acknowledge data for a subscription that has been removed.

You can hide the warning by defining

log4j.logger.com.prosysopc.ua.server.SubscriptionManager=ERROR

in your log.properties.

It would probably not be that necessary to warn about this, though, so we should consider decreasing the level of that message.

Thanks for the note!

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
10 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Heikki Tahvanainen: 402

hbrackel: 142

pramanj: 86

Francesco Zambon: 83

rocket science: 82

Ibrahim: 76

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

Member Stats:

Guest Posters: 0

Members: 704

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1482

Posts: 6316

Newest Members:

samui, TommyDab, wross, Jeremyknock, Pedromon, DonaldEdism, Miguelplese, Scotanine, katesalas95, Petertum

Moderators: Jouni Aro: 1015, Pyry: 1, Petri: 0, Bjarne Boström: 994, Jimmy Ni: 26, Matti Siponen: 330, Lusetti: 0

Administrators: admin: 1