Quantcast
Channel: SCN : Popular Discussions - Java SDK Application Development
Viewing all articles
Browse latest Browse all 1701

GetImage failed (8004376E) when loading more than 5 deski reports within a jsp

$
0
0

We’re using the BusinessObjects Enterprise Java SDK (3.1 SP5) to load deski reports in our web application.

 

Referring to this we’re facing a problem when we try to load a bunch of reports within one single web page:

Most of our reports include images. When loading some reports, which includes images on a

single web page, BO throws an Exception saying “GetImage failed (8004376E)” when there are more

than 5 images to load. The error occurs whether we're loading the reports simultaneously via Ajax or one after another.

 

The relevant part of the stacktrace looks like this:

 

------

com.businessobjects.rebean.wi.ServerException:
at com.businessobjects.rebean.fc.internal.platformspecific.xml.ras21.SAXHandlerERRORS$SAXHandlerERROR.initElement(Unknown Source)
at com.businessobjects.rebean.fc.internal.platformspecific.xml.SXMLHandling$StructuredSAXHandler.startElement(Unknown Source)
at com.businessobjects.rebean.fc.internal.platformspecific.xml.SXMLHandling$StructuredSAXHandler.startElement(Unknown Source)
at com.businessobjects.rebean.fc.internal.platformspecific.xml.SXMLHandling$StructuredSAXHandler.startElement(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at com.businessobjects.rebean.fc.internal.ras21.XMLviaRAS21Decode.getImage(Unknown Source)
at com.businessobjects.rebean.fc.internal.ras21.RAS21DocumentComAdapter.getImage(Unknown Source)
at com.businessobjects.rebean.fc.internal.DocumentInstanceImpl.getImage(Unknown Source)
at de.foo.reporting.services.impl.BusinessIntelligenceImpl$3.execute(BusinessIntelligenceImpl.java:265)
at de.foo.reporting.services.impl.BusinessIntelligenceImpl$3.execute(BusinessIntelligenceImpl.java:1)
at de.foo.reporting.services.impl.BusinessIntelligenceImpl.doBusinessIntelligence(BusinessIntelligenceImpl.java:518)
at de.foo.reporting.services.impl.BusinessIntelligenceImpl.getDocumentImageFromStorageToken(BusinessIntelligenceImpl.java:250)
at $BusinessIntelligence_3ae3aae60bf67.getDocumentImageFromStorageToken(Unknown Source)
at $BusinessIntelligence_3ae3aae60bf69.advised$getDocumentImageFromStorageToken_3ae3aae60bf6b(Unknown Source)
at $BusinessIntelligence_3ae3aae60bf69$Invocation_getDocumentImageFromStorageToken_3ae3aae60bf6a.proceedToAdvisedMethod(Unknown Source)
at org.apache.tapestry5.internal.plastic.AbstractMethodInvocation.proceed(AbstractMethodInvocation.java:84)
at org.apache.tapestry5.ioc.internal.util.InternalUtils$19$1.proceed(InternalUtils.java:1357)
at de.foo.reporting.services.AppModule$1.advise(AppModule.java:141)
at org.apache.tapestry5.ioc.internal.util.InternalUtils$19.advise(InternalUtils.java:1426)
at org.apache.tapestry5.internal.plastic.AbstractMethodInvocation.proceed(AbstractMethodInvocation.java:86)
at $BusinessIntelligence_3ae3aae60bf69.getDocumentImageFromStorageToken(Unknown Source)
at $BusinessIntelligence_3ae3aae60bed8.getDocumentImageFromStorageToken(Unknown Source)
at de.foo.reporting.pages.ViewImage.onActivate(ViewImage.java:40)
at de.foo.reporting.pages.ViewImage.dispatchComponentEvent(ViewImage.java)
at org.apache.tapestry5.internal.structure.ComponentPageElementImpl.dispatchEvent(ComponentPageElementImpl.java:923)
at org.apache.tapestry5.internal.structure.ComponentPageElementImpl.processEventTriggering(ComponentPageElementImpl.java:1106)
... 66 more
Caused by: java.lang.Exception: GetImage failed (8004376E)

------

 

------

// create bo session
this.session = sessionManager.logon(aBoUser.getUsername(),
     this.digestService.decrypt(aBoUser.getPassword()),
     aBoUser.getSystem(), aBoUser.getAuthentification());

 

// load bo-engines
this.engines = (ReportEngines) this.session.getService("ReportEngines");

 

// load full client engine
this.engine = this.engines.getService(ReportEngines.ReportEngineType.FC_REPORT_ENGINE);

 

Setting the image callback:

// get report
final Report report = documentInstance.getReports().getItem(0);
report.setPaginationMode(PaginationMode.Listing);

 

// set image callback
final ImageOption imageOption = documentInstance.getImageOption();
imageOption.setImageCallback(ViewImage.class.getSimpleName());

 

// load html view
final HTMLView htmlView = (HTMLView) report.getView(OutputFormatType.DHTML);
final String markupString = htmlView.getStringPart("html", true);

 

Within the callback jsp the following method gets called, which doesn't work when trying to display more than 5 reports on a page:

 

final DocumentInstance document = aBoSession.getDocumentFromStorageToken(aToken);
final Image image = document.getImage(aName);


We couldn't find any properties or settings on the bo server or the client to solve this.
The error is reproducible on each try. On the other hand there is no error when loading a report with more than 5 images.

The problem only occurs in the case of loading 5 different reports with images.


Viewing all articles
Browse latest Browse all 1701

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>