Results 1 to 2 of 2

Thread: NullPointerException - WebScaffoldMetadata

  1. #1
    Join Date
    Jan 2009
    Posts
    7

    Smile NullPointerException - WebScaffoldMetadata

    So far it's my first day with ROO, but I'm totally thrilled to have found it!

    Unfortunately, the following simple ROO code (part of a much bigger model) generates an error (NullPointerException at org.springframework.roo.addon.web.mvc.controller.W ebScaffoldMetadata.getCreateFormMethod(WebScaffold Metadata.java:337)) :

    create project -topLevelPackage com.sefol.PLESpaces
    install jpa -provider HIBERNATE -database HYPERSONIC_IN_MEMORY

    new persistent class jpa -name ~.domain.AbstractResource -abstract

    new persistent class jpa -name ~.domain.PanelSelection -testAutomatically

    add field reference jpa -class ~.domain.AbstractResource -fieldName myPanelSelection -type ~.domain.PanelSelection

    add field set jpa -class ~.domain.PanelSelection -fieldName selectedResources -element ~.domain.AbstractResource -mappedBy myPanelSelection -notNull false

    new controller automatic -name ~.web.PanelSelectionController -formBackingObject ~.domain.PanelSelection
    I can prevent this error by removing the -abstract definition from the definition of AbstractResource... but I can't see why this would matter. Perhaps the day has been a bit long, but I'd appreciate somebody explaining why.

  2. #2
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    Thanks for reporting this.

    I have opened a bug at http://jira.springframework.org/browse/ROO-209 so we can investigate this.
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •