Menu

#562 MegaMek games not starting from MekHQ

Development
closed
None
Invalid
2014-09-21
2014-08-26
Anonymous
No

Cannot start a MegaMek game from MekHQ. Changed nothing from when I WAS able to.

1 Attachments

Discussion

  • Anonymous

    Anonymous - 2014-08-26

    Log file

     

    Last edit: Dylan Myers 2014-08-28
  • Dylan Myers

    Dylan Myers - 2014-08-28

    Ok, this is not truly a bug. You're not able to start a server with a server already running on that port. Choose a different port. I've only left this open so that we can add a nice notification dialog that will let us know this and abort gracefully.

    Relevant Log Piece:
    Failed to start up server properly
    java.net.BindException: Address already in use: JVM_Bind
    java.net.BindException: Address already in use: JVM_Bind
    at java.net.DualStackPlainSocketImpl.bind0(Native Method)
    at java.net.DualStackPlainSocketImpl.socketBind(Unknown Source)
    at java.net.AbstractPlainSocketImpl.bind(Unknown Source)
    at java.net.PlainSocketImpl.bind(Unknown Source)
    at java.net.ServerSocket.bind(Unknown Source)
    at java.net.ServerSocket.<init>(Unknown Source)
    at java.net.ServerSocket.<init>(Unknown Source)
    at megamek.server.Server.<init>(Server.java:473)

     
  • Anonymous

    Anonymous - 2014-08-29

    Okay. . . how can I tell which ports are "open?" Do I just have to try random numbers until one works?

     
  • Nicholas Walczak

    I think that the address already in use errors are not the source of the issue. The source of the issue is:

    Exception in thread "Valkyries" java.lang.IllegalArgumentException: setSelectedIndex: 6 out of bounds
    at javax.swing.JComboBox.setSelectedIndex(Unknown Source)
    at megamek.client.ui.swing.RandomArmyDialog.updateTechChoice(RandomArmyDialog.java:601)
    at megamek.client.ui.swing.RandomArmyDialog.<init>(RandomArmyDialog.java:184)
    at megamek.client.ui.swing.ClientGUI.initialize(ClientGUI.java:505)
    at mekhq.GameThread.run(GameThread.java:76)

     
  • Nicholas Walczak

    Could you attach the mmconf/clientsettings.xml file from your MHQ directory?

     
  • Nicholas Walczak

    This is a MM bug, and I've got a fix for it. Since I can't move this ticket from MHQ to MM, I just created a new ticket here: https://sourceforge.net/p/megamek/bugs/4245/.

     
  • Dylan Myers

    Dylan Myers - 2014-09-21

    Invalid: MegaMek Bug

     
  • Dylan Myers

    Dylan Myers - 2014-09-21
    • status: open --> closed
    • Resolution: Accepted --> Invalid
     

Log in to post a comment.