Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR in matching log tool #3

Open
ivadym opened this issue Jul 20, 2018 · 0 comments
Open

ERROR in matching log tool #3

ivadym opened this issue Jul 20, 2018 · 0 comments

Comments

@ivadym
Copy link

ivadym commented Jul 20, 2018

Hello,

This is not a critical issue for my development but I have considered it convenient to report it. Basically the services are executed correctly, but the Log Monitor does not treat them in the right way and I'm not sure why. In fact, the operation is adequate when the calls modify a value of the StatusValue type, but not when the value to be modified is an Integer.

I attach the code used and the error log below.

ProvidedService turnOn = new ProvidedService(PROVIDED_SERVICE_NAMESPACE + actuator.getLocalName() + "-TURN_ON");
turnOn.setProperty(Service.PROP_NUMBER_OF_VALUE_RESTRICTIONS, Integer.valueOf(-1));
turnOn.addInstanceLevelRestriction(MergedRestriction.getFixedValueRestriction(DeviceService.PROP_CONTROLS, actuator), PPATH_CONTROLS);
turnOn.getProfile().addChangeEffect(PPATH_VALUE_DEVICE, new Integer(100));
profiles[i++] = turnOn.getProfile();
Error found in LogMonitor: 
java.lang.IllegalArgumentException: ERROR in matching log tool: startMatching, id not available.
	at org.universAAL.tools.logmonitor.service_bus_matching.LogMonitor.getMatchmaking(LogMonitor.java:204)
	at org.universAAL.tools.logmonitor.service_bus_matching.LogMonitor.startMatching(LogMonitor.java:233)
	at org.universAAL.tools.logmonitor.service_bus_matching.LogMonitor.handleServiceStrategyMessage(LogMonitor.java:167)
	at org.universAAL.tools.logmonitor.service_bus_matching.LogMonitor.log(LogMonitor.java:113)
	at org.universAAL.tools.logmonitor.LogMonitor.log(LogMonitor.java:60)
	at org.universAAL.middleware.container.utils.LogUtils.log(LogUtils.java:108)
	at org.universAAL.middleware.container.utils.LogUtils.logTrace(LogUtils.java:367)
	at org.universAAL.middleware.service.impl.ServiceStrategy.logTrace(ServiceStrategy.java:998)
	at org.universAAL.middleware.service.impl.ServiceStrategy.handle(ServiceStrategy.java:1229)
	at org.universAAL.middleware.bus.model.BusStrategy$HandlerThread.run(BusStrategy.java:63)
Error found in LogMonitor: 
java.lang.IllegalArgumentException: ERROR in matching log tool: handleServiceRealizationMessage, id not available.
	at org.universAAL.tools.logmonitor.service_bus_matching.LogMonitor.getMatchmaking(LogMonitor.java:204)
	at org.universAAL.tools.logmonitor.service_bus_matching.LogMonitor.handleServiceRealizationMessage(LogMonitor.java:145)
	at org.universAAL.tools.logmonitor.service_bus_matching.LogMonitor.log(LogMonitor.java:115)
	at org.universAAL.tools.logmonitor.LogMonitor.log(LogMonitor.java:60)
	at org.universAAL.middleware.container.utils.LogUtils.log(LogUtils.java:108)
	at org.universAAL.middleware.container.utils.LogUtils.logTrace(LogUtils.java:367)
	at org.universAAL.middleware.service.impl.ServiceMatcher.matchRestrictions(ServiceMatcher.java:247)
	at org.universAAL.middleware.service.impl.ServiceMatcher.matches(ServiceMatcher.java:54)
	at org.universAAL.middleware.service.impl.ServiceRealization.matches(ServiceRealization.java:331)
	at org.universAAL.middleware.service.impl.ServiceStrategy.matches(ServiceStrategy.java:1790)
	at org.universAAL.middleware.service.impl.ServiceStrategy.handle(ServiceStrategy.java:1231)
	at org.universAAL.middleware.bus.model.BusStrategy$HandlerThread.run(BusStrategy.java:63)
Error found in LogMonitor: 
java.lang.IllegalArgumentException: ERROR in matching log tool: endMatching, success: false, id not available.
	at org.universAAL.tools.logmonitor.service_bus_matching.LogMonitor.getMatchmaking(LogMonitor.java:204)
	at org.universAAL.tools.logmonitor.service_bus_matching.LogMonitor.endMatching(LogMonitor.java:260)
	at org.universAAL.tools.logmonitor.service_bus_matching.LogMonitor.handleServiceStrategyMessage(LogMonitor.java:173)
	at org.universAAL.tools.logmonitor.service_bus_matching.LogMonitor.log(LogMonitor.java:113)
	at org.universAAL.tools.logmonitor.LogMonitor.log(LogMonitor.java:60)
	at org.universAAL.middleware.container.utils.LogUtils.log(LogUtils.java:108)
	at org.universAAL.middleware.container.utils.LogUtils.logTrace(LogUtils.java:367)
	at org.universAAL.middleware.service.impl.ServiceStrategy.logTrace(ServiceStrategy.java:998)
	at org.universAAL.middleware.service.impl.ServiceStrategy.handle(ServiceStrategy.java:1236)
	at org.universAAL.middleware.bus.model.BusStrategy$HandlerThread.run(BusStrategy.java:63)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant