Maven 1

Proxy + NTLM = NullPointerException

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0.1
  • Fix Version/s: 1.1-beta-1
  • Component/s: None
  • Labels:
    None
  • Environment:
    MacOSX 10.3.6 / JDK v1.4.2
  • Number of attachments :
    0

Description

If build.properties is defined like this:

maven.proxy.host = 192.168.1.27
maven.proxy.port = 80
maven.proxy.username = username
maven.proxy.password = password
maven.proxy.ntlm.domain = domain

Then maven bombs out with a NullPointerException like this:

Graham-Leggetts-Computer:~/src/standard/autobahn minfrin$ maven site
__ __

\/ __ Apache_ ___
  \/ / ` \ V / -) ' \ ~ intelligent projects ~
_   _,_ _/___ _ _ v. 1.0.1

Attempting to download jdepend-2.7.jar.
Error retrieving artifact from http://www.ibiblio.org/maven/jdepend/jars/jdepend-2.7.jar: java.lang.NullPointerException
WARNING: Failed to download jdepend-2.7.jar.

BUILD FAILED
File...... /Users/minfrin/.maven/cache/maven-xdoc-plugin-1.8/plugin.jelly
Element... attainGoal
Line...... 693
Column.... 57
The build cannot continue because of the following unsatisfied dependency:

jdepend-2.7.jar

Total time: 5 seconds
Finished at: Wed Dec 01 15:10:41 SAST 2004

What should happen is that a valid error message be returned to the user as to whatever is missing. "NullPointerException" says nothing to the user.

Activity

Hide
Brett Porter added a comment -

please run maven -e site and post the stack trace (if it still doesn't show, you might need to run maven -X site).

You're correct, it should not cause a NPE.

Show
Brett Porter added a comment - please run maven -e site and post the stack trace (if it still doesn't show, you might need to run maven -X site). You're correct, it should not cause a NPE.
Hide
Brett Porter added a comment -

without the additional information, will have to wait. I can't reproduce

Show
Brett Porter added a comment - without the additional information, will have to wait. I can't reproduce
Hide
Martin van den Bemt added a comment -

Don't think this is related to NTLM authentication. It works for me at the office (using 1.0 btw). I think the problem could be not specifying ntlm.username in this case ? (Can try to test that in about 2 weeks, am on a holiday now

Show
Martin van den Bemt added a comment - Don't think this is related to NTLM authentication. It works for me at the office (using 1.0 btw). I think the problem could be not specifying ntlm.username in this case ? (Can try to test that in about 2 weeks, am on a holiday now
Hide
Martin van den Bemt added a comment -

Ehh the nltm.host I use these settings :

maven.proxy.ntlm.host=our proxy server hostname
maven.proxy.ntlm.domain=ODIN
maven.proxy.username=me
maven.proxy.password=whatever
maven.proxy.host=our proxy server hostname
maven.proxy.domain=ODIN
maven.proxy.port=8080

Show
Martin van den Bemt added a comment - Ehh the nltm.host I use these settings : maven.proxy.ntlm.host=our proxy server hostname maven.proxy.ntlm.domain=ODIN maven.proxy.username=me maven.proxy.password=whatever maven.proxy.host=our proxy server hostname maven.proxy.domain=ODIN maven.proxy.port=8080
Hide
Graham Leggett added a comment -

Some testing reveals that if the ntlm.host option is left off, it throws NullPointException.

It seems that if at least one option is set, it assumes all the options are set, which is not necessarily the case.

Show
Graham Leggett added a comment - Some testing reveals that if the ntlm.host option is left off, it throws NullPointException. It seems that if at least one option is set, it assumes all the options are set, which is not necessarily the case.
Hide
Brett Porter added a comment -

Graham,
Thanks - but what I really need is for you to run it with -X so I can get the line number it occurs at from the stack trace. It'll save me time tracking it down to fix the error message.

Show
Brett Porter added a comment - Graham, Thanks - but what I really need is for you to run it with -X so I can get the line number it occurs at from the stack trace. It'll save me time tracking it down to fix the error message.
Hide
Brett Porter added a comment -

I believe this should be fixed in Wagon

Show
Brett Porter added a comment - I believe this should be fixed in Wagon

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: