Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.49.10: Uncaught NPE When Opening In Use Socket #4022

Closed
Windchild292 opened this issue Dec 5, 2022 · 0 comments · Fixed by #4024
Closed

0.49.10: Uncaught NPE When Opening In Use Socket #4022

Windchild292 opened this issue Dec 5, 2022 · 0 comments · Fixed by #4024
Assignees
Labels
Blocker GUI User Interface

Comments

@Windchild292
Copy link
Contributor

10:32:50,392 ERROR [megamek.client.ui.swing.MegaMekGUI] {AWT-EventQueue-0}
megamek.client.ui.swing.MegaMekGUI.startServer(MegaMekGUI.java:450) - Could not create server socket on port 2346
java.net.BindException: Address already in use: NET_Bind
   at java.base/java.net.PlainSocketImpl.bind0(Native Method)
   at java.base/java.net.PlainSocketImpl.socketBind(PlainSocketImpl.java:132)
   at java.base/java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:436)
   at java.base/java.net.ServerSocket.bind(ServerSocket.java:381)
   at java.base/java.net.ServerSocket.<init>(ServerSocket.java:243)
   at java.base/java.net.ServerSocket.<init>(ServerSocket.java:135)
   at megamek.server.Server.<init>(Server.java:335)
   at megamek.client.ui.swing.MegaMekGUI.startServer(MegaMekGUI.java:446)
   at megamek.client.ui.swing.MegaMekGUI.startHost(MegaMekGUI.java:405)
   at megamek.client.ui.swing.MegaMekGUI.host(MegaMekGUI.java:397)
   at megamek.client.ui.swing.MegaMekGUI.lambda$new$0(MegaMekGUI.java:923)
   at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
   at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
   at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
   at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
   at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279)
   at java.desktop/java.awt.Component.processMouseEvent(Component.java:6632)
   at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
   at megamek.client.ui.swing.widget.MegamekButton.processMouseEvent(MegamekButton.java:242)
   at java.desktop/java.awt.Component.processEvent(Component.java:6397)
   at java.desktop/java.awt.Container.processEvent(Container.java:2263)
   at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5008)
   at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
   at java.desktop/java.awt.Component.dispatchEvent(Component.java:4840)
   at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
   at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
   at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
   at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
   at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772)
   at java.desktop/java.awt.Component.dispatchEvent(Component.java:4840)
   at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
   at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
   at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
   at java.base/java.security.AccessController.doPrivileged(Native Method)
   at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
   at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
   at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
   at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
   at java.base/java.security.AccessController.doPrivileged(Native Method)
   at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
   at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
   at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
   at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
   at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
   at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
   at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
   at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

10:32:51,512 ERROR [megamek.MegaMek] {AWT-EventQueue-0}
megamek.MegaMek.lambda$main$0(MegaMek.java:61) - Uncaught Exception Detected
java.lang.NullPointerException
   at megamek.client.ui.swing.MegaMekGUI.startHost(MegaMekGUI.java:406)
   at megamek.client.ui.swing.MegaMekGUI.host(MegaMekGUI.java:397)
   at megamek.client.ui.swing.MegaMekGUI.lambda$new$0(MegaMekGUI.java:923)
   at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
   at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
   at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
   at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
   at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279)
   at java.desktop/java.awt.Component.processMouseEvent(Component.java:6632)
   at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
   at megamek.client.ui.swing.widget.MegamekButton.processMouseEvent(MegamekButton.java:242)
   at java.desktop/java.awt.Component.processEvent(Component.java:6397)
   at java.desktop/java.awt.Container.processEvent(Container.java:2263)
   at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5008)
   at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
   at java.desktop/java.awt.Component.dispatchEvent(Component.java:4840)
   at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
   at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
   at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
   at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
   at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772)
   at java.desktop/java.awt.Component.dispatchEvent(Component.java:4840)
   at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
   at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
   at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
   at java.base/java.security.AccessController.doPrivileged(Native Method)
   at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
   at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
   at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
   at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
   at java.base/java.security.AccessController.doPrivileged(Native Method)
   at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
   at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
   at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
   at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
   at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
   at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
   at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
   at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blocker GUI User Interface
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant