Jasper blob embedding issue from APEX - oracle

I have a pdf report designed using ireport designer 5.6.0 and deployed that jxml file to apex server and displaying the pdf report from apex on the button click.
The report works fine with in ireport designer and in my report i have a image field from the oracle table and it is referred to the blob column. When running the report from oracle apex the report is not displaying and throwing error like
SEVERE [http-nio-8080-exec-5] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [ReportWrapper] in context with path [/jri] threw exception
java.lang.RuntimeException: Error executing SQL statement for:
The above error is occuring if i subsitute blob column in the sql stmt. Suppose if i remove blob column from sql stmt then the report works fine in apex.
Not sure what could be the issue.
Thanks,
I tried changing field expression type within ireport, but nothing work when running from oracle apex, as it keeps complaining about error in the sql stmt.

Related

BIRT Viewer randomly fails to open report

I'm running birt 3.7.2 using the Birt Web Viewer and have recently been encountering an error when opening my reports / changing the report parameters.
The error is as follows:
An error occurred while getting report parameters. The specified report: /$$$Transient/acfile20.rptdocument was not found. The report may have expired or may not have been generated.
It also throws a "Get page count failed." error message too. I'm sure it's related to the message above.
It's not happening on all of the different instances of BIRT that I'm using. I've checked what I think is the Transient folder and it is not generating these files, yet sometimes, if I refresh the report, it will run.
What might be causing this?
If you are using either a dynamic parameter or computed column, try disabling either. For example if there is a dynamic parameter make it static, if there is a computed column try removing it.

Display BLOB image from Oracle in Jasper Report

I am trying to show image from BLOB data in Jasper Reports.
Database : Oracle 12c
Jasper : Jasper iReport 4.7.1
I follow these steps :
Change the field class of the column fetched from Database .
Field Class = java.io.InputStream
Add a image in the report and change the expression class to : java.awt.Image
Still doesn't work.
It says that :
Error displaying report page. See the console for details.
Then when I check iReport console it doesn't show anything.
How can I fix this?

BIRT designer beforeOpen() not resolving function in external javascript file for a dataset

Environment:
- BIRT Designer v4.3.2
Problem:
I have a dataset that runs a query to retrieve data from a SQL DB and I'm trying to execute a javascript function that exists in an external js file.
When trying to view the "Output Columns" for that dataset I get the following error:
org.eclipse.birt.data.engine.core.DataException: Fail to execute script in function __bm_beforeOpen(). Source:
------
" + util.evaluateQueryTextExpressions(this); + "
-----
A BIRT exception occurred. See next exception for more information.
ReferenceError: "util" is not defined. (<inline>#1)
The javascript file which contains the function has been added to the report as a resource.
NOTE: When I actually generate the report, everything works fine as intended. However it's only in BIRT designer whenever I try to view "Output Columns" or "Preview Results" do I encounter this problem.
Assistance with resolving this problem will be greatly appreciated.
Thanks!
This is a known limitation. AFAIK there is no workaround, so you just cannot use "Preview results" in your case.

Oracle ADF Image Upload

I tried all the things
Oracle Fusion Developer Guide 11g in working with oracle multimedia types
I am getting error in image upload with Oracle Multimedia Attributes....I am getting error in:
<af:inputfile tag with
<binding:convertOrdDomain bindingRef="{bindings.Image}">
No namespace grammer defined ..help me in detail
You are trying to save the uploaded image in database or application server..? What approach you have tried, if you have some sample code, please post so that we can look into it.

SSRS 2005 - rsDataSourceNotFound error when viewing report through ASP.net ReportViewer

I have uploaded a report and created a datasource in Reporting Services 2005. When I view the report through Report Manager, it runs successfully and displays correctly.
However, when I try to open this report in an ASP.net application which uses a ReportViewer control to view the report, it returns an exception:
Exception Details: Microsoft.Reporting.WebForms.ReportServerException: The data source
'ReportTesting' cannot be found. (rsDataSourceNotFound)
A warning is logged in Event Viewer on the ReportServer server:
**Process information:
Process ID: 3536
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE**
**Exception information:
Exception type: ReportServerException
Exception message: The data source 'ReportTesting' cannot be found. (rsDataSourceNotFound)**
I can't figure out why the report and datasource runs fine through ReportManager but won't when I run it via the RepotrViewer. There are other reports on the server (using different datasources) which are running fine.
Update:
To confuse matters further - If I go untick 'Enable this data source' in ReportManager, the following is returned when I try to run the report in the ReportViewer control:
Exception Details: Microsoft.Reporting.WebForms.ReportServerException:
The report server cannot process the report. A data source associated
with the report has been disabled. (rsDataSourceDisabled)
If I retick the option to 'Enable this data source', it reverts to the original exception.
I finally discovered the cause / resolution!
I opened the .rdl file in a text editor and noticed that the Datasets were still pointing to the previous datasource.
<Query>
<DataSourceName>[old datasource name]</DataSourceName>
I replaced all references to the previous datasource with the new datasource and it now runs successfully.

Resources