Error in create doamin of JGuardExample

2006-04-11
2013-05-08
  • Hi,

    I got bellow error while tring to create a new domain:

    javax.servlet.ServletException
        org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:523)
        org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
        org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
        org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
        org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
        com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
        com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
        net.sf.jguard.filters.AccessFilter.authorize(AccessFilter.java:600)
        net.sf.jguard.filters.AccessFilter.doFilter(AccessFilter.java:381)

    root cause

    java.lang.NullPointerException
        net.sf.jguard.authorization.XmlAuthorizationManager.createDomain(XmlAuthorizationManager.java:263)
        net.sf.jguardexample.struts.admin.actions.DomainDispatchAction.create(DomainDispatchAction.java:72)
        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        java.lang.reflect.Method.invoke(Method.java:324)
        org.apache.struts.actions.ActionDispatcher.dispatchMethod(ActionDispatcher.java:332)
        org.apache.struts.actions.ActionDispatcher.dispatchMethod(ActionDispatcher.java:315)
        org.apache.struts.actions.ActionDispatcher.execute(ActionDispatcher.java:220)
        net.sf.jguardexample.struts.actions.BaseAction.execute(BaseAction.java:56)
        org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
        org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
        org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
        org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
        com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
        com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
        net.sf.jguard.filters.AccessFilter.authorize(AccessFilter.java:600)
        net.sf.jguard.filters.AccessFilter.doFilter(AccessFilter.java:381)

    Any idea?!

    Regards,
    Alireza Fattahi

     
    • Charles Lescot
      Charles Lescot
      2006-04-11

      Hi Alireza,
      you're right,
      there is a bug.
      i've fixed it in the cvs HEAD since several minutes.(it was raised because domains markup does not exists and has been replaced by permissions.
      thank you for the bug report!

      cheers,

      Charles.