Midtier running against Tomcat/Java 1.8 is encountering a java.lang.ClassCastException error when generating Web reports.

Version 3
    Share This:

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    PRODUCT:

    Remedy AR System Server


    APPLIES TO:

    BMC Remedy AR System Server



    PROBLEM:

     

    Java 1.8 is encountering an error while running the web report.

      

    Happens while running the report throwing error: java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration

      


    Also some reports can cause NullPointerException: 

    org.eclipse.birt.report.engine.api.impl.RunTask.doRun An error happened while running the report. Cause:
    java.lang.NullPointerException

     


    CAUSE:

    Defect SW00467049 is logged for this issue.


    SOLUTION:

     

    If the following error is observed in the Report engine logs present under <MidTier-logs>/logs directory, check the Java Version used by Midtier.   The Java 1.8 is causing the error on Midtier versions, 7.6.04, 8.0 8.1 and 8.1 SP1.

    Resolution 1 : Downgrading the Java to 1.7 or 1.6 resolves the issue

      

    Workaround 1: 

      

    Remain on Java 1.8 but remove the conflicting xerces jar from Birt runtime directory and from the WEB-INF\lib directory.

      

          specific files:  midtier_home\WEB-INF\platform\plugins\org.apache.xerces_2.9.0.v200909240008.jar
                                   midtier_home\WEB-INF\lib\xerces*.jar
    Restart the webeserver)

      
    Related Products:  
       
    1. BMC Remedy AR System Server

     


    Article Number:

    000077543


    Article Type:

    Solutions to a Product Problem



      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles