maven-wagon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Juan F. Codagnone (JIRA)" <j...@codehaus.org>
Subject [jira] Created: (WAGON-22) NPE if checksums are not available
Date Tue, 11 Oct 2005 06:15:11 GMT
NPE if  checksums are not available
-----------------------------------

         Key: WAGON-22
         URL: http://jira.codehaus.org/browse/WAGON-22
     Project: wagon
        Type: Bug
 Reporter: Juan F. Codagnone
    Priority: Minor



i was importing a sun jar to a private test repository, and i forgot to create the checksums
files, and m2 failed with a NPE exception.
Adding the .sha1 and .md5 files solves the problem. Its fine to fail, but it should be more
gracefull.

-----8<------ example ----8<----------
$ m2 package
....
Downloading: sftp://host/home/intra/m2//javax/transaction/jta/1.0.1B/jta-1.0.1B.jar
[DEBUG] SHA1 not found, trying MD5
org.apache.maven.wagon.ResourceDoesNotExistException: Error occured while downloading 'javax/transaction/jta/1.0.1B/jta-1.0.1B.jar.sha1'
from the remote repository:[test-private-repo] -> sftp://host/home/intra/m2/
        at org.apache.maven.wagon.providers.ssh.AbstractSshWagon.handleGetException(AbstractSshWagon.java:356)
...
Caused by: No such file
        at com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:1541)
        at com.jcraft.jsch.ChannelSftp.stat(ChannelSftp.java:1207)
        at com.jcraft.jsch.ChannelSftp.get(ChannelSftp.java:587)
        at com.jcraft.jsch.ChannelSftp.get(ChannelSftp.java:559)
        at org.apache.maven.wagon.providers.ssh.SftpWagon.getIfNewer(SftpWagon.java:266)
        ... 27 more
---------------------------------------------------
constituent[0]: file:/home/juan/bin/m2/lib/maven-model-2.0-beta-4-SNAPSHOT.jar
...
---------------------------------------------------
java.lang.NullPointerException
        at org.apache.maven.wagon.observers.ChecksumObserver.transferStarted(ChecksumObserver.java:66)
        at org.apache.maven.wagon.events.TransferEventSupport.fireTransferStarted(TransferEventSupport.java:100)
        at org.apache.maven.wagon.AbstractWagon.fireGetStarted(AbstractWagon.java:328)
        at org.apache.maven.wagon.providers.ssh.SftpWagon.getIfNewer(SftpWagon.java:264)
        at org.apache.maven.wagon.providers.ssh.SftpWagon.get(SftpWagon.java:302)
        at org.apache.maven.artifact.manager.DefaultWagonManager.verifyChecksum(DefaultWagonManager.java:505)
        at org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:392)
        at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:270)
        at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:232)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:134)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:64)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:239)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:220)
        at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTransitively(DefaultArtifactResolver.java:191)
        at org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDependencies(DefaultPluginManager.java:1165)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:348)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:597)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:544)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:527)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:324)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:150)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:237)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:251)
        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.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: wagon-dev-unsubscribe@maven.apache.org
For additional commands, e-mail: wagon-dev-help@maven.apache.org


Mime
View raw message