• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Suresh Chellappan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!