PM91518: Opening a JSP that references a JSF template results in a NullPointerException

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Abstract:
    
    Attempts to open a JavaServer Page (JSP) that uses a JavaServer
    Faces (JSF) template which references a style sheet with
    warnings may result in a NullPointerException.
    
    Problem:
    
    You have a JSF template which is used to create the pages of a
    Web application, and the template references a CSS file, i.e.:
    
    ?link rel='stylesheet' href='../css/main.css' type='text/css'?
    
    If the referenced CSS file has any type of warnings flagged
    against it in the Problems view, attempts to open a JSP file
    that uses the referencing template will produces a
    NullPointerException, similar to the following:
    
    java.lang.NullPointerException
     at
    com.ibm.etools.webedit.editparts.PartAnalyzer.isStyleSheetTarget
    (Unknown
    Source)
     at
    com.ibm.etools.webedit.editparts.style.CSSGraphicalSelectorMatch
    er.getPreviousEditPart(Unknown
    Source)
     at
    com.ibm.etools.webedit.editparts.style.CSSGraphicalSelectorMatch
    er.match(Unknown
    Source)
     at
    com.ibm.etools.webedit.editparts.style.CSSGraphicalQueryTraverse
    r.traverseNodes(Unknown
    Source)
     at
    com.ibm.etools.webedit.editparts.style.CSSGraphicalQueryTraverse
    r.getDeclaration(Unknown
    Source)
     at
    com.ibm.etools.webedit.editparts.HTMLGraphicalRootEditPart.getOv
    errideStyle(Unknown
    Source)
     at
    com.ibm.etools.webedit.editparts.ElementEditPart.getDocumentCSSS
    tyle(Unknown
    Source)
     at
    com.ibm.etools.xve.renderer.style.html.AbstractHTMLStyle.doUpdat
    eStyle(Unknown
    Source)
     at
    com.ibm.etools.xve.renderer.style.html.AbstractHTMLStyle.update(
    Unknown
    Source)
     at
    com.ibm.etools.webedit.editparts.ElementEditPart.updateStyle(Unk
    nown
    Source)
     at
    com.ibm.etools.webedit.editparts.ElementEditPart.refreshVisuals(
    Unknown
    Source)
     at org.eclipse.gef.editparts.AbstractEditPart.refresh(Unknown
    Source)
     at
    org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(Unkn
    own
    Source)
     at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Unknown
    Source)
     at
    org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(Un
    known
    Source)
     at
    com.ibm.etools.webedit.editparts.VisibleNodeEditPart.addNotify(U
    nknown
    Source)
     at
    com.ibm.etools.webedit.editparts.ElementEditPart.addNotify(Unkno
    wn
    Source)
     at org.eclipse.gef.editparts.AbstractEditPart.addChild(Unknown
    Source)
     at
    com.ibm.etools.webedit.editparts.NodeEditPart.refreshChildren(Un
    known
    Source)
     at
    com.ibm.etools.webedit.editparts.ElementEditPart.refreshChildren
    (Unknown
    Source)
    ...
    
    Local fix:
    
    There is no known workaround at this time
    

Local fix

Problem summary

  • Opening a JSP that references a JSF template results in a
    NullPointerException
    

Problem conclusion

  • A null check was added as part of the CSS visualization process.
    
    The fix for this APAR is included in Rational Application
    Developer v8.0.4.3.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM91518

  • Reported component name

    RATL APP DEV WI

  • Reported component ID

    5724J1901

  • Reported release

    804

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-06-20

  • Closed date

    2013-10-28

  • Last modified date

    2013-10-28

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    RATL APP DEV WI

  • Fixed component ID

    5724J1901

Applicable component levels

  • R804 PSY

       UP



Rate this page:

(0 users)Average rating

Document information


More support for:

Rational Application Developer for WebSphere Software

Software version:

8.0.4

Reference #:

PM91518

Modified date:

2013-10-28

Translate my page

Machine Translation

Content navigation