Uploaded image for project: 'Commons Net'
  1. Commons Net
  2. NET-228

CMS under z/VM does not seem to be supported.

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0
    • Component/s: FTP
    • Labels:
      None
    • Environment:

      Known on Linux - will probably be present on all OSes.

      Description

      The issue occurs when I try and use the FTP task in Ant. I have already raised an issue with the Ant people and they say that the operating system does not seem to be supported by commons-net.
      The OS in question is CMS Version 20 running under z/VM Version 5 release 2.0.

      When using Apache Ant's FTP task, I receive the following error:
      Apache Ant version 1.7.0 compiled on June 17 2008
      Apache Ant version 1.7.0 compiled on June 17 2008
      Buildfile: build.xml
      Adding reference: ant.PropertyHelper
      Detected Java version: 1.5 in: /home/administrator/ant/java/jdk1.5.0_14/jre
      Detected OS: Linux
      Adding reference: ant.ComponentHelper
      Setting ro project property: ant.file -> /home/richard/.ant/build.xml
      Adding reference: ant.projectHelper
      Adding reference: ant.parsing.context
      Adding reference: ant.targets
      parsing buildfile /home/richard/.ant/build.xml with URI = file:/home/richard/.ant/build.xml
      Setting ro project property: ant.project.name -> FTPTesting
      Adding reference: FTPTesting
      Setting ro project property: ant.file.FTPTesting -> /home/richard/.ant/build.xml
      Project base dir set to: /home/richard/.ant
      +Target:
      +Target: svnCheckout
      +Target: ftpPut
      +Target: VM
      +Target: MVS
      +Target: MVSCLEAR
      +Target: CICSFVS1
      +Target: CICSFVS1CLEAR
      [antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found.
      Setting project property: src -> /home/richard/.ant/src
      Setting project property: build -> /home/richard/.ant/build
      Setting project property: dist -> /home/richard/.ant/dist
      Setting project property: user -> usernamegoeshere
      Setting project property: password -> passwordgoeshere
      Setting project property: server -> machinenamegoeshere
      Setting project property: antroot -> /home/administrator/ant/apache-ant-1.7.0/
      Attempting to create object of type org.apache.tools.ant.helper.DefaultExecutor
      Adding reference: ant.executor
      Build sequence for target(s) `VM' is [VM]
      Complete build sequence is [VM, MVS, MVSCLEAR, svnCheckout, ftpPut, CICSFVS1CLEAR, CICSFVS1, ]

      VM:
      [ftp] Opening FTP connection to winvmc.hursley.ibm.com
      [ftp] connected
      [ftp] logging in to FTP server
      [ftp] login succeeded
      [ftp] entering passive mode
      [ftp] listing files
      fileset: Setup scanner in dir /home/richard/.ant with patternSet

      { includes: [*RASM*] excludes: [] }

      [ftp] disconnecting

      BUILD FAILED
      /home/richard/.ant/build.xml:45: org.apache.commons.net.ftp.parser.ParserInitializationException: Unknown parser type: z/VM Version 5 Release 2.0, service level 0702 (64-bit)
      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:115)
      at org.apache.tools.ant.Task.perform(Task.java:348)
      at org.apache.tools.ant.Target.execute(Target.java:357)
      at org.apache.tools.ant.Target.performTasks(Target.java:385)
      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
      at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
      at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
      at org.apache.tools.ant.Main.runBuild(Main.java:698)
      at org.apache.tools.ant.Main.startAnt(Main.java:199)
      at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
      at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
      Caused by: org.apache.commons.net.ftp.parser.ParserInitializationException: Unknown parser type: z/VM Version 5 Release 2.0, service level 0702 (64-bit)
      at org.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory.createFileEntryParser(DefaultFTPFileEntryParserFactory.java:118)
      at org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.java:2358)
      at org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2141)
      at org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2188)
      at org.apache.tools.ant.taskdefs.optional.net.FTP$FTPDirectoryScanner.forceRemoteSensitivityCheck(FTP.java:552)
      at org.apache.tools.ant.taskdefs.optional.net.FTP$FTPDirectoryScanner.scan(FTP.java:231)
      at org.apache.tools.ant.taskdefs.optional.net.FTP.transferFiles(FTP.java:1570)
      at org.apache.tools.ant.taskdefs.optional.net.FTP.transferFiles(FTP.java:1683)
      at org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:2373)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
      ... 11 more
      — Nested Exception —
      org.apache.commons.net.ftp.parser.ParserInitializationException: Unknown parser type: z/VM Version 5 Release 2.0, service level 0702 (64-bit)
      at org.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory.createFileEntryParser(DefaultFTPFileEntryParserFactory.java:118)
      at org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.java:2358)
      at org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2141)
      at org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2188)
      at org.apache.tools.ant.taskdefs.optional.net.FTP$FTPDirectoryScanner.forceRemoteSensitivityCheck(FTP.java:552)
      at org.apache.tools.ant.taskdefs.optional.net.FTP$FTPDirectoryScanner.scan(FTP.java:231)
      at org.apache.tools.ant.taskdefs.optional.net.FTP.transferFiles(FTP.java:1570)
      at org.apache.tools.ant.taskdefs.optional.net.FTP.transferFiles(FTP.java:1683)
      at org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:2373)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
      at org.apache.tools.ant.Task.perform(Task.java:348)
      at org.apache.tools.ant.Target.execute(Target.java:357)
      at org.apache.tools.ant.Target.performTasks(Target.java:385)
      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
      at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
      at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
      at org.apache.tools.ant.Main.runBuild(Main.java:698)
      at org.apache.tools.ant.Main.startAnt(Main.java:199)
      at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
      at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

      Total time: 2 seconds

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rcebula Richard Cebula
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: