aspose file tools
The moose likes Sockets and Internet Protocols and the fly likes java.net.SocketException: Operation timed out: connect:could be due to invalid addres Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "java.net.SocketException: Operation timed out: connect:could be due to invalid addres" Watch "java.net.SocketException: Operation timed out: connect:could be due to invalid addres" New topic
Author

java.net.SocketException: Operation timed out: connect:could be due to invalid addres

Suresh Chellappan
Greenhorn

Joined: Aug 08, 2008
Posts: 3
Hi,

I'm tring to read a physical file from as400 box using jt400.jar on windows through java program. I've double checked the path of file. because I can retrieve this same file through IFSTextFileInputStream object. But when I try to read the file by SequentialFile object, I receive this exception:

java.net.SocketException: Operation timed out: connect:could be due to invalid address
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:372)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:233)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:220)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:385)
at java.net.Socket.connect(Socket.java:536)
at java.net.Socket.connect(Socket.java:486)
at java.net.Socket.<init>(Socket.java:394)
at java.net.Socket.<init>(Socket.java:207)
at com.ibm.as400.access.PortMapper.getServerSocket(PortMapper.java:180)
at com.ibm.as400.access.AS400ImplRemote.getConnection(AS400ImplRemote.java:975)
at com.ibm.as400.access.AS400ImplRemote.connect(AS400ImplRemote.java:390)
at com.ibm.as400.access.AS400.connectService(AS400.java:870)
at com.sit.app.test.Spltopdf.readWrkFile(Spltopdf.java:321)
at com.sit.app.test.Spltopdf.main(Spltopdf.java:163)


Here is my code snippet :

Do I need to check any configuration setting on the PC? I've also tried to run this job without any firewall intruption but still it shows the same error.


Thanks,
Suresh
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.net.SocketException: Operation timed out: connect:could be due to invalid addres
 
Similar Threads
Axis Fault: connect:could be due to invalid address
java Scanner
Connection timed out: Could be due to invalid connection
SocketException in WSAD
InetAddress.getByName fails