Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8155924

ConnectionDroppedException: Connection is not active when writing to AS400

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      linux_redhat_5.0

      Description

      FULL PRODUCT VERSION :
      java version "1.8.0_65"
      Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
      Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Linux live-app-v02 2.6.32-200.16.1.el5uek #1 SMP Fri Aug 12 16:13:38 EDT 2-11 x86_64 x86_64 x86_64 GNU/Linux

      A DESCRIPTION OF THE PROBLEM :
      Using a BufferedWriter around a com.ibm.IFSFileWriter to write to an AS400.

      Works always on Java 7, but never on Java 8.

      IFSFile file = new IFSFile(as400, this.getOrderExportFileName());
      /** creates a file writer */
      IFSFileWriter fw = new IFSFileWriter (file,true,IFSFileWriter.SHARE_NONE);
      bufferedWriter = new BufferedWriter(fw);
      Fails with com.ibm.as400.access.ConnectionDroppedException: Connection is not active.


      REGRESSION. Last worked in version 7u79

      ADDITIONAL REGRESSION INFORMATION:
      java version "1.8.0_65"
      Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
      Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Not sure unless you have an AS400 to write to :-(

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      On Java 7, the connection to the AS400's file system is established and the lines written to the Buffered Writer are written to the remote file.
      ACTUAL -
      On Java 8, always fails with
      com.ibm.as400.access.ConnectionDroppedException: Connection is not active.

      REPRODUCIBILITY :
      This bug can be reproduced always.

        Attachments

          Activity

            People

            Assignee:
            psonal Pallavi Sonal (Inactive)
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: