jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Mojo
  • MOJO-1148

Maven proxy settings cause NPE in TransformMojo

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: docbook
  • Labels:
    None
  • Environment:
    WinXP SP2, Maven 2.0.8, Java 1.6.0_05-б13
  • Complexity:
    Intermediate

Description

This proxy definition in Maven settings.xml causes an error:

<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<username>proxyuser</username>
<password>proxypass</password>
<host>192.168.2.1</host>
<port>3128</port>
<!-<nonProxyHosts>local.net,some.host.com</nonProxyHosts>->
</proxy>

Stack trace:

java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:394)
at java.util.Properties.setProperty(Properties.java:143)
at java.lang.System.setProperty(System.java:731)
at org.codehaus.mojo.docbook.TransformMojo.execute(TransformMojo.java:130)

Property lists do not accept null values, so adding a simple check should fix this. Temporary workaround - comment out the nonProxyHosts node in the settings.xml file.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
There are no comments yet on this issue.

People

  • Assignee:
    Unassigned
    Reporter:
    Pavel Tcholakov
Vote (0)
Watch (1)

Dates

  • Created:
    08/Jun/08 11:40 AM
    Updated:
    08/Jun/08 11:40 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.