Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3335460
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T00:01:15+00:00 2026-05-18T00:01:15+00:00

I have a simple Java program (using JTOpen) to connect to an iSeries and

  • 0

I have a simple Java program (using JTOpen) to connect to an iSeries and open a IFS file:

System.out.println("by ipaddress");
AS400 as400 = new AS400("130.3.3.333", "user", "password");
System.out.println("as400 connected? = " + as400.getCcsid());
//handle the exception if the file is null 
IFSFileInputStream as400File = new IFSFileInputStream(as400, "//PDF//00000104.PDF");
System.out.println("is available" + as400File.getPath());
as400File.close();

On one server in DMZ everything works fine but on a (supposedly identical) VM image on a server in a different building (still in DMZ) I get an error:

by ipaddress
as400 connected? = 37
IO security exception
java.net.ConnectException: Connection timed out: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(Unknown Source)
    at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at com.ibm.as400.access.PortMapper.getServerSocket(PortMapper.java:170)
    at com.ibm.as400.access.AS400ImplRemote.getConnection(AS400ImplRemote.ja
va:975)
    at com.ibm.as400.access.AS400ImplRemote.connect(AS400ImplRemote.java:390
)
    at com.ibm.as400.access.AS400.connectService(AS400.java:870)
    at com.ibm.as400.access.IFSFileInputStream.connectAndOpen(IFSFileInputSt
ream.java:416)
    at com.ibm.as400.access.IFSFileInputStream.<init>(IFSFileInputStream.jav
a:150)
    at com.ibm.as400.access.IFSFileInputStream.<init>(IFSFileInputStream.jav

The connection works fine but then get a connect exception.

Any ideas welcome. Same ports are open in the firewall between both servers to the iSeries.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T00:01:15+00:00Added an answer on May 18, 2026 at 12:01 am

    There are multiple services each on their individual port and the initial connect only opens one. Check the jt400 faq for the file service. I expect this port to be unopened in the firewall.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating a simple reporting program using java and iReport (from jasper), which
I'm trying to figure out how to structure a program using Java's generics, and
In general, is it a best practice to have simple POJO Java classes implement
I have a very simple Java RMI Server that looks like the following: import
I have a really simple Java class that effectively decorates a Map with input
I have a simple question about Java's XML API and I hope there's a
I have a simple GUI component written in Java. The class draws an analog
Ok, i have simple scenario: have two pages: login and welcome pages. im using
I'm trying to write a simple java applet program, but it seems that I'm
I have written a simple Java application that interacts with multiple instances of itself

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.