Weired apex export application issue
Very weired problem.
My app works fine in apex3.2.
I exported it to apex 4.0 and there I face following issue without making any change to the apex 3.2 version of the app:
I am assigning some value to an application item in the login process.
When I sign into the workspace and loginto the app and try to display the application item on any page, it shows nothing. But there are some authorization based tabs, which display correctly as expected.
But then when I log out of the app and log back again(while I am still in that workspace), I see the value of the application item. But some tabs disappear.
Any clue?
I tried to debug a lot but ...
Let me narrow down my questions and start again:
USING APEX 4.0
I have custom authentication.
In the login process, code stucture is like this:
declare
begin
custom_login_prc_call();
:some_app_item:='some value';
wwv_flow_custom_auth_std.login();
end;
The problem is that I am not able to pass the value of application item "some_app_item" to another page. I tried to put some debug statements in the login process code. For example, tried to insert the value of this application item to a table and it worked. But when I tried to pass it some other page, I don't see the value of this item.
Is there any situation an application item gets cleared? I think not. Thats why its a global variable.
Any and all suggestions are welcome.
Similar Messages
-
Oracle Apex export application getting access denied when trying to download
DB: 11.2.0.3
Apex: 4.2.2.00.11
Apex Listener: 2.0.3.221.10.13
WLS: 10.3.6.0
Chrome: Version 29.0.1547.76 m
and IE 10.0.9200.16660
I'm the admin of the workspace that has one application. Made a change to the application and went to export the application so I can source control it.
Followed the Export wizard while in the application, hit the Export/Import button and clicked Export. Changed the File Format to "Database", Export Supporting Object Definitions to "No" and left everything else as default. Clicked the Export Application button and get "Application 108 exported" success maessage. Navigate to the Manage Export Repository and I see the exported application labled "f108.sql and I click on it and I get "Access Denied".
Whats the trick? What am I missing?
If I change File Format to "Unix" or "DOS" the file automatically downloads.
Thx,
RussHmm I wonder if it has something to do with:
bug #16760897
http://www.oracle.com/technetwork/developer-tools/apex/application-express/apex-422-known-issues-1940409.html
The bug description mentions ORA-06502, but get_file has a when others exception handler that simply returns "Access Denied".
What do you folks think? -
Hello,
I installed APEX timesheet application from http://www.oracle.com/technetwork/developer-tools/apex/application-express/packaged-apps-090453.html#TIME
It got installed fine, but seems to have lot of bugs.
1. "Add Row" does not work on the timesheet page
2. "Delete" for a row gives weired results.
3. Can't create any admin user and there-after 2 parts of the application can't be seen.
Has anyone faced similar issues, and if YES, is there a fixed version of this application?
regards, YoraHi all,
In response to my previous post, I would like to update that I have been able to generate my required region.
Now the final query is as follows:
DECLARE
v_query varchar2(10000);
v_count number;
BEGIN
select count(*) into v_count from tb_opti_emp_ts where emp_id=:P7_EMPLOYEE and proj_ref=:P7_PROJ_REF and rel_id=:P7_RELEASE_ID;
IF ((:P7_RELEASE_ID is not null) and (v_count>0)) THEN
v_query := 'SELECT b.act_code activities,apex_item.text (1, a.ts_wd1, 10, 10) monday,apex_item.text (2, a.ts_wd2, 10, 10) tuesday,apex_item.text (3, a.ts_wd3, 10, 10) wednesday,apex_item.text (4, a.ts_wd4, 10, 10) thursday,apex_item.text (5, a.ts_wd5, 10, 10) friday,apex_item.text (6, a.ts_wd6, 10, 10) saturday,apex_item.text (7, a.ts_wd7, 10, 10) sunday,apex_item.text (8, a.ts_remarks, 70, 128) remarks from tb_opti_emp_ts a, tb_opmi_proj_act_map b WHERE a.proj_ref = b.proj_ref
AND a.rel_id = b.rel_id
AND a.emp_id = '''||:P7_EMPLOYEE||'''
AND b.rel_id = '''||:P7_RELEASE_ID||'''
AND a.proj_ref = '''||:P7_PROJ_REF||''';';
ELSIF (:P7_RELEASE_ID is null) then
v_query := 'SELECT 1 FROM dual WHERE 1=0';
else
v_query:='select (select act_desc from tb_opmi_act_code a where a.act_code=b.act_code) as activities,apex_item.text(1,null) Monday,apex_item.text(2,null) Tuesday,apex_item.text(3,null) Wednesday,apex_item.text(4,null) Thursday,apex_item.text(5,null) Friday,apex_item.text(6,null) Saturday,apex_item.text(7,null) Sunday,apex_item.text(8,null) Remarks from tb_opmi_proj_act_map b where proj_ref='''||:P7_PROJ_REF||''' and rel_id='''||:P7_RELEASE_ID||''';';
END IF;
return(v_query);
END;
Now I have created a button which have dynamic action as its on click action. Now in the dynamic action I have to write the code for inserting/updating the data in the timesheet table.
I need help with it please its urgent.......... -
Export Application and Static Files
Using Apex 3.2, I use the Export Application utility to move apps from one Environment to another.
In one of the Apps I have a Static file which is only for that specific App, It doesn't seem the import the static file for me.
I have to load thru shared components again in the other the environment.
I'm I missing a step with regards to static files or do I really need to do both steps?
ThanksI can't tell for sure, but - when I tried to include "static files" (such as images?) into my export script (APEXExport, right?), I couldn't find a way to do that. Therefore, speaking from my own experience, that stupid way you described is the only way I know.
It would be nice if someone knows better; at least two of us would benefit from it. -
Hello,
Please, help me!
I need to change "File Character" when I export application with Apex 4.2.1.00.08 version, but this option, is not possible. The ComboBox already select with
"Unicode UTF-8]', but I need "ISO-8859-1 - Europa Ocidental", how can I do change it?
ThanksPlease register for a "real" user account rather than the anonymous user7266483.
You can not change it on the export...this is simply set to whatever is in effect in the DB.
However, it is totally unnecessary to change it on export. If the database into which you need to import the exported application is "ISO-8859-1 - Europa Ocidental", at the time you begin to import, it will default to "ISO-8859-1 - Europa Ocidental". You need to change this to the character set under which it was exported. In this case, it was "Unicode UTF-8".
It does not matter that you export and import in the same character set. It only matters that you correctly set the import to match how it was exported.
-Joe -
KIMYONG : basic Export / Attachment issues 가이드
Purpose
======
이 문서는 Support Analayst / DBA에게 Export /Attachments issues 발생시
조치할수 있는 기본적인 Troubleshooting Guide를 소개하고자 합니다.
Explanations
======
Export Analysis
Turn on export debug,
Go to Help -> Diagnostics -> Examine
Set Block = GLOBAL
Set Field = FND_EXPORT_DEBUG
Set Value = TRUE
Then export and observe the messages that are generated during the export process
Important Parameters.
set serveroutput on
declare
plsql_agent varchar2(200);
web_server varchar2(200);
dad varchar2(200);
gfm_agent varchar2(200);
protocol varchar2(200);
database_id varchar2(200);
jsp_agent varchar2(200);
check_enabled varchar2(200) ;
begin
plsql_agent := fnd_web_config.plsql_agent ;
dbms_output.put_line('PL SQL Agent ->'||plsql_agent);
web_server :=fnd_web_config.web_server ;
dbms_output.put_line('Web Server ->'||web_server);
dad := fnd_web_config.dad ;
dbms_output.put_line('DAD ->'||dad);
gfm_agent := fnd_web_config.gfm_agent ;
dbms_output.put_line('GFM Agent ->'||gfm_agent);
protocol := fnd_web_config.protocol ;
dbms_output.put_line('Protocol ->'||protocol);
database_id := fnd_web_config.database_id ;
dbms_output.put_line('Database Id ->'||database_id);
jsp_agent := fnd_web_config.jsp_agent ;
dbms_output.put_line('JSP Agent ->'||jsp_agent);
check_enabled := fnd_web_config.check_enabled('FND_GFM.GET') ;
dbms_output.put_line('FND_GFM.GET ->'||check_enabled);
end ;
Examining SQL Trace for the sequence of events that happen in the Export process
SQL >alter session set events '10046 trace name context forever, level 12';
Then run the following block of pl/sql code
set serveroutput on
declare
db_file number;
mime_type varchar2(255) :='text/plain' ;
out_string varchar2(32767) :='Just some plain text that is stored' ;
web_server_prefix varchar2(500);
url varchar2(500);
begin
db_file :=fnd_gfm.file_create(content_type =>mime_type,program_name=>'export');
fnd_gfm.file_write_line(db_file,out_string);
db_file :=fnd_gfm.file_close(db_file);
url:=fnd_gfm.construct_download_url(fnd_web_config.gfm_agent,db_file,TRUE);
dbms_output.put_line(url);
end;
Exit the sql plus session and study the sql trace file as being there in USER_DUMP_DEST
$ ls -lrt
Refer to Note # 282806.1 Performance Tuning Approach for Oracle(8.1.6 - 9.2.0.5) on
UNIX for more information on how to obtain sql tracing .
Example of download URL :-
http://finance.sriratu:8001/pls/SR/fndgfm/fnd_gfm.get/776537528/202595/fnd_gfm.tsv
http://aoltest2.idc.oracle.com:8000/pls/VIS/fndgfm/fnd_gfm.get/820067633/298941/Screen_shots.doc
Example of Upload Attachment URL:
http://aoltest2.idc.oracle.com:8000/pls/VIS/OracleSSWA.Execute?
E=%7B!2DAF44968EBBEC83211B5D5F27F58334FBFB2B90E38AD205&P=%7B!BEFD8114A932C86A1548EC73FFCF6EADB4F7826B217EDCE92719B62BDA9FF0AF193DC7BC64A2C60AFC5123B50C8C78F9E6807695ED9A7FE7AE87F8E49E80807223756706B3FC777F645FA5A07C7A467B
http://aoltest2.idc.oracle.com:8000/pls/VIS/OracleSSWA.Execute?
E=%7B!2DAF44968EBBEC83211B5D5F27F58334FBFB2B90E38AD205&P=%7B!BEFD8114A932C86A5525987DB9C8D9785657497306AAE1FD25D1CC352ADF38DFD69C21355096CBC38D285B083D24F261701F5F278E199044D603A5A8B1D588292099782AC4AF3D97E23B95936809D280
To check the row being created in the table FND_LOBS during Export or Attachment
SQL>create table fnd_lobs_bak as
select file_id,file_name from fnd_lobs ;
SQL>select * from fnd_lobs
where file_id not in
(select file_id from fnd_lobs_bak );
SQL>select * from fnd_lobs
where to_char(upload_date,'DD/MM/YYYY')=to_char(sysdate,'DD/MM/YYYY')
Analysis on an Attachment
Help -> Diagnostics -> Examine
Block : DOCUMENT_HEADER
Field : ATTACHED_DOCUMENT_ID
Note down <Value>
SQL>select document_id
from fnd_attached_documents
where attached_document_id=<Value>;
SQL>select media_id
from fnd_documents_tl
where document_id=<document_id>;
SQL>select *
from fnd_lobs
where file_id=<media_id>;
SQL>select *
from fnd_documents_short_text
where media_id=<media_id>;
from fnd_documents_long_text
where media_id=<media_id>;
SQL>select *
from fnd_documents_long_raw
where media_id=<media_id>;
FND_LOBS stores information about all LOBs managed by the Generic File Manager (GFM).
Each row includes the file identifier, name, content-type, and actual data. Each row also
includes the dates the file was uploaded and will expire, the associated program name and
tag, and the language and Oracle characterset.
The file data, which is a binary LOB, is stored exactly as it is uploaded from a client browser,
which means that no translation work is required during a download to make it HTTP compliant.
Therefore uploads from non-browser sources will have to prepare the contents
appropriately (for instance, separating lines with CRLF).
The program_name and program_tag may be used by clients of the GFM for any purpose,
such as striping, partitioning, or purging the table if the program is de-installed.
They are otherwise strictly informative.
These columns and the expiration date are properly set when the
procedure FND_GFM.CONFIRM_UPLOAD is called. If not called, the column
expiration_date remains set, and will eventually be purged by the procedure
FND_GFM.PURGE_EXPIRED.
FND_DOCUMENTS_LONG_RAW stores images and OLE
Objects, such as Word Documents and Excel
spreadsheets, in the database. If the user elects
to link an OLE Object to the document, this table
stores the information necessary for Oracle Forms
to activate the OLE server, and it saves a
bit-mapped image of the OLE server's contents.
If the user does not elect to link an OLE Object,
the entire document will be stored in this table.
FND_DOCUMENTS_LONG_TEXT stores information about
long text documents.
FND_DOCUMENTS_SHORT_TEXT stores information about
short text documents.
To know which Forms provide Attachment feature
SQL>select *
from fnd_attachment_functions
where function_name like '%FND_%';
Examining FND_LOBS tablespace
SQL>select tablespace_name
from dba_tables
where table_name='FND_LOBS';
SQL>select *
from fnd_profile_options_tl
where profile_option_name='FND_EXPORT_MIME_TYPE';
SQL>select a.tablespace_name TABLESPACE_NAME , a.bytes TOTAL_BYTES,
sum(b.bytes) FREE_BYTES , count(*) EXTENTS
from dba_data_files a, dba_free_space b
where a.file_id = b.file_id AND A.TABLESPACE_NAME=<TABLESPACE_NAME>
group by a.tablespace_name, a.bytes
order by a.tablespace_name ;
Examing Profile Option value
SQL>select *
from fnd_profile_options_tl
where profile_option_name='FND_EXPORT_MIME_TYPE' ;
SQL>select b.profile_option_name,level_id,profile_option_value
from fnd_profile_option_values a, fnd_profile_options b
where a.application_id=b.application_id
and a.profile_option_id=b.profile_option_id
and b.profile_option_name in ('FND_EXPORT_MIME_TYPE') ;
Procedure FND_GFM.GET ANALYSIS
http://aoltest2.idc.oracle.com:8000/pls/VIS/fndgfm/fnd_gfm.get/560074272/298951/fnd_gfm.doc
access
SQL>select substr('/560074272/298951/fnd_gfm.doc',instr('/560074272/298951/fnd_gfm.doc','/',1)+1,instr('/560074272/298951/fnd_gfm.doc','/',2)-2) access from dual ;
560074272
file_id
SQL>select substr('/560074272/298951/fnd_gfm.doc',instr('/560074272/298951/fnd_gfm.doc','/',2)+1,(instr('/560074272/298951/fnd_gfm.doc','/',-1)-instr('/560074272/298951/fnd_gfm.doc','/',2)-1)) from dual ;
298951
Profile Options being referenced in the package FND_GFM
FND_EXPORT_MIME_TYPE
FND_NATIVE_CLIENT_ENCODING
Lookup Type Being used in the package FND_GFM
SQL>select tag,lookup_code,meaning
from fnd_lookup_values_vl
where lookup_type='FND_ISO_CHARACTER_SET_MAP';
Reference
========
Note 338651.1 -
SQL Injection threat with APEX developed applications
We are using a tool, HP WebInspect, to scan some of our APEX developed applications for web application security testing and assessment. We are getting some critical and high vulnerabilities identified (see below) and would like to know if someone else has encoutered these and to determine a solution, whether it be a setting/settings within APEX or is it more related to the application and the way it was developed.
Critical:
Possible SQL Injection
File Names: • https://xxx.edu:443/pls/apex/f?p=4550:1:36080644498857::NO:4::&success_msg=If+7
77-777-1911form%40value777.com+exists+in+our+records'+OR%2cwe+will+send+the+workspace+name
s+associated+with+this+email+address.+If+you+are+having+problems+receiving+the+workspace+name
s%2cplease+contact+your+administrator.%2fC34A0EF5494AB92C95AA4D0F7BF52332%2f
• https://busaff-test.utdallas.edu:443/pls/apex/f?p=4550:1:36080644498857::NO:4::&success_msg=If+7
77-777-1911form%40value777.com+exists+in+our+records%2cwe%2bwill%2bsend%2bthe%2bworkspace
%2bnames%2bassociated%2bwith%2bthis%2bemail%2baddress.%2bIf%2byou%2bare%2bhaving%2bprob
lems%2breceiving%2bthe%2bworkspace%2bnames'%2bOR%2cplease+contact+your+administrator.%2fC3
4A0EF5494AB92C95AA4D0F7BF52332%2f
High:
Possible Username or Password Disclosure
File Names: • https://xxx.edu:443/pls/apex/f?p=104:101:1328157658320206:¬ification_msg=Invali
d%20Login%20Credentials/156F2A38AC41E25732821ABED8AA98B6/
• https://xxx.edu:443/pls/apex/f?p=104:101:2360963243212364¬ification_msg=Invali
d%20Login%20Credentials/156F2A38AC41E25732821ABED8AA98B6/You can help us by telling us your first name, putting it into your profile, and by selecting a friendlier handle.
The details you showed indicate no SQL injection possibilites whatsoever. The "Critical" examples also are unrelated to Application Express applications that you may have developed (application 4550 is the login application for the product itself and should rarely be used by end users in production environments).
Scott -
Oracle DB 10g express edition & APEX for application development for free?
Can we use Oracle DB 10g express edition & APEX for application development for free? Are there any license fees?
ThanksHi,
both Oracle DB 10g express edition & APEX for application development is free.
Regards,
Kartik Patel
http://patelkartik.blogspot.com/
http://apex.oracle.com/pls/apex/f?p=9904351712:1 -
Apex Custom Application Behaviour
I've got a Apex custom application that utilizes AJAX. In essence its a custom drop down list within a search bar.
If i login to my workspace and run application the drop down list works. If i try to just login to the application(no workspace login) drop down list doesnt work. I receive no error messages.In Firefox, the javascript console shows these errors when you're not logged in to the development environment and you run your page:
Error: missing ; before statement
Source File: http://apex.oracle.com/pls/otn/wwv_flow_file_mgr.get_file?p_security_group_id=1396442715580038168&p_fname=ac.js
Line: 1, Column: 7
Source Code:
Access Denied
Error: InstallAC is not defined
Source File: http://apex.oracle.com/pls/otn/f?p=17165:10:1221306345298369::NO
Line: 18
I have no more clues.
Scott -
FDM - Scripting for exporting application
Hi
Can you please advise if it is possible to write a script to automate the FDM export (Application export, this would be for the locations, users, maps etc...)
Regards
Edited by: user12990175 on 2010/07/05 11:59 PMI have not seen any scripts be used to automate this process. Keep in mind that an application extract can only be loaded into a fresh FDM application, it cannot be used to merge metadata between two FDM applications. I don't really see much of a purpose to automate this process, it is something that normally should be done manually.
-
HI
some bdy had deleted APPL_TOP/admin ( in Test instance)) .ie admin directory which contains all the files for executing adutilities, how do i recreate this directory please let me knw the ans for this immediately.
I am getting erros like this
Java_top enviornment variable is not set in the environment.
Run Appsora.env or Apps<s_contextname>.env in the environment
bye
JamesDuplicate post (please post only once):
Oracle applications issue
Oracle applications issue -
Exporting application finished with error (when deploying)
When deploying HFM application from EPMA, I get this error from job "Exporting Application ...":
Process Name : dimension_server
Thread : 10
Server : HYPSRV
Detail : An error was encountered while executing the Application Export: Object reference not set to an instance of an object.
In Event Viewer, there are two errors from HyS9BPMA_DimensionServer:
1. [ApplicationExportJob] ERROR Object reference not set to an instance of an object.Exception: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Source: dimension_server
2. There are no results available for job Exporting application htcapp. because an error was encountered while processing the job. See the Job Console or the Event Viewer for more information.Exception:
Because of that, deployment still finish with status "Aborted".
Does anybody know, why is that?
Thanks,
VladoSee BPMA log for more details.
-
Configuring Dad for APEX in Application server 10.2
HI All,
On my application server 10.1.2.0.2. I am trying to create dad for apex which the database (apex 3.0 is installed) is on other server. I created dad in http_server-> Pl/Sql Properties->dads. I added new dad but i am not able to access
using url http://myserver:7777/pls/test. Please help me. I posted same question in Fusion Middleware » Application Server - General but I was told repost here.
Re: HTTP 404 - File not found
ThanksHi Ron,
Thanks you. I tried without prot number then I got HTTP 404 error. I checked my httpd.conf file the ports are
Port 7777
Listen 7777
when it tried http:/myserver:7777 it shows http server page and we have forms on this server every thing is working fine.
error log under Apache/Apache/logs/errror.xxxx
[Thu Jun 7 12:35:00 2007] [error] [client xxx.xxx.xxx.xxx] [ecid: 23412312144900:1
34.233.379.11:6218:0:634513,0] File does not exist: /app/oracle/oraInfra/Apache/Ap
ache/htdocs/pls/test
I have the following error in sql error
ORA-06550: line 20, column 7: PLS-00306: wrong number or types of arguments in call to 'PROCESS_DOWNLOAD' ORA-06550: line 20, column 2: PL/SQL: Statement ignored
Please help me. Any one able to access the APEX from Application server ???
Message was edited by:
james. -
WORKSPACE export not exporting Applications?
When I export my workspace from the admin it doesn't export the applications.
It only exports the following:
-- Company, user group and user export
Any suggestions?Kyle - Exporting a workspace exports the workspace definition, user groups, and user accounts. The Users Guide explains how to export applications but I'm sure you've done that before.
Scott -
We need to cancel Outbound Delivery 1234566 due to a GTS Export License issue.
This delivery was created before the GTS license was complete.
This delivery is for a Military Sales Order 123456 to ABCD for Thales shipped from XYZ
2 Proforma Invoices were created, 123456on 9/18 and 9301154276 and 9/24.
GTS License 100000000000000011 was updated on 9/24. However, the delivery needs to be canceled in order for GTS to assign a Proforma to a license.
The accounting document, F2 Invoice 123456 has been issued but not cleared.
Thanks
SitanshuUse Transaction code /SAPSLL/CL_CP_CUS_EX to display the custom declaration in Customs management. Select the dcoument in change mode. In the menu path, there is an option for 'Cancel' or 'Request Cancellation'. Request cancellation option is used when the declaration has been sent out to authorities for permission and in the meatime, the user decided to cancel..
For assigning the license, use transaction /SAPSLL/LCD_CHANGE in License determination of Compliance..
Maybe you are looking for
-
Is there any way to capture the output of a trnsaction
Hi EXPERTS, i TRIED TO CAPTURE O/P OF TRANSACTION IW3M USING SUBMIT, IT WASNT SUCCESSFUL pLEASE SUGGEST ME SOME OTHER WAY TO DO.
-
OIM 9.1.0 prepare_xl_db script
I am trying to run that script as follows : prepare_xl_db.bat oimd c:\oracle\product\10.2.0 ....etc etc I get an error which says that the ORACLE_HOME C:\oracle\product\10.2.0 is not a valid ORACLE_HOME... My installation directory for Oracle 10.2 is
-
File Content Conversion Problem of not generating empty file
Hi All, i have 3 input text files for my BPM to process. if any of the text file is empty, i need to generate an alert message that the file is empty........but the problem is file adapter does not generate a XML message for the empty text file......
-
Photoshop Image Processor error
I'm trying to resize some images using Bridge (which I've done several times before) but this time, for some reason, it's giving me an error. This is what I'm doing:<br />1) click on large size JPEG.<br />2) under Tools > Photoshop > Image Processor
-
Re: windows server 2012 - winload.exe missing or contains errors
i've noticed mine is ver 4.3 and there's a ver 5 from their website, annoying because it said do i want to update the other day so it did and it seems it didn't bother doing ver 5 and was just a minor update