I think the bad version of the library from the other topic might be the problem here, as I think the device-code is presenting some vars that are newer posted values to. Will check this and return.
Posts made by njbuch
-
RE: Weird error message assitance
-
RE: Device rebooting, whats the problem?
Ouch, that was the problem! Thanks @jkandasa we are back online. Downgrading to 1.5.0 of the espressif stuff from this list https://github.com/platformio/platform-espressif8266/releases , and it seems to work.
Do you know what the core problem is with newer versions of the framework?
-
RE: Device rebooting, whats the problem?
After some closer inspection it looks to me as the controller device is receiving messages that it cannot parse, here is new one:
MC[D]: Message arrived on topic[in_esp/ESP_2D5A26/SENSOR_BC/C_INTERNAL/I_HEARTBEAT/0] MC[D]: Message arrived withpayload[6306.000Lys resistorityure5.0;gatewayIP=192.168.0.1;macAddress=5C:CF:7F:2D:5A:26;ssid=sniffer;hostname=ESP_2D5A26;bssid=18:31:BF:45:CE:B0;rssi=-64 dBm;rssiAsQuality=72] MC[D]: Message arrived with length[0] MC[D]: Startin to parse message MC[T]: Iterating part: i:0, str:in_esp MC[T]: String topicsub:in_esp MC[T]: String feedid:esp MC[D]: The i is 0 MC[D]: Checking topic! MC[T]: Iterating part: i:1, str:ESP_2D5A26 MC[T]: String topicsub:in_esp MC[T]: String feedid:esp MC[D]: The i is 1 Exception (0): epc1=0x7373723e epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000 ctx: cont sp: 3fff12c0 end: 3fff1780 offset: 01a0
Where might they come from?
-
Device rebooting, whats the problem?
In relation to weird log-messages on the server I am also seeing some weird stuff by the serial monitor from the device, I have added more debug and trace info, but the logic should be there: Any clue is appreciated...
MC[I]: Booting ESP8266 device... MC[T]: MQTT mDNS status:[0] MC[I]: WIFI not connected, trying connection... MC[D]: Searching BSSID for ssid:[sniffer] MC[D]: Found BSSID[18:31:BF:45:CE:B0] for ssid:[sniffer], RSSI:[-59 -dBm, 82 ] MC[D]: Selected bssid:[18:31:BF:45:CE:B0] MC[I]: Connecting to WiFi with ssid[sniffer] and with password...........OK MC[I]: WiFi BSSID:[18:31:BF:45:CE:B0], RSSI:[-66 dBm, 68 ], IP:[192.168.0.112], StatusCode:[3] MC[D]: WiFi connection status: Connected MC[I]: Configuration(NodeEUI:[ESP_2D5A26], Mqtt{mDNS-status:[0], Server:[192.168.0.44], Port:[1883], FeedId:[esp], User:[]}) MC[D]: Attempting MQTT connection... MC[I]: MQTT settings(Broker:[192.168.0.44], Port:[1883]) MC[I]: MQTT authenticating as anonymous MC[I]: MQTT connected :) MC[I]: MQTT topic subscribed:[in_esp/ESP_2D5A26/#] Core: The before() has completed...MC[D]: About to publish a topic:[out_esp/ESP_2D5A26/SENSOR_BC/C_INTERNAL/I_RSSI/0], Payload:[-67 dBm] MC[D]: About to publish a topic:[out_esp/ESP_2D5A26/SENSOR_BC/C_INTERNAL/I_PROPERTIES/0], Payload:[freeHeap=32272;chipId=2972198;flashChipSize=4194304;flashChipRealSize=4194304;flashChipSpeed=40000000;cycleCount=681337642;localIP=192.168.0.112;vcc=3154 mV] MC[D]: About to publish a topic:[out_esp/ESP_2D5A26/SENSOR_BC/C_INTERNAL/I_PROPERTIES/0], Payload:[subnetMask=255.255.255.0;gatewayIP=192.168.0.1;macAddress=5C:CF:7F:2D:5A:26;ssid=sniffer;hostname=ESP_2D5A26;bssid=18:31:BF:45:CE:B0;rssi=-67 dBm;rssiAsQuality=66] MC[D]: About to publish a topic:[out_esp/ESP_2D5A26/SENSOR_BC/C_PRESENTATION/S_ARDUINO_NODE/0], Payload:[1.0.0] MC[D]: About to publish a topic:[out_esp/ESP_2D5A26/SENSOR_BC/C_INTERNAL/I_SKETCH_NAME/0], Payload:[McNode04d] MC[D]: About to publish a topic:[out_esp/ESP_2D5A26/SENSOR_BC/C_INTERNAL/I_SKETCH_VERSION/0], Payload:[1.1.0] MC[D]: About to publish a topic:[out_esp/ESP_2D5A26/temp-4-1/C_PRESENTATION/S_TEMP/0], Payload:[Bosch Sensor Temperature] MC[D]: About to publish a topic:[out_esp/ESP_2D5A26/temp-4-1/C_REQ/V_TEMP/0], Payload:[] MC[D]: About to publish a topic:[out_esp/ESP_2D5A26/humid-4-1/C_PRESENTATION/S_HUM/0], Payload:[Bosch Sensor Humidity] MC[D]: About to publish a topic:[out_esp/ESP_2D5A26/humid-4-1/C_REQ/V_HUM/0], Payload:[] MC[D]: About to publish a topic:[out_esp/ESP_2D5A26/light-4/C_PRESENTATION/S_LIGHT_LEVEL/0], Payload:[Lys resistor] MC[D]: About to publish a topic:[out_esp/ESP_2D5A26/light-4/C_REQ/V_LIGHT_LEVEL/0], Payload:[] dress=5C:CF:7F:2D:5A:26;ssid=sniffer;hostname=ESP_2D5A26;bssid=18:31:BF:45:CE:B0;rssi=-67 dBm;rssiAsQuality=66Core: Custom_init starting... Core: Custom_init now init of Bosch sensor... Locating Dallas devices...Found 2 devices. Parasite power is: OFF Device 0 Address: 28FF13A001170318 Device 1 Address: 28FF3B1B711603F0 Device 0 Resolution: 12 Device 1 Resolution: 12 MC[D]: Message arrived on topic[in_esp/ESP_2D5A26/temp-4-1/C_SET/V_TEMP/0] MC[D]: Message arrived withpayload[24_LEVEL/0T_LEVEL/0Lys resistorityure5.0;gatewayIP=192.168.0.1;macAddress=5C:CF:7F:2D:5A:26;ssid=sniffer;hostname=ESP_2D5A26;bssid=18:31:BF:45:CE:B0;rssi=-67 dBm;rssiAsQuality=66] MC[D]: Message arrived with length[2] MC[D]: Startin to parse message MC[T]: Iterating part: i:0, str:in_esp MC[T]: String topicsub:in_esp MC[T]: String feedid:esp MC[D]: The i is 0 MC[D]: Checking topic! MC[T]: Iterating part: i:1, str:ESP_2D5A26 MC[T]: String topicsub:in_esp MC[T]: String feedid:esp MC[D]: The i is 1 Exception (0): epc1=0x7373723e epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000 ctx: cont sp: 3fff12f0 end: 3fff17a0 offset: 01a0 >>>stack>>> 3fff1490: 3fff06b0 00000001 3fff15d0 40206e71 3fff14a0: 3ffeaeb0 00000000 00000000 40101da6 3fff14b0: 00000017 0090455d 401021e6 00000100 3fff14c0: 7fffffff 3ffeaeb0 3ffeaeb0 00000001 3fff14d0: 00000001 00004208 00000000 00000001 3fff14e0: 3fff19bc 00000008 3fff06b0 402120c0 3fff14f0: 3fff15a0 0000001f 3fff153f 4020f390 3fff1500: 3ffeaed4 00006208 3fffc200 00000020 3fff1510: 3fff06b0 00000008 3fff1520 40208f3c < 3fff1520: 445b434d 53203a5d 74726174 74206e69 3fff1530: 6170206f 20657372 7373656d 0a656761 3fff1540: 325b6800 45000a5d 2f4c4556 4c5f5430 3fff1550: 4c455645 794c302f 65722073 00736973 3fff1560: 3fff15a0 3fff1570 00000008 00000000 3fff1570: 00000002 3fff0150 60000000 655f6e69 3fff1580: 60007073 00000026 3fff1712 00000030 3fff1590: 3fff0469 00000002 3fff1570 3fff15a0 3fff15a0: 4021423c 3fff16a0 3fff29fc 00000002 3fff15b0: 3fff1700 3fff0469 3fff06b0 40207dfe 3fff15c0: 40106644 3ffeffdc 00000004 00000030 3fff15d0: 00000000 00000000 00000000 000061a2 3fff15e0: 00000000 00000000 00000000 00000000 3fff15f0: 00000000 00000000 00000000 00000000 3fff1600: 00000000 00000000 00000000 00000000 3fff1610: 00000000 00000000 00000000 00000000 3fff1620: 00000000 00000000 00000000 00000000 3fff1630: 00000000 00000000 00000000 00000000 3fff1640: 00000000 00000000 00000000 00000000 3fff1650: 00000000 00000000 00000000 00000000 3fff1660: 00000000 00000000 00000000 00000000 3fff1670: 00000000 00000000 00000000 00000000 3fff1680: 00000000 00000000 00000000 00000000 3fff1690: 00000000 00000000 00000000 00000000 3fff16a0: 00000000 00000000 00000000 00000000 3fff16b0: 00000000 00000000 00000000 4020bf00 3fff16c0: 00000005 0000000e 3fff0438 4020e684 3fff16d0: 3fff043c 00000003 3fff16f0 3fff1730 3fff16e0: 3fff1730 00002505 3fff0438 4020f25c 3fff16f0: 3f34002f 00030010 3fff00c8 4020ed99 3fff1700: 655f6e69 45007073 325f5053 32413544 3fff1710: 65740036 342d706d 432f312d 5445535f 3fff1720: 545f562f 2f504d45 3fff0030 4020ecac 3fff1730: 3fff3501 3ffefef8 3ffeffdc 40201104 3fff1740: 40202abe 3ffefef8 3ffeffdc 40204a6e 3fff1750: 00000000 00000000 00000000 3fff0770 3fff1760: 3fffdad0 3fff0438 3fff0084 402087ab 3fff1770: 00000000 00000000 3fff0768 402053f0 3fff1780: 3fffdad0 00000000 3fff0768 4020a578 3fff1790: feefeffe feefeffe 3fff0780 40100700 <<<stack<<< ets Jan 8 2013,rst cause:2, boot mode:(3,6) load 0x4010f000, len 1384, room 16 tail 8 chksum 0x2d csum 0x2d v614f7c32 ~ld```
-
Weird error message assitance
Hi all, I am trying to add a new board with some new sensors, but the board is crashing and I am getting this error in the server log. Can anyone point to a possible problem??
2018-12-25 20:23:58,538 ERROR [mc-th-pool-6] [org.mycontroller.standalone.db.dao.BaseAbstractDaoImpl:248] unable to add new item:[MetricsDoubleTypeDevice(sensorVariable=SensorVariable(id=97, sensor=Sensor(id=93, sensorId=humid-4-1, type=S_HUM, name=Bosch Sensor Humidity, lastSeen=1545765829635, node=Node(id=10, eui=ESP_2D5A26, gatewayTable=GatewayTable(id=1, enabled=true, name=ESP devices gateway, networkType=MY_CONTROLLER, timestamp=1486111527969, state=UP, statusMessage=Connected Successfully, statusSince=1545761094427, type=MQTT, properties={p=, qos=0, u=, bh=tcp://localhost:1883, txDelay=0, tp=in_esp, cid=esp_client, ts=out_esp}), name=McNode04d, version=1.1.0, type=S_ARDUINO_NODE, libVersion=1.0.0, batteryLevel=null, eraseConfig=null, firmware=null, state=UP, lastSeen=1545765838524, rssi=-68 dBm, properties={rssi=-68 dBm, rssiAsQuality=64, bssid=18:31:BF:45:CE:B0, gatewayIP=192.168.0.1, subnetMask=255.255.255.0, ssid=sniffer, hbTx=1545764104527, freeHeap=32304, macAddress=5C:CF:7F:2D:5A:26, hostname=ESP_2D5A26, flashChipSize=4194304, flashChipSpeed=40000000, vcc=3032 mV, flashChipRealSize=4194304, localIP=192.168.0.112, cycleCount=-1470310702, chipId=2972198}, parentNodeEui=null, registrationState=REGISTERED, smartSleepEnabled=false), room=null, variableTypes=[Humidity]), variableType=V_HUM, metricType=DOUBLE, timestamp=1545765838519, value=null, previousValue=null, unitType=U_HUMIDITY, readOnly=false, offset=0.0, priority=100, properties={marginRight=20, color=#ff7f0e, interpolate=linear, subType=line, marginBottom=60, useGlobal=true, type=lineChart, marginTop=5, marginLeft=65}), timestamp=1545765838519, samples=1, min=null, max=null, avg=null, aggregationType=RAW, start=null, end=null)] java.sql.SQLException: Unable to run insert stmt on object MetricsDoubleTypeDevice(sensorVariable=SensorVariable(id=97, sensor=Sensor(id=93, sensorId=humid-4-1, type=S_HUM, name=Bosch Sensor Humidity, lastSeen=1545765829635, node=Node(id=10, eui=ESP_2D5A26, gatewayTable=GatewayTable(id=1, enabled=true, name=ESP devices gateway, networkType=MY_CONTROLLER, timestamp=1486111527969, state=UP, statusMessage=Connected Successfully, statusSince=1545761094427, type=MQTT, properties={p=, qos=0, u=, bh=tcp://localhost:1883, txDelay=0, tp=in_esp, cid=esp_client, ts=out_esp}), name=McNode04d, version=1.1.0, type=S_ARDUINO_NODE, libVersion=1.0.0, batteryLevel=null, eraseConfig=null, firmware=null, state=UP, lastSeen=1545765838524, rssi=-68 dBm, properties={rssi=-68 dBm, rssiAsQuality=64, bssid=18:31:BF:45:CE:B0, gatewayIP=192.168.0.1, subnetMask=255.255.255.0, ssid=sniffer, hbTx=1545764104527, freeHeap=32304, macAddress=5C:CF:7F:2D:5A:26, hostname=ESP_2D5A26, flashChipSize=4194304, flashChipSpeed=40000000, vcc=3032 mV, flashChipRealSize=4194304, localIP=192.168.0.112, cycleCount=-1470310702, chipId=2972198}, parentNodeEui=null, registrationState=REGISTERED, smartSleepEnabled=false), room=null, variableTypes=[Humidity]), variableType=V_HUM, metricType=DOUBLE, timestamp=1545765838519, value=null, previousValue=null, unitType=U_HUMIDITY, readOnly=false, offset=0.0, priority=100, properties={marginRight=20, color=#ff7f0e, interpolate=linear, subType=line, marginBottom=60, useGlobal=true, type=lineChart, marginTop=5, marginLeft=65}), timestamp=1545765838519, samples=1, min=null, max=null, avg=null, aggregationType=RAW, start=null, end=null): INSERT INTO `metrics_double_type_device` (`sensorVariableId` ,`timestamp` ,`samples` ,`min` ,`max` ,`avg` ,`aggregationType` ) VALUES (?,?,?,?,?,?,?) at com.j256.ormlite.misc.SqlExceptionUtil.create(SqlExceptionUtil.java:25) at com.j256.ormlite.stmt.mapped.MappedCreate.insert(MappedCreate.java:137) at com.j256.ormlite.stmt.StatementExecutor.create(StatementExecutor.java:458) at com.j256.ormlite.dao.BaseDaoImpl.create(BaseDaoImpl.java:328) at org.mycontroller.standalone.db.dao.BaseAbstractDaoImpl.create(BaseAbstractDaoImpl.java:245) at org.mycontroller.standalone.metrics.engine.MetricEngineMyController.post(MetricEngineMyController.java:87) at org.mycontroller.standalone.provider.ExecuteMessageDependentTask.executeDependentTask(ExecuteMessageDependentTask.java:60) at org.mycontroller.standalone.provider.ExecuteMessageDependentTask.run(ExecuteMessageDependentTask.java:84) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: org.h2.jdbc.JdbcSQLException: NULL not allowed for column "AVG"; SQL statement: INSERT INTO `metrics_double_type_device` (`sensorVariableId` ,`timestamp` ,`samples` ,`min` ,`max` ,`avg` ,`aggregationType` ) VALUES (?,?,?,?,?,?,?) [23502-194] at org.h2.message.DbException.getJdbcSQLException(DbException.java:345) at org.h2.message.DbException.get(DbException.java:179) at org.h2.message.DbException.get(DbException.java:155) at org.h2.table.Column.validateConvertUpdateSequence(Column.java:311) at org.h2.table.Table.validateConvertUpdateSequence(Table.java:793) at org.h2.command.dml.Insert.insertRows(Insert.java:151) at org.h2.command.dml.Insert.update(Insert.java:114) at org.h2.command.CommandContainer.update(CommandContainer.java:101) at org.h2.command.Command.executeUpdate(Command.java:258) at org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal(JdbcPreparedStatement.java:160) at org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:146) at com.j256.ormlite.jdbc.JdbcDatabaseConnection.insert(JdbcDatabaseConnection.java:183) at com.j256.ormlite.stmt.mapped.MappedCreate.insert(MappedCreate.java:91) ... 9 common frames omitted ```
-
RE: Merry Christmas and Happy New Year!
You too, keep up the support and good work everybody!
-
Plans for ESP32 boards??
Hi again, was looking at upgrading a few devices and stumpled on some annoying dependencies in the mycontroller.cpp code for the device - esp8266wifi and more.
Does anyone know of easy ways to port to ESP32 for mycontrollerdevice code`?
-
RE: 1.3 not working for me...
Ok, downgraded the java version by using the
JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java"
line in /etc/environment - AND NOW IT WORKS FINE!
Thanks again!
-
RE: 1.3 not working for me...
@jkandasa No, the fix just make the server start, as the version check is in the start.sh file. But when the server starts, it only works partially, the logs above are from a 1.3-Final running with errors.
-
RE: 1.3 not working for me...
Yeah, will do, but already checking the first thing of the guide messes me up.
It checks for one number in the java version in the start.sh script, which I had to fix....as my java version has 2 numbers...
njb@server:~$ java -version openjdk version "10.0.2" 2018-07-17 OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.3) OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.3, mixed mode)
Can that be the culprit, and should I change java version?
-
1.3 not working for me...
Hi there, I have tried the 1.3 snapshot and now 1.3 final release, but my setup does not work, its annoying and I dont want to loose out on future updates.
This my log after starting, any pointer to problems?
2018-11-05 20:49:00,170 INFO [main] [org.mycontroller.standalone.AppProperties:516] Created directory location: [/home/njb/Desktop/mycontroller/conf/resources/scripts/conditions] 2018-11-05 20:49:00,192 INFO [main] [org.mycontroller.standalone.db.DataBaseUtils:117] Checking migration... 2018-11-05 20:49:01,214 INFO [main] [org.mycontroller.standalone.db.migration.V1_04_02__2018_Jun_12:60] Migration completed successfully. 2018-11-05 20:49:01,270 INFO [main] [org.mycontroller.standalone.db.migration.ClientH2DB:65] Dropped sequence:external_server_id_seq, drop count:0 2018-11-05 20:49:01,303 INFO [main] [org.mycontroller.standalone.db.migration.V1_04_03__2018_Jul_01:66] Migration completed successfully. 2018-11-05 20:49:01,390 INFO [main] [org.mycontroller.standalone.db.DataBaseUtils:162] Number of migrations done:2 2018-11-05 20:49:01,391 INFO [main] [org.mycontroller.standalone.db.DataBaseUtils:168] Application information: [Version:1.3.0.Final, Database(type:H2 database embedded, version:1.4.194 (2017-03-10), schema version:1.04.03 - 2018 Jul 01), Built on:2018-07-30T11:46:48+0530, Git commit:e1a31b7751172fe8a910424891c927a533b7c232:master] 2018-11-05 20:49:01,463 INFO [main] [org.mycontroller.standalone.offheap.OffHeapFactory:95] Cleared McPersistent location[../conf/persistent_stores/mc/] 2018-11-05 20:49:01,463 INFO [main] [org.mycontroller.standalone.AppProperties:516] Created directory location: [/home/njb/Desktop/mycontroller/conf/persistent_stores/mc] 2018-11-05 20:49:02,082 WARN [main] [io.moquette.persistence.mapdb.MapDBPersistentStore:78] Using fresh MapDB store file. Path=../conf/persistent_stores/moquette/moquette_store.mapdb 2018-11-05 20:49:02,356 WARN [main] [io.moquette.server.Server:186] Using default SSL context creator WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by io.netty.util.internal.ReflectionUtil (file:/home/njb/Desktop/mycontroller/lib/mycontroller-dist-standalone-1.3.0.Final-single.jar) to constructor java.nio.DirectByteBuffer(long,int) WARNING: Please consider reporting this to the maintainers of io.netty.util.internal.ReflectionUtil WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release 2018-11-05 20:49:02,451 WARN [main] [io.netty.bootstrap.ServerBootstrap:146] Unknown channel option 'TCP_NODELAY' for channel '[id: 0x6e69acc4]' 2018-11-05 20:49:02,463 WARN [main] [io.netty.bootstrap.ServerBootstrap:146] Unknown channel option 'TCP_NODELAY' for channel '[id: 0xba96a931]' 2018-11-05 20:49:02,464 INFO [main] [org.mycontroller.standalone.mqttbroker.MoquetteMqttBroker:54] MQTT Broker started successfully. MqttBrokerSettings(enabled=true, sslEnabled=false, bindAddress=0.0.0.0, mqttPort=1883, mqttsPort=8883, websocketPort=7080, allowAnonymous=true, enabledOnBackend=true, sslKeystoreFile=null) 2018-11-05 20:49:02,618 INFO [mc-th-pool-0] [org.mycontroller.standalone.gateway.mqtt.MQTTDriver:86] MQTT Gateway[name:ESP devices gateway, URI:tcp://localhost:1883, NetworkType:MyController] connected successfully.. 2018-11-05 20:49:03,077 INFO [main] [org.mycontroller.standalone.StartApp:217] TJWS server started successfully, HTTPS Enabled?:false, HTTP(S) Port: [8443] 2018-11-05 20:49:03,077 INFO [main] [org.mycontroller.standalone.StartApp:115] MyController.org server started in [2912] ms java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlElement at com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector.<init>(JaxbAnnotationIntrospector.java:131) at com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector.<init>(JaxbAnnotationIntrospector.java:118) at com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector.<init>(JaxbAnnotationIntrospector.java:110) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:488) at java.base/java.lang.Class.newInstance(Class.java:560) at com.fasterxml.jackson.jaxrs.json.JsonMapperConfigurator._resolveIntrospector(JsonMapperConfigurator.java:111) at com.fasterxml.jackson.jaxrs.json.JsonMapperConfigurator._resolveIntrospectors(JsonMapperConfigurator.java:84) at com.fasterxml.jackson.jaxrs.cfg.MapperConfiguratorBase._setAnnotations(MapperConfiguratorBase.java:120) at com.fasterxml.jackson.jaxrs.json.JsonMapperConfigurator.getDefaultMapper(JsonMapperConfigurator.java:45) at com.fasterxml.jackson.jaxrs.base.ProviderBase.locateMapper(ProviderBase.java:867) at org.mycontroller.standalone.api.jaxrs.mixins.McJacksonJson2Provider.writeTo(McJacksonJson2Provider.java:85) at org.jboss.resteasy.core.interception.AbstractWriterInterceptorContext.writeTo(AbstractWriterInterceptorContext.java:131) at org.jboss.resteasy.core.interception.ServerWriterInterceptorContext.writeTo(ServerWriterInterceptorContext.java:60) at org.jboss.resteasy.core.interception.AbstractWriterInterceptorContext.proceed(AbstractWriterInterceptorContext.java:120) at org.jboss.resteasy.plugins.interceptors.encoding.GZIPEncodingInterceptor.aroundWriteTo(GZIPEncodingInterceptor.java:100) at org.jboss.resteasy.core.interception.AbstractWriterInterceptorContext.proceed(AbstractWriterInterceptorContext.java:124) at org.jboss.resteasy.core.ServerResponseWriter.writeNomapResponse(ServerResponseWriter.java:98) at org.jboss.resteasy.core.SynchronousDispatcher.writeResponse(SynchronousDispatcher.java:466) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:415) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:202) at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:221) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56) at org.jboss.resteasy.plugins.server.tjws.TJWSServletDispatcher.service(TJWSServletDispatcher.java:40) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at Acme.Serve.Serve$ServeConnection.runServlet(Serve.java:2328) at Acme.Serve.Serve$ServeConnection.parseRequest(Serve.java:2282) at Acme.Serve.Serve$ServeConnection.run(Serve.java:2054) at Acme.Utils$ThreadPool$PooledThread.run(Utils.java:1402) at java.base/java.lang.Thread.run(Thread.java:844) Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlElement at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499) ... 33 more 2018-11-05 20:50:09,476 ERROR [Acme.Utils.ThreadPool(3)-PooledThread: Acme.Serve.Serve$ServeConnection@29b9b01c] [org.mycontroller.standalone.api.jaxrs.utils.StatusJVM:67] Error, java.lang.reflect.InaccessibleObjectException: Unable to make public com.sun.management.GcInfo com.sun.management.internal.GarbageCollectorExtImpl.getLastGcInfo() accessible: module jdk.management does not "exports com.sun.management.internal" to unnamed module @399f45b1 at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:337) at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:281) at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:198) at java.base/java.lang.reflect.Method.setAccessible(Method.java:192) at org.mycontroller.standalone.api.jaxrs.utils.StatusJVM.getGcInfo(StatusJVM.java:64) at org.mycontroller.standalone.api.jaxrs.utils.StatusJVM.getGarbageCollector(StatusJVM.java:48) at org.mycontroller.standalone.api.jaxrs.utils.StatusJVM.getGarbageCollectors(StatusJVM.java:41) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:654) at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:675) at com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:157) at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:130) at com.fasterxml.jackson.databind.ObjectWriter$Prefetch.serialize(ObjectWriter.java:1387) at com.fasterxml.jackson.databind.ObjectWriter.writeValue(ObjectWriter.java:889) at org.jboss.resteasy.plugins.providers.jackson.ResteasyJackson2Provider.writeTo(ResteasyJackson2Provider.java:207) at org.mycontroller.standalone.api.jaxrs.mixins.McJacksonJson2Provider.writeTo(McJacksonJson2Provider.java:120) at org.jboss.resteasy.core.interception.AbstractWriterInterceptorContext.writeTo(AbstractWriterInterceptorContext.java:131) at org.jboss.resteasy.core.interception.ServerWriterInterceptorContext.writeTo(ServerWriterInterceptorContext.java:60) at org.jboss.resteasy.core.interception.AbstractWriterInterceptorContext.proceed(AbstractWriterInterceptorContext.java:120) at org.jboss.resteasy.plugins.interceptors.encoding.GZIPEncodingInterceptor.aroundWriteTo(GZIPEncodingInterceptor.java:100) at org.jboss.resteasy.core.interception.AbstractWriterInterceptorContext.proceed(AbstractWriterInterceptorContext.java:124) at org.jboss.resteasy.core.ServerResponseWriter.writeNomapResponse(ServerResponseWriter.java:98) at org.jboss.resteasy.core.SynchronousDispatcher.writeResponse(SynchronousDispatcher.java:466) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:415) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:202) at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:221) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56) at org.jboss.resteasy.plugins.server.tjws.TJWSServletDispatcher.service(TJWSServletDispatcher.java:40) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at Acme.Serve.Serve$ServeConnection.runServlet(Serve.java:2328) at Acme.Serve.Serve$ServeConnection.parseRequest(Serve.java:2282) at Acme.Serve.Serve$ServeConnection.run(Serve.java:2054) at Acme.Utils$ThreadPool$PooledThread.run(Utils.java:1402) at java.base/java.lang.Thread.run(Thread.java:844) [Mon Nov 05 20:50:09 CET 2018] Unexpected problem running servlet org.jboss.resteasy.spi.UnhandledException: RESTEASY003770: Response is committed, can't handle exception at org.jboss.resteasy.core.SynchronousDispatcher.writeException(SynchronousDispatcher.java:167) at org.jboss.resteasy.core.SynchronousDispatcher.writeResponse(SynchronousDispatcher.java:471) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:415) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:202) at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:221) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56) at org.jboss.resteasy.plugins.server.tjws.TJWSServletDispatcher.service(TJWSServletDispatcher.java:40) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at Acme.Serve.Serve$ServeConnection.runServlet(Serve.java:2328) at Acme.Serve.Serve$ServeConnection.parseRequest(Serve.java:2282) at Acme.Serve.Serve$ServeConnection.run(Serve.java:2054) at Acme.Utils$ThreadPool$PooledThread.run(Utils.java:1402) at java.base/java.lang.Thread.run(Thread.java:844) Caused by: com.fasterxml.jackson.databind.JsonMappingException: java.lang.reflect.InaccessibleObjectException: Unable to make public com.sun.management.GcInfo com.sun.management.internal.GarbageCollectorExtImpl.getLastGcInfo() accessible: module jdk.management does not "exports com.sun.management.internal" to unnamed module @399f45b1 (through reference chain: org.mycontroller.standalone.api.jaxrs.utils.StatusJVM["garbageCollectors"]) at com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:210) at com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:177) at com.fasterxml.jackson.databind.ser.std.StdSerializer.wrapAndThrow(StdSerializer.java:199) at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:683) at com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:157) at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:130) at com.fasterxml.jackson.databind.ObjectWriter$Prefetch.serialize(ObjectWriter.java:1387) at com.fasterxml.jackson.databind.ObjectWriter.writeValue(ObjectWriter.java:889) at org.jboss.resteasy.plugins.providers.jackson.ResteasyJackson2Provider.writeTo(ResteasyJackson2Provider.java:207) at org.mycontroller.standalone.api.jaxrs.mixins.McJacksonJson2Provider.writeTo(McJacksonJson2Provider.java:120) at org.jboss.resteasy.core.interception.AbstractWriterInterceptorContext.writeTo(AbstractWriterInterceptorContext.java:131) at org.jboss.resteasy.core.interception.ServerWriterInterceptorContext.writeTo(ServerWriterInterceptorContext.java:60) at org.jboss.resteasy.core.interception.AbstractWriterInterceptorContext.proceed(AbstractWriterInterceptorContext.java:120) at org.jboss.resteasy.plugins.interceptors.encoding.GZIPEncodingInterceptor.aroundWriteTo(GZIPEncodingInterceptor.java:100) at org.jboss.resteasy.core.interception.AbstractWriterInterceptorContext.proceed(AbstractWriterInterceptorContext.java:124) at org.jboss.resteasy.core.ServerResponseWriter.writeNomapResponse(ServerResponseWriter.java:98) at org.jboss.resteasy.core.SynchronousDispatcher.writeResponse(SynchronousDispatcher.java:466) ... 12 more Caused by: java.lang.RuntimeException: java.lang.reflect.InaccessibleObjectException: Unable to make public com.sun.management.GcInfo com.sun.management.internal.GarbageCollectorExtImpl.getLastGcInfo() accessible: module jdk.management does not "exports com.sun.management.internal" to unnamed module @399f45b1 at org.mycontroller.standalone.api.jaxrs.utils.StatusJVM.getGcInfo(StatusJVM.java:68) at org.mycontroller.standalone.api.jaxrs.utils.StatusJVM.getGarbageCollector(StatusJVM.java:48) at org.mycontroller.standalone.api.jaxrs.utils.StatusJVM.getGarbageCollectors(StatusJVM.java:41) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:654) at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:675) ... 25 more Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make public com.sun.management.GcInfo com.sun.management.internal.GarbageCollectorExtImpl.getLastGcInfo() accessible: module jdk.management does not "exports com.sun.management.internal" to unnamed module @399f45b1 at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:337) at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:281) at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:198) at java.base/java.lang.reflect.Method.setAccessible(Method.java:192) at org.mycontroller.standalone.api.jaxrs.utils.StatusJVM.getGcInfo(StatusJVM.java:64) ... 33 more [Mon Nov 05 20:50:09 CET 2018] Unexpected problem running servlet: org.jboss.resteasy.spi.UnhandledException: RESTEASY003770: Response is committed, can't handle exception ```
-
RE: Tried the 1.3-SNAPSHOT and got problems with external server
@jkandasa Hi again, just a follow-up, do you want me to do some more testing?
-
RE: MycontrollerDevice OTA challenges
@jkandasa Thanks for looking into this. I will wait till a new release, unless you want me to do some testing?
-
RE: MycontrollerDevice OTA challenges
Is there anything I can do to assist finding the caveat in this?
-
RE: Tried the 1.3-SNAPSHOT and got problems with external server
Sounds brilliant, the version from 22nd of March is the one which gave me the problems, so please instruct as to how you want the configuration, making sure that you get the logs needed?
-
MycontrollerDevice OTA challenges
Hi again. I am trying to make the magic OTA firmware update work with the setup I have.
I have a ESP8266 with 4M flash and pubsubclient set to 512. I have defined a new version and a new type to the node, and uploaded the new bin-file to mycontroller.
The resource log is then filled with firmware requests and responses and then after a while the device reboots, but with the same firmware as it started with.
This is the serial monitor on the device while rebooting....
<here is stuff that indicates the device is in its normal loop> MC[I]: Firmware update success... MC[I]: Rebooting... ets Jan 8 2013,rst cause:2, boot mode:(3,7) load 0x4010f000, len 1384, room 16 tail 8 chksum 0x2d csum 0x2d v4ceabea9 @cp:0 ld C� MC[I]: Booting ESP8266 device... MC[I]: WIFI not connected, trying connection... MC[I]: Connecting to WiFi with ssid[1421530] and with password...........OK MC[I]: WiFi BSSID:[00:02:61:A8:32:58], RSSI:[-69 dBm, 62 ], IP:[192.168.1.148], StatusCode:[3] MC[I]: Configuration(NodeEUI:[ESP_2D5A26], Mqtt{mDNS-status:[0], Server:[192.168.1.197], Port:[1883], FeedId:[esp], User:[]}) MC[I]: MQTT settings(Broker:[192.168.1.197], Port:[1883]) MC[I]: MQTT authenticating as anonymous MC[I]: MQTT connection failed, rc=-4 MC[I]: Initialization done... MC[I]: MQTT failed! Retryting to connect... MC[I]: MQTT settings(Broker:[192.168.1.197], Port:[1883]) MC[I]: MQTT authenticating as anonymous MC[I]: MQTT connected :) MC[I]: MQTT topic subscribed:[in_esp/ESP_2D5A26/#] <here is stuff that indicates everything is in order (but wrong version of software)>
-
RE: Tried the 1.3-SNAPSHOT and got problems with external server
Sorry, I wiped the log-file. Its the influxdb that does not receive data as it normally does. If you want I can perform a controlled test with the 1.3 version?
-
Tried the 1.3-SNAPSHOT and got problems with external server
Hi there, just wanted to report back, I took the 1.3 SNAPSHOT version at 23/3 and installed, seems to run fine. But realized after a few days that the external server did not get any data. I could not find anything in the log files that indicated what the problem was. Reverted to 1.2 and now its works well again.
-
Exception with "nan" messages
I am debugging now, but I am having some problems with some DHT11 sensors, that are sometimes (once per hour) returning weird values. I want to filter that away at the device, but currently I am getting:
2018-01-02 21:44:49,590 ERROR [Thread-6] [org.mycontroller.standalone.message.MessageMonitorThread:119] Throws exception while processing!, [RawMessage(gatewayId=1, data=nan, subData=out_esp/ESP_2D5A26/humid-3/C_SET/V_HUM/0, isTxMessage=false, networkType=MY_CONTROLLER, timestamp=1514925889586)] java.lang.NumberFormatException: For input string: "nan" at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043) at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110) at java.lang.Double.parseDouble(Double.java:538) at java.lang.Double.valueOf(Double.java:502) at org.mycontroller.standalone.utils.McUtils.getDouble(McUtils.java:100) at org.mycontroller.standalone.utils.McUtils.getDouble(McUtils.java:95) at org.mycontroller.standalone.message.McMessageEngine.updateSensorVariable(McMessageEngine.java:913) at org.mycontroller.standalone.message.McMessageEngine.recordSetTypeData(McMessageEngine.java:997) at org.mycontroller.standalone.message.McMessageEngine.execute(McMessageEngine.java:108) at org.mycontroller.standalone.message.McMessageEngine.run(McMessageEngine.java:1117) at org.mycontroller.standalone.message.McMessageUtils.sendToMcMessageEngine(McMessageUtils.java:677) at org.mycontroller.standalone.provider.mc.McProviderBridge.executeRawMessage(McProviderBridge.java:59) at org.mycontroller.standalone.message.McMessageUtils.sendToProviderBridge(McMessageUtils.java:585) at org.mycontroller.standalone.message.MessageMonitorThread.processRawMessage(MessageMonitorThread.java:107) at org.mycontroller.standalone.message.MessageMonitorThread.run(MessageMonitorThread.java:182) at java.lang.Thread.run(Thread.java:748)
I am interested in knowing if there is a message somewhere else than in the server log when bad messages are coming from the devices.