You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Mark Zalavari (JIRA)" <ji...@codehaus.org> on 2012/10/10 21:50:36 UTC
[jira] (WAGON-378) NullPointerException in
LightweightHttpWagon.openConnectionInternal()
Mark Zalavari created WAGON-378:
-----------------------------------
Summary: NullPointerException in LightweightHttpWagon.openConnectionInternal()
Key: WAGON-378
URL: https://jira.codehaus.org/browse/WAGON-378
Project: Maven Wagon
Issue Type: Bug
Components: wagon-http-lightweight
Affects Versions: 2.2
Reporter: Mark Zalavari
I got a NullPointerException when I try to create a connection with LightweightHttpWagon.
Exception in thread "main" java.lang.NullPointerException
at org.apache.maven.wagon.providers.http.LightweightHttpWagon.openConnectionInternal(LightweightHttpWagon.java:277)
at org.apache.maven.wagon.AbstractWagon.openConnection(AbstractWagon.java:105)
at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:207)
at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:124)
at com.zalavaari.maven.linkeddata.util.MavenRepoLeecher.leech(MavenRepoLeecher.java:29)
at com.zalavaari.maven.linkeddata.Main.leech(Main.java:34)
at com.zalavaari.maven.linkeddata.Main.main(Main.java:16)
I can reproduce it in 2.2, 2.1 and 2.0.
1.0 seems okay.
I can create and attach a minimal project for reproducing the problem if needed, but as I see, the problem is trivial.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (WAGON-378) NullPointerException in
LightweightHttpWagon.openConnectionInternal()
Posted by "Mark Zalavari (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/WAGON-378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=311264#comment-311264 ]
Mark Zalavari commented on WAGON-378:
-------------------------------------
Thanks for the quick answer.
Then that's the problem.
I just instantiate a new LightweightHttpWagon, and try to connect with a given Repository.
So if I understand well, I shouldn't use wagon without plexus.
Sorry for the inconvenience, i will close the issue.
> NullPointerException in LightweightHttpWagon.openConnectionInternal()
> ---------------------------------------------------------------------
>
> Key: WAGON-378
> URL: https://jira.codehaus.org/browse/WAGON-378
> Project: Maven Wagon
> Issue Type: Bug
> Components: wagon-http-lightweight
> Affects Versions: 2.2
> Reporter: Mark Zalavari
>
> I got a NullPointerException when I try to create a connection with LightweightHttpWagon.
> Exception in thread "main" java.lang.NullPointerException
> at org.apache.maven.wagon.providers.http.LightweightHttpWagon.openConnectionInternal(LightweightHttpWagon.java:277)
> at org.apache.maven.wagon.AbstractWagon.openConnection(AbstractWagon.java:105)
> at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:207)
> at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:124)
> at com.zalavaari.maven.linkeddata.util.MavenRepoLeecher.leech(MavenRepoLeecher.java:29)
> at com.zalavaari.maven.linkeddata.Main.leech(Main.java:34)
> at com.zalavaari.maven.linkeddata.Main.main(Main.java:16)
> I can reproduce it in 2.2, 2.1 and 2.0.
> 1.0 seems okay.
> I can create and attach a minimal project for reproducing the problem if needed, but as I see, the problem is trivial.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (WAGON-378) NullPointerException in
LightweightHttpWagon.openConnectionInternal()
Posted by "Mark Zalavari (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/WAGON-378?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Zalavari closed WAGON-378.
-------------------------------
Resolution: Not A Bug
> NullPointerException in LightweightHttpWagon.openConnectionInternal()
> ---------------------------------------------------------------------
>
> Key: WAGON-378
> URL: https://jira.codehaus.org/browse/WAGON-378
> Project: Maven Wagon
> Issue Type: Bug
> Components: wagon-http-lightweight
> Affects Versions: 2.2
> Reporter: Mark Zalavari
>
> I got a NullPointerException when I try to create a connection with LightweightHttpWagon.
> Exception in thread "main" java.lang.NullPointerException
> at org.apache.maven.wagon.providers.http.LightweightHttpWagon.openConnectionInternal(LightweightHttpWagon.java:277)
> at org.apache.maven.wagon.AbstractWagon.openConnection(AbstractWagon.java:105)
> at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:207)
> at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:124)
> at com.zalavaari.maven.linkeddata.util.MavenRepoLeecher.leech(MavenRepoLeecher.java:29)
> at com.zalavaari.maven.linkeddata.Main.leech(Main.java:34)
> at com.zalavaari.maven.linkeddata.Main.main(Main.java:16)
> I can reproduce it in 2.2, 2.1 and 2.0.
> 1.0 seems okay.
> I can create and attach a minimal project for reproducing the problem if needed, but as I see, the problem is trivial.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (WAGON-378) NullPointerException in
LightweightHttpWagon.openConnectionInternal()
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/WAGON-378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=311261#comment-311261 ]
Olivier Lamy commented on WAGON-378:
------------------------------------
I wonder how do you construct your wagon http instance ?
Some fields need to use plexus injection mechanism !
Yes a project to reproduce please.
> NullPointerException in LightweightHttpWagon.openConnectionInternal()
> ---------------------------------------------------------------------
>
> Key: WAGON-378
> URL: https://jira.codehaus.org/browse/WAGON-378
> Project: Maven Wagon
> Issue Type: Bug
> Components: wagon-http-lightweight
> Affects Versions: 2.2
> Reporter: Mark Zalavari
>
> I got a NullPointerException when I try to create a connection with LightweightHttpWagon.
> Exception in thread "main" java.lang.NullPointerException
> at org.apache.maven.wagon.providers.http.LightweightHttpWagon.openConnectionInternal(LightweightHttpWagon.java:277)
> at org.apache.maven.wagon.AbstractWagon.openConnection(AbstractWagon.java:105)
> at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:207)
> at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:124)
> at com.zalavaari.maven.linkeddata.util.MavenRepoLeecher.leech(MavenRepoLeecher.java:29)
> at com.zalavaari.maven.linkeddata.Main.leech(Main.java:34)
> at com.zalavaari.maven.linkeddata.Main.main(Main.java:16)
> I can reproduce it in 2.2, 2.1 and 2.0.
> 1.0 seems okay.
> I can create and attach a minimal project for reproducing the problem if needed, but as I see, the problem is trivial.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira