Connection timed out: no further information

Hi,

Sometimes we get the following message in a pop-up: Connection timed out: no further information
This probably has to do with a call to a AS400 program. Mostly we do not get this pop-up. Just now and then.
But even when the pop-up is showed, the as400 program was executed properly.
The returnMessage is always OK
We don’t see anything special in the error logs.
How can we find out what’s going wrong and how to fix?

private String callProgram(ProgramParameter[] parmList) {
    returnMessage = "";

    AS400 as400 = null;
    ProgramCall programCall;
    try {
        as400 = new AS400(host, user, password);
        as400.authenticate(user, password);

        programCall = new ProgramCall(as400);
        if (parmList != null) {
            programCall.setProgram(programPath, parmList);
        } else {
            programCall.setProgram(programPath);
        }

        if (!programCall.run()) {
            AS400Message[] messageList = programCall.getMessageList();
            for (AS400Message message : messageList) {
                returnMessage = returnMessage + message.getID() + " - " + message.getText();
            }
        } else {
            returnMessage = "OK";
        }

        as400.disconnectService(AS400.COMMAND);
    } catch (Exception e) {

Jmix version: 2.1.2
Jmix Studio plugin version: 2.2.1-241
IntelliJ version: IntelliJ IDEA 2024.1

Hi Dirk,

From your example, it is not clear what causes the pop-up message to appear. Could you show the popup itself, and also provide the code for the problematic view, if possible?

Regards,
Sergey.

Hi Sergey,

I’ve been checking further and the problem seems to be a printer connection error, not an AS400 connection error.
We’ll look further into it.

Thanks!

1 Like