Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-295

NullPointerException when view aggregated entity using Wicket viewer

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Implemented
    • Affects Version/s: viewer-wicket-1.0.0
    • Fix Version/s: viewer-wicket-1.2.0
    • Component/s: Core: Viewer: Wicket
    • Labels:
      None
    • Environment:
      IDE:eclipse OS:Win7 64bit

      Description

      I have tried the isis 1.0.0,and there is a problem with wicket viewer. The wicket viewer provide a view link for an aggregated entity,and I caught exception such as:
      Caused by: java.lang.NullPointerException
      at java.util.regex.Matcher.getTextLength(Unknown Source)
      at java.util.regex.Matcher.reset(Unknown Source)
      at java.util.regex.Matcher.<init>(Unknown Source)
      at java.util.regex.Pattern.matcher(Unknown Source)
      at org.apache.isis.core.metamodel.adapter.oid.OidMarshaller.unmarshal(OidMarshaller.java:125)
      at org.apache.isis.viewer.wicket.model.models.EntityModel.rootOidFrom(EntityModel.java:142)
      at org.apache.isis.viewer.wicket.model.models.EntityModel.<init>(EntityModel.java:124)
      at org.apache.isis.viewer.wicket.ui.pages.entity.EntityPage.<init>(EntityPage.java:49)
      ... 35 more

      I created a demo project on github for the problem,the repository located at:https://github.com/alainzhang/isis-demo.git

        Attachments

          Activity

            People

            • Assignee:
              danhaywood Dan Haywood
              Reporter:
              alainzhang Alain.Zhang
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: