forked from openhab/openhab-addons
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Exception on disposing binding when item configured #4
Comments
I've not seen this error yet? Are you still able to reproduce it? |
I've not seen this error in a long time. |
tobof
added a commit
that referenced
this issue
Dec 22, 2016
* Skeleton creation * Merged old code into new plugin Code merged and adjustments made to discovery process. UNTESTED!! * Added missing files from last commit * Tested against current OH2 beta: working! * added baudrate configurable * Added script for testing purpose and missing pom.xml * Changed thing description for serial gateway to support different baud rates. * Fixed documentation regarding baud rate of the serial gateway * esh-inf added parameter and serial closing to allow binding restart correctly * removed debug log before initialize * thread managing improved * little fix allows correct start and stop for binding * Added missing STOP for item "Rollershutter" Moved event handling from handleUpdate() to handleCommand(). * Doc fixed * requestAck feature added Currently it is not possible to automatically revert to the old state. * writer thread implementation changed and serial port class changed to remove the annoying exception on reading * adding back the message to queue if is not time to sent it again * reader thread moved in abstract class as the writer * tryying to move to SerialPort, no success... * Minor fix in visibilty of overridden method * Code cleanup and fix for sendDelay - removed superflous debug messages - removed superflous variables, methods - fixed missing implementation of sendDelay * Error handling on disconnect of ethernet gw The binding status is updated to OFFLINE and the threads for reader and writer are beeing stopped. Works for ethernet gw only. * Added jar and fixed docs * requestAck incoming ACKs are now acknoledged and the message is removed from the queue * requestAck: revert item status if no ack is received If no ACK is received from the node, the binding will try to revert the status of the item in OH2 to its old value. Only works if a status is known. (After restart of OH2 no status is known). Tested with light (STATUS) and dimmer (percent). * ensure gateway was started correctly * event driven i_version handing * removed debug messages * disconnect on connection fail now child id 255 can respond to i_version * Added S_HVAC constant * HVAC Thermostat added Temperature channel implemented * Added channels to HVAC "hvac-flow-state-channel" "hvac-flow-mode-channel" "hvac-setPoint-heat-channel" "hvac-setPoint-cool-channel" "hvac-speed-channel" "var1 to var5-channel" * Added CHANNEL_HVAC_FLOW_MODE and CHANNEL_HVAC_FLOW_STATE to MySensorHandler * Added support for return messages to sensor on V_VAR1 to V_VAR5 Changed V_VAR2 to number. * requestAck feature redesigned. Reader/Writer are now in sync. * Removed debug messages. Added updated jar of the binding. * Requesting of thing/item values supported + minor fix OH2 binding now answers requests for item status. minor fix - battery ch. added to hvacThermostat * Added jar build * Delay before I_VERSION check for SerialGW, new jar file * Compatibility fixes - Implemented a method to register more than one serial port (two or more serial gw) due to a lack/bug in the used nrserialjava - Longer timeout for I_VERSION check (5s) * just a little restyle * I_TIME and I_CONFIG response implemented (not tested) * I_VERSION skip now allowed * Binding jar refresh * fix for I_TIME/I_CONFIG, not requesting that nodeId = 0 * updated testscript.sh * Code review - Added legal information to .java files - Removed references, files and comments that are not needed * Fixed value requests from nodes for sensors with multiple subtypes and added correct deregistration to prevent NPEs on shutdown. * Added WaterMeter Sensor * pom.xml refresh * New jar-Release after merge * Fixed issue with serial Reader Fixed issue with Exception while trying to read zero data from serial * New jar after merge with master * Added the customSensor, containing the channels for V_VARx - can be used as a helper to send values to the nodes from Openhab Signed-off-by: Juergen Messmer <meju@chello.at> * Fixed mistake in documentation There was an error in the creation of the bridge. This results in Items not updating although the bridge itself seems fine in openhab2 * Fixed issue with high CPU usage * added possibility to not revert state if no ack received * Changed type of vars for "reverted" para from int to boolean * removed debug logging of messages in queues * Reduced sleep time in reader * Added Pressure channel to thing barometer Pressure channel was missing in barometer thing definition. * New jar * Packaged new jar! * datetime implemented in channel * last update fixes * last update fixes #2 * Fixed bug that sends status of things on startup OH2 core now calls "handleCommand()" on startup with command == REFRESH. REFRESH is ignored now and the bug fixed. * Removed constructor task, moved to initialize * Debug line added * minor bug fixing and little refactor * minor bug fixing #2 * minor bug fixing #3 * minor bug fixing #4 * minor bug fixing #5 * fixed log level for some logging * fixed log level for some logging * disconnection fixes * Legal header adjusted, Current jar attached Signed-off-by: Tim Oberföll <oberfoell@web.de> (github: github_handle) * started working on network watchdog * Update MySensorsBindingConstants.java * Update MySensorsBindingConstants.java * working on network sanity check * Update constants to comply with OH2 Added following things: THING_TYPE_LOCK THING_TYPE_LEVEL THING_TYPE_RGB_LIGHT THING_TYPE_RGBW_LIGHT THING_TYPE_RGBW_LIGHT THING_TYPE_PH_METER * Update MySensorsBindingConstants.java * Update MySensorsBindingConstants.java * Update MySensorsBindingConstants.java * Updates to comply with My Sensors 2.0 * Update MySensorsDiscoveryService.java * Update MySensorsDiscoveryService.java * Update MySensorsBindingConstants.java * Update thing-types.xml * Update thing-types.xml * Update MySensorsBindingConstants.java * working on network sanity check #2 * Added missing constants, removed typos * resolved dependecies for bridge connection * Generated new jar * new feature and refactoring testing #1 * new feature and refactoring testing #1 * new feature and refactoring testing #2 * Added expert mode Expert mode allows rule based message parsing and sending. * [PARTIAL] start joining connector and connection * connection and connector merged * invalidating requestDisconnection flag * connection tested and debugged * [FIX] adding listener before connection * cache factory implemented, now managing only given_ids one * windows disconnect fix and cache minor fix * new packaging and structure initial restyle * some changes * moving to new version of ESM framework * bridgeHandelerInitialized (deprecated) has changed to bridgeStatusChanged * cache usage changed after refactoring * [FIX] java.util.ConcurrentModificationException * final fixing, now testing * utility message type moved into message class * build.xml file removed * new jar * [FIX] asList cause UnsupportedOperationException * [FIX] startup check not work on connection retry after disconnection * [FIX] initialize thing to offline, cause problem if left uninitialized * [WIP] V_TEXT added Thing added that supports sending and receiving V_TEXT. * [WIP] Added V_IR_SEND & V_IR_RECEIVE Both things work in both directions (to and from MySensors network) * fixing mvn strange behaviour * Created new jar && Modified Testscript * Fixed bug that prevents answering of internal messages If skipStartupCheck is set to true, there was no answer to I_CONFIG, I_TIME and ACK was not working. * [WiP] Refactor ThingHandler Cleaning up code for incoming messages. * Fixing issue in MySensorsBridgeConnection which detached the EventListener - EventListener now listening independant from skipStartupCheck - Removed <context> from things eth-gateway and ser-gateway to allow configuration of advanced options in PaperUI * Fixed recent issue related to updates on Smarthome API fixes #40
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Tim, during my tests I've noticed that when I have thing inside the demo.things file the binding fail to stop due to a strange exception.
2016-02-02 11:07:51.350 [ERROR] [org.openhab.binding.mysensors ] - [org.openhab.binding.mysensors.internal.MySensorsHandlerFactory(178)] The deactivate method has thrown an exception java.lang.IllegalStateException: Could not update status, because callback is missing at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.updateStatus(BaseThingHandler.java:346) at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.updateStatus(BaseThingHandler.java:373) at org.openhab.binding.mysensors.handler.MySensorsHandler.dispose(MySensorsHandler.java:69) at org.eclipse.smarthome.core.thing.binding.BaseThingHandlerFactory.unregisterHandler(BaseThingHandlerFactory.java:109) at org.eclipse.smarthome.core.thing.binding.BaseThingHandlerFactory.deactivate(BaseThingHandlerFactory.java:74) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_40] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_40] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_40] at java.lang.reflect.Method.invoke(Method.java:497)[:1.8.0_40] at org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:222)[28:org.apache.felix.scr:2.0.2] at org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:37)[28:org.apache.felix.scr:2.0.2] at org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:615)[28:org.apache.felix.scr:2.0.2] at org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:499)[28:org.apache.felix.scr:2.0.2] at org.apache.felix.scr.impl.helper.ActivateMethod.invoke(ActivateMethod.java:295)[28:org.apache.felix.scr:2.0.2] at org.apache.felix.scr.impl.manager.SingleComponentManager.disposeImplementationObject(SingleComponentManager.java:342)[28:org.apache.felix.scr:2.0.2] at org.apache.felix.scr.impl.manager.SingleComponentManager.deleteComponent(SingleComponentManager.java:157)[28:org.apache.felix.scr:2.0.2] at org.apache.felix.scr.impl.manager.AbstractComponentManager.doDeactivate(AbstractComponentManager.java:783)[28:org.apache.felix.scr:2.0.2] at org.apache.felix.scr.impl.manager.AbstractComponentManager.deactivateInternal(AbstractComponentManager.java:757)[28:org.apache.felix.scr:2.0.2] at org.apache.felix.scr.impl.manager.AbstractComponentManager.dispose(AbstractComponentManager.java:550)[28:org.apache.felix.scr:2.0.2] at org.apache.felix.scr.impl.config.ConfigurableComponentHolder.disposeComponents(ConfigurableComponentHolder.java:725)[28:org.apache.felix.scr:2.0.2] at org.apache.felix.scr.impl.BundleComponentActivator.dispose(BundleComponentActivator.java:530)[28:org.apache.felix.scr:2.0.2] at org.apache.felix.scr.impl.Activator.disposeComponents(Activator.java:414)[28:org.apache.felix.scr:2.0.2] at org.apache.felix.scr.impl.Activator.access$300(Activator.java:53)[28:org.apache.felix.scr:2.0.2] at org.apache.felix.scr.impl.Activator$ScrExtension.destroy(Activator.java:273)[28:org.apache.felix.scr:2.0.2] at org.apache.felix.utils.extender.AbstractExtender$2.run(AbstractExtender.java:290)[28:org.apache.felix.scr:2.0.2] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_40] at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_40] at org.apache.felix.utils.extender.AbstractExtender.destroyExtension(AbstractExtender.java:312)[28:org.apache.felix.scr:2.0.2] at org.apache.felix.utils.extender.AbstractExtender.bundleChanged(AbstractExtender.java:186)[28:org.apache.felix.scr:2.0.2] at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:902)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:] at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:] at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:] at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:165)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:] at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:75)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:] at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:67)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:] at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:102)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:] at org.eclipse.osgi.container.Module.publishEvent(Module.java:466)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:] at org.eclipse.osgi.container.Module.doStop(Module.java:624)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:] at org.eclipse.osgi.container.Module.stop(Module.java:488)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:] at org.eclipse.osgi.internal.framework.EquinoxBundle.stop(EquinoxBundle.java:420)[org.eclipse.osgi-3.10.2.v20150203-1939.jar:] at org.apache.karaf.bundle.command.Stop.executeOnBundle(Stop.java:38)[32:org.apache.karaf.bundle.core:4.0.3] at org.apache.karaf.bundle.command.BundlesCommand.doExecute(BundlesCommand.java:64)[32:org.apache.karaf.bundle.core:4.0.3] at org.apache.karaf.bundle.command.BundlesCommand.execute(BundlesCommand.java:54)[32:org.apache.karaf.bundle.core:4.0.3] at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:83)[48:org.apache.karaf.shell.core:4.0.3] at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:67)[48:org.apache.karaf.shell.core:4.0.3] at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:87)[48:org.apache.karaf.shell.core:4.0.3] at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:480)[48:org.apache.karaf.shell.core:4.0.3] at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:406)[48:org.apache.karaf.shell.core:4.0.3] at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[48:org.apache.karaf.shell.core:4.0.3] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:182)[48:org.apache.karaf.shell.core:4.0.3] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:119)[48:org.apache.karaf.shell.core:4.0.3] at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:94)[48:org.apache.karaf.shell.core:4.0.3] at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.run(ConsoleSessionImpl.java:270)[48:org.apache.karaf.shell.core:4.0.3] at java.lang.Thread.run(Thread.java:745)[:1.8.0_40]
It seems that the OH2 fail on invoking a method of binding. Everything works if there aren't items configured for MySensors bridge.
The text was updated successfully, but these errors were encountered: