SAP Knowledge Base Article - Preview

1630158 - java.lang.ClassCastException:$a when exporting report using RAS


Class Cast Exception when exporting report using RAS call reportClientDoc.getPrintOutputController().Export(...) and the returned object of type InputStream is cast to ByteArrayInputStream after upgrade to XI 3.1 Service Pack 4. The exact error is:


Casting to ByteArrayInputStream works fine prior to SP4 and the behavior is same in JDK 1.5 and JDK 1.6



  • Business Objects Enterprise XI 3.1 Service Pack 4
  • SAP BusinessObjects Business Intelligence platform 4.x


SAP BusinessObjects Business Intelligence platform 4.1 ; SAP BusinessObjects Business Intelligence platform 4.2 ; SAP BusinessObjects Enterprise XI 3.1


ras export class cast exception service pack 4 sp4 XI 3.1, ADAPT01580056, ADAPT01563970 , KBA , BI-DEV-JAV , BI Software Development Kits (SDKs) - Java , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.