At the request of application scope of problem.

Hi, I am trying to use the PL/JSON package on my apex application. It has been installed and configured for access public (it may be necessary in different patterns on the DB, in addition to the apex) with this command:

--types
grant execute on json to
public;
create
or replace public synonym json for json;
grant execute on json_list to
public;
create
or replace public synonym json_list for json_list;
grant execute on json_value to
public;
create
or replace public synonym json_value for json_value;
grant execute on json_value_array to
public;
create
or replace public synonym json_value_array for json_value_array;
--packages
grant execute on json_ext to
public;
create
or replace public synonym json_ext for json_ext;
grant execute on json_parser to
public;
create
or replace public synonym json_parser for json_parser;
grant execute on json_printer to
public;
create
or replace public synonym json_printer for json_printer;

And tested with this example from github site:

declare
  obj json;
begin
  obj := json('{"a": true }');
  obj.print;
  --more complex json:
  obj := json('
{
  "a": null,
  "b": 12.243,
  "c": 2e-3,
  "d": [true, false, "abdc", [1,2,3]],
  "e": [3, {"e2":3}],
  "f": {
  "f2":true
  }
}');
  obj.print;
  obj.print(false); --compact way
end;

Now, if I run this script on the console to a different schema, it works fine. If I run it from the console SQL Workshop on the apex of the IDE (such as apex_public_user) works fine too, but if I create an Application process run on demand (which runs as apex_public_user), with the same code and then call the process of javascript like this:

var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=P4_JSON_TEST',0);

alert(get.get());

Just to see the result. And all that I get an exception was thrown:

ORA-06550: line 19, column 13:

PLS-00222: no function with name 'PRINT' exists in this scope

ORA-06550: line 19, column 5:

PL/SQL: Statement ignored

The strange thing is that the exception, it is not been lifted by the declaration of the json object, nor the instantiation, but by printing called function. Which brings back me to my question: who is part of a process of application on request? (or what I'm doing wrong).

Database version:

  • Oracle Database 11 g Release 11.2.0.4.0 - 64 bit Production

Apex version:

  • Oracle Application Express 4.2

Thank you for your time.

Hi DelayLama,

DelayLama wrote:

Hi @Kiran, thanks for the reply, actually I did what recommended you, I copy the example on the web page and I forgot to add the changes, this is the actual code:

  1. declare
  2. JSON obj;
  3. Start
  4. obj: = json ("{"a": true}");
  5. obj. Print;
  6. -more complex json:
  7. obj: = json (')
  8. {
  9. 'a': null,
  10. 'b': 12.243,.
  11. 'c': 2-3.
  12. "d": [true, false, 'abdc', [1,2,3]],.
  13. « e » : [3, {« e2 » : 3}],
  14. "f": {
  15. "f2": true
  16. }
  17. }');
  18. HTP. PRN (obj. Print (false)); -way compact
  19. end;

Also, I tried what @Edwin suggested, but the problem persists.

The obj.print returns a string? I doubt it because it is a wrapper for dbms_output. I think that, as obj.print is scheduled to run only in kind of SQL Developer more/SQL environments.

In the context of Oracle APEX, you write a process on demand Application and he expects you to return a string. Try the simple example to build the string json in a variable and return that, mentioned above and let me know if it works.

Kind regards

Kiran

Tags: Database

Similar Questions

  • How to transfer values to the popup while the bean in application scope?

    Hi all

    I use JDeveloper 11.1.1.4

    My scenario is that I have a < af:popup > with a component of < af:outputText >.

    I need pass values of output text dynamically according to the scenarios.

    My grain of support is application scope . So I'm not able to pass values using get and methods.

    My Design as,

    < af:popup id = "p1" contentDelivery = "lazyUncached" >

    < af:outputText value = "#{managedBean.getDynamicText}" id = "ot1" / > "

    < / af:popup >

    Now I run the application I'm not get all values in text during debugging output, I am able to set the value, but it didn't reflect on the page.

    How to transfer values to the popup while the bean in application scope?

    Thank you...

    At the bean, why don't you set the value to a variable pageflowscope and point the outputtext popup to the pageflowscope variable?

    () .getpageflowscope, set AdfFacesContext.getCurrentInstance ("nomvar", value);


    Thank you

    Alisson

  • Loading in click - once the Application OR assembly problems

    I created an application to measure the current consumption of a device in Visual Studio 2012. I built a library for the National Instruments USB-6008 and added the dll from C:\Program Files (x 86) \National Instruments\MeasurementStudioVS2012\DotNET\Assemblies\Current, which is 9.9. Everything went well on my dev machine, so I pushed all the changes on the production server, which is packaged as a click - once the app.

    On the machine running the real click - once the application, I downloaded and installed the fir driver 9.9 from here: http://www.ni.com/download/ni-daqmx-9.9/4707/en/. When the request arrives at the point where it measures the current consumption, I get the error:

    System.BadImageFormatException: Could not load file or assembly 'NationalInstruments.DAQmx, Version=9.9.45.39, Culture=neutral, PublicKeyToken=4febd62461bf11a4' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    File name: 'NationalInstruments.DAQmx, Version=9.9.45.39, Culture=neutral, PublicKeyToken=4febd62461bf11a4'
    

    What I am doing wrong?

    The solution I found to this problem is to install the samples for Measurement Studio. Don't know why it has to be installed on the computer that runs the Clickk - once the App if.

  • UCCX 10.6 - Error Message: "the request to open a session in the Unified Cisco CCX application server has expired. Please make sure your system is online and try again"

    Hi guys,.

    My client has a solution with UCCX 10.6 and the system presented today, in the morning (08:00 more or less) followed the error message: "the request to open a session in the Unified Cisco CCX application server has expired. Please make sure your system is online and try again." After a minute the system back to work without nothing action. I saw the newspapers MIVR and not identify the possible cause of the problem.

    Can I help me, please

    Thank you

    Wilson

    These newspapers are not in a readable format. Look for something like lost connection

    Concerning

    Deepak

  • The request to connect to the Cisco Unified CCX application server has expired.

    Hello community Cisco!

    We currently have some question about the CAD. Several officers receive a timed mistake when they connect in CAD. The scenario is like this:

    1. agent tried to connect and receive an error message:

    "The request to connect to the server to application Cisco Unified CCX timed out. Please make sure your system is online and try again.

    2 agent hit retry and an error message is displayed:

    "Another agent has connected with the same extension. Your agent's office will sign, and then the application closes. »

    3. agent hit the OK and try to connect again, another error message appears:

    "The specified ID is already connected to an extension. You want to disconnect the ID so you can connect? »

    After continuing to try, agent is properly connected. However, the problem is intermittent and occurs on most of the agents. Please see accessories picture for reference.

    In addition, there was once the CUCM GUI is unresponsive to access (intermittent), although the ping on the server is ok.

    The system version and other info:

    * 9.1.1.20000 - 5 CUCM

    * UCCX 9.0.2.11003 - 44

    * LDAP is NOT used to connect to the CAD and the phone.

    Hope you can help me. Thank you!

    -Kenneth

    There was also, once the CUCM GUI is unresponsive to access (intermittent)

    This is the main reason for questions that your agents are faced to the it. If access to CUCM GUI is still slow, then restart the tomcat service using the service utils restart Tomcat Cisco of CLI and check whether or not it solves the problem.

    Preferably, I restart tomcat service on all servers of CM and then check.

    Concerning

    Deepak

  • Translations of the apex: publish application translated gives the error "error editing or requests. (Rank 1) »

    Hello

    After seeding and the translation of our application, we receive an error trying to publish a translated application.

    The error is: "error editing or requests. (Rank 1) ».

    We are currently working in oracle 11.2 and apex 4.2.2.00.11

    How can we get more details about this error, then
    can we start looking for a solution?

    I deleted the translations for our application in the apex tables ' APEX_040200.WWV_FLOW_DYNAMIC_TRANSLATIONS$ ' and de-seeded and publishes the application again, but I always attack got the same error.

    It was just to test that the error was not caused by special characters in our translated articles. I won't avoid all delete and start all over with the translation.

    I also tried to copy our request for a new application, translation mappings have been copied, but the translations himself does not seem to be copied.

    I've de-seeded and published the translation in any case, and there is no problem.

    Kind regards

    Hello

    I just wanted you to know that I have found that the cause of the error and maybe this solution can help others.

    Instead of seeding and publication via screens Apex I used a script to seed and to publish, the script uses the procedure 'wwv_flow_translation_utilities.seed_and_publish '.

    After you run this script, there are an error more detailed where I could work on, the error was "ORA-20001: error when executing wwv_flow_copy: WWV_FLOW_STEP_ITEMS > ORA-02291: Integriteitsbeperking (APEX_040200.WWV_FLOW_STEP_ITEMS_PLUG_FK) geschonden - bovenliggende key is niet found.»

    After digging in the elements and ankles, I found that an article in which 137 request was bound to one region of another application 136.

    How this has happened today is still a question mark, but change the region of this element to a region of the same application solved this problem.

    I had to change it by using the function "Modify all" because to go into the details of this element makes apex go into error mode.

    Concerning

  • This Application do not support the requested display protocol - application on the view 6 Horizon Pools

    Hi all

    I am happy to report that I had a positive experience the 5.3 to Horizon view 6 view upgrade last night.  With PCoIP RDS Server connection works like a charm.  However, I get the following error message when you try to access any application that I published in the Admin to view:

    This Application does not support the requested display protocol

    I tried many applications and they all cause the same error.  Any ideas?

    I solved this problem.  Given that I've improved 5,3-6, closed have already been created for me (because I was already using a few RDS servers).  Although I left the default as RDP Protocol, I chose the option allowing users to choose PCoIP or RDP (AFAIK, publishing applications cannot run on PCoIP).  However, it is not enough.  Please make sure that the default protocol is PCoIP.

    To explain further: I have a connection standard RDS users at all as a Server Terminal Server Services, except that they use the view Client and RDP Protocol.  I'm not changing it after the upgrade, so it would not effect all users who have not upgraded to the 3.0 client.  However, I would like to publish some of the applications of this same server, instead of spinning upward another server RDS only for applications.

    In this scenario, the only way to achieve this is to make the default connection protocol PCoIP.  If left like RDP, apparently the application attempts to use RDP as the connection instead of PCoIP Protocol.

  • Problem on the weblogic server application deployment

    Nice day

    I had one job the next on Oracle WebCenter forum, Thread but it seems the problem with weblogic. weblogic Server deployment:

    *Re: cannot record contained in the Complutense University of MADRID through servlet depolyed on weblogic server

    All of the Suggestions.

    Concerning

    Dear,
    The problem is resolved. It's a delicate question.

    The type of method in my jsp page was 'post'

    *

    *

    This is what is written in Netbeans and deployed to the Glassfish server.

    When a war file created and deployed on weblogic server and the parameters obtained with the value null of the application; the request had the value zero. This is because weblogic seems to read the type of method that is case-sensitive. When I change post everything works fine.

    Kind regards.

  • DSN of ELEMENT not defined in the APPLICATION scope

    DSN of ELEMENT not defined in the APPLICATION scope


    Hi, I'm new to see my problem is as follows:

    I have 2 files:

    application.cfm that is inside
    d:\inetpub\wwwroot\mysite\

    and

    hand. CFC
    (d:\inetpub\wwwroot\mysite\cfc)

    inside of application.cfm I set an application variable:
    < cfset Application.DSN = "mydb" >
    (and connections mydb works if they are tested in coldfusion administrator)

    inside the main.cfc, I use the application variable:

    < cffunction = 'getLogin' access returntype = name "remotely" = "struct" output = "true" >
    < name cfargument = "nickname" type = "string" required = "true" >
    < name cfargument = "password" type = "string" required = "true" >
    < cfset returnedValue = structNew () >
    < name cfquery = "q_getLogin" datasource = "#application. DSN #">"
    SELECT id, nickname
    to allieve
    etc...

    ..
    < cfreturn returnedValue >
    < / cffunction >

    I call the SWC from flash, and I get the DSN of ELEMENT error undefined in APPLICATION scope.
    Someone has an idea of what could be bad?
    Thanks in advance,
    Mitja

    Not sure now why doesn't he call application.cfm, but my solution to CF6 time should include the application.cfm within my CFC... you can add a cfinclude within the item, on the very top, not inside any function... every time that Flash calls the CFC this code will be executed before the function call.
    If this component is also used by CF, then you can wrap which include in a conditional... You can check application.applicationName...
    HTH

  • Firefox has only display problems in the upper left region of only my Dell U3011 monitor; the monitor does not have these problems with any other application

    Some parts of the Firefox window are translucent, allowing the image of the desktop to show through. These regions are anything but great internet site central image which behaves normally. Unless the desktop is completely black this problem makes reading the tabs, address bar and the bookmark are difficult if not impossible. I encounter this problem only on my new Dell U3011 monitor. Firefox is the only application that has this issue on the Dell monitor. The monitor built into the laptop that animates the Dell monitor does not exhibit this problem. The laptop is a Lenovo W540 running Windows 7 64-bit. Thank you very much for your help. Steve Schupbach

    Hello stevesch

    first see : problem with Firefox going transparent troubleshoot and find a solution

    then with patience to see:

    questions/940393

    questions/940389

    questions/940374

    questions/940377

    questions/940384

    questions/940395

    Thank you

  • Using Firefox 4 and Windows 7. Whenever I have to start Firefox from a shortcut to a Web site, what happens with the following error "there was a problem sending the command to the program". The requested site is loaded after that. without any problem.

    Using Firefox 4 and Windows 7. Whenever I have to start Firefox from a shortcut to a Web site, what happens with the following error "there was a problem sending the command to the program". The requested site is loaded after that. without any problem.

    If a shortcut is used while Firefox is already open the error will not occur.

    For me, the problem was the FoxClock extension. Once I disabled it, the problem was gone.

    Hope this helps.

    Olivier

  • Try to download firefox beta on Sony Ericsson X 10 reveals the message "the requested item is not found. What can be the problem?

    I try to download and install Firefox beta 3 for Android 2.3 on Sony Ericsson X 10. I am able to access the site of the Chamber of combustion/m well but when to download, I get the error message "not found - the requested item is not found."

    The link to download Firefox for the Android Market does not work on phones with incompatible equipment. You can check if your phone is compatible here:

    https://wiki.Mozilla.org/mobile/platforms/Android

    Even on some devices supported, a bug in the software of the market prevents Firefox from appearing. This may be linked to the fairly recent Android Market app update. If you go to settings/Applications/market and choose "Uninstall" you can uninstall the update and then seek out and install Firefox on the market.

    Or, if you have a compatible phone, you can download the application directly from here:

    http://FTP.Mozilla.org/pub/mozilla.org/Mobile/Releases/4.0b3/Android-R7/multi/

    (Note: to download the app directly to an AT & T phone, you will have to search for 'sideloading' instructions in the APK file, because AT & T disables the option to install non-market sources.)

  • Tried to use iTunes to restore iPhone 5s, but the 17 error happens: "this device is not eligible for the requested build". No problem to enter the mode of recovery, apple server and the internet. Help?

    I tried to use iTunes to restore my iPhone 5s, but the 17 error happens: "this device is not eligible for the requested build". No problem to enter the recovery mode, connection to the apple Server (the software update download was complete) and internet connection. Help? I do an Apple store to restore?

    Error 17 refers to network problems. Take a look at these articles and try the suggestions:

    Solve the iOS update and restore error in iTunes - Apple Support

    Get help with iOS update or restore errors - Apple Support

  • On closure of my MacBook Pro always get question "continue application"? with the boxes option to cancel or continue the request.

    On my Mac Book Pro to always stop get question "continue application"? with the boxes option to cancel or continue the request.

    Selection of abandonment does not prevent the following message appears when closing next down.

    Activity monitor shows all the applications that you have

    installed, running in the background? Something can be...

    If you open the force quit, are there topics other than the Finder

    and maybe a browser?

    You repaired the disk from disk utility permissions lately?

    We could also see other boot options on the use in

    Recovery of OS X to use the "OS X Utilities" in there. Be careful.

    Is there more than one user account on your computer? If you

    Start in another user account and have auto login for

    the fact that it is one that rises at the start, a piece

    similar issues or is it just works fine on shut down?

    The question may take some trial and error troubleshooting. This

    may include some basic startup keyboard shortcuts for

    the computer to start in Safe Mode, to do more test, etc.

    If you have access to an official Apple store, you can be

    able to set up an engineering appointment & have someone closer.

    Good luck anyway...

  • I received and after the British insatalling encyclopedia and this application cannot be open.showing the "Startup MFC application has stopped working". How can I solve this problem?

    I received and after the British insatalling encyclopedia and this application cannot be open.showing the "Startup MFC application has stopped working". How can I solve this problem? IM using Vista Home Basic 32-bit.

    It comes with Vista, upgrade install and activate Forum.

    Try in Vista programs Forum:

    http://social.answers.Microsoft.com/forums/en-us/vistaprograms/threads

    See you soon. Mick Murphy - Microsoft partner

Maybe you are looking for

  • I want to stop doing the beta updates. How can I do?

    I am currently on the beta channel of update version of Firefox. How can I go back to only the published versions?

  • One last question on the upgrade from my old computer

    I bought an old HP P6243W computer (that's all I can afford on my disability WILL) I'm looking to upgrade the video card buy buying a low price PCIe Express X 16 video card I need a little more power video to play diablo 3 (please forgive my ignoranc

  • Report Generation toolkit for labview 2010

    H all. I'm looking to download the 2010 labview report generation tool. When I proceed to download the Toolkit on the site of the national instrumnets, it says that I need LabVIEW 2011 or later in order to install it. Is there a version of this for l

  • EA2700 DHCP reservations

    Hello I have an EA2700 running the latest firmware 1.1.38.138827. It is using Cisco Connect Cloud. I can't access the link of DHCP reservations under local / network connectivity. When I click it, nothing happens. I tried several browsers including I

  • Safe mode disabled AV security suite

    My computer is infected as a result of security AV.  the instructions I found on this site said to re-boot in safe mode to remove the virus using anti-virus software.  In my view, that this av security suite disabled safe mode, so I am not able to de