Uploaded image for project: 'Maven Wagon'
  1. Maven Wagon
  2. WAGON-140

WAGONFTP Nullpointer Exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • None
    • None
    • wagon-ftp
    • None
    • Solaris

    Description

      Getting the following error similar to this user:
      http://jira.codehaus.org/browse/WAGONFTP-17

      Pretty sure user id and password is correct for the machine that I am trying to ftp to
      One thing I did not understand in the url above was 'will be thrown if there is a host mismatch'
      Mismatch with what?

      Here's the exception:

      [INFO] Retrieving previous build number from internal-snapshot
      [INFO] ------------------------------------------------------------------------
      [ERROR] FATAL ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] null
      [INFO] ------------------------------------------------------------------------
      [INFO] Trace
      java.lang.NullPointerException
      at org.apache.maven.wagon.providers.ftp.FtpWagon.openConnection(FtpWagon.java:127)
      at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:143)
      at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:354)
      at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifactMetadata(DefaultWagonManager.java:295)
      at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolveAlways(DefaultRepositoryMetadataManager.java:356)
      at org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolveAlways(DefaultRepositoryMetadataManager.java:310)
      at org.apache.maven.artifact.transform.SnapshotTransformation.resolveLatestSnapshotBuildNumber(SnapshotTransformation.java:158)
      at org.apache.maven.artifact.transform.SnapshotTransformation.transformForDeployment(SnapshotTransformation.java:97)
      at org.apache.maven.artifact.transform.DefaultArtifactTransformationManager.transformForDeployment(DefaultArtifactTransformationManager.java:61)
      at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:68)
      at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:162)

      Attachments

        Activity

          People

            brettporter Brett Porter
            nap4110 Jamish Patel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: