{"action":"created","issue":{"url":"https://api.github.com/repos/JMRI/JMRI/issues/814","repository_url":"https://api.github.com/repos/JMRI/JMRI","labels_url":"https://api.github.com/repos/JMRI/JMRI/issues/814/labels{/name}","comments_url":"https://api.github.com/repos/JMRI/JMRI/issues/814/comments","events_url":"https://api.github.com/repos/JMRI/JMRI/issues/814/events","html_url":"https://github.com/JMRI/JMRI/issues/814","id":134030914,"number":814,"title":"Best Programming Mode problem","user":{"login":"mattharris","id":738651,"avatar_url":"https://avatars.githubusercontent.com/u/738651?v=3","gravatar_id":"","url":"https://api.github.com/users/mattharris","html_url":"https://github.com/mattharris","followers_url":"https://api.github.com/users/mattharris/followers","following_url":"https://api.github.com/users/mattharris/following{/other_user}","gists_url":"https://api.github.com/users/mattharris/gists{/gist_id}","starred_url":"https://api.github.com/users/mattharris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattharris/subscriptions","organizations_url":"https://api.github.com/users/mattharris/orgs","repos_url":"https://api.github.com/users/mattharris/repos","events_url":"https://api.github.com/users/mattharris/events{/privacy}","received_events_url":"https://api.github.com/users/mattharris/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JMRI/JMRI/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":36,"created_at":"2016-02-16T16:43:13Z","updated_at":"2016-02-18T03:03:32Z","closed_at":null,"body":"Based on a jmriusers report, the programming mode default changes introduced in #541 seem to have a problem with the NCE-USB.\r\n\r\n```\r\nFrom: \"Brian Gilhuly\" <brianlgilhuly@...>\r\n\r\nWhen I installed 4.3.3 on my RPi2 running updated Raspbian Jessie, it hangs\r\non start-up. All begins well; WiThrottle server starts, panel is loaded,\r\nstart-up script runs. Then nothing. The Panel Pro window never opens and the\r\njava icon remains on its window tab.\r\n\r\nIf I re-install 4.3.2, everything works as normal.\r\n\r\nBrian\r\n\r\nHere is the console log:\r\n\r\n2016-02-16 11:19:27,156 util.Log4JUtil INFO - This log is appended to file: /home/pi/.jmri/log/messages.log [main]\r\n2016-02-16 11:19:27,164 util.Log4JUtil INFO - This log is stored in file: /home/pi/.jmri/log/session.log [main]\r\n2016-02-16 11:19:27,227 apps.Apps INFO - PanelPro version 4.3.3-R965a469 starts under Java 1.8.0 at Tue Feb 16 11:19:27 EST 2016 [main]\r\n2016-02-16 11:19:33,579 apps.Apps INFO - Starting with profile Welsh_Sidings.3dfcf14d [main]\r\n2016-02-16 11:19:34,835 node.NodeIdentity INFO - Using jmri-000F600413E7-3dfcf14d as the JMRI Node identity [main]\r\n2016-02-16 11:19:36,046 usbdriver.UsbDriverAdapter INFO - NCE USB /dev/ttyUSB0 port opened at 19200 baud [main]\r\n2016-02-16 11:19:36,244 nce.NceConnectionStatus INFO - NCE EPROM revision = 7.3.1 [AWT-EventQueue-0]\r\n2016-02-16 11:19:36,372 nce.NceProgrammer WARN - NCE USB-SB3/SB5/TWIN getSupportedModes returns no modes [main]\r\n2016-02-16 11:19:38,470 configurexml.PerformFileModelXml INFO - Load file /home/pi/Documents/JMRI/Welsh Sidings.xml [main]\r\n2016-02-16 11:19:43,397 configurexml.PerformScriptModelXml INFO - Run file /home/pi/Documents/JMRI/jython/jmri_defaults.py [main]\r\nScriptEngineManager providers.next(): javax.script.ScriptEngineFactory: Provider apple.applescript.AppleScriptEngineFactory not found\r\n2016-02-16 11:19:43,536 script.JmriScriptEngineManager INFO - python 2.7 is provided by jython 2.7.0 [main]\r\n2016-02-16 11:19:43,573 script.JmriScriptEngineManager INFO - ECMAScript ECMA - 262 Edition 5.1 is provided by Oracle Nashorn 1.8.0 [main]\r\n2016-02-16 11:19:46,652 withrottle.UserInterface INFO - Creating new WiThrottle DeviceServer(socket) on port 12090, waiting for incoming connection... [WiThrottleGUIServer]\r\n2016-02-16 11:20:18,198 configurexml.PerformScriptModelXml INFO - Run file /home/pi/Documents/JMRI/jython/Layout Startup.py [main]\r\n2016-02-16 11:20:18,622 nce.NceProgrammer WARN - NCE USB-SB3/SB5/TWIN getSupportedModes returns no modes [main]\r\n2016-02-16 11:20:18,632 nce.NceProgrammer WARN - NCE USB-SB3/SB5/TWIN getSupportedModes returns no modes [main]\r\n2016-02-16 11:20:18,638 ptionhandler.UncaughtExceptionHandler ERROR - Uncaught Exception: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0\r\n  at java.util.ArrayList.rangeCheck(ArrayList.java:638)\r\n  at java.util.ArrayList.get(ArrayList.java:414)\r\n  at jmri.jmrix.AbstractProgrammer.getBestMode(AbstractProgrammer.java:161)\r\n  at jmri.jmrix.AbstractProgrammer.getMode(AbstractProgrammer.java:166)\r\n  at jmri.jmrit.progsupport.ProgServiceModeComboBox.programmerSelected(ProgServiceModeComboBox.java:145)\r\n  at jmri.jmrit.progsupport.ProgServiceModeComboBox.<init>(ProgServiceModeComboBox.java:128)\r\n  at jmri.jmrit.progsupport.ProgServiceModeComboBox.<init>(ProgServiceModeComboBox.java:80)\r\n  at jmri.jmrit.symbolicprog.tabbedframe.PaneProgAction.<init>(PaneProgAction.java:47)\r\n  at jmri.jmrit.ToolsMenu.<init>(ToolsMenu.java:49)\r\n  at jmri.jmrit.ToolsMenu.<init>(ToolsMenu.java:31)\r\n  at apps.Apps.toolsMenu(Apps.java:666)\r\n  at apps.Apps.createMenus(Apps.java:566)\r\n  at apps.Apps.<init>(Apps.java:301)\r\n  at apps.PanelPro.PanelPro.<init>(PanelPro.java:48)\r\n  at apps.PanelPro.PanelPro.main(PanelPro.java:110)\r\n[main]\r\n2016-02-16 11:20:19,146 server.WebServer INFO - Starting Web Server on port 12080 [WebServer]\r\n2016-02-16 11:20:19,459 server.WebServer INFO - Starting ZeroConfService _http._tcp.local for Web Server with properties {path=/, json=3.0} [WebServer]\r\n```"},"comment":{"url":"https://api.github.com/repos/JMRI/JMRI/issues/comments/185522395","html_url":"https://github.com/JMRI/JMRI/issues/814#issuecomment-185522395","issue_url":"https://api.github.com/repos/JMRI/JMRI/issues/814","id":185522395,"user":{"login":"dheap","id":13841457,"avatar_url":"https://avatars.githubusercontent.com/u/13841457?v=3","gravatar_id":"","url":"https://api.github.com/users/dheap","html_url":"https://github.com/dheap","followers_url":"https://api.github.com/users/dheap/followers","following_url":"https://api.github.com/users/dheap/following{/other_user}","gists_url":"https://api.github.com/users/dheap/gists{/gist_id}","starred_url":"https://api.github.com/users/dheap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dheap/subscriptions","organizations_url":"https://api.github.com/users/dheap/orgs","repos_url":"https://api.github.com/users/dheap/repos","events_url":"https://api.github.com/users/dheap/events{/privacy}","received_events_url":"https://api.github.com/users/dheap/received_events","type":"User","site_admin":false},"created_at":"2016-02-18T03:03:32Z","updated_at":"2016-02-18T03:03:32Z","body":"\u0014No, that wasn't a good idea...\n\n\n>But I have realised that NceProgrammer.getSupportedModes() should not\n>return DefaultProgrammerManager.NONE but\n>DefaultProgrammerManager.OPSBYTEMODE, not that it will fix our problem\n>but it may be a start along the way.\n\n\n"}}