#36 NullPointerException using Level-Attribute "hideMemberIf"

validated
open
nobody
None
5
2008-03-10
2006-09-25
Carsten
No

When using "drill Member" with level-style=true on a
Dimension where a Level has the attribute
"hideMemberIf" set to "IfBlankName" and the
corresponding member is empty (null) the following
Exception is thrown:

[JPivot] 25 Sep 2006 14:09:05,281 ERROR [Session
301F7F7B2C9162D8A8CC651991260F13]
com.tonbeller.wcf.component.RendererTag#doEndTag:
trouble rendering table02
java.lang.NullPointerException
at
com.tonbeller.jpivot.mondrian.MondrianMemberTree.getParent(MondrianMemberTree.java:201)
at
com.tonbeller.jpivot.table.LevelAxisDecorator.addParents(LevelAxisDecorator.java:124)
at
com.tonbeller.jpivot.table.LevelAxisDecorator.makePosition(LevelAxisDecorator.java:108)
at
com.tonbeller.jpivot.table.LevelAxisDecorator.makePositions(LevelAxisDecorator.java:98)
at
com.tonbeller.jpivot.table.LevelAxisDecorator.<init>(LevelAxisDecorator.java:64)
at
com.tonbeller.jpivot.table.AxisBuilderSupport.initialize(AxisBuilderSupport.java:88)
at
com.tonbeller.jpivot.table.AxisBuilderSupport.startBuild(AxisBuilderSupport.java:229)
at
com.tonbeller.jpivot.table.TableComponent.startBuild(TableComponent.java:190)
at
com.tonbeller.jpivot.table.TableComponent.render2(TableComponent.java:258)
at
com.tonbeller.jpivot.table.TableComponent.render(TableComponent.java:234)
at
com.tonbeller.wcf.component.RendererTag.doEndTag(RendererTag.java:137)
at
_jasper._statistic_jsp._jspService(_statistic_jsp.java:1177)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:552)
at
com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:368)
at
com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
at
java.security.AccessController.doPrivileged(Native Method)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
at
com.tonbeller.wcf.controller.RequestFilter$MyHandler.normalRequest(RequestFilter.java:139)
at
com.tonbeller.wcf.controller.RequestSynchronizer.handleRequest(RequestSynchronizer.java:127)
at
com.tonbeller.wcf.controller.RequestFilter.doFilter(RequestFilter.java:263)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
at
java.security.AccessController.doPrivileged(Native Method)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:265)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at
com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:153)
at
com.iplanet.ias.web.WebContainer.service(WebContainer.java:597)

Dimension is defined as follows:

<Dimension name="Signature" foreignKey="SIGNATUREID"
caption="Auftrag">
<Hierarchy name="ByTypegroup" hasAll="true"
primaryKey="ID"
caption="Auftragsart nach Gruppe"
allLevelName="(Alle)"
allMemberCaption="gesamt">
<Table name="SIGNATUREDIMENSION"/>
<Level name="Typegroup" column="TYPEGROUP"
type="String" uniqueMembers="true"
caption="Auftragsgruppe"/>
<Level name="Type" column="TYPE" type="String"
uniqueMembers="true"
caption="Auftragsart"/>
<Level name="Mark" column="MARK" type="String"
hideMemberIf="IfBlankName"
caption="Ergänzung"/>
<Level name="State" column="STATE" type="String"
caption="Auftragszustand"/>
</Hierarchy>
</Dimension>

Discussion

  • Andreas Voss
    Andreas Voss
    2008-03-10

    • milestone: --> validated