java.lang.IllegalStateException: couldn't open: 'file:/media/nicolas/data/workspace/NetLogo/models/test/Really%20Long%20Code.nls'

GitHub | nicolaspayette | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Exception when trying to open `.nls` file directly in NetLogo

    GitHub | 8 months ago | nicolaspayette
    java.lang.IllegalStateException: couldn't open: 'file:/media/nicolas/data/workspace/NetLogo/models/test/Really%20Long%20Code.nls'

    Root Cause Analysis

    1. java.lang.IllegalStateException

      couldn't open: 'file:/media/nicolas/data/workspace/NetLogo/models/test/Really%20Long%20Code.nls'

      at org.nlogo.window.FileController.invalidModel()
    2. org.nlogo.window
      FileController.invalidModel
      1. org.nlogo.window.FileController.invalidModel(FileController.scala:33)
      1 frame
    3. org.nlogo.workspace
      OpenModel$.apply
      1. org.nlogo.workspace.OpenModel$.apply(OpenModel.scala:33)
      1 frame
    4. org.nlogo.app
      FileMenu$FileMenuAction.actionPerformed
      1. org.nlogo.app.FileMenu.org$nlogo$app$FileMenu$$loadModel(FileMenu.scala:435)
      2. org.nlogo.app.FileMenu.openFromURI(FileMenu.scala:431)
      3. org.nlogo.app.FileMenu.openFromPath(FileMenu.scala:427)
      4. org.nlogo.app.FileMenu$OpenAction.action(FileMenu.scala:124)
      5. org.nlogo.app.FileMenu$FileMenuAction.actionPerformed(FileMenu.scala:100)
      5 frames
    5. Java RT
      EventDispatchThread.run
      1. javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
      2. javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
      3. javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
      4. javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
      5. javax.swing.AbstractButton.doClick(AbstractButton.java:376)
      6. javax.swing.AbstractButton.doClick(AbstractButton.java:356)
      7. javax.swing.plaf.basic.BasicMenuItemUI$Actions.actionPerformed(BasicMenuItemUI.java:802)
      8. javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1663)
      9. javax.swing.JComponent.processKeyBinding(JComponent.java:2882)
      10. javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:699)
      11. javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:706)
      12. javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:706)
      13. javax.swing.JMenuBar.processKeyBinding(JMenuBar.java:677)
      14. javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:307)
      15. javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:293)
      16. javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent.java:2974)
      17. javax.swing.JComponent.processKeyBindings(JComponent.java:2966)
      18. javax.swing.JComponent.processKeyEvent(JComponent.java:2845)
      19. java.awt.Component.processEvent(Component.java:6310)
      20. java.awt.Container.processEvent(Container.java:2236)
      21. java.awt.Component.dispatchEventImpl(Component.java:4889)
      22. java.awt.Container.dispatchEventImpl(Container.java:2294)
      23. java.awt.Component.dispatchEvent(Component.java:4711)
      24. java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1954)
      25. java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:806)
      26. java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1074)
      27. java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:945)
      28. java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:771)
      29. java.awt.Component.dispatchEventImpl(Component.java:4760)
      30. java.awt.Container.dispatchEventImpl(Container.java:2294)
      31. java.awt.Window.dispatchEventImpl(Window.java:2746)
      32. java.awt.Component.dispatchEvent(Component.java:4711)
      33. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
      34. java.awt.EventQueue.access$500(EventQueue.java:97)
      35. java.awt.EventQueue$3.run(EventQueue.java:709)
      36. java.awt.EventQueue$3.run(EventQueue.java:703)
      37. java.security.AccessController.doPrivileged(Native Method)
      38. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
      39. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
      40. java.awt.EventQueue$4.run(EventQueue.java:731)
      41. java.awt.EventQueue$4.run(EventQueue.java:729)
      42. java.security.AccessController.doPrivileged(Native Method)
      43. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
      44. java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
      45. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      46. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      47. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      48. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      49. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      50. java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
      50 frames