You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Rahul Khot (JIRA)" <ji...@codehaus.org> on 2007/04/12 04:58:46 UTC
[jira] Created: (WAGONFTP-17) Null pointer at
org.apache.maven.wagon.providers.ftp.FtpWagon.openConnection(FtpWagon.java:130)
Null pointer at org.apache.maven.wagon.providers.ftp.FtpWagon.openConnection(FtpWagon.java:130)
-----------------------------------------------------------------------------------------------
Key: WAGONFTP-17
URL: http://jira.codehaus.org/browse/WAGONFTP-17
Project: wagon-ftp
Issue Type: Bug
Affects Versions: 1.0-alpha-6
Environment: Windows XP, java 1.5 , maven 2.0.6
Reporter: Rahul Khot
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-deploy-plugin:2.3:deploy' -->
[DEBUG] (f) artifact = abc-plugins:abc-plugin:maven-plugin:1.0.0.0
[DEBUG] (f) attachedArtifacts = []
[DEBUG] (f) deploymentRepository = [helixasptest] -> ftp://abc.com/public_html
[DEBUG] (s) localRepository = [local] -> file://C:\Documents and Settings\user\.m2\repository
[DEBUG] (f) packaging = maven-plugin
[DEBUG] (f) pomFile = C:\Documents and Settings\user\workspace\abc\abc-plugins\abc-plugin\pom.xml
[DEBUG] (f) updateReleaseInfo = false
[DEBUG] -- end configuration --
[INFO] [deploy:deploy]
altDeploymentRepository = null
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] null
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
java.lang.NullPointerException
--
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
[jira] Commented: (WAGONFTP-17) Null pointer at
org.apache.maven.wagon.providers.ftp.FtpWagon.openConnection(FtpWagon.java:130)
Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/WAGONFTP-17?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_92783 ]
Carlos Sanchez commented on WAGONFTP-17:
----------------------------------------
for what i see either username or password in your settings is not defined, or the server id doesn't match
> Null pointer at org.apache.maven.wagon.providers.ftp.FtpWagon.openConnection(FtpWagon.java:130)
> -----------------------------------------------------------------------------------------------
>
> Key: WAGONFTP-17
> URL: http://jira.codehaus.org/browse/WAGONFTP-17
> Project: wagon-ftp
> Issue Type: Bug
> Affects Versions: 1.0-alpha-6
> Environment: Windows XP, java 1.5 , maven 2.0.6
> Reporter: Rahul Khot
>
> [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-deploy-plugin:2.3:deploy' -->
> [DEBUG] (f) artifact = abc-plugins:abc-plugin:maven-plugin:1.0.0.0
> [DEBUG] (f) attachedArtifacts = []
> [DEBUG] (f) deploymentRepository = [helixasptest] -> ftp://abc.com/public_html
> [DEBUG] (s) localRepository = [local] -> file://C:\Documents and Settings\user\.m2\repository
> [DEBUG] (f) packaging = maven-plugin
> [DEBUG] (f) pomFile = C:\Documents and Settings\user\workspace\abc\abc-plugins\abc-plugin\pom.xml
> [DEBUG] (f) updateReleaseInfo = false
> [DEBUG] -- end configuration --
> [INFO] [deploy:deploy]
> altDeploymentRepository = null
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] null
> [INFO] ------------------------------------------------------------------------
> [DEBUG] Trace
> java.lang.NullPointerException
--
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
[jira] Moved: (WAGON-145) Null pointer at
org.apache.maven.wagon.providers.ftp.FtpWagon.openConnection(FtpWagon.java:130)
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/WAGON-145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter moved WAGONFTP-17 to WAGON-145:
--------------------------------------------
Affects Version/s: (was: 1.0-alpha-6)
1.0-alpha-6
Fix Version/s: (was: 1.0-beta-3)
1.0-beta-3
Component/s: (was: wagon-ftp)
wagon-ftp
Key: WAGON-145 (was: WAGONFTP-17)
Project: Maven Wagon (was: wagon-ftp)
> Null pointer at org.apache.maven.wagon.providers.ftp.FtpWagon.openConnection(FtpWagon.java:130)
> -----------------------------------------------------------------------------------------------
>
> Key: WAGON-145
> URL: http://jira.codehaus.org/browse/WAGON-145
> Project: Maven Wagon
> Issue Type: Bug
> Components: wagon-ftp
> Affects Versions: 1.0-alpha-6
> Environment: Windows XP, java 1.5 , maven 2.0.6
> Reporter: Rahul Khot
> Assignee: Carlos Sanchez
> Fix For: 1.0-beta-3
>
>
> [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-deploy-plugin:2.3:deploy' -->
> [DEBUG] (f) artifact = abc-plugins:abc-plugin:maven-plugin:1.0.0.0
> [DEBUG] (f) attachedArtifacts = []
> [DEBUG] (f) deploymentRepository = [helixasptest] -> ftp://abc.com/public_html
> [DEBUG] (s) localRepository = [local] -> file://C:\Documents and Settings\user\.m2\repository
> [DEBUG] (f) packaging = maven-plugin
> [DEBUG] (f) pomFile = C:\Documents and Settings\user\workspace\abc\abc-plugins\abc-plugin\pom.xml
> [DEBUG] (f) updateReleaseInfo = false
> [DEBUG] -- end configuration --
> [INFO] [deploy:deploy]
> altDeploymentRepository = null
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] null
> [INFO] ------------------------------------------------------------------------
> [DEBUG] Trace
> java.lang.NullPointerException
--
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
[jira] Commented: (WAGONFTP-17) Null pointer at
org.apache.maven.wagon.providers.ftp.FtpWagon.openConnection(FtpWagon.java:130)
Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/WAGONFTP-17?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_92749 ]
Carlos Sanchez commented on WAGONFTP-17:
----------------------------------------
have you tried with the latest releases ? 1.0-beta-2
> Null pointer at org.apache.maven.wagon.providers.ftp.FtpWagon.openConnection(FtpWagon.java:130)
> -----------------------------------------------------------------------------------------------
>
> Key: WAGONFTP-17
> URL: http://jira.codehaus.org/browse/WAGONFTP-17
> Project: wagon-ftp
> Issue Type: Bug
> Affects Versions: 1.0-alpha-6
> Environment: Windows XP, java 1.5 , maven 2.0.6
> Reporter: Rahul Khot
>
> [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-deploy-plugin:2.3:deploy' -->
> [DEBUG] (f) artifact = abc-plugins:abc-plugin:maven-plugin:1.0.0.0
> [DEBUG] (f) attachedArtifacts = []
> [DEBUG] (f) deploymentRepository = [helixasptest] -> ftp://abc.com/public_html
> [DEBUG] (s) localRepository = [local] -> file://C:\Documents and Settings\user\.m2\repository
> [DEBUG] (f) packaging = maven-plugin
> [DEBUG] (f) pomFile = C:\Documents and Settings\user\workspace\abc\abc-plugins\abc-plugin\pom.xml
> [DEBUG] (f) updateReleaseInfo = false
> [DEBUG] -- end configuration --
> [INFO] [deploy:deploy]
> altDeploymentRepository = null
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] null
> [INFO] ------------------------------------------------------------------------
> [DEBUG] Trace
> java.lang.NullPointerException
--
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
[jira] Closed: (WAGONFTP-17) Null pointer at
org.apache.maven.wagon.providers.ftp.FtpWagon.openConnection(FtpWagon.java:130)
Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/WAGONFTP-17?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carlos Sanchez closed WAGONFTP-17.
----------------------------------
Assignee: Carlos Sanchez
Resolution: Fixed
Fix Version/s: 1.0-rc1
Fixed by throwing AuthenticationException if user/passwd are not defined
> Null pointer at org.apache.maven.wagon.providers.ftp.FtpWagon.openConnection(FtpWagon.java:130)
> -----------------------------------------------------------------------------------------------
>
> Key: WAGONFTP-17
> URL: http://jira.codehaus.org/browse/WAGONFTP-17
> Project: wagon-ftp
> Issue Type: Bug
> Affects Versions: 1.0-alpha-6
> Environment: Windows XP, java 1.5 , maven 2.0.6
> Reporter: Rahul Khot
> Assignee: Carlos Sanchez
> Fix For: 1.0-rc1
>
>
> [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-deploy-plugin:2.3:deploy' -->
> [DEBUG] (f) artifact = abc-plugins:abc-plugin:maven-plugin:1.0.0.0
> [DEBUG] (f) attachedArtifacts = []
> [DEBUG] (f) deploymentRepository = [helixasptest] -> ftp://abc.com/public_html
> [DEBUG] (s) localRepository = [local] -> file://C:\Documents and Settings\user\.m2\repository
> [DEBUG] (f) packaging = maven-plugin
> [DEBUG] (f) pomFile = C:\Documents and Settings\user\workspace\abc\abc-plugins\abc-plugin\pom.xml
> [DEBUG] (f) updateReleaseInfo = false
> [DEBUG] -- end configuration --
> [INFO] [deploy:deploy]
> altDeploymentRepository = null
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] null
> [INFO] ------------------------------------------------------------------------
> [DEBUG] Trace
> java.lang.NullPointerException
--
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
[jira] Commented: (WAGONFTP-17) Null pointer at
org.apache.maven.wagon.providers.ftp.FtpWagon.openConnection(FtpWagon.java:130)
Posted by "Rahul Khot (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/WAGONFTP-17?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_92647 ]
Rahul Khot commented on WAGONFTP-17:
------------------------------------
Sorry accidently hit save:
I am getting a null pointer exception here is the stack:
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-deploy-plugin:2.3:deploy' -->
[DEBUG] (f) artifact = abc-plugins:abc-plugin:maven-plugin:1.0.0.0
[DEBUG] (f) attachedArtifacts = []
[DEBUG] (f) deploymentRepository = [helixasptest] -> ftp://abc.com/public_html
[DEBUG] (s) localRepository = [local] -> file://C:\Documents and Settings\user\.m2\repository
[DEBUG] (f) packaging = maven-plugin
[DEBUG] (f) pomFile = C:\Documents and Settings\user\workspace\abc\abc-plugins\abc-plugin\pom.xml
[DEBUG] (f) updateReleaseInfo = false
[DEBUG] -- end configuration --
[INFO] [deploy:deploy]
altDeploymentRepository = null
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] null
[INFO] ------------------------------------------------------------------------
[DEBUG] 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.putRemoteFile(DefaultWagonManager.java:235)
at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:153)
at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:80)
at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:162)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
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)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11 seconds
[INFO] Finished at: Wed Apr 11 19:57:28 PDT 2007
[INFO] Final Memory: 8M/15M
[INFO] ------------------------------------------------------------------------
Here is the relevant section in my POM:
<distributionManagement>
<repository>
<id>abc</id>
<url>ftp://abc.com/public_html</url>
<layout>legacy</layout>
</repository>
</distributionManagement>
<build>
<extensions>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ftp</artifactId>
<version>1.0-beta-2</version>
</extension>
</extensions>
</build>
I have also added an entry in setting.xml file which defines the user name and password for the server Id abc. I have no other open connections to this ftp server from the machine I am running maven deploy goal.
Please let me know if you need any more information
> Null pointer at org.apache.maven.wagon.providers.ftp.FtpWagon.openConnection(FtpWagon.java:130)
> -----------------------------------------------------------------------------------------------
>
> Key: WAGONFTP-17
> URL: http://jira.codehaus.org/browse/WAGONFTP-17
> Project: wagon-ftp
> Issue Type: Bug
> Affects Versions: 1.0-alpha-6
> Environment: Windows XP, java 1.5 , maven 2.0.6
> Reporter: Rahul Khot
>
> [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-deploy-plugin:2.3:deploy' -->
> [DEBUG] (f) artifact = abc-plugins:abc-plugin:maven-plugin:1.0.0.0
> [DEBUG] (f) attachedArtifacts = []
> [DEBUG] (f) deploymentRepository = [helixasptest] -> ftp://abc.com/public_html
> [DEBUG] (s) localRepository = [local] -> file://C:\Documents and Settings\user\.m2\repository
> [DEBUG] (f) packaging = maven-plugin
> [DEBUG] (f) pomFile = C:\Documents and Settings\user\workspace\abc\abc-plugins\abc-plugin\pom.xml
> [DEBUG] (f) updateReleaseInfo = false
> [DEBUG] -- end configuration --
> [INFO] [deploy:deploy]
> altDeploymentRepository = null
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] null
> [INFO] ------------------------------------------------------------------------
> [DEBUG] Trace
> java.lang.NullPointerException
--
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
[jira] Commented: (WAGONFTP-17) Null pointer at
org.apache.maven.wagon.providers.ftp.FtpWagon.openConnection(FtpWagon.java:130)
Posted by "Alan Mehio (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/WAGONFTP-17?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_98622 ]
Alan Mehio commented on WAGONFTP-17:
------------------------------------
I totally agree with Carlos Sanchez, if the server id does not match or if there is a username or password error, the method shoud through AuthenticationException.
Regards,
Alan Mehio
London, UK
> Null pointer at org.apache.maven.wagon.providers.ftp.FtpWagon.openConnection(FtpWagon.java:130)
> -----------------------------------------------------------------------------------------------
>
> Key: WAGONFTP-17
> URL: http://jira.codehaus.org/browse/WAGONFTP-17
> Project: wagon-ftp
> Issue Type: Bug
> Affects Versions: 1.0-alpha-6
> Environment: Windows XP, java 1.5 , maven 2.0.6
> Reporter: Rahul Khot
> Assignee: Carlos Sanchez
> Fix For: 1.0
>
>
> [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-deploy-plugin:2.3:deploy' -->
> [DEBUG] (f) artifact = abc-plugins:abc-plugin:maven-plugin:1.0.0.0
> [DEBUG] (f) attachedArtifacts = []
> [DEBUG] (f) deploymentRepository = [helixasptest] -> ftp://abc.com/public_html
> [DEBUG] (s) localRepository = [local] -> file://C:\Documents and Settings\user\.m2\repository
> [DEBUG] (f) packaging = maven-plugin
> [DEBUG] (f) pomFile = C:\Documents and Settings\user\workspace\abc\abc-plugins\abc-plugin\pom.xml
> [DEBUG] (f) updateReleaseInfo = false
> [DEBUG] -- end configuration --
> [INFO] [deploy:deploy]
> altDeploymentRepository = null
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] null
> [INFO] ------------------------------------------------------------------------
> [DEBUG] Trace
> java.lang.NullPointerException
--
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
[jira] Commented: (WAGONFTP-17) Null pointer at
org.apache.maven.wagon.providers.ftp.FtpWagon.openConnection(FtpWagon.java:130)
Posted by "Rahul Khot (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/WAGONFTP-17?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_92779 ]
Rahul Khot commented on WAGONFTP-17:
------------------------------------
Same stack as before Null Pointer at a different line
org.apache.maven.wagon.providers.ftp.FtpWagon.openConnection(FtpWagon.java:130)
at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:143)
at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:235)
at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:153)
at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:80)
> Null pointer at org.apache.maven.wagon.providers.ftp.FtpWagon.openConnection(FtpWagon.java:130)
> -----------------------------------------------------------------------------------------------
>
> Key: WAGONFTP-17
> URL: http://jira.codehaus.org/browse/WAGONFTP-17
> Project: wagon-ftp
> Issue Type: Bug
> Affects Versions: 1.0-alpha-6
> Environment: Windows XP, java 1.5 , maven 2.0.6
> Reporter: Rahul Khot
>
> [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-deploy-plugin:2.3:deploy' -->
> [DEBUG] (f) artifact = abc-plugins:abc-plugin:maven-plugin:1.0.0.0
> [DEBUG] (f) attachedArtifacts = []
> [DEBUG] (f) deploymentRepository = [helixasptest] -> ftp://abc.com/public_html
> [DEBUG] (s) localRepository = [local] -> file://C:\Documents and Settings\user\.m2\repository
> [DEBUG] (f) packaging = maven-plugin
> [DEBUG] (f) pomFile = C:\Documents and Settings\user\workspace\abc\abc-plugins\abc-plugin\pom.xml
> [DEBUG] (f) updateReleaseInfo = false
> [DEBUG] -- end configuration --
> [INFO] [deploy:deploy]
> altDeploymentRepository = null
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] null
> [INFO] ------------------------------------------------------------------------
> [DEBUG] Trace
> java.lang.NullPointerException
--
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