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)
  • Maven 2.x and 3.x Site Plugin
  • MSITE-619

Method calculateLink threw exception for reference $PathTool

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Reopened Reopened
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 3.0
  • Fix Version/s: None
  • Component/s: Maven 3, site descriptor
  • Labels:
    None
  • Environment:
    Maven 3.0.3, MacOS-X 10.6.8

Description

After running 'mvn site:site' I get the following errors after upgrading to maven-site-plugin 3.0 (with 3.0-beta-3 this error does not happen!):

...
[ERROR] Method calculateLink threw exception for reference $PathTool in template org/apache/maven/doxia/siterenderer/resources/default-site.vm at [2,31]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 34.451s
[INFO] Finished at: Sun Nov 20 20:29:56 CET 2011
[INFO] Final Memory: 22M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.0:site (default-cli) on project patterntesting-rt: Error during page generation: Error while generating code. Invocation of method 'calculateLink' in class org.codehaus.plexus.util.PathTool threw exception java.lang.NullPointerException @ org/apache/maven/doxia/siterenderer/resources/default-site.vm[2,41] -> [Help 1]
...

These are the POMs which are used:

  • http://patterntesting.cvs.sourceforge.net/viewvc/patterntesting/PatternTesting10/patterntesting-parent/pom.xml
  • http://patterntesting.cvs.sourceforge.net/viewvc/patterntesting/PatternTesting10/patterntesting-rt/pom.xml

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Lukas Theussl added a comment - 22/Nov/11 5:26 AM

There is a breadcrumb without an href in your site.xml, please check if this fixes it. Note that all <item> elements in site.xml require a href.

Show
Lukas Theussl added a comment - 22/Nov/11 5:26 AM There is a breadcrumb without an href in your site.xml, please check if this fixes it. Note that all <item> elements in site.xml require a href.
Hide
Permalink
Oliver Boehm added a comment - 23/Nov/11 3:42 PM

That's it - thank you for the tip.
But nevertheless - it's a strange error message

Show
Oliver Boehm added a comment - 23/Nov/11 3:42 PM That's it - thank you for the tip. But nevertheless - it's a strange error message
Hide
Permalink
Jakub Skoczen added a comment - 01/Mar/12 2:20 AM

Closed? Are you for real? NPE is a default way to report parsing errors in your coding style??

Show
Jakub Skoczen added a comment - 01/Mar/12 2:20 AM Closed? Are you for real? NPE is a default way to report parsing errors in your coding style??
Hide
Permalink
Johannes Schneider added a comment - 12/Apr/12 11:49 AM

I just run into that exception.
This worked fine some time ago. I think a recent update to the site plugin triggered that bug.

Please, please - at least add a better exception message...

Show
Johannes Schneider added a comment - 12/Apr/12 11:49 AM I just run into that exception. This worked fine some time ago. I think a recent update to the site plugin triggered that bug. Please, please - at least add a better exception message...
Hide
Permalink
Lukas Theussl added a comment - 13/Apr/12 1:35 AM

I doubt that this worked with any recent version of the site plugin. Unfortunately, the Exception message comes from the Velocity parser, so we'd have to manually check for null hrefs in the vm script. I still maintain that a href is required, so the Exception is valid, but I'd be happy to apply a patch to log a better error message.

Show
Lukas Theussl added a comment - 13/Apr/12 1:35 AM I doubt that this worked with any recent version of the site plugin. Unfortunately, the Exception message comes from the Velocity parser, so we'd have to manually check for null hrefs in the vm script. I still maintain that a href is required, so the Exception is valid, but I'd be happy to apply a patch to log a better error message.
Hide
Permalink
Johannes Schneider added a comment - 05/May/12 4:51 PM

What about changing the xsd? Marking "href" as required could help.

Show
Johannes Schneider added a comment - 05/May/12 4:51 PM What about changing the xsd? Marking "href" as required could help.

People

  • Assignee:
    Unassigned
    Reporter:
    Oliver Boehm
Vote (0)
Watch (4)

Dates

  • Created:
    20/Nov/11 1:40 PM
    Updated:
    05/May/12 4:51 PM
  • 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.