REPORT_OBJECT_STATUS error
I get the following error when I run the builtin REPORT_OBJECT_STATUS after running the builtin RUN_REPORT_OBJECT:
'FRM-40738: Argument 1 to builtin REPORT_OBJECT_STATUS cannot be null'
My form is displaying fine with no errors.
My code looks like this:
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status varchar2(20);
BEGIN
repid := FIND_REPORT_OBJECT('tape_log_report');
v_rep := RUN_REPORT_OBJECT(repid);
rep_status := report_object_status(v_rep);
END;
And the properties for my report are as follows:
Execution Mode: Runtime
Communication Mode: Asynchronous
Report Destination Type: screen
Anybody have any idea what is going on here?
Thank you
null
Todd,
Report_object_status and copy_report_object_output should be used only with the reports server. They are not supported by the reports background engine.
When RUN_REPORT_OBJECT is called on a report object with a blank 'Report Server' property, the return value will be NULL.
Thus, when running a report in this manner, the functions REPORT_OBJECT_STATUS
and COPY_REPORT_OBJECT_OUTPUT are not supported (because they require an
id value to be returned from RUN_REPORT_OBJECT.)
Best Regards,
Deepak Rai
Similar Messages
-
FRM-92101 error while running report from a button or menu
Hi All,
I am getting the error FRM-92101 while running report without parameter from a button or menu. I am using Developer Suit 10g. I get the error as it shows there has some configuration problem in my form. Will you please help me anyone how can i solve the problem. My previous forms running very well both with parameter and without parameter.
ArifHello Sir,
Thanks for your cooperation. I have solved my problem by myself. The fact was that, when i tried with the following code which made my report---
SELECT br.bid, br.bname, br.branchtxnstatus, dif.difference
FROM branch br,
(SELECT gladbrid branchid,
SUM
(CASE
WHEN ga.gl_acc_categry IN ('L', 'I')
THEN gd.gladbalance
ELSE -1 * gd.gladbalance
END
) AS difference
FROM glaccount ga, glaccountdetail gd
WHERE ga.glid = gd.gladglid
GROUP BY gladbrid) dif
WHERE dif.branchid = br.bid AND br.branchtxnstatus = :Br_Status
and dif.difference!=0
ORDER BY br.bid;
and the code against the button or menu item is---
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
BEGIN
repid := FIND_REPORT_OBJECT('ASSET');
v_rep := RUN_REPORT_OBJECT(repid);
rep_status := REPORT_OBJECT_STATUS(v_rep);
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
rep_status := report_object_status(v_rep);
END LOOP;
IF rep_status = 'FINISHED' THEN
/*Display report in the browser*/
WEB.SHOW_DOCUMENT('http://192.168.0.21:8889/reports/rwservlet/getjobid'||
substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver90','_blank');
ELSE
message('Error when running report');
END IF;
Clear_message;
END;
Clear_message;
which has shown the error FRM-92101 and didn't run the report.
In that case I have changed the query to run the report. first of all i create a view following the query and build the report using a simple select query. that's etc. my report running fine now.
It is mentioned that there had no error on my codes.
Arif -
Error running 9i reports from forms.
Hi folks,
i am having problems running 9i reports from a form.
i have installed Oracle 9iDS on a Win XP machine with 256 MB RAM and a Pentium 1.4Ghz processor.
i also have a local Oracle 9i database. i have created several reports that i am trying to run from some forms but all efforts to date have failed.
below is some sample code.
declare
v_rid report_object;
v_rjob varchar2(100);
v_rptstatus varchar2(100);
v_jobid varchar2(100);
BEGIN
/*get handle to report object itself*/
v_rid := find_report_object('pbranchlist');
set_report_object_property(v_rid,REPORT_EXECUTION_MODE,BATCH);
set_report_object_property(v_rid,REPORT_DESFORMAT,'htmlcss');
set_report_object_property(v_rid,REPORT_DESTYPE,'CACHE');
set_report_object_property(v_rid,REPORT_SERVER,'repsrv');
set_report_object_property(v_rid,REPORT_COMM_MODE,synchronous);
v_rjob := run_report_object(v_rid);
v_rptstatus := report_object_status(v_rjob);
while v_rptstatus in ('RUNNING','OPENING_REPORT','ENQUEUED') loop
v_rptstatus := report_object_status(v_rjob);
message(v_rptstatus);
end loop;
if v_rptstatus = 'FINISHED' then
/*display report in browser*/
-- web.show_document('http://steve:8888/reports/rwservlet/getjobid'||
-- substr(v_rptsvrjob,instr(v_rptsvrjob,'_',-1)+1)||'?'||'server=repsrv','_blank');
web.show_document('/reports/rwservlet/getjobid'||substr(v_rjob,instr(v_rjob,'_',-1)+1)||'?'||'server=repsrv','_blank');
else
message('error running Report');
end if;
end;
pbranchlist is defined in the form,
repsrv is a report server i installed and explicitly started.
on clicking the button to run the above code, i get a message on the browser status bar as follows
opening http://steve:8888/reports/rwservlet/getjobid11?server=repsrv...
that's it. it stays like that forever and a progress bar showing the status of the operation gets to the halfway mark and stays there for up to 15 minutes.
I eventually halted the operation by clicking the stop button of the browser. The form then becomes totally non-responsive with the mouse indicator changing to the hour-glass shape and a small vertical bar moving rapidly back and forth at the bottom of the form window.
My only recourse then is to explicitly close the browser window.
I have already configured Reports to run in non single sign-on mode by setting SINGLESIGNON=NO in the rwservlet.properties file.
Is there anything i have not done properly?
Thanks in advance.Steve,
can you check the Reports cache directory if the Reports file got created? I would assume yes, but better check.
Frank -
Run_report_object is giving error
I am tryimg to run report. In Form Builder i have a report obgect 'report_numb1'
In my procedure i am using
pl_id paramlist;
report_job_id VARCHAR2(100);
BEGIN
I have some parameters passed to the report
Add_Parameter
(pl_id,
report_job_id := RUN_REPORT_OBJECT
('report_numb1',pl_id) ;
set_report_object_property('report_numb1', report_other, 'paramform=no');
END;
Every time i am getting error " REP-0503- you did not specify the name of a report". But i did. Also i tried with report_id := find_report_object('report_numb1'); - and still the same error.
How can i get around?
Also ho wcan i see explanation of error in Form 9i help.In 6i if in index i typed "frm-1111"- i was able to see error, but here not.
Thanks everyoneHi Galia,
You must create REPORT OBJECT in the form and
create .rdf file from Report builder separately
Here is a sample code, may be it helps.
DECLARE
rep_id NUMBER;
report_id REPORT_OBJECT;
alert_button NUMBER;
rep_parform VARCHAR2(255);
rep_form VARCHAR2(255);
report_status VARCHAR2(255);
rep_job_id VARCHAR2(255);
BEGIN
report_id := FIND_REPORT_OBJECT('REPORT');--Must be created in form under node "Reports"
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME,'C\Oracle..\Reports..\...\report_num1.rdf');
rep_job_id := RUN_REPORT_OBJECT(report_id);
report_status := REPORT_OBJECT_STATUS(rep_job_id);
WHILE report_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
report_status := REPORT_OBJECT_STATUS(rep_job_id);
END LOOP;
IF report_status='FINISHED' THEN
Web.Show_Document('http://server_name/dev60cgi/rwcgi60.exe/getjobid='
||rep_job_id||'?server=Repport_server_name');
ELSE
SET_ALERT_PROPERTY('ERROR',ALERT_MESSAGE_TEXT,'Report failed with error message '||report_status);
alert_button:=SHOW_ALERT('ERROR');
END IF;
END; -
Calling Report from Form Error ORA-06508
Dear all,
I want migrate from Fom6i to Oracle Developer Suite 10g (10.1).
Folder Form = C:\APLIORA\IRS\FORM
Folder Report = C:\APLIORA\IRS\REPORT
I have modified file DEFAULT.ENV
FORMS_PATH=C:\APLIORA\IRS\FORM;C:\APLIORA\IRS\REPORT
i do not have problem call a form from form.
but when i call report from form show error ORA-06508 : PL/SQL : could not find program unit being called ; -6508
my procedure is
PROCEDURE Call_Report IS
list_id ParamList;
BEGIN
list_id := Get_Parameter_List('input_params');
IF NOT Id_Null(list_id) THEN
Destroy_Parameter_List(list_id);
END IF;
list_id := Create_Parameter_List('input_params');
Add_Parameter(list_id,'MAXIMIZE',TEXT_PARAMETER,'YES');
Add_Parameter(list_id,'ORACLE_SHUTDOWN',TEXT_PARAMETER,'YES');
RP2RRO.RP2RRO_RUN_PRODUCT(REPORTS,'TESTREPORT.REP',SYNCHRONOUS,RUNTIME,FILESYSTEM,list_id,null);
END ;
Do I miss something ?
Can any one help ?
ThanksHi,
Thank you for your replay.
The problem have solved.
This my step :
1. Install Windows XP SP2 and Form 10.1.2.0.2 on new pc.
2. Install Jinit version 1.3.1.28.
3. Create report server
3. Compile form, report and pll
4. call report from from with this procedure :
PROCEDURE Call_Report (vFILENAME varchar2) IS
report_id Report_Object;
ReportServerJob VARCHAR2(100);
vc_rep_status VARCHAR2(100);
repsvr varchar2(21) := 'myserv';
userid VARCHAR2(100);
pass VARCHAR2(100);
Host VARCHAR2(100);
BEGIN
userid := Get_Application_Property(USERNAME) ;
pass := Get_Application_Property(PASSWORD) ;
Host := Get_Application_Property(CONNECT_STRING) ;
report_id:= find_report_object('REPORT');
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME,vFILENAME||'.jsp');
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,repsvr);
ReportServerJob:=run_report_object(report_id);
vc_rep_status := REPORT_OBJECT_STATUS(ReportServerJob);
WHILE vc_rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED', null)
LOOP
vc_rep_status:=REPORT_OBJECT_STATUS(ReportServerJob);
END LOOP;
IF vc_rep_status='FINISHED' THEN
WEB.SHOW_DOCUMENT('/reports/rwservlet?report='||vFILENAME||'.jsp'||'&userid='||userid||'/'||pass||'@'||Host||'&destype=CACHE&desformat=PDF¶mform=yes','_blank');
ELSE
message ('Report failed with error message '|| vc_rep_status);
END IF;
END;
Ok, but i have another strange error. I will post new thread.
Thank you and regards
Teguh S -
Error when sending report output to printer from Forms 10g
Hi,
I have a simple report that I am running from a form using run_report_object built-in. I can successfully send the report output to a file but when I send the report output to a printer my report is
terminated with report status of 'TERMINATED_WITH_ERROR'. I am using the default forms service and reports server that comes with the forms builder. How do I specify the reports server to user my default network printer ?Following is the code that runs my report.
Thanks,
Anna
PROCEDURE SEND_TO_PRINTER IS
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(50);
rep_server system_variables.reports_server%type;
alldone exception;
BEGIN
select reports_server
into rep_server
from system_variables;
if rep_server is null then
msg_alert('Error getting the reports server name', 'I', FALSE);
raise alldone;
end if;
:ctrl.run_report_errors := 'N';
repid := find_report_object('REP_OBJ1');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,rep_server);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
IF :ctrl.rg_print = 'P' THEN
--Send the output to printer.
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,PRINTER);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'dflt');
ELSIF :ctrl.rg_print = 'R' THEN
--Rich Text Format
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,FILE);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'rtf');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESNAME,:ctrl.filename);
END IF;
v_rep := RUN_REPORT_OBJECT(repid);
rep_status := REPORT_OBJECT_STATUS(v_rep);
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
rep_status := report_object_status(v_rep);
END LOOP;
IF rep_status = 'FINISHED' THEN
null;
ELSE
:ctrl.run_report_errors := 'Y';
msg_alert('Error when running report.' || rep_status, 'I', FALSE);
END IF;
EXCEPTION
when no_data_found then
msg_alert('Error getting the reports server name', 'I', FALSE);
when alldone then
null;
END;If you use Windows the user that runs the reports server is usually LocalSystem. Check this in the Windows Services panel.
LocalSystem has no printer access. To be able to print, you have to use a real domain user that has access to the printer. So, change the Log on properties in the Services panel. -
Error - Printing a report directly to printer
Hi,
i'm using oracle forms 9i and i'm trying to print a report directly to printer. I using the code above:
SET_REPORT_OBJECT_PROPERTY(ReportId,REPORT_DESFORMAT,'PDF');
SET_REPORT_OBJECT_PROPERTY(ReportId,REPORT_SERVER,GetReportTnsName);
IF ReportDesType = 'CACHE' THEN
SET_REPORT_OBJECT_PROPERTY(ReportId,REPORT_DESTYPE,CACHE);
ReportServerJob:=RUN_REPORT_OBJECT(ReportId, PList);
rep_status := report_object_status(ReportServerJob);
IF rep_status=âFINISHEDâ THEN
JobId := substr(ReportServerJob,length(GetReportTnsName)+2,length(ReportServerJob));
WEB.SHOW_DOCUMENT ('/reports/rwservlet/getjobid'||JobId||'?server='||GetReportTnsName,'_blank');
ELSE
message ('Errorâ);
END IF;
-- logic for sending report directly to printer
ELSIF ReportDesType = 'PRINTER' then
SET_REPORT_OBJECT_PROPERTY(ReportId,REPORT_DESTYPE,PRINTER);
SET_REPORT_OBJECT_PROPERTY(ReportId,REPORT_DESNAME,:parameter.p_print);
ReportServerJob:=RUN_REPORT_OBJECT(ReportId, PList);
rep_status := report_object_status(ReportServerJob);
IF rep_status=âFINISHEDâ THEN
message ('Report sent to printer successfully');
ELSE
--handle errors
message ('Errorâ);
END IF;
end if ;
i get this error :
REP-50157: Erro no envio do ficheiro para a impressora lp65. Sair com o código de erro 64
NEED HELP !!
Regards,The printer has to be known on the server where the Reports service runs.
Also, the user who runs the Reports service has to have access to that printer. If you are running on Windows, Reports Service runs as Local system by default. Change that to a real (domain) user, who has access to the printer. -
Error while using jump developer desktop
Buildfile: J:\Porting_WorkSpace\HelloWorld_jump_0\SonyEricsson J300\_default\RIM Blackberry 8310\ant\build.xml
JumpEngineInit:
[echo] ============================================================================
[echo] Starting Jump for HelloWorld [SonyEricsson J300 -> RIM Blackberry 8310]
[echo] ============================================================================
[jump-engine-init] Jump event has been logged
[null] Copying 1 file to J:\Porting_WorkSpace\HelloWorld_jump_0\SonyEricsson J300\_default\RIM Blackberry 8310\jump.context\packagingContext
Time: 5.72s
[delete] Deleting 1 files from J:\Porting_WorkSpace\HelloWorld_jump_0\SonyEricsson J300\_default\RIM Blackberry 8310\weaved-src
[copy] Copying 1 file to J:\Porting_WorkSpace\HelloWorld_jump_0\SonyEricsson J300\_default\RIM Blackberry 8310\jump.context\sourceContext
[copy] Copying 2 files to J:\Porting_WorkSpace\HelloWorld_jump_0\SonyEricsson J300\_default\RIM Blackberry 8310\jump.context\sourceContext
ResourceJumplets:
[jumplet-execute] Import Target Device Libraries (rev 7)
[jumplet-execute] Connected to service at: http://services.tirajump.com/
Overriding previous definition of reference to eclipse.ant.targetVector
init:
build:
[echo] building 2FA03D635AE5EC98647CD9231118FBD10DD7FEB: C:\Documents and Settings\Administrator\.tirawireless\jump\jumplets-cache\2FA03D635AE5EC98647CD9231118FBD10DD7FEB\7\build.xml
[Import Target Device Libraries] C:\Documents and Settings\Administrator\.tirawireless\jump\jumplets-cache\2FA03D635AE5EC98647CD9231118FBD10DD7FEB\7\TargetLib
[Import Target Device Libraries] C:\Program Files\Tira Wireless\Jump Developer Desktop\eclipse\plugins/com.tirawireless.jumpdesktop.platform.sdk_4.1.0.142\device_stubs
[Import Target Device Libraries] Executing Import Target Device Libraries
[Import Target Device Libraries] Jumplet: [Import Target Device Libraries], Execution SUCCEEDED, Time: 0 seconds
[jumplet-execute] Modify Icon (rev 0)
Overriding previous definition of reference to eclipse.ant.targetVector
init:
build:
[echo] building 658C57EA51966AD0728D0660118EBB1C648720F: C:\Documents and Settings\Administrator\.tirawireless\jump\jumplets-cache\658C57EA51966AD0728D0660118EBB1C648720F\0\build.xml
[Modify Icon] Executing Modify Icon
[Modify Icon] Interpolation in DB: bilinear
[Modify Icon] Jumplet: [Modify Icon], Execution SUCCEEDED, Time: 0.02 seconds
ResourceToSourceTransition:
SourceJumplets:
[jump-weaver-init] Initializing Jump Weaver port: 20080 timeout: 300
[jump-weaver-init] adding to JumpPlatform.Plugin.classpath: C:\Program Files\Tira Wireless\Jump Developer Desktop\eclipse\plugins\com.tirawireless.jumpdesktop.platform.sdk_4.1.0.142\device_stubs\cldc11.zip
[jump-weaver-init] adding to JumpPlatform.Plugin.classpath: C:\Program Files\Tira Wireless\Jump Developer Desktop\eclipse\plugins\com.tirawireless.jumpdesktop.platform.sdk_4.1.0.142\device_stubs\midpapi20.zip
[jump-weaver-init] adding to JumpPlatform.Plugin.classpath: C:\Program Files\Tira Wireless\Jump Developer Desktop\eclipse\plugins\com.tirawireless.jumpdesktop.platform.sdk_4.1.0.142\device_stubs\mmapi.zip
[jump-weaver-init] adding to JumpPlatform.Plugin.classpath: C:\Program Files\Tira Wireless\Jump Developer Desktop\eclipse\plugins\com.tirawireless.jumpdesktop.platform.sdk_4.1.0.142\device_stubs\wma.zip
[jump-weaver-init] adding to JumpPlatform.Plugin.classpath: C:\Program Files\Tira Wireless\Jump Developer Desktop\eclipse\plugins\com.tirawireless.jumpdesktop.platform.sdk_4.1.0.142\device_stubs\jsr184.zip
[jump-weaver-init] Connecting to weaver attempt 1
[jump-weaver-init] Time: 3.38s
[jumplet-execute] Nokia sound to MIDP 2.0 Implementation (rev 6)
Overriding previous definition of reference to eclipse.ant.targetVector
init:
[mkdir] Created dir: C:\Documents and Settings\Administrator\.tirawireless\jump\jumplets-cache\2FA03D635AE5EC98429F61DA110B27B63578000\6\antbin
build:
[echo] building 2FA03D635AE5EC98429F61DA110B27B63578000: C:\Documents and Settings\Administrator\.tirawireless\jump\jumplets-cache\2FA03D635AE5EC98429F61DA110B27B63578000\6\build.xml
[javac] Compiling 2 source files to C:\Documents and Settings\Administrator\.tirawireless\jump\jumplets-cache\2FA03D635AE5EC98429F61DA110B27B63578000\6\antbin
[jar] Building jar: C:\Documents and Settings\Administrator\.tirawireless\jump\jumplets-cache\2FA03D635AE5EC98429F61DA110B27B63578000\6\2FA03D635AE5EC98429F61DA110B27B63578000.jar
[Nokia sound to MIDP 2.0 Implementation] Executing Nokia API using Midp 2 impl
[Nokia sound to MIDP 2.0 Implementation] Jumplet: [Nokia sound to MIDP 2.0 Implementation], Execution SUCCEEDED, Time: 0.47 seconds
[jumplet-execute] Nokia UI to MIDP 2.0 Implementation (rev 7)
Overriding previous definition of reference to eclipse.ant.targetVector
init:
[mkdir] Created dir: C:\Documents and Settings\Administrator\.tirawireless\jump\jumplets-cache\2FA03D635AE5EC98569C1795112244638067B8A\7\antbin
build:
[echo] building 2FA03D635AE5EC98569C1795112244638067B8A: C:\Documents and Settings\Administrator\.tirawireless\jump\jumplets-cache\2FA03D635AE5EC98569C1795112244638067B8A\7\build.xml
[javac] Compiling 2 source files to C:\Documents and Settings\Administrator\.tirawireless\jump\jumplets-cache\2FA03D635AE5EC98569C1795112244638067B8A\7\antbin
[jar] Building jar: C:\Documents and Settings\Administrator\.tirawireless\jump\jumplets-cache\2FA03D635AE5EC98569C1795112244638067B8A\7\2FA03D635AE5EC98569C1795112244638067B8A.jar
[Nokia UI to MIDP 2.0 Implementation] Executing Nokia UI to MIDP2.0 impl
[Nokia UI to MIDP 2.0 Implementation] Jumplet: [Nokia UI to MIDP 2.0 Implementation], Execution SUCCEEDED, Time: 0.19 seconds
[jumplet-execute] Key Mapping (rev 12)
Overriding previous definition of reference to eclipse.ant.targetVector
init:
build:
[echo] building 2FA03D635AE5EC9855560CB4110E06C1C647FF8: C:\Documents and Settings\Administrator\.tirawireless\jump\jumplets-cache\2FA03D635AE5EC9855560CB4110E06C1C647FF8\12\build.xml
[Key Mapping] Executing Key Mapping
[Key Mapping] Could not map reference device: Key_EndCall
[Key Mapping] Could not map reference device: Key_Send
[Key Mapping] Could not map reference device: RightSoftKey
[Key Mapping] Could not map reference device: LeftSoftKey
[Key Mapping] Could not map reference device: Key_2
[Key Mapping] Jumplet: [Key Mapping], Execution SUCCEEDED, Time: 1.45 seconds
SourceToBytecodeTransition:
[copy] Copying 12 files to J:\Porting_WorkSpace\HelloWorld_jump_0\SonyEricsson J300\_default\RIM Blackberry 8310\weaved-src
Overriding previous definition of reference to JumpPlatform.app.compile.classpath
[javac] Compiling 10 source files to J:\Porting_WorkSpace\HelloWorld_jump_0\SonyEricsson J300\_default\RIM Blackberry 8310\jump.context\bytecodeContext
BytecodeJumplets:
BytecodeToPackagingTransition:
[jump-package] **************************************************************
[jump-package] * Antenna 0.9.15 initialized for project "Jump" *
[jump-package] * Using Sun Wireless Toolkit 2.5 (CLDC-1.1; MIDP-2.0) *
[jump-package] **************************************************************
[jump-package] Building jar: J:\Porting_WorkSpace\HelloWorld_jump_0\SonyEricsson J300\_default\RIM Blackberry 8310\jump.context\packagingContext\HelloWorld-RIM-Blackberry-8310.jar
[jump-package] Updating JAD file J:\Porting_WorkSpace\HelloWorld_jump_0\SonyEricsson J300\_default\RIM Blackberry 8310\jump.context\packagingContext\HelloWorld-RIM-Blackberry-8310.jad
[jump-package] Removing Ant-Version from manifest
[jump-package] Removing Created-By from manifest
[jump-package] MIDlet-Jar-URL:HelloWorld-RIM-Blackberry-8310.jar
[jump-package] MIDlet-Jar-Size:12986
PackagingJumplets:
[jumplet-execute] Obfuscation (rev 10)
Overriding previous definition of reference to eclipse.ant.targetVector
init:
build:
[echo] building 2FA03D635AE5EC981A3CAF81106FCB092B7FE3: C:\Documents and Settings\Administrator\.tirawireless\jump\jumplets-cache\2FA03D635AE5EC981A3CAF81106FCB092B7FE3\10\build.xml
[Obfuscation] Proguard Obfuscator: proguard39.jar
[Obfuscation] Executing Obfuscation
[exec] ProGuard, version 3.9
[exec] Reading program jar [J:\Porting_WorkSpace\HelloWorld_jump_0\SonyEricsson J300\_default\RIM Blackberry 8310\jump.context\packagingContext\HelloWorld-RIM-Blackberry-8310.jar]
[exec] Reading library zip [C:\Program Files\Tira Wireless\Jump Developer Desktop\eclipse\plugins\com.tirawireless.jumpdesktop.platform.sdk_4.1.0.142\device_stubs\cldc11.zip]
[exec] Reading library zip [C:\Program Files\Tira Wireless\Jump Developer Desktop\eclipse\plugins\com.tirawireless.jumpdesktop.platform.sdk_4.1.0.142\device_stubs\midpapi20.zip]
[exec] Reading library zip [C:\Program Files\Tira Wireless\Jump Developer Desktop\eclipse\plugins\com.tirawireless.jumpdesktop.platform.sdk_4.1.0.142\device_stubs\mmapi.zip]
[exec] Note: duplicate definition of library class [javax.microedition.media.TimeBase]
[exec] Note: duplicate definition of library class [javax.microedition.media.protocol.DataSource]
[exec] Note: duplicate definition of library class [javax.microedition.media.control.ToneControl]
[exec] Note: duplicate definition of library class [javax.microedition.media.control.VolumeControl]
[exec] Note: duplicate definition of library class [javax.microedition.media.Control]
[exec] Note: duplicate definition of library class [javax.microedition.media.Controllable]
[exec] Note: duplicate definition of library class [javax.microedition.media.Manager]
[exec] Note: duplicate definition of library class [javax.microedition.media.MediaException]
[exec] Note: duplicate definition of library class [javax.microedition.media.Player]
[exec] Note: duplicate definition of library class [javax.microedition.media.PlayerListener]
[exec] Reading library zip [C:\Program Files\Tira Wireless\Jump Developer Desktop\eclipse\plugins\com.tirawireless.jumpdesktop.platform.sdk_4.1.0.142\device_stubs\wma.zip]
[exec] Reading library zip [C:\Program Files\Tira Wireless\Jump Developer Desktop\eclipse\plugins\com.tirawireless.jumpdesktop.platform.sdk_4.1.0.142\device_stubs\jsr184.zip]
[exec] Note: there were 10 duplicate class definitions.
[exec] Error: You have to specify '-keep' options for the shrinking step.
[exec] Result: 1
[Obfuscation] Jumplet: [Obfuscation] FAILED: Obfuscator could not create a new JAR
[Obfuscation] com.tirawireless.jumpdesktop.platform.sdk.exceptions.JumpProcessException: Obfuscator could not create a new JAR
[Obfuscation] at com.tirawireless.jumplets.obfuscators.AbstractObfuscator.cleanup(AbstractObfuscator.java:64)
[Obfuscation] at com.tirawireless.jumplets.obfuscators.Proguard.cleanup(Proguard.java:107)
[Obfuscation] at com.tirawireless.jumplets.Obfuscator.jumpletExecute(Obfuscator.java:155)
[Obfuscation] at com.tirawireless.jumpdesktop.platform.core.ant.task.JumpletExecuteTask.executeJumplet(JumpletExecuteTask.java:452)
[Obfuscation] at com.tirawireless.jumpdesktop.platform.core.ant.task.JumpletExecuteTask.execute(JumpletExecuteTask.java:276)
[Obfuscation] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[Obfuscation] at org.apache.tools.ant.Task.perform(Task.java:364)
[Obfuscation] at org.apache.tools.ant.Target.execute(Target.java:341)
[Obfuscation] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[Obfuscation] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[Obfuscation] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[Obfuscation] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[Obfuscation] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[Obfuscation] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[Obfuscation] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
[Obfuscation] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
[Obfuscation] cleanup executed
[Obfuscation] Jumplet: [Obfuscation], Execution FAILED: Obfuscator could not create a new JAR, Time: 1.34 seconds
BUILD FAILED
J:\Porting_WorkSpace\HelloWorld_jump_0\SonyEricsson J300\_default\RIM Blackberry 8310\ant\build.xml:315: com.tirawireless.jumpdesktop.platform.sdk.exceptions.JumpProcessException: Obfuscator could not create a new JAR
Total time: 18 seconds
Plz help me to fix this error.....
Thanks
MRajDear Rosrio:
I have found my default Report Server Name by
http://host:port/reports/rwservlet/getserverinfo
I replace the host name with my Machine Name from where I am executing the Web Application.
I have used following coding to invoke report on web
DECLARE
report_id Report_Object;
ReportServerJob VARCHAR2(100);
vc_rep_status VARCHAR2(100);
vjob_id VARCHAR2(100);
repsvr varchar2(25) := 'rep_najam-abdali_ora10g';
BEGIN
report_id:= find_report_object('REPORT1');
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,file);
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESNAME,'rpout1.html');
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESFORMAT,'HTMLCSS');
SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,repsvr);
ReportServerJob:=run_report_object(report_id);
vjob_id := substr(reportserverjob,length(repsvr)+2);
vc_rep_status := REPORT_OBJECT_STATUS(ReportServerJob);
WHILE vc_rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED', null)
LOOP
vc_rep_status:=REPORT_OBJECT_STATUS(ReportServerJob);
END LOOP;
IF vc_rep_status='FINISHED' THEN
WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'|| vjob_id ||'?server='||repsvr,'_blank');
ELSE
message ('Report failed with error message '|| vc_rep_status);
END IF;
END;
I think it is very similar to your coding.
After invoking the report I found the following value appeared on the Left Top side of every report.
;background:#000000"
Does anybody have idea about it.
Best Regards,
Hassan -
Error in passing parameters from Form to Report
Hi All
I am using 9ids
I want to run report from a form
From one procedure as
vc_runformat:= 'htmlcss'; vc_reportserver:=:Global.repsrv;
set_report_object_property(rep_id,REPORT_EXECUTION_MODE,BATCH);
set_report_object_property(rep_id,REPORT_COMM_MODE,SYNCHRONOUS);
set_report_object_property(rep_id,REPORT_DESTYPE,CACHE);
set_report_object_property(rep_id,REPORT_DESFORMAT,vc_runformat);
set_report_object_property(rep_id,REPORT_SERVER,vc_reportserver);
set_report_object_property(rep_id,REPORT_OTHER,'comp_code='||:global.vc_comp_code||' vc_name='||cust_name||' inv='||inv||' invoice_no='||inv_no||' invoice_date='||inv_dt||' Paramform=no');
vc_reportserverjob:=RUN_Report_Object(rep_id);
vjob_id:=substr(vc_reportserverjob,length(vc_reportserver)+2,length(vc_reportserverjob));
vc_rep_status :=REPORT_OBJECT_STATUS(vc_reportserverjob);
if vc_rep_status='FINISHED' then
web.show_document('/reports/rwservlet/getjobid'||vjob_id||'?
server='||vc_reportserver,'_blank');
else
set_alert_property('alert_ok',alert_message_text,'Report failed with error message '||vc_rep_status||' !');
al:=show_alert('alert_ok');
end if;
END;
Report does not run
now what i have found while rnd that
when i pass a lot of userdefined argument
it gives error.
and if passed one,two,three userdefined argument than it works.
in this example only
when i passed
inv='10016'
dt='06-09-2003'
inv_no='010016'
comp_code='01'
vc_name='PRODIMPEX'
with these reports run fines but
when i increase name data with one caharacter also it gives error
say
vc_name='PRODIMPEXR'
report does not run.
vc_name in report has character type with length 100
but a lot of argument is to be passed more.
I have also checked variable length. its fine
i think there would be some setting in some report system file having the length of parameters
which can be passed.
please help me if u know this.
thanks in advanceHi,
this sounds familiar. Didn't you post exactly the same question a couple of weeks ago ? Don't remember what I replied to you, possibly to use varchar2 instead of character and give it a try. If this doesn't work, I remember that there is a way to use serverside command files for common parameters that needs to be passed. At least I can not find any bug filed against this. If the behavior doesn't change to teh better I therefore suggest to talk to customer support and file a bug.
Frank -
ERROR WHILE RUNNING REPORT THROUGH FORMS.....!
hi all,
ive designed one form in Forms 9i...I'm tryin to run report through a Push button .....report is running well in paper layout through report builder 9i...The problem I'm facing is dat when i pressed button it is giving me error initially as FRM-41214 cannot run report and after that FRM-40735 When button pressed unhandled exception ora-06502.....What could go wrong??... Ive started OC4J instance ....created report object in object nevigator as well and defined basic properties for diff.parameters HTMLCSS,CACHE..etc.,mentioned report path in complete i.e.c:\reports\genbill.rdf ...Can anybody help me out ??? Thnx.!
-----------------------CODE ON BUTTON----------------------------------
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
BEGIN
repid := FIND_REPORT_OBJECT('REPORT5');
v_rep := RUN_REPORT_OBJECT(repid);
rep_status := REPORT_OBJECT_STATUS(v_rep);
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
rep_status := report_object_status(v_rep);
END LOOP;
IF rep_status = 'FINISHED' THEN
/*Display report in the browser*/
WEB.SHOW_DOCUMENT('<HOSTNAME>:8889/reports/rwservlet/getjobid'||
substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=myrepserver','_blank');
ELSE
message('Error when running report');
END IF;
PAUSE;
END;When a report terminates with an error, REPORT_OBJECT_STATUS returns the value "TERMINATED_WITH_ERROR", which is 21 bytes of data, but rep_status is defined as 20 bytes. The 6502 error is due to the data not fitting the variable.
I recommend wrapping the REPORT_OBJECT_STATUS function with a SUBSTR that limits the data returned to 20 bytes, which will ensure the results fit.
For example:
rep_status := SUBSTR(REPORT_OBJECT_STATUS(v_rep), 1, 20); -
Display the report server error in the application
i have got an error while running the report from the application , the status of the report was "TERMINATED_WITH_ERROR" which come from the "REPORT_OBJECT_STATUS" built in function ,
when i go to the application server to the failed jobs i got :
Terminated with error: REP-1401: ??? ??? ???? ?? PL/SQL: 'cf_1formula'.
ORA-01403: ?? ??? ?????? ??? ??? ??????
the problem is i wan to display to the end user this error ORA-01403
not only "TERMINATED_WITH_ERROR" .....
please help me
thanksGive a button in your web page with 'Check status' which on hitting, make an ajax call, to query the status table, and show the status in that page.
Hope this helps -
Error while running report 10g
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(1000);
rep_status VARCHAR2(2000);
BEGIN
repid := find_report_object('REPORT2');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
set_report_object_property(repid, report_comm_mode, 1);
set_report_object_property(repid, report_destype, cache);
set_report_object_property(repid, report_desformat, 'PDF');
set_report_object_property(repid, report_server, 'myserver');
v_rep := run_report_object(repid);
rep_status := report_object_status(v_rep);
WHILE rep_status IN ('RUNNING', 'OPENING_REPORT', 'ENQUEUED')
LOOP
rep_status := report_object_status(v_rep);
END LOOP;
message(rep_status);
IF rep_status = 'FINISHED'
THEN
web.show_document('http://localhost:8889/reports/rwservlet/showjobid' || substr(v_rep, instr(v_rep, '_', -1) + 1)
|| '?server = myserver');
ELSE
message('error while running reports-object ' || error_text);
message(' ');
clear_message;
END IF;
EXCEPTION
WHEN OTHERS THEN
message('error while running reports-object' || error_text );
END;
I have been trying the whole 5 days running this report but it is giving me error, i am making simple report which select all data and display from emp table, please help. Error I am getting is unable to run the report and Terminated_Report.Hi,
Check this link...How to call a report in Forms 10g ?
Hope this works...
Hamid -
Rep-52005 error when running a report from form with parameter form
I am trying to run a report from a web deployed form and this report has a parameter form. I am getting a Rep-52005: The specified key report does not exist in key map file.
I am using Oracle Forms/Reports 10.1.2.0.2. My code is below. The first part works fine where I run a report with no parameter form, but the second part when I have a parameter form gets the about error.
PROCEDURE call_report (
p_report_name VARCHAR2,
p_reportobj_name VARCHAR2 DEFAULT NULL,
p_parameter_list paramlist DEFAULT NULL,
p_parameter_string VARCHAR2 DEFAULT NULL
IS
repid report_object;
v_rep VARCHAR2 (100);
rep_status VARCHAR2 (100);
v_report_url VARCHAR2 (240);
v_interface VARCHAR2 (50);
v_report_parameter VARCHAR2 (1);
vc_user_name VARCHAR2 (100);
vc_user_password VARCHAR2 (100);
vc_user_connect VARCHAR2 (100);
vc_connect VARCHAR2 (300);
v_reportserv VARCHAR2 (30);
v_job_number number;
BEGIN
/* Get the database to run the report against and
find out if the report has any parameters */
SELECT report_parameter_flag
INTO v_report_parameter
FROM program_list
WHERE program_type = 'REPORTS'
AND UPPER (screen_id) = UPPER (p_report_name);
vc_user_name := get_application_property (username);
vc_user_password := get_application_property (password);
vc_user_connect := get_application_property (connect_string);
v_reportserv := 'rep_xxxx_ias10g_home';
v_report_url := 'http://xxxx.state.il.us';
v_job_number := length(v_reportserv) +2;
vc_connect :=
vc_user_name
|| '/'
|| vc_user_password
|| '@'
|| vc_user_connect;
v_interface := get_application_property (user_interface);
IF ( v_interface = 'WEB'
AND v_report_parameter = 'N'
THEN
repid := find_report_object(p_reportobj_name);
set_report_object_property (repid, report_comm_mode, synchronous);
set_report_object_property (repid, report_destype, cache);
set_report_object_property (repid, report_desformat, 'pdf');
-- v_reportserv := get_report_object_property (repid,report_server);
set_report_object_property (repid, report_server, v_reportserv);
set_report_object_property (repid, report_other, p_parameter_string);
v_rep := run_report_object (repid);
rep_status := report_object_status (v_rep);
IF rep_status = 'FINISHED'
THEN
web.show_document (
v_report_url
|| '/reports/rwservlet/getjobid='
|| substr(v_rep,v_job_number)
|| '?server='
|| v_reportserv
,'_blank'
ELSE
message ( rep_status
|| 'Report output aborted');
END IF;
ELSIF ( v_interface = 'WEB'
AND v_report_parameter = 'Y'
THEN
repid := find_report_object (p_reportobj_name);
set_report_object_property (repid, report_comm_mode, synchronous);
set_report_object_property (repid, report_destype, cache);
set_report_object_property (repid, report_desformat, 'pdf');
set_report_object_property (repid, report_server, v_reportserv);
set_report_object_property (
repid,
report_other,
'paramform=yes P_USER_CONNECT='
|| vc_connect
|| ' P_SERVERNAME='
|| v_reportserv
|| ' P_ACTION='
|| v_report_url
|| '/reports/rwservlet'
v_rep := run_report_object (repid);
rep_status := report_object_status (v_rep);
IF rep_status = 'FINISHED'
THEN
web.show_document (
v_report_url
|| '/reports/rwservlet/getjobid='
|| substr(v_rep,v_job_number)
|| '?server='
|| v_reportserv
,'_blank'
ELSE
message ( rep_status
|| 'Report output aborted');
END IF;
ELSE
run_product (
reports,
p_report_name,
synchronous,
runtime,
filesystem,
p_parameter_list,
NULL
END IF;
EXCEPTION
WHEN OTHERS
THEN
message (SQLERRM);
END;
My parameter form comes up and I enter the necessary information and hit submit query button. Then I get the Rep-52005: The specified key report does not exist in key map file.
Any help will be greatly appreciated!!
Shellie BrickerYour code seems to be implementing metalink note 139546.1 - Using Reports parameter forms with RUN_REPORT_OBJECT on the web.
For what I can see, the P_ACTION parameter should end in ?...
i.e.
P_ACTION=http://<hostname.domain:port>/reports/rwservlet?'
set_report_object_property (
repid,
report_other,
'paramform=yes P_USER_CONNECT='
|| vc_connect
|| ' P_SERVERNAME='
|| v_reportserv
|| ' P_ACTION='
|| v_report_url
|| '/reports/rwservlet?'
);If this does not fix your problem, then to troubleshoot further you would have to post the code in your Before Parameter Form trigger of your report.
Hope this helps,
UPDATE:
If the above does not fix your problem, my guess is that report name is not being generated in the hidden runtime values build by the code in the Before Parameter Form trigger.
i.e.
http://localhost:8889/reports/rwservlet?report=&destype=cache&desformat=PDF
The above code will throw error REP-52005: The specified key report does not exist in key map file.
Edited by: Rodolfo Ferrari on Jul 8, 2009 9:43 PM -
Error while running Oracle 9i forms
Dear
First of all, let me know that Oracle 9i Forms is only for web application or we may use it for client server envirnoment.
I installed Oracle 9i Database & Oracle 9i Forms on Windows XP. Connection between Database & forms works properly.
But When I click to run a form, I'm receiving this error.
FRM - 10142 The HTTP Listener is not running on Amfah (my Computer Name) at port 8888. Please start the listener or check your runtime preferences.
Please Help me !!
Waiting for an early replyWhen a report terminates with an error, REPORT_OBJECT_STATUS returns the value "TERMINATED_WITH_ERROR", which is 21 bytes of data, but rep_status is defined as 20 bytes. The 6502 error is due to the data not fitting the variable.
I recommend wrapping the REPORT_OBJECT_STATUS function with a SUBSTR that limits the data returned to 20 bytes, which will ensure the results fit.
For example:
rep_status := SUBSTR(REPORT_OBJECT_STATUS(v_rep), 1, 20); -
REP-300 Error while running report using App Server
Hi,
I am currently trying to run a report using the Application Server.
This report is being called from a form.
I am able to connect to the report server and all configurations seems to be correct.
But when I execute the report from the form, I am getting error "Unable to run report"
When I look at the error message in the Report Server queue, I find
"REP-300 Table or View does not exist.."
But that table does exist in the database.
What could be be the problem ?
Please help.
The code in the form that calls the report is
report_id := FIND_REPORT_OBJECT( report_name );
vc_user_name:=get_application_property(username);
vc_user_password:=get_application_property(password);
vc_user_connect:=get_application_property(connect_string);
vc_connect:=vc_user_name||'/'||vc_user_password||'@'||vc_user_connect;
SET_REPORT_OBJECT_PROPERTY(report_id ,REPORT_OTHER, 'paramform=yes p_user_connect='||vc_connect ||' p_servername=repsrv'||' p_action=<host>/reports/rwservlet?' );
v_rep := RUN_REPORT_OBJECT(report_id, parmlist_id);The report is working perfectly fine when I run it from the Report Builder. I get the correct output.
I am getting this error when I try to run the report through a Report server.
I run the form from the Forms 10g builder. This form has a button "Run Report". When I click on the button the report is run using the Report server.
This is when I get the error.
There are other forms that are also called via the same form. Those work fine. The only difference between those forms and this one is that this one has user parameters passed to it. This one also has an attached library attached to it.
The code in the Form to call the report is
report_id := FIND_REPORT_OBJECT( report_name );
SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_COMM_MODE, SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_EXECUTION_MODE, BATCH);
SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_DESTYPE, FILE);
SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_DESFORMAT, 'pdf');
SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_SERVER, 'rep-vena01-xp');
v_rep := RUN_REPORT_OBJECT(report_id, parmlist_id );
v_jobid := substr( v_rep, length( v_reportserver) + 2, length(v_rep) );
v_repstatus := REPORT_OBJECT_STATUS( v_rep );
IF ( v_repstatus = 'FINISHED' ) THEN
v_url := '/reports/rwservlet/getjobid' || v_jobid || '?server=' || v_reportserver ;
web.show_document( v_url, '_BLANK' );
END IF;
Maybe you are looking for
-
I am having a problem with layers in different browsers. I have a menubar with some drop-down items. Some of these need to fall over other page objects such as GIFs. The problem is that in order for that to render correctly in IE, I have to set the z
-
How to display Live Trace settings in CS3?
I'm on CS3 - I remember before having a horizontal bar across the top showing the tool properties, but I can't figure out how to show that. Particularly for Live Trace - I want to have access to the different tool options - how do I show this at the
-
Reg Creation Position and Otg Unit
Hi Am creating org and positions using FM 'RH_OBJECT_CREATE' and its creating org unit and position ,but when i see in PP01 tcode i can see position very well but for org unit it will show only otype and objid and it not show green arrow
-
I can use this script to click on something on the Dock tell application "System Events" to tell process "Dock" to tell list 1 to click UI element "App Store" is there a script that can do the same thing without having to have "Enable Access for assi
-
Unable to get timer handles for containerId: jboss.j2ee:jndiName=
im trying to access my database thru ejb.......... im using jboss server.......... but while starting the server im getting an error like --"Unable to get timer handles for containerId: jboss.j2ee:jndiName=Statustable,service=EJB" ---- where Statusta