Details

    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Add the Proxy-Configuration to your Maven Command Line:
      mvn clean install -Dhttp.proxyHost=proxy.yourdomain.de -Dhttp.proxyPort=8080

      Show
      Add the Proxy-Configuration to your Maven Command Line: mvn clean install -Dhttp.proxyHost=proxy.yourdomain.de -Dhttp.proxyPort=8080
    • Estimated Difficulty:
      Low

      Description

      I'm getting a NPE when using maven-jdocbook-plugin with JDK > 1.5 and a configured Proxy-Server using my Maven settings.xml. I have not configured a Proxy-Server using Java System Properties. The Plugin works with when both, Maven Settings and Java System Properties are set.

      But since JDK 1.5 an NPE is thrown, when the System Properties Value is null. So when the Plugin tries to restore my 'null' Java System Property value this Exception ist occours.

      Below my StackStrace:
      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.jboss.maven.plugins.jdocbook.AbstractDocBookMojo.doExecuteWithProxy(AbstractDocBookMojo.java:370)
      at org.jboss.maven.plugins.jdocbook.AbstractDocBookMojo.execute(AbstractDocBookMojo.java:412)
      at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
      at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
      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:597)
      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)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                sebersole Steve Ebersole
                Reporter:
                robertnetz Robert Netzschwitz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 minute Original Estimate - 1 minute
                  1m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 33 minutes
                  33m