installation problem



  • Hi,

    I like to try this software, it looks promising and in some cases cover all my current needs as my home controller.

    I try to install but I got some problems during installation, so here are some more detailed info, if you have solution or suggestion, please help.

    I have rpi a+ with jessie, I follow installation instructions, download/unzip i did not edit config file, leave it as default, runt start.sh from bin folder, but nothing happens, I cannot access in browser GUI :-(. I have mycontroller folder inside pi/home, java version is 1.8. Did I need to install something else, or it is all bundled inside archive folder!?.

    Here is my log maybe here someone can find what is problem...

    KEEPALIVE!: true
    Exception in thread "main" java.lang.ClassFormatError: Truncated class file
    	at java.lang.ClassLoader.findBootstrapClass(Native Method)
    	at java.lang.ClassLoader.findBootstrapClassOrNull(ClassLoader.java:1012)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:413)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    	at com.j256.ormlite.field.types.BigIntegerType.<init>(BigIntegerType.java:27)
    	at com.j256.ormlite.field.types.BigIntegerType.<clinit>(BigIntegerType.java:20)
    	at com.j256.ormlite.field.DataType.<clinit>(DataType.java:183)
    	at com.j256.ormlite.field.DatabaseFieldConfig.<clinit>(DatabaseFieldConfig.java:22)
    	at com.j256.ormlite.field.FieldType.createFieldType(FieldType.java:953)
    	at com.j256.ormlite.table.DatabaseTableConfig.extractFieldTypes(DatabaseTableConfig.java:208)
    	at com.j256.ormlite.table.DatabaseTableConfig.fromClass(DatabaseTableConfig.java:146)
    	at com.j256.ormlite.table.TableInfo.<init>(TableInfo.java:53)
    	at com.j256.ormlite.dao.BaseDaoImpl.initialize(BaseDaoImpl.java:151)
    	at com.j256.ormlite.dao.BaseDaoImpl.<init>(BaseDaoImpl.java:128)
    	at com.j256.ormlite.dao.BaseDaoImpl.<init>(BaseDaoImpl.java:107)
    	at com.j256.ormlite.dao.BaseDaoImpl$4.<init>(BaseDaoImpl.java:907)
    	at com.j256.ormlite.dao.BaseDaoImpl.createDao(BaseDaoImpl.java:907)
    	at com.j256.ormlite.dao.DaoManager.createDao(DaoManager.java:70)
    	at org.mycontroller.standalone.db.dao.BaseAbstractDao.<init>(BaseAbstractDao.java:39)
    	at org.mycontroller.standalone.db.dao.NodeDaoImpl.<init>(NodeDaoImpl.java:36)
    	at org.mycontroller.standalone.db.DaoUtils.loadAllDao(DaoUtils.java:90)
    	at org.mycontroller.standalone.db.DataBaseUtils.loadDatabase(DataBaseUtils.java:92)
    	at org.mycontroller.standalone.StartApp.startServices(StartApp.java:184)
    	at org.mycontroller.standalone.StartApp.main(StartApp.java:74)
    2015-11-17 22:11:11,350 WARN [MyController.org Shutdown-Hook] [com.xeiam.sundial.SundialJobScheduler:140] Scheduler has not yet been created!!! Call "createScheduler" first.
    2015-11-17 22:11:11,500 ERROR [MyController.org Shutdown-Hook] [com.xeiam.sundial.SundialJobScheduler:500] COULD NOT SHUTDOWN SCHEDULER!!!
    java.lang.NullPointerException: null
    	at com.xeiam.sundial.SundialJobScheduler.shutdown(SundialJobScheduler.java:498) ~[mycontroller-standalone-0.0.2-alpha5-single.jar:na]
    	at org.mycontroller.standalone.scheduler.SchedulerUtils.stop(SchedulerUtils.java:76) [mycontroller-standalone-0.0.2-alpha5-single.jar:na]
    	at org.mycontroller.standalone.StartApp.stopServices(StartApp.java:228) [mycontroller-standalone-0.0.2-alpha5-single.jar:na]
    	at org.mycontroller.standalone.AppShutdownHook$1.run(AppShutdownHook.java:33) [mycontroller-standalone-0.0.2-alpha5-single.jar:na]
    Exception in thread "MyController.org Shutdown-Hook" java.lang.NullPointerException
    	at org.mycontroller.standalone.StartApp.stopServices(StartApp.java:229)
    	at org.mycontroller.standalone.AppShutdownHook$1.run(AppShutdownHook.java:33)
    KEEPALIVE!: true
    Exception in thread "main" java.lang.ClassFormatError: Truncated class file
    	at java.lang.ClassLoader.findBootstrapClass(Native Method)
    	at java.lang.ClassLoader.findBootstrapClassOrNull(ClassLoader.java:1012)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:413)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    	at com.j256.ormlite.field.types.BigIntegerType.<init>(BigIntegerType.java:27)
    	at com.j256.ormlite.field.types.BigIntegerType.<clinit>(BigIntegerType.java:20)
    	at com.j256.ormlite.field.DataType.<clinit>(DataType.java:183)
    	at com.j256.ormlite.field.DatabaseFieldConfig.<clinit>(DatabaseFieldConfig.java:22)
    	at com.j256.ormlite.field.FieldType.createFieldType(FieldType.java:953)
    	at com.j256.ormlite.table.DatabaseTableConfig.extractFieldTypes(DatabaseTableConfig.java:208)
    	at com.j256.ormlite.table.DatabaseTableConfig.fromClass(DatabaseTableConfig.java:146)
    	at com.j256.ormlite.table.TableInfo.<init>(TableInfo.java:53)
    	at com.j256.ormlite.dao.BaseDaoImpl.initialize(BaseDaoImpl.java:151)
    	at com.j256.ormlite.dao.BaseDaoImpl.<init>(BaseDaoImpl.java:128)
    	at com.j256.ormlite.dao.BaseDaoImpl.<init>(BaseDaoImpl.java:107)
    	at com.j256.ormlite.dao.BaseDaoImpl$4.<init>(BaseDaoImpl.java:907)
    	at com.j256.ormlite.dao.BaseDaoImpl.createDao(BaseDaoImpl.java:907)
    	at com.j256.ormlite.dao.DaoManager.createDao(DaoManager.java:70)
    	at org.mycontroller.standalone.db.dao.BaseAbstractDao.<init>(BaseAbstractDao.java:39)
    	at org.mycontroller.standalone.db.dao.NodeDaoImpl.<init>(NodeDaoImpl.java:36)
    	at org.mycontroller.standalone.db.DaoUtils.loadAllDao(DaoUtils.java:90)
    	at org.mycontroller.standalone.db.DataBaseUtils.loadDatabase(DataBaseUtils.java:92)
    	at org.mycontroller.standalone.StartApp.startServices(StartApp.java:184)
    	at org.mycontroller.standalone.StartApp.main(StartApp.java:74)
    2015-11-17 22:18:17,013 WARN [MyController.org Shutdown-Hook] [com.xeiam.sundial.SundialJobScheduler:140] Scheduler has not yet been created!!! Call "createScheduler" first.
    2015-11-17 22:18:17,159 ERROR [MyController.org Shutdown-Hook] [com.xeiam.sundial.SundialJobScheduler:500] COULD NOT SHUTDOWN SCHEDULER!!!
    java.lang.NullPointerException: null
    	at com.xeiam.sundial.SundialJobScheduler.shutdown(SundialJobScheduler.java:498) ~[mycontroller-standalone-0.0.2-alpha5-single.jar:na]
    	at org.mycontroller.standalone.scheduler.SchedulerUtils.stop(SchedulerUtils.java:76) [mycontroller-standalone-0.0.2-alpha5-single.jar:na]
    	at org.mycontroller.standalone.StartApp.stopServices(StartApp.java:228) [mycontroller-standalone-0.0.2-alpha5-single.jar:na]
    	at org.mycontroller.standalone.AppShutdownHook$1.run(AppShutdownHook.java:33) [mycontroller-standalone-0.0.2-alpha5-single.jar:na]
    Exception in thread "MyController.org Shutdown-Hook" java.lang.NullPointerException
    	at org.mycontroller.standalone.StartApp.stopServices(StartApp.java:229)
    	at org.mycontroller.standalone.AppShutdownHook$1.run(AppShutdownHook.java:33)
    KEEPALIVE!: true
    Exception in thread "main" java.lang.ClassFormatError: Truncated class file
    	at java.lang.ClassLoader.findBootstrapClass(Native Method)
    	at java.lang.ClassLoader.findBootstrapClassOrNull(ClassLoader.java:1012)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:413)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:411)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    	at com.j256.ormlite.field.types.BigIntegerType.<init>(BigIntegerType.java:27)
    	at com.j256.ormlite.field.types.BigIntegerType.<clinit>(BigIntegerType.java:20)
    	at com.j256.ormlite.field.DataType.<clinit>(DataType.java:183)
    	at com.j256.ormlite.field.DatabaseFieldConfig.<clinit>(DatabaseFieldConfig.java:22)
    	at com.j256.ormlite.field.FieldType.createFieldType(FieldType.java:953)
    	at com.j256.ormlite.table.DatabaseTableConfig.extractFieldTypes(DatabaseTableConfig.java:208)
    	at com.j256.ormlite.table.DatabaseTableConfig.fromClass(DatabaseTableConfig.java:146)
    	at com.j256.ormlite.table.TableInfo.<init>(TableInfo.java:53)
    	at com.j256.ormlite.dao.BaseDaoImpl.initialize(BaseDaoImpl.java:151)
    	at com.j256.ormlite.dao.BaseDaoImpl.<init>(BaseDaoImpl.java:128)
    	at com.j256.ormlite.dao.BaseDaoImpl.<init>(BaseDaoImpl.java:107)
    	at com.j256.ormlite.dao.BaseDaoImpl$4.<init>(BaseDaoImpl.java:907)
    	at com.j256.ormlite.dao.BaseDaoImpl.createDao(BaseDaoImpl.java:907)
    	at com.j256.ormlite.dao.DaoManager.createDao(DaoManager.java:70)
    	at org.mycontroller.standalone.db.dao.BaseAbstractDao.<init>(BaseAbstractDao.java:39)
    	at org.mycontroller.standalone.db.dao.NodeDaoImpl.<init>(NodeDaoImpl.java:36)
    	at org.mycontroller.standalone.db.DaoUtils.loadAllDao(DaoUtils.java:90)
    	at org.mycontroller.standalone.db.DataBaseUtils.loadDatabase(DataBaseUtils.java:92)
    	at org.mycontroller.standalone.StartApp.startServices(StartApp.java:184)
    	at org.mycontroller.standalone.StartApp.main(StartApp.java:74)
    2015-11-17 22:35:19,081 WARN [MyController.org Shutdown-Hook] [com.xeiam.sundial.SundialJobScheduler:140] Scheduler has not yet been created!!! Call "createScheduler" first.
    2015-11-17 22:35:19,230 ERROR [MyController.org Shutdown-Hook] [com.xeiam.sundial.SundialJobScheduler:500] COULD NOT SHUTDOWN SCHEDULER!!!
    java.lang.NullPointerException: null
    	at com.xeiam.sundial.SundialJobScheduler.shutdown(SundialJobScheduler.java:498) ~[mycontroller-standalone-0.0.2-alpha5-single.jar:na]
    	at org.mycontroller.standalone.scheduler.SchedulerUtils.stop(SchedulerUtils.java:76) [mycontroller-standalone-0.0.2-alpha5-single.jar:na]
    	at org.mycontroller.standalone.StartApp.stopServices(StartApp.java:228) [mycontroller-standalone-0.0.2-alpha5-single.jar:na]
    	at org.mycontroller.standalone.AppShutdownHook$1.run(AppShutdownHook.java:33) [mycontroller-standalone-0.0.2-alpha5-single.jar:na]
    Exception in thread "MyController.org Shutdown-Hook" java.lang.NullPointerException
    	at org.mycontroller.standalone.StartApp.stopServices(StartApp.java:229)
    	at org.mycontroller.standalone.AppShutdownHook$1.run(AppShutdownHook.java:33)
    

    If you need some more info write down I will try to provide it with more details.

    If someone have idea what to do please write,

    Thanks


  • Plugin Developer

    @doxikus It looks like jar file has corrupted. Can you do fresh download from https://github.com/mycontroller-org/mycontroller/releases/tag/0.0.2-alpha5 and do extract?

    What is the size of your downloaded file? (mycontroller-standalone-0.0.2-alpha5-bundle.zip)
    After extraction what is the size of the directory? (du -sh mycontroller/) and ls -lh mycontroller/lib/



  • Thanks for pointing, I will try later today with new archive.



  • Hi, I have problems with SD cards, read/write issues, so I have new one, Jessie is installed, I have running mycontroller over one week on RPI A+ without problems :-). Now my next problem is how to attach sensor getaway over usb hub :-).

    I have for getaway arduino uno with NRF24L01+ library is uploaded, over serial monitor looks ok, so I would like to know how to connect to RPI :-). Problem is with settings, which serial port I should use!? Right now it is with default settings, mcc.serialport.driver.type=auto
    mcc.serialport.name=/dev/ttyUSB0

    Do I need to change something here!? How to know which serial port I need to use!? dmesg!?

    Maybe to consider using ethernet gateway!?

    Thanks again


  • Plugin Developer

    @doxikus said:

    Hi, I have problems with SD cards, read/write issues, so I have new one, Jessie is installed, I have running mycontroller over one week on RPI A+ without problems :-). Now my next problem is how to attach sensor getaway over usb hub :-).

    I have for getaway arduino uno with NRF24L01+ library is uploaded, over serial monitor looks ok, so I would like to know how to connect to RPI :-). Problem is with settings, which serial port I should use!? Right now it is with default settings, mcc.serialport.driver.type=auto
    mcc.serialport.name=/dev/ttyUSB0

    Do I need to change something here!? How to know which serial port I need to use!? dmesg!?

    Maybe to consider using ethernet gateway!?

    Thanks again

    @doxikus Perfect! Yes you have to change this line if you are using serial port.

    mcc.serialport.name=/dev/ttyUSB0
    

    I believe you have connected your arduino UNO with USB port, If yes, the port will be similar /dev/ttyUSB0,
    run this command on your RPI, ls -l /dev/ttyUSB* or ls -l /dev/tty* It will list available ports, you can find the odd one out easily!

    MyController.org supports for Serial, Ethernet, GPIO(RPI) and MQTT(master branch). You can use either. For now you can go with serial as you have the setup ready to go 👍


 

179
Online

8.6k
Users

9.4k
Topics

99.0k
Posts