• Categories
  • Recent
  • Tags
  • Popular
  • Register
  • Login
  • Categories
  • Recent
  • Tags
  • Popular
  • Register
  • Login

Can't find mc_local when Debugging in Eclipse

Scheduled Pinned Locked Moved Developers Zone
4 Posts 2 Posters 2.1k Views 1 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    cslauritsen
    last edited by cslauritsen 20 Jan 2017, 17:28

    I'm trying to debug StartApp in eclipse. Here's a snap of the config
    0_1484933540878_upload-e65ffad4-ff5b-47dd-ae3b-7acb47841c71

    Cannot find mc_locale stuff. If I build a distribution and run from there, it works OK. Where are the mc_locale items? Can I add a configuration property to point to them?

    It fails with

    12:25:58.669 [main] DEBUG org.mycontroller.standalone.AppProperties - Key:mcc.tmp.location-->c:/tmp/
    12:25:58.674 [main] DEBUG org.mycontroller.standalone.AppProperties - Key:mcc.resources.location-->../conf/resources/
    12:25:58.674 [main] DEBUG org.mycontroller.standalone.AppProperties - Key:mcc.db.type-->H2DB_EMBEDDED
    12:25:58.676 [main] DEBUG org.mycontroller.standalone.AppProperties - Key:mcc.db.backup.include-->true
    12:25:58.676 [main] DEBUG org.mycontroller.standalone.AppProperties - Key:mcc.db.url-->jdbc:h2:file:../conf/mycontroller;MVCC=TRUE
    12:25:58.676 [main] DEBUG org.mycontroller.standalone.AppProperties - Key:mcc.db.username-->mycontroller
    12:25:58.676 [main] DEBUG org.mycontroller.standalone.AppProperties - Key:mcc.db.password-->mycontroller
    12:25:58.676 [main] DEBUG org.mycontroller.standalone.AppProperties - Key:mcc.web.file.location-->../www/
    12:25:58.676 [main] DEBUG org.mycontroller.standalone.AppProperties - Key:mcc.web.http.port-->9080
    12:25:58.676 [main] DEBUG org.mycontroller.standalone.AppProperties - Key:mcc.web.enable.https-->false
    12:25:58.676 [main] DEBUG org.mycontroller.standalone.AppProperties - Key:mcc.web.bind.address-->0.0.0.0
    12:25:58.676 [main] DEBUG org.mycontroller.standalone.AppProperties - Key:mcc.persistent.stores.location-->../conf/persistent_stores/
    12:25:58.676 [main] DEBUG org.mycontroller.standalone.AppProperties - Key:mcc.clear.message.queue.on.start-->true
    12:25:58.676 [main] DEBUG org.mycontroller.standalone.AppProperties - Key:mcc.clear.smart.sleep.msg.queue.on.start-->true
    12:25:58.676 [main] DEBUG org.mycontroller.standalone.AppProperties - Key:mcc.mdns.service.enable-->false
    12:25:58.676 [main] DEBUG org.mycontroller.standalone.StartApp - Properties are loaded successfuly...
    12:25:58.677 [main] DEBUG org.mycontroller.standalone.StartApp - App Properties: AppProperties(tmpLocation=c:/tmp/, resourcesLocation=../conf/resources/, appDirectory=C:\Users\csl04r\git\mycontroller\modules, dbType=H2DB_EMBEDDED, dbBackupInclude=true, dbUrl=jdbc:h2:file:../conf/mycontroller;MVCC=TRUE, dbUsername=mycontroller, dbPassword=mycontroller, webFileLocation=../www/, isWebHttpsEnabled=false, webHttpPort=9080, webSslKeystoreFile=null, webSslKeystorePassword=null, webSslKeystoreType=null, webBindAddress=0.0.0.0, mqttBrokerPersistentStore=../conf/persistent_stores//moquette/moquette_store.mapdb, mcPersistentStoresLocation=../conf/persistent_stores/, clearMessagesQueueOnStart=true, clearSmartSleepMsgQueueOnStart=true, mDNSserviceEnabled=false, controllerSettings=null, emailSettings=null, mySensorsSettings=null, smsSettings=null, pushbulletSettings=null, locationSettings=null, metricsGraphSettings=null, metricsDataRetentionSettings=null, backupSettings=null, mqttBrokerSettings=null, mqttRepublisherSettings=null)
    12:25:58.677 [main] DEBUG org.mycontroller.standalone.StartApp - Operating System detail:[os:Windows 7,arch:amd64,version:6.1]
    12:25:58.681 [main] ERROR org.mycontroller.standalone.StartApp - Unable to start application, refer error log,
    java.util.MissingResourceException: Can't find bundle for base name mc_locale/mc_locale_java, locale en_US
    at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
    at java.util.ResourceBundle.getBundleImpl(Unknown Source)
    at java.util.ResourceBundle.getBundle(Unknown Source)
    at org.mycontroller.standalone.utils.McUtils.updateLocale(McUtils.java:291)
    at org.mycontroller.standalone.StartApp.startServices(StartApp.java:246)
    at org.mycontroller.standalone.StartApp.startMycontroller(StartApp.java:109)
    at org.mycontroller.standalone.StartApp.main(StartApp.java:96)
    Picked up JAVA_TOOL_OPTIONS: -Djava.vendor="New Oracle"

    J 1 Reply Last reply 20 Jan 2017, 17:38 Reply Quote 0
    • J Offline
      jkandasa @cslauritsen
      last edited by jkandasa 20 Jan 2017, 17:38

      @cslauritsen MyController is not a single module. it is two different module. You have to run mvn package on the command line. to get the final package. We can not simply run from StartApp, As it depends on dist module too.

      Change code on IDE,

      ON Command line:
      cd to mycontroller
      and execute mvn package
      you can see bundle on mycontroller/dist/target

      1 Reply Last reply Reply Quote 0
      • C Offline
        cslauritsen
        last edited by 20 Jan 2017, 18:12

        it seems that adding the dist project to the list of project dependencies cleared the problem with loading mc_locale:
        0_1484935965669_upload-fe6ddc99-c493-42ca-862a-a0572bda7774

        J 1 Reply Last reply 21 Jan 2017, 00:48 Reply Quote 0
        • J Offline
          jkandasa @cslauritsen
          last edited by 21 Jan 2017, 00:48

          @cslauritsen Yes, when we use mvn package, it will create different package structure. Which might not be done by IDE.

          1 Reply Last reply Reply Quote 0
          3 out of 4
          • First post
            3/4
            Last post

          0

          Online

          623

          Users

          531

          Topics

          3.4k

          Posts
          Copyright © 2015-2025 MyController.org | Contributors | Localization