Apex and restful Services

What I have to install apex listener to use Restful Services.
We are on apex 4.1 and use apex modplsql.
I have to also install listener apex in order to use restful services or would it not just enougt to Update 4.1 in point 4.1.1 and I can continue to use apex 4.1.1 with modplsql.

Thank you
Kumar

Hi Kumar,

APEX listener 1.1 (including your 1.1.4 installation) has a different implementation for RESTful Web services. You can access the configuration using own configuration of the APEX listener ("' / listenerAdmin" ").
The new RESTful implementation integrated at the APEX is provided with the new APEX 2 listener, which is still in the phase of early Adpoters. This is a patch for APEX 4.1 4.1 be able to use it as well. See the installation guide for the current version of EA for more details.
Since the APEX 4.2 was released today, I would recommend to upgrade to this version instead of patch 4.1 if you have anything that would prevent you from upgrading. And I expect APEX earphone 2 will be released soon as well, even if it has not been an official announcement yet.

-Udo

Tags: Database

Similar Questions

  • Unable to access REST services with Apex 5.0.3 and ADR 3.0.3 in standalone

    Hello

    I'm trying to get my APEX with ADR 3.03 installation and for the life of me can not get of work REMAINS.  When I try to run the tutorial of

    Creation and use of RESTful Web application services Express 5.0

    I get the following error in the window of standalone ADR

    Journal of the oracle.dbtools.common.config.db.ConfigurationValues 12 January 2016 17:45:16

    ATTENTION: * jdbc. MaxLimit in apex_al configuration uses a value of 10, this setting cannot be sized properly for a production environment *.

    Journal of the oracle.dbtools.common.config.db.ConfigurationValues 12 January 2016 17:45:16

    ATTENTION: * jdbc. InitialLimit in apex_al configuration uses a value of 3, this setting cannot be sized properly for a production environment *.

    12 January 2016 17:45:16 oracle.ucp.common.UniversalConnectionPoolBase initInactiveConnectionTimeoutTimer

    INFO: connection time-out timer inactive at the request

    12 January 2016 17:45:16 oracle.ucp.common.UniversalConnectionPoolBase initInactiveConnectionTimeoutTimer

    INFO: connection time-out timer inactive at the request

    12 January 2016 17:45:17 oracle.dbtools.common.config.db.DatabasePools validateApexPoolConfigView

    SEVERE: * the pool named: apex_pu reports no APEX workspaces are enabled for RESTful Services,.

    but the pool named: apex_al reports 1 workspaces are enabled.

    This implies what APEX has been installed after the Oracle REST Data Services. Run the following command, and then restart REST Oracle Data Services:

    java-jar ords.war validate - apex of the database

    APEX based RESTful Services, including those used to serve static resources will not work until this was done.

    ***

    I ran validate it as many times it changed anything.  My REST services just returns 404.

    Someone at - it ideas?

    Thank you

    Scott.

    There seems to be a bit of chatter about the 3.0.3 in particular issues. I suggest to go back a step from version and try again.

  • Expose a report through Apex 5.0.2 and ADR 3.0.2 RESTful service

    Hi all

    Currently, I am trying to expose a report through RESTful service and have used the following documentation to the for do:

    https://docs.Oracle.com/database/121/HTMDB/advnc_web_services.htm#HTMDB27000

    I can't find where and how expose the report.  My page is public, and the security to allow RESTful services instance is set to yes.  I have an interactive report and a classic report, but none of them seem to have the option.

    I use Apex 5.0.2 and ADR 3.0.2.294.08.40.

    Does anyone know how to do this?

    Thank you

    Daniel

    Hi Daniel,.

    If it is a classic report, you have the instance parameter to allow the Restful Services and the page is public, you must change the page using the view component inherited (not Page Designer). In the attributes section you will find the option to activate the relaxing access report.

    Kind regards

    Jason

  • How can I disable only restful service? On Apex listener

    Hi all:

    For security reasons, I want to turn off the data service based in some of the listener apex server and activate the application only service. How can I do?

    Support gives the solution:

    How to disable the restful services is NOT to configure pools of connections AL and RT in the ADR/Rest Data Services. (APEX Listener).
    Remove or rename the files apex_rt.xml and apex_al.xml available in the configuration (conf) configured against ADR directory used by these bodies / the listener of the APEX.
    This way ADR / the APEX listener will not be able to deliver the REST requests to the database and return 404 to the end user

  • Problem with RESTful services and several optional parameters

    Hello

    Apex 4.2.5 I created following RESTful services:

    / test/multiplepar / {p1}

    / test/multiplepar / {p1} / {p2}

    / test/multiplepar / {p1} / {p2} / {p3}

    Practitioners will make has that {p2} and {p3} are supposed to be optional parameters, in a way 'cascading '.

    The underlying queries are respectively:

    Select: p1 double p1

    Select: p1 p1: p2 p2 double

    Select: p1 p1: p2 p2,: p3 p3 of the double

    However when I run:

    http://Server/Apex/WS/rest/test/multiplepar/1/2/3

    I get the result below...

    {

    "items":]

    {

    P1: "1/2/3"

    }

    ]

    }

    He takes everything as {p1} instead of divide among the 3 parameters.

    I'm sure that it is valid and I saw him work before... (in this same environment)

    Any ideas?

    Thank you

    Luis

    Nevermind, I found out that the 'priority' field must be set accordingly in the resource model.

  • RESTful service

    Hi team,

    APEX 5.0.1

    Database 12 c

    I need to know can RESTful Oracle APEX return XML service? I don't see JSON and CSV as return options, but I need to supply this web service to the JAVA application that only takes XML as input. Does anyone know how accompalish this?

    Thanks in advance.

    Kind regards

    Sunil Bhatia

    Sunil Bhatia wrote:

    I need to know can RESTful Oracle APEX return XML service? I don't see JSON and CSV as return options, but I need to supply this web service to the JAVA application that only takes XML as input. Does anyone know how accompalish this?

    JSON and CSV are options for an application resource manager. To return a result as XML, create a PL/SQL Resource Manager and write code customized for generating XML using SQL/XML and output using the sys.htp.p . The example in the documentation output HTML but the principle is similar.

  • Role of the user of "SQL Developer" rESTful services

    Hello

    I am following the tutorial ""REST Data Services Installation, Configuration and Development Guide " "

    But it seems that I can't create a user with the role of "Developer SQL". I am running the below command, I specify the password. Then called the credentials file is created.

    But I can not yet connect SQL Developer using development REST with this credential.

    java-jar ords.war user test_developer "SQL Developer"


    There is no such role when I manually search for in the database. How can I create it?


    Maybe I should create a thread separate, but my second question is, why I need for RESTful to work services have both apex_al.xml and apex_rt.xml conf files?

    For what I understand, it is not necessary to have installed to use the services of APEX RESTful?

    dmdamiyo wrote:

    I am following the tutorial 'REST Data Services Installation, Configuration and Development Guide.

    But it seems that I can't create a user with the role of "Developer SQL". I am running the below command, I specify the password. Then called the credentials file is created.

    But I can not yet connect SQL Developer using development REST with this credential.

    java-jar ords.war user test_developer "SQL Developer"

    There is no such role when I manually search for in the database. How can I create it?

    As mentioned by rwendel is not an Oracle database user / role you create, but it is specific to ADR.

    You can share the link in the documentation where you follow this step?

    If you want to install ADR using Oracle SQL Developer and use the various functions of the ADR 3.0, you can watch the following for quick information on ADR 3.0 sessions:

    Maybe I should create a thread separate, but my second question is, why I need for RESTful to work services have both apex_al.xml and apex_rt.xml conf files?

    For what I understand, it is not necessary to have installed to use the services of APEX RESTful?

    Yes, Oracle APEX is not necessary for the accommodation of RESTful Web Services with ADR 3.0, it was necessary in pre ADR 3.0 versions.

    Reference:

    The 'apex_al.xml' is the configuration user DB APEX_LISTENER and 'apex_rt.xml' matches the configuration of the APEX_REST_PUBLIC_USER DB user. You don't have to configure these users (if you do not want to use Oracle APEX). These users are necessary only if you want to use the RESTful Services with Oracle APEX.

    Reference: http://docs.oracle.com/cd/E56351_01/doc.30/e56293/config_file.htm#BABHAJDE

    If you do not want to use Oracle APEX, then just configure the users ORDS_PUBLIC_USER and ORDS_METADATA.

    Reference: http://docs.oracle.com/cd/E56351_01/doc.30/e56293/install.htm#CHDGACJC

    Kind regards

    Kiran

  • ADR 3.0.1 on Weblogic for APEX and base mod_plsql as feature

    (Hope someone can help me on this point, has spent a good part of the weekend trying to get this to work.)

    I installed and deployed ADR 3.0.1 using Sql Developer 4.1.1.  It works with my APEX 4.2.5.00.08 DB 12.1.02 deployed on Weblogic Server 12.1.3 (zip distro of otn) all running on my Windows 10 box.

    Now, I want to add the ability to run a simple mod_plsql procedure "hello world".  I simply cannot function.  Here is what I have done (the best I remember):

    create user identified by somepassword ken;

    grant create session, contact Ken;

    create or replace procedure

    is

    Start

    HTP.p ("Hello World");

    end;

    /

    I can run the procedure of the SQL Developer and achieve the expected results.

    SQL Dev ADR administration, I created a new parameter (apex) of the database is already there called ken:

    JDBC: default settings

    URL mapping: Rule_type: path to the routing rule: /ken, scheme of RESTful services: KEN

    ORDS_PUBLIC_USER: entered the password of this user

    PL/SQL gateway user: KEN

    APEX REST users: left two passwords Virgin, documentation ADR seems to indicate that they are not necessary for the use of the APEX non.

    Downloaded configuration.

    WebLogic command window provides the following error message:

    INFO: update configuration: default values

    Process of oracle.dbtools.url.mapping.file.FileURLMappings August 10, 2015 08:29:50

    WARNING: Could not find any target database corresponding to: ken, KEN

    < 10 August 2015 14:29:50 CEST > < WARNING > < default > < BEA-000000 > < did not find any target database corresponding to: ken, KEN >

    I'm thinking that something is wrong with the url - mapping.xml:

    <? XML version = "1.0" encoding = "UTF-8"? >

    " < pool-config xmlns =" http://xmlns.Oracle.com/Apex/pool-config "> "

    < chicken base-path = "/ ken" name = "ken" space work-id = "KEN" / >

    < / pool-config >

    I tried configuring it with java command line syntax:

    SET JAVA_HOME = D:\Oracle\sqldeveloper\jdk\jre\bin

    d:\Oracle\sqldeveloper\ords > java-jar ords.war map-url - scheme KEN - ken /ken base of type path name

    < 10 August 2015 14:56:58 CEST > < error > < default > < BEA-000000 > < pool named: ken_pu is not properly configured, error: ORA-01017: name of user and password invalid. connection refused

    I tried the URL Path mapping http://alluvion4:7001/ADR/ken SQL Dev

    NotFoundException [statusCode = 404, reasons = [[]]

    at oracle.dbtools.url.mapping.URLMappingsProvider.map(URLMappingsProvider.java:79)

    to oracle.dbtools.url.mapping.filter.URLMappingFilter.doFilter(URLMappingFilter.java:55)...

    My solution so far is to copy the ords.war, rename it and redeploy using SQL Dev, set the user to the PL/SQL gateway for my ken of the schema target, ignore the configuration of APEX restful services and deploy on weblogic.  That works, but I would like that it works in a simple deployment and I would understand options matching the url (what is necessary and what is not for this configuration).

    Any help is greatly appreciated.

    -Ken

    Sorry it took so long to come back.  I saw that 3.0.2 is out so I thought I would try it with the latest and best.  I disassembled the process by not using DO NOT SQL Dev or Weblogic.  It was in the syntax of the url of the map.  For a simple, plain old, mod_plsql dad, DO NOT specify the schema name (or a space of work-id also).  It's against intuitive but the schema name is specified when you configure the PL/SQL gateway in step "Setup - database'.

    The card-url command is then simply: java-jar ords.war map-url - ken /ken type base path

    the file url - mapping.xml looks at this (no name schema, not the space of work-id):

    http://xmlns.Oracle.com/Apex/pool-config">

  • RESTful Service search parameters

    Hello

    I use APEX 4.2.2... with earphone 2.0.3

    I want to expose data in the EMP table as a RESTful Service with parameters:

    The source is:

    Source type: SQL query.Format: JSON
    
    select * from emp where 
    (:job IS NULL OR job = :job)
     and
    (:ename is null or ename = :ename)
    
    
    
    Model of the URI:employeesfeed / {job} / {ename}

    If I use this URL, it works very well...

    http://oraclesrv/real_estate/property/HR/employeesfeed/Manager/Blake

    and this gives:

    {"next":{"$ref":"http://oraclesrv/real_estate/property/hr/employeesfeed/MANAGER/BLAKE?page=1"},"items":[{"empno":7698,"ename":"BLAKE","job":"MANAGER","mgr":7839,"hiredate":"1981-04-30T20:00:00Z","sal":2850,"deptno":30}]}
    

    But, as you will notice may be in the logic of the Source, the "end user" should be able to retrieve all MANAGERS using this link.

    http://oraclesrv/real_estate/property/HR/employeesfeed/Manager/null

    But, this gives:

    {"items": []}

    So, how can I retrieve all managers? (using this Source).

    Kind regards

    The four letters (n, u, l, and l) at the end of your URL are a string of length 4.

    Basically, you make this comparison:

    'null' is null (which is false)

    If you want to keep this syntax, add

    or upper(:job) = 'NULL '.

    MK

  • RESTful service cannot insert data using PL/SQL.

    Hi all
    Spin: stand-alone 2.01 AL on OEL 4.8 in box a. VM
    Database Oracle 10.2.0.4 with Apex 4.2.0.00.27 on OEL4.8 in the VM B box.

    Measure of oracle.example.hr performed without problem Restful services.

    Cannot insert data using AL 2.0.1 but works on 1.1.4 AL.
    who uses the following table (under scheme: scott):
     
    create table json_demo ( title varchar2(20), description varchar2(1000) ); 
    grant all on json_demo to apex_public_user; 
    and procedure (scott diagram) below:
    CREATE OR REPLACE
    PROCEDURE post(
        p_url     IN VARCHAR2,
        p_message IN VARCHAR2,
        p_response OUT VARCHAR2)
    IS
      l_end_loop BOOLEAN := false;
      l_http_req utl_http.req;
      l_http_resp utl_http.resp;
      l_buffer CLOB;
      l_data       VARCHAR2(20000);  
      C_USER_AGENT CONSTANT VARCHAR2(4000) := 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)';
    BEGIN
      -- source: http://awads.net/wp/2005/11/30/http-post-from-inside-oracle/
      -- Ask UTL_HTTP not to raise an exception for 4xx and 5xx status codes,
      -- rather than just returning the text of the error page.
      utl_http.set_response_error_check(false);
      -- Begin the post request
      l_http_req := utl_http.begin_request (p_url, 'POST', utl_http.HTTP_VERSION_1_1);
      -- Set the HTTP request headers
      utl_http.set_header(l_http_req, 'User-Agent', C_USER_AGENT);
      utl_http.set_header(l_http_req, 'content-type', 'application/json;charset=UTF-8');
      utl_http.set_header(l_http_req, 'content-length', LENGTH(p_message));
      -- Write the data to the body of the HTTP request
      utl_http.write_text(l_http_req, p_message);
      -- Process the request and get the response.
      l_http_resp := utl_http.get_response (l_http_req);
      dbms_output.put_line ('status code: ' || l_http_resp.status_code);
      dbms_output.put_line ('reason phrase: ' || l_http_resp.reason_phrase);
      LOOP
        EXIT
      WHEN l_end_loop;
        BEGIN
          utl_http.read_line(l_http_resp, l_buffer, true);
          IF(l_buffer IS NOT NULL AND (LENGTH(l_buffer)>0)) THEN
            l_data    := l_data||l_buffer;
          END IF;
        EXCEPTION
        WHEN utl_http.end_of_body THEN
          l_end_loop := true;
        END;
      END LOOP;
      dbms_output.put_line(l_data);
      p_response:= l_data;
      -- Look for client-side error and report it.
      IF (l_http_resp.status_code >= 400) AND (l_http_resp.status_code <= 499) THEN
        dbms_output.put_line('Check the URL.');
        utl_http.end_response(l_http_resp);
        -- Look for server-side error and report it.
      elsif (l_http_resp.status_code >= 500) AND (l_http_resp.status_code <= 599) THEN
        dbms_output.put_line('Check if the Web site is up.');
        utl_http.end_response(l_http_resp);
        RETURN;
      END IF;
      utl_http.end_response (l_http_resp);
    EXCEPTION
    WHEN OTHERS THEN
      dbms_output.put_line (sqlerrm);
      raise;
    END;
    and execution in sqldeveloper 3.2.20.09 when it connects directly to box B as scott:
     
    SET serveroutput ON
    DECLARE
      l_url      VARCHAR2(200)   :='http://MY_IP:8585/apex/demo';
      l_json     VARCHAR2(20000) := '{"title":"thetitle","description":"thedescription"}';
      l_response VARCHAR2(30000);
    BEGIN
      post( p_url => l_url, p_message =>l_json, p_response => l_response);
    END;
    leading to:
     
    anonymous block completed 
    status code: 200
    reason phrase: OK 
    with data inserted. 
    Installation using 2.0.1
       Workspace : wsdemo
     RESTful Service Module:  demo/
              URI Template:      test
                    Method:  POST
               Source Type:  PL/SQL
    and execution in sqldeveloper 3.2.20.09 when it connects directly to box B as scott:
     
    SET serveroutput ON
    DECLARE
      l_url      VARCHAR2(200)   :='http://MY_IP:8585//apex/wsdemo/demo/test';
      l_json     VARCHAR2(20000) := '{"title":"thetitle","description":"thedescription"}';
      l_response VARCHAR2(30000);
    BEGIN
      post( p_url => l_url, p_message =>l_json, p_response => l_response);
    END;
    leading to:
     
    status code: 500 
    reason phrase: Internal Server Error 
    
    Listener's log: 
    Request Path passes syntax validation
    Mapping request to database pool: PoolMap [_poolName=apex, _regex=null, _workspaceIdentifier=WSDEMO, _failed=false, _lastUpdate=1364313600000, _template=/wsdemo/, _type=BASE_PATH]
    Applied database connection info
    Attempting to process with PL/SQL Gateway
    Not processed as PL/SQL Gateway request
    Attempting to process as a RESTful Service
    demo/test matches: demo/test score: 0
    Choosing: oracle.dbtools.rt.resource.templates.jdbc.JDBCResourceTemplateDispatcher as current candidate with score: Score [handle=JDBCURITemplate [scopeId=null, templateId=2648625079503782|2797815111031405, uriTemplate=demo/test], score=0, scope=SecurityConfig [constraint=none, realm=NONE, logonConfig=LogonConfig [logonForm=null, logonFailed=null]], originsAllowed=[], corsEnabled=true]
    Determining if request can be dispatched as a Tenanted RESTful Service
    Request path has one path segment, continuing processing
    Tenant Principal already established, cannot dispatch
    Chose oracle.dbtools.rt.resource.templates.jdbc.JDBCResourceTemplateDispatcher as the final candidate with score: Score [handle=JDBCURITemplate [scopeId=null, templateId=2648625079503782|2797815111031405, uriTemplate=demo/test], score=0, scope=SecurityConfig [constraint=none, realm=NONE, logonConfig=LogonConfig [logonForm=null, logonFailed=null]], originsAllowed=[], corsEnabled=true] for: POST demo/test
    demo/test is a public resource
    Using generator: oracle.dbtools.rt.plsql.AnonymousBlockGenerator
    Performing JDBC request as: SCOTT
    Mar 28, 2013 1:29:28 PM oracle.dbtools.common.jdbc.JDBCCallImpl execute
    INFO: Error occurred during execution of: [CALL, begin
     insert into scott.json_demo values(/*in:title*/?,/*in:description*/?);
    end;, [title, in, class oracle.dbtools.common.stmt.UnknownParameterType], [description, in, class oracle.dbtools.common.stmt.UnknownParameterType]]with values: [thetitle, thedescription]
    Mar 28, 2013 1:29:28 PM oracle.dbtools.common.jdbc.JDBCCallImpl execute
    INFO: ORA-06550: line 1, column 6:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    
       begin case declare exit for goto if loop mod null pragma
       raise return select update while with <an identifier>
       <a double-quoted delimited-identifier> <a bind variable> <<
       close current delete fetch lock insert open rollback
       savepoint set sql execute commit forall merge pipe
    The symbol "" was ignored.
    ORA-06550: line 2, column 74:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    
       begin case declare end exception exit for goto if loop mod
       null pragma raise return select update while with
       <an identifier> <a double-quoted delimited-id
    
    java.sql.SQLException: ORA-06550: line 1, column 6:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    
       begin case declare exit for goto if loop mod null pragma
       raise return select update while with <an identifier>
       <a double-quoted delimited-identifier> <a bind variable> <<
       close current delete fetch lock insert open rollback
       savepoint set sql execute commit forall merge pipe
    The symbol "" was ignored.
    ORA-06550: line 2, column 74:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    
       begin case declare end exception exit for goto if loop mod
       null pragma raise return select update while with
       <an identifier> <a double-quoted delimited-id
    
            at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:447)
            at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)
            at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:879)
            at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:505)
            at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:223)
            at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:531)
            at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:205)
            at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1043)
            at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1336)
            at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3612)
            at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3713)
            at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4755)
            at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1378)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at oracle.ucp.jdbc.proxy.StatementProxyFactory.invoke(StatementProxyFactory.java:242)
            at oracle.ucp.jdbc.proxy.PreparedStatementProxyFactory.invoke(PreparedStatementProxyFactory.java:124)
            at oracle.ucp.jdbc.proxy.CallableStatementProxyFactory.invoke(CallableStatementProxyFactory.java:101)
            at $Proxy46.execute(Unknown Source)
            at oracle.dbtools.common.jdbc.JDBCCallImpl.execute(JDBCCallImpl.java:44)
            at oracle.dbtools.rt.plsql.AnonymousBlockGenerator.generate(AnonymousBlockGenerator.java:176)
            at oracle.dbtools.rt.resource.templates.v2.ResourceTemplatesDispatcher$HttpResourceGenerator.response(ResourceTemplatesDispatcher.java:309)
            at oracle.dbtools.rt.web.RequestDispatchers.dispatch(RequestDispatchers.java:88)
            at oracle.dbtools.rt.web.HttpEndpointBase.restfulServices(HttpEndpointBase.java:412)
            at oracle.dbtools.rt.web.HttpEndpointBase.service(HttpEndpointBase.java:162)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
            at com.sun.grizzly.http.servlet.ServletAdapter$FilterChainImpl.doFilter(ServletAdapter.java:1059)
            at com.sun.grizzly.http.servlet.ServletAdapter$FilterChainImpl.invokeFilterChain(ServletAdapter.java:999)
            at com.sun.grizzly.http.servlet.ServletAdapter.doService(ServletAdapter.java:434)
            at oracle.dbtools.standalone.SecureServletAdapter.doService(SecureServletAdapter.java:65)
            at com.sun.grizzly.http.servlet.ServletAdapter.service(ServletAdapter.java:379)
            at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
            at com.sun.grizzly.tcp.http11.GrizzlyAdapterChain.service(GrizzlyAdapterChain.java:196)
            at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
            at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
            at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
            at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
            at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
            at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
            at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
            at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
            at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
            at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
            at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
            at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
            at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
            at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
            at java.lang.Thread.run(Thread.java:662)
    Error during evaluation of resource template: ORA-06550: line 1, column 6:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    
       begin case declare exit for goto if loop mod null pragma
       raise return select update while with <an identifier>
       <a double-quoted delimited-identifier> <a bind variable> <<
       close current delete fetch lock insert open rollback
       savepoint set sql execute commit forall merge pipe
    The symbol "" was ignored.
    ORA-06550: line 2, column 74:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    
       begin case declare end exception exit for goto if loop mod
       null pragma raise return select update while with
       <an identifier> <a double-quoted delimited-id
    Please notify.
    Concerning
    Zack

    Zack.L wrote:
    Hi Andy,.

    Sorry, I forgot to post the Source that is used by the AL1.1.4 and the AL2.0.1.

    Source

    begin
    insert into scott.json_demo values(:title,:description);
    end;
    

    It is a failure during insertion?
    Yes, he failed in the insert using AL2.0.1.

    If the above statement produces the following error message:

    The symbol "" was ignored.
    ORA-06550: line 2, column 74:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    
    begin case declare end exception exit for goto if loop mod
    null pragma raise return select update while with
     
    

    That gives me to think that a character is not printable (notice how there is anything between the quotation marks - "") worked his way in your PL/SQL Manager. Note how the error is reported to correspond to a column 74 on line 2, line 2 of the block above has 58 characters, so a pure assumption somehow, there is extra space on line 2, which confuses the PL/SQL compiler, I suggest retype PL/SQL Manager manually and see if that solves the problem.

  • A rESTful Service: display file BLOB in DB as a RESTful service?

    Hello

    With Oracle Cloud we can expose the data as RESTful Web Service, but how about exposing BLOB... we need to generate a link to this file that is stored in the DB.

    To make it clearer:

    Two Tables:
    Properties (Property_ID number PK, Project varchar2(40), Property_number varchar2(20) ...)
    Images  (ID number PK, Property_ID number FK, content blob, 
    mimetype varchar2(200), filename varchar2 (200), filesize varchar2 (200))
    And I want to expose this request as repairman:
    Select p.property_id, p.project, p.property_number, i.content 
    from properties p inner join images i on (p.property_id = i.property_id)
    Usually we use: [url http://docs.oracle.com/cd/E14373_01/apirefs.32/e13369/apex_util.htm#CHDICGDA] apex_util.get_blob_file_src, but that one must be called from a session valid apex! ("i.content" in this query should give a link).

    How can do us?

    One other point, because we expose the data in JSON format:
    Suppose I have a property with 10 images, so it is meaningless to get 10 rows for the same property just to give a different image. I think we need another (nested) level for images!

    I hope my point is clear,

    Thanks in advance...
    Fateh

    Hi Fateh-

    Good question. You identify the source as a multimedia resource type and use a SQL statement with the primary key and the BLOB column. When you use multimedia resource, you are basically saying your Cloud Service database not to marshall the data, simply send it - which is exactly what you are looking for.

    Thanks to this application you will need a separate SQL call for each retrieval of BLOB. However, you may be able to use a PL/SQL block as the endpoint for the RESTful Service and take care of several BLOB in the processing block.

    I hope this helps.

    -Rick Greenwald

  • The pool management and quality Service

    I've had problems with HP for over 2 years now. The first laptop, they have replaced and gave me a 8570p Elitebook that they new was not good and gave to a member of the family of the same model. I have had problems with it, run hot and fingerprints from December 2013 and open a file. Tech was released in January and replaces fan and then the numeric keypad now works sometimes. Tech said needed to order parts most never heard talk about him again. They sent an email saying they have closed the case without being fixed pc. I called and had another one opened and got a case manager very rude who called and chatted with me for two days telling me he would give me a same unit renovated, it take or leave. He told me that nobody will do better than that even though I have the extended warranty and care Pak. I told her no but my family members had problems and did not have all of the warranty and they gave him a new one as a replacement for 8770w. I continued to try to work with tech and they will call him each week saying that they have an appointment and no one does or call. Mind you, this has happened since December 2012 and it is the end of February 2014 and my pc has not yet been set. I work from my pc as a business and may not have that going. Then they tell me that we cannot replace because it was given to you in 2011 and I have documentation I received in 2012 at HP and they don't judge. They say it's still too old. It's not my fault for your product. I was treated very brutally and been put on hold and they are standing by their product. I'm not recommending them or buy from them. They have these foreign people who do not in any ways whatsoever and they call it management and customer service. HP is not going to pay my salary is their pc as a last shutsdown I did. If you can replace it for one person, then you must replace for all.

    This is NOT official HP customer service and I, like most other people on this forum do not work for HP. It is a forum for users of peer-to-peer supported for class for the HP consumer products. HP maintains no official presence on this forum and it is unlikely that HP will respond in an official capacity. Response of an employee of HP represents his own opinion and not that of HP.

    Your best course of action is to contact the official HP customer support via Contact HP - United States of America to the United States or Contact HP - worldwide in the rest of the world.

    If you have any other questions, feel free to ask.

    Please click the 'Thumbs Up' white LAURELS to show your appreciation

  • cfFncEnabler and Toshiba Service Station ceased Woking

    Hi all

    I apologize if this question has already been posted but I searched through the forums and the answers already posted did not help me in my problem. It really sucks that it seemed just arrived after a regular update. Since I got my laptop I've been running a scan antivirus with AVG and updated my drivers whenever prompted.  So first of all, I got the dreaded blue screen of death. After many attempts of system restores I finally got to the point where I stopped making BSOD. (Hooray!) And then came the "cfFncEnabler" and "Toshiba Service Station" ceased work messages. I have a laptop Toshiba U500 with Windows Vista Edition Home Premium as well as the windows SP2. I can't understand if it's a U500-ST5302, U500-ST5305, U500-ST5307, U500-ST6321, U500-ST6322 or U500-ST6344. (If you can guide me on how to understand this, I would be very grateful as well!) I really need some help here because I believe that its somehow affecting my Internet connection I need for my classes at the University online! Thanks in advance!

    First off thank you very much for your quick response John. I didn't respond to your response, until I was able to run all of the suggestions you gave me and be able to tell the results. So, unfortunately after crossing solutions you gave me that nothing really worked. I had no problem in safe mode, so I'm stuck using them for school work and run all my experimental solutions. Clean boot didn't work, I called Toshiba and they wanted me to pay $60 for the (ridiculous) call. The Toshiba forum link you sent helped me to solve the problem with the Service Station but the cffncEnabler one.

    Ultimately I had to restore laptop to factory settings by running my recovery discs and everything is fine. I would like the rest of you out there, good luck with your Toshiba trouble. They are really great laptops despite this setback bit!
  • With regard to the ADF Restful Services in 12.2.1

    I went through restful ADF services article in the guide of the developer and some examples, but its only contours:

    (1) how to expose methods standard and custom Vo as a restful service. There is no mention of how to expose the custom method AM restful service, is it possible from now with automated wizard provided by ADF 12.2.1 for restful service?

    (2) a typical use case is to write a function which is given to couple view of your and do some massaging until it can be written in a custom am method all your available, but how expose it as a restful service, the only option I see to this effect in 12.2.1 is to use SOAP service if I use automated restful services Wizard and do not write service JAX - RS scratch code creating an instance module root of service application, but our architecture warrants to use rest AND JASON architecture style.

    If anyone has idea about this or has any comments/blogs about it in 12.2.1, please let us know!

    Concerning

    Mukul

    In the 12.2.1 version we still have no support for the exhibition AM level method REMAINS the use of assistants to REST.

    (You could build a Java class that access the AM and then expose this class REMAINS).

    If it is the important scenarios for you please contact the Oracle Support and add your request to the emergency that follows this feature - 16851420.

  • Basic authentication for the OSB exposed as a Rest Service

    Hi all

    We expose OSB Service as a Rest Service to the customer. Need to add basic for the client authentication. In the HTTP transport Service proxy, we have enabled basic authentication. However, we do not know how to proceed. We want to take care of the authentication section in the BSO it itself, so what should be our next step for her? How to extract the authentication information for the request and where to add the check? Is there an easy way to integrate with authentication AD in OSB?

    Hello

    OSB will do authentication for you, no need to make something of yourself. Just move the radiobutton control to basic authentication. It uses the Weblogic domain in the to do. OSB will get the name of user and password of the authentication HTTP header property and validate it against weblogic. If weblogic confirms as a name of user and password valid, OSB running the proxy. Any valid user in weblogic will do, there is no authorization: so no way to limit to a specific user. This means that to connect to AD you must configure using Weblogic. In the field of weblogic, you can add any AD or any LDAP as authenticator.

    With the help of its also possible to validate on a particular user using the UserToken GOSA strategy. You can also use GOSA do BasicAuthentication by applying the specific policy. But GOSA only supports basic over SSL authentication, not simple basic authentication.

    By the way: for BA on a Business Service: you must create a ServiceAccount object with the specific user name password and assign to specific BusinessService. You can create a surveillance society by environment, each in a particular folder of dev/test/ACC/prod. Then use a customization file to switch between them.

    Kind regards
    Martian

Maybe you are looking for