ADTPro / adtpro

Apple Disk Transfer ProDOS (ADTPro)
http://adtpro.com
GNU General Public License v2.0
131 stars 19 forks source link

Cannot run ADTPro connection using Ethernet on Linux Host #155

Open Verault opened 2 years ago

Verault commented 2 years ago

I have a Linux Computer with a Wireless connection. I have been using its serial option to use ADTPro with no issues but since I recently came into an Uthernet II card I wanted to try the Ethernet option.

When I click on the ethernet option it simply will not select it and I get the following output:

root@slitazCPX:/usr/lib# cd ADTPro-v.r.m root@slitazCPX:/usr/lib/ADTPro-v.r.m# sh adtpro.sh ADTPro Server version v.r.m

java.net.UnknownHostException: slitazCPX: slitazCPX: Name or service not known at java.net.InetAddress.getLocalHost(InetAddress.java:1506) at org.adtpro.transport.UDPTransport.open(Unknown Source) at org.adtpro.CommsThread.(Unknown Source) at org.adtpro.gui.Gui.startComms(Unknown Source) at org.adtpro.gui.Gui.actionPerformed(Unknown Source) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) at javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:308) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252) at java.awt.Component.processMouseEvent(Component.java:6539) at javax.swing.JComponent.processMouseEvent(JComponent.java:3324) at java.awt.Component.processEvent(Component.java:6304) at java.awt.Container.processEvent(Container.java:2239) at java.awt.Component.dispatchEventImpl(Component.java:4889) at java.awt.Container.dispatchEventImpl(Container.java:2297) at java.awt.Component.dispatchEvent(Component.java:4711) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476) at java.awt.Container.dispatchEventImpl(Container.java:2283) at java.awt.Window.dispatchEventImpl(Window.java:2746) at java.awt.Component.dispatchEvent(Component.java:4711) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84) at java.awt.EventQueue$4.run(EventQueue.java:733) at java.awt.EventQueue$4.run(EventQueue.java:731) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) at java.awt.EventQueue.dispatchEvent(EventQueue.java:730) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) Caused by: java.net.UnknownHostException: slitazCPX: Name or service not known at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method) at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:929) at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1324) at java.net.InetAddress.getLocalHost(InetAddress.java:1501) ... 40 more java.net.UnknownHostException: slitazCPX: slitazCPX: Name or service not known at java.net.InetAddress.getLocalHost(InetAddress.java:1506) at org.adtpro.gui.Gui.actionPerformed(Unknown Source) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) at javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:308) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252) at java.awt.Component.processMouseEvent(Component.java:6539) at javax.swing.JComponent.processMouseEvent(JComponent.java:3324) at java.awt.Component.processEvent(Component.java:6304) at java.awt.Container.processEvent(Container.java:2239) at java.awt.Component.dispatchEventImpl(Component.java:4889) at java.awt.Container.dispatchEventImpl(Container.java:2297) at java.awt.Component.dispatchEvent(Component.java:4711) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476) at java.awt.Container.dispatchEventImpl(Container.java:2283) at java.awt.Window.dispatchEventImpl(Window.java:2746) at java.awt.Component.dispatchEvent(Component.java:4711) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84) at java.awt.EventQueue$4.run(EventQueue.java:733) at java.awt.EventQueue$4.run(EventQueue.java:731) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) at java.awt.EventQueue.dispatchEvent(EventQueue.java:730) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) Caused by: java.net.UnknownHostException: slitazCPX: Name or service not known at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method) at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:929) at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1324) at java.net.InetAddress.getLocalHost(InetAddress.java:1501) ... 37 more

I am seeing java.net.UnknownHostException: slitazCPX: slitazCPX: Name or service not known IS this something I havent configured properly in Java or is wireless not a viable option? Also wanted to say the Uthernet II card works when connecting to the Host software running on my windows computer.

david-schmidt commented 2 years ago

I have not had much luck getting wireless in general to work, no - it typically requires a wired connection. Though I will say I'm not familiar with the particular error you're seeing (slitazCPX).

Verault commented 2 years ago

SlitazCPX is the hostname of the linux computer (Slitaz is the Linux distro name). I appreciate the input on wireless. I have tried this machine with an ethernet card in the past. I will try again and see if that resolves the issue.

Verault commented 2 years ago

So I added an Ethernet card and its working but I still get the same issue and same messages in the console. Any ideas what to try or look for?

david-schmidt commented 2 years ago

ADTPro Server version v.r.m Why are you not using a real release?

Verault commented 2 years ago

What is the difference? What is V.R.M?

david-schmidt commented 2 years ago

That is an un-versioned version of the code. So I don't have any idea where or when it came from. I'm not saying that's the problem, but it tells me you don't have an official build (or you built from source).

Verault commented 2 years ago

One of the admins of the Linux distro compiled it from the Github repository I pointed him to. I was having a Java issue at the time so just to cover the bases he compiled ADTPro into a package so we could both test and see the same things. I pointed him to version 2.1.0 and thats what I assume he used. I have no reason to assume otherwise. Although I did wonder why it loaded with the V.R.M.

david-schmidt commented 2 years ago

Ok, that makes sense - upstream stays "V.R.M" as placeholders until a release is prepared, and at that time a new version number is minted. Once release is done and work goes back to development, the version reverts to "V.R.M". So there's no way of knowing what you've got (over time) when you're building upstream yourself.

What you'd want to do in order to build at a particular released version would be to pick up that tag/sha: https://github.com/ADTPro/adtpro/tags Which would be 31227fe4c88494f722f5a342d13ad2ff998e0017 for 2.1.0.