[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Windows Vista + Java applet + FTP

Posted on 2009-04-14
6
Medium Priority
?
1,036 Views
Last Modified: 2013-12-08
I have a website with a (signed) Java applet on it. The applet uploads and downloads files using a commercially available FTP application. My problem is that one of my clients gets an UnknownHostException when the applet tries FTP-ing to our site ftp://www.kenjackson.com. From my computer, I can access the FTP site both through the applet and through Internet Explorer/Windows Explorer. However, I'm using Windows XP and our client is using Windows Vista -- I was wondering if there's any setting in Vista or IE that might prevent the applet from looking up an FTP host address.

Granted, I'm trying to diagnose this client's computer over the phone, he's on a completely different local network than I am, don't know what his computer's/network's/firewall's settings are, and he's not technically proficient enough to help me out. Any ideas would be really great.

I posted the output from the Java console below:
1.6.0_13

Url = https://www.kenjackson.com/Interactive/common/downloadfile.aspx?id=2485&user=2225&owner=2225

init finished

(URL)u = https://www.kenjackson.com/Interactive/common/downloadfile.aspx?id=2485&user=2225&owner=2225

clientId = 2225

temp file name: FTA1779626496030999950.tmp

DEBUG [FTPClient] 14 Apr 2009 11:29:04.732 : Class: com.enterprisedt.net.ftp.FTPClient

Location: https://www.kenjackson.com/Interactive/common/FTAS.jar

Version: 2.0.4

Build timestamp: 13-Feb-2009 15:09:20 EST

Java version: 1.6.0_13

CLASSPATH: C:\\PROGRA~1\\Java\\jre6\\classes

OS name: Windows Vista

OS arch: x86

OS version: 6.0

 

INFO [FTA] 14 Apr 2009 11:29:04.747 : connecting to ftp://www.kenjackson.com

ftp://www.kenjackson.com

java.net.UnknownHostException: ftp://www.kenjackson.com

                at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)

                at java.net.InetAddress$1.lookupAllHostAddr(Unknown Source)

                at java.net.InetAddress.getAddressFromNameService(Unknown Source)

                at java.net.InetAddress.getAllByName0(Unknown Source)

                at java.net.InetAddress.getAllByName(Unknown Source)

                at java.net.InetAddress.getAllByName(Unknown Source)

                at java.net.InetAddress.getByName(Unknown Source)

                at com.enterprisedt.net.ftp.FTPClient.setRemoteHost(FTPClient.java:1350)

                at com.enterprisedt.net.ftp.FileTransferClient.configureClient(FileTransferClient.java:406)

                at com.enterprisedt.net.ftp.FileTransferClient.connect(FileTransferClient.java:368)

                at FTA.DownloadZipFile(FTA.java:942)

                at FTA.Download(FTA.java:667)

                at FTA$10.run(FTA.java:1566)

                at java.security.AccessController.doPrivileged(Native Method)

                at FTA.run(FTA.java:1562)

                at java.lang.Thread.run(Unknown Source)

downloaded to null

DownloadZipFile returned null, applet exiting

Exception occurred during event dispatching:

java.lang.NullPointerException: null pData

                at sun.awt.windows.WComponentPeer._requestFocus(Native Method)

                at sun.awt.windows.WComponentPeer.requestFocus(Unknown Source)

                at java.awt.Component.requestFocusHelper(Unknown Source)

                at java.awt.Component.requestFocusHelper(Unknown Source)

                at java.awt.Component.requestFocus(Unknown Source)

                at sun.plugin2.main.client.PluginMain$2.run(Unknown Source)

                at java.awt.event.InvocationEvent.dispatch(Unknown Source)

                at java.awt.EventQueue.dispatchEvent(Unknown Source)

                at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

                at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

                at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

                at java.awt.Dialog$1.run(Unknown Source)

                at java.awt.event.InvocationEvent.dispatch(Unknown Source)

                at java.awt.EventQueue.dispatchEvent(Unknown Source)

                at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

                at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

                at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

                at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

                at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

                at java.awt.EventDispatchThread.run(Unknown Source)

Exception occurred during event dispatching:

java.lang.NullPointerException: null pData

                at sun.awt.windows.WComponentPeer._requestFocus(Native Method)

                at sun.awt.windows.WComponentPeer.requestFocus(Unknown Source)

                at java.awt.Component.requestFocusHelper(Unknown Source)

                at java.awt.Component.requestFocusHelper(Unknown Source)

                at java.awt.Component.requestFocus(Unknown Source)

                at sun.plugin2.main.client.PluginMain$2.run(Unknown Source)

                at java.awt.event.InvocationEvent.dispatch(Unknown Source)

                at java.awt.EventQueue.dispatchEvent(Unknown Source)

                at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

                at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

                at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

                at java.awt.Dialog$1.run(Unknown Source)

                at java.awt.event.InvocationEvent.dispatch(Unknown Source)

                at java.awt.EventQueue.dispatchEvent(Unknown Source)

                at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

                at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

                at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

                at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

                at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

                at java.awt.EventDispatchThread.run(Unknown Source)

(URL)u = https://www.kenjackson.com/Interactive/common/downloadfile.aspx?id=2485&user=2225&owner=2225

clientId = 2225

temp file name: FTA5122763281524435278.tmp

DEBUG [FTPClient] 14 Apr 2009 11:29:30.909 : Class: com.enterprisedt.net.ftp.FTPClient

Location: https://www.kenjackson.com/Interactive/common/FTAS.jar

Version: 2.0.4

Build timestamp: 13-Feb-2009 15:09:20 EST

Java version: 1.6.0_13

CLASSPATH: C:\\PROGRA~1\\Java\\jre6\\classes

OS name: Windows Vista

OS arch: x86

OS version: 6.0

 

DEBUG [FTPClient] 14 Apr 2009 11:29:30.909 : Class: com.enterprisedt.net.ftp.FTPClient

Location: https://www.kenjackson.com/Interactive/common/FTAS.jar

Version: 2.0.4

Build timestamp: 13-Feb-2009 15:09:20 EST

Java version: 1.6.0_13

CLASSPATH: C:\\PROGRA~1\\Java\\jre6\\classes

OS name: Windows Vista

OS arch: x86

OS version: 6.0

 

INFO [FTA] 14 Apr 2009 11:29:30.909 : connecting to ftp://www.kenjackson.com

INFO [FTA] 14 Apr 2009 11:29:30.909 : connecting to ftp://www.kenjackson.com

ftp://www.kenjackson.com

java.net.UnknownHostException: ftp://www.kenjackson.com

                at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)

                at java.net.InetAddress$1.lookupAllHostAddr(Unknown Source)

                at java.net.InetAddress.getAddressFromNameService(Unknown Source)

                at java.net.InetAddress.getAllByName0(Unknown Source)

                at java.net.InetAddress.getAllByName(Unknown Source)

                at java.net.InetAddress.getAllByName(Unknown Source)

                at java.net.InetAddress.getByName(Unknown Source)

                at com.enterprisedt.net.ftp.FTPClient.setRemoteHost(FTPClient.java:1350)

                at com.enterprisedt.net.ftp.FileTransferClient.configureClient(FileTransferClient.java:406)

                at com.enterprisedt.net.ftp.FileTransferClient.connect(FileTransferClient.java:368)

                at FTA.DownloadZipFile(FTA.java:942)

                at FTA.Download(FTA.java:667)

                at FTA$10.run(FTA.java:1566)

                at java.security.AccessController.doPrivileged(Native Method)

                at FTA.run(FTA.java:1562)

                at java.lang.Thread.run(Unknown Source)

downloaded to null

DownloadZipFile returned null, applet exiting

Exception occurred during event dispatching:

java.lang.NullPointerException: null pData

                at sun.awt.windows.WComponentPeer._requestFocus(Native Method)

                at sun.awt.windows.WComponentPeer.requestFocus(Unknown Source)

                at java.awt.Component.requestFocusHelper(Unknown Source)

                at java.awt.Component.requestFocusHelper(Unknown Source)

                at java.awt.Component.requestFocus(Unknown Source)

                at sun.plugin2.main.client.PluginMain$2.run(Unknown Source)

                at java.awt.event.InvocationEvent.dispatch(Unknown Source)

                at java.awt.EventQueue.dispatchEvent(Unknown Source)

                at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

                at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

                at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

                at java.awt.Dialog$1.run(Unknown Source)

                at java.awt.event.InvocationEvent.dispatch(Unknown Source)

                at java.awt.EventQueue.dispatchEvent(Unknown Source)

                at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

                at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

                at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

                at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

                at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

                at java.awt.EventDispatchThread.run(Unknown Source)

(URL)u = https://www.kenjackson.com/Interactive/common/downloadfile.aspx?id=2485&user=2225&owner=2225

clientId = 2225

temp file name: FTA3536697804974830263.tmp

DEBUG [FTPClient] 14 Apr 2009 11:29:53.968 : Class: com.enterprisedt.net.ftp.FTPClient

Location: https://www.kenjackson.com/Interactive/common/FTAS.jar

Version: 2.0.4

Build timestamp: 13-Feb-2009 15:09:20 EST

Java version: 1.6.0_13

CLASSPATH: C:\\PROGRA~1\\Java\\jre6\\classes

OS name: Windows Vista

OS arch: x86

OS version: 6.0

 

DEBUG [FTPClient] 14 Apr 2009 11:29:53.968 : Class: com.enterprisedt.net.ftp.FTPClient

Location: https://www.kenjackson.com/Interactive/common/FTAS.jar

Version: 2.0.4

Build timestamp: 13-Feb-2009 15:09:20 EST

Java version: 1.6.0_13

CLASSPATH: C:\\PROGRA~1\\Java\\jre6\\classes

OS name: Windows Vista

OS arch: x86

OS version: 6.0

 

DEBUG [FTPClient] 14 Apr 2009 11:29:53.968 : Class: com.enterprisedt.net.ftp.FTPClient

Location: https://www.kenjackson.com/Interactive/common/FTAS.jar

Version: 2.0.4

Build timestamp: 13-Feb-2009 15:09:20 EST

Java version: 1.6.0_13

CLASSPATH: C:\\PROGRA~1\\Java\\jre6\\classes

OS name: Windows Vista

OS arch: x86

OS version: 6.0

 

INFO [FTA] 14 Apr 2009 11:29:53.968 : connecting to ftp://www.kenjackson.com

INFO [FTA] 14 Apr 2009 11:29:53.968 : connecting to ftp://www.kenjackson.com

INFO [FTA] 14 Apr 2009 11:29:53.968 : connecting to ftp://www.kenjackson.com

ftp://www.kenjackson.com

java.net.UnknownHostException: ftp://www.kenjackson.com

                at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)

                at java.net.InetAddress$1.lookupAllHostAddr(Unknown Source)

                at java.net.InetAddress.getAddressFromNameService(Unknown Source)

                at java.net.InetAddress.getAllByName0(Unknown Source)

                at java.net.InetAddress.getAllByName(Unknown Source)

                at java.net.InetAddress.getAllByName(Unknown Source)

                at java.net.InetAddress.getByName(Unknown Source)

                at com.enterprisedt.net.ftp.FTPClient.setRemoteHost(FTPClient.java:1350)

                at com.enterprisedt.net.ftp.FileTransferClient.configureClient(FileTransferClient.java:406)

                at com.enterprisedt.net.ftp.FileTransferClient.connect(FileTransferClient.java:368)

                at FTA.DownloadZipFile(FTA.java:942)

                at FTA.Download(FTA.java:667)

                at FTA$10.run(FTA.java:1566)

                at java.security.AccessController.doPrivileged(Native Method)

                at FTA.run(FTA.java:1562)

                at java.lang.Thread.run(Unknown Source)

downloaded to null

DownloadZipFile returned null, applet exiting

Thanks.
0
Comment
Question by:tjgquicken
  • 5
6 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 24139676
See below (and i don't even run Windows ;-))
goose@seegobin:/tmp$ ftp ftp://www.kenjackson.com
ftp: ftp://www.kenjackson.com: Unknown host
ftp> 

Open in new window

0
 
LVL 86

Accepted Solution

by:
CEHJ earned 2000 total points
ID: 24139722
0
 

Author Comment

by:tjgquicken
ID: 24139759
It looks like it's working okay on my Mac...

And like I said, I can log into the site from my Windows machine, too.
ftp ftp://[username]:[password]@www.kenjackson.com
Connected to www.kenjackson.com.
220 Serv-U FTP Server v6.4 for WinSock ready...
331 User name okay, need password.
230 User logged in, proceed.
Remote system type is UNIX.
Using binary mode to transfer files.
200 Type set to I.
250 Directory changed to /
ftp> 

Open in new window

0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 86

Expert Comment

by:CEHJ
ID: 24139898
It might differ between different software. I would try the hostname i mentioned in the non-working situations
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 24139941
Could be a nameserver problem. Just tried it again and it worked that time. Nonetheless, try the other host name
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 24141289
:-)
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
Following on from our article on "The Murky World of Consent and opt in", we thought we would issue some helpful guidance, not only on consent itself but knowing what information you are capturing, what you are doing with this data and how you can p…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
Suggested Courses
Course of the Month17 days, 15 hours left to enroll

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question