AOP "Query was empty" [from: cannot insert data with the PDO function]

Now try to DELETE a record.  I select a list and go to the routine to delete.  The record appears, but when I delete, I get an error saying

Fatal error : Eception exception 'Exception PDOException' with message ' SQLSTATE [42000]: syntax error or access violation: 1065-query was empty ' in /home1/sainttim/public_html/DeleteRec.php:53 stack trace: home1/sainttim/public_html/DeleteRec.php(53) #0: PDOStatement-> execute (Array) #1 {main} thrown in /home1/sainttim/public_html/DeleteRec.php online 53

I do not understand why the query is empty because the data are displayed on the screen, but assume that I see on the screen is not what is in the table ($_POST ['delete']).  I'm stuck!

My code:

$OK = false;

$deleted = false;

If (isset($_GET['varpage'])) {}

$varpageSend = $_GET ['varpage'];

$NextPage = ' DisplayText.php? varpage = ". $varpageSend;"»

}

If ((isset($_GET['recid'])) & & ($_GET ['recid']! = "")) {}

$delrec = $_GET ['recid'];

}

on the other

{

$error = "record does not exist!"

}

If (isset($_GET['recid']) & &! $_POST)

{

prepare the SQL query to view folder

$sql = "SELECT home_key, enriched, h_date, h_seq, h_col, p_heading, p_text, h_hide FROM Homepage_text WHERE home_key =?";

RS1 $= $sainttim-> prepare ($sql);

$OK = $rs1-> execute (array($_GET['recid']));

$row = $rs1-> fetch();

$home_key = $row ["home_key"];

$textpage is "enriched" $row;.

$h_date = $row ["h_date"];

$h_seq = $row ["h_seq"];

$h_col = $row ["h_col"];

$p_heading = $row ["p_heading"];

$p_text = $row ["p_text"];

$h_hide = $row ["h_hide"];

If ($h_hide == 0) {}

$h_hide = 'n';

}

else {}

$h_hide = 'y ';

}

If (isset ($rs1) & &! $OK) {}

$error = $rs1-> errorInfo();

If (isset($error[2])) {}

store the error message if the request fails

$error = $error [2];

}

}

}


If (isset($_POST['delete']))

{

NEW code

$deletesql = "DELETE FROM Homepage_text WHERE home_key =?';"

$stmt = $sainttim-> prepare ($deleteSQL);

$deleted = $stmt-> execute ($row);

If (! $deleted)

{

$error = "There is a problem to remove the record.";

}

else {}

Header ('Location: '. $deleteGoTo);

"exit";

}

}


Form:

Entry < h1 > delete of <? PHP echo $varpageSend;? > Page < / h1 >

<? PHP if (isset ($error)) {}

echo "class < p > 'errormsg' = > error:". " $error. "< /p > ';

} ? >

< are method = "POST" name = "form1" id = "form1" >

< table class = "DisplayTable" align = "center" >

< b >

< td align = "right" > Page: < table >

< td > <? PHP echo $textpage? > < table >

< /tr >

< tr valign = 'of basic">

< td align = "right" > Date: < table >

< td > <? PHP echo $h_date? > < table >

< /tr >

< b >

< td align = "right" > sequence: < table >

< td > <? PHP echo $h_seq? > < table >

< /tr >

< b >

< td align = "right" > Col: < table >

< td > <? PHP echo $h_col? > < table >

< /tr >

< b >

< td align = "right" > title: < table >

< td > <? PHP echo $p_heading? > < table >

< /tr >

< b >

< td align = "right" > text content: < table >

< td > <? PHP echo $p_text? > < table >

< /tr >

< b >

< td align = "right" > content hide? : < table >

< td > <? PHP echo $h_hide? > < table >

< /tr >

< b >

< display td = "hidden" > < input value = <? PHP echo $delrec? > name = 'deletekey"id ="deletekey"/ > < table >

< display td = "hidden" > < table >

< /tr >

< b >

< td align = "right" > < a href = "DisplayText.php? varpage = <?" PHP echo $Thistextpage;? > "> < span class ="Red"> CANCEL </span > < /a > < table >.

< td align = "left" > < input name = "remove" id = 'delete' type = 'submit' class = 'GreenButton"value ="Confirm deletion"/ > < table >

< /tr >

< /table >

< / make >

The reason why the query is empty lies in the lack of uniformity in the spelling of your variable to the prepared statement:

$deletesql = "DELETE FROM Homepage_text WHERE home_key =?";

$stmt = $sainttim-> prepare ($deleteSQL);

The query is stored in the form of $deletesql, but the value you pass to the prepare() method is $deleteSQL. PHP variables are case-sensitive. Use is $deletesql in both cases, or store the query as $deleteSQL.

Tags: Dreamweaver

Similar Questions

  • Cannot insert data with the PDO function [from: insert and update of the server in the same shape behaviors]

    I feel as if I'm fighting my way around a paper bag trying to insert a record.  I have recently converted from MySQL for PDP, which cannot be applied.  I'm not trying to write routines to update data and started with insert.  I tried the example in your PHP Solutions edition two, pp. 361-363, but I can't get a written account.

    It is a database, which I supported since the host server using phpMyAdmin.  I'm very well display the data on the site, so I guess that my login script is ok.  However, nothing I've tried has got a registered insert.  I tried to get back to the basics, and it still does not work.  This is my current code.  Something is wrong with my statement = $sql and I can't identify the problem.  Help, please!

    If (isset($_POST['insert'])) {}

    try {}

    create the SQL

    $sql = "INSERT INTO Homepage_text (enriched, h_date, h_seq, h_col, p_heading, p_text, h_hide) VALUES ($_POST ['enriched'], $_POST ['h_date'], $_POST ['h_seq'], $_POST ['h_col'], $_POST ['p_heading'], $_POST ['p_text'], $_POST ['h_hide']);"

    $sainttim-> execute ($sql);

    echo "new record successfully created ';

    }

    catch (PDOException ($e) exception

    {

    echo $sql. "< br / > '. $e-> getMessage();

    }

    }

    There are several things wrong with your code:

    • You use elements of an associative array within a double quoted string. Which will cause a parse error.
    • The values you are trying to insert in the database are for most (if not all) of the text fields. If you use a literal SQL query, text fields must be wrapped in quotes.
    • You try to use the method execute() with a literal SQL query. In AOP, execute() only works with a prepared statement. To run a literal SQL query, you must use the exec() method.
    • Passing the values in the array $_POST directly in the database without any sort of validation and without escaping quotes or other characters just asking for trouble.

    Follow the examples in the book, and use a prepared statement. To address all these issues quickly and easily.

  • Cannot insert data into the database

    Hello world

    I stuck with a problem in DB juice. When I try to insert data into the database using DB tool, I get a repeated error message (error 1). Please find the my vifile below and solve say.

    Problem is use Labiew 8.2. So try to answer accordingly

    Try it with a cluster instead of a string or an array.

  • cannot insert data into the PRODUCT_USER_PROFILE table

    I've connected to the database as the sysdba, which is installed on VMWARE. database is oracle 11g.
    whenever I insert data in the table PRODUCT_USER_PROFILE that the database returns 1 row inserted and then when I try to show everything on the table before or after the statement commit is made the database returns "No. LINES SELECTED.

    guys any idea about this problem...

    Hello

    Try to connect as a system and make the insert and check. Always think about the issue.

    -Pavan Kumar N
    Oracle 9i / 10g - OCP
    http://oracleinternals.blogspot.com/

    Published by: pounet on January 4, 2010 16:29

  • Cannot filter data with the extended class

    Hello

    I have a small question on the PortableObject format. I created a class that extends PortableObject interface and implementation of methods of serializer as well. I've updated in the file config.xml - pof as well. If I insert the objects of that type of object in the cache, they get inserted correctly and I can filter the values based on the getters defined in the class. Everything works fine here.

    Now I'm expanding the existing class I. We have our custom API we have built for our domain objects. I need to store these objects in the cache. So, naturally, I need to implement the PortableObject interface for this. So, instead of creating a new class with the new series of getters and setters and local fields, I extend our domain class to create a new class that implements the PortableObject interface. Instead of setting the local fields and getters and setters, I'm reusing those provided by my existing class. Now, I can insert the new class objects in the cache. But I can't filter values for objects of this new class.

    Let me show you what exactly I am trying to achieve by giving a small example:

    Domain class:

    Class person
    *{*
    private String person_name;

    * public String getPerson_name() {return person_name ;} *}
    * public String setPerson_name (person_name) {this.person_name ;} person_name = *}
    *}*

    The new class that implements PortableObject interface:

    class ExtPerson extends implements person PortableObject
    *{*
    public static final PERSON_NAME = 0;

    * public Sub readExternal (PofReader reader) throws IOException {*}
    setPerson_name (reader.readString (PERSON_NAME));
    *}*

    * public methods void writeExternal (writer PofWriter) throws IOException {*}
    writer.writeString (PERSON_NAME, getPerson_name());
    *}*

    * / / And HashCode, Equals and ToString methods, all implemented using the Get accessor of the person class *.
    *}*

    So, if I create a new class ExtPerson extend the Person class and write all methods, store objects in the cache and run the following query, I get the size printed

    System.out.println ((cache.entrySet (EqualsFilter ("getPerson_name", "ABC"))) .size ());

    But if I use the extended class and insert the values into the cache and if I use the same query to filter, I get 0 displayed on the console.

    System.out.println ((cache.entrySet (EqualsFilter ("getPerson_name", "ABC"))) .size ());

    So, can anyone say exactly what is the cause?


    Thank you!

    ContainAnyFilter doesn't work the way you expect.

    Here's the java doc.

    "Filter that tests a value of Collection or array object returned by a method of containment of any value as a whole."

    The return of the object by the get method must be an array of Collection or an object, it will return false if the object of the return of Extractor is not a type of Collection or array.

    or in your case, it only works if the getPerson_name() returns an array of strings.

    You probably want to use talk.

  • NULL point Exception: when we try to insert data with the procedure after obtaining values of the iterator.

    public String submit() {}

    BindingContext bindingContext = BindingContext.getCurrent ();

    DC DCDataControl = bindingContext.findDataControl("AppModuleDataControl");

    AppM AppModuleImpl = (AppModuleImpl) dc.getDataProvider ();

    BindingContainer links = getBindings();

    OperationBinding operationBinding = bindings.getOperationBinding("getCAL");

    Object result = operationBinding.execute ();

    String dte = result.toString ();

    Model CollectionModel = (CollectionModel) classHeldTbl.getValue ();

    ROWCOUNT int = model.getRowCount ();

    for (int i = 0; i < rowcount; i ++) {}

    JUCtrlHierNodeBinding = (JUCtrlHierNodeBinding) model.getRowData (i) rowData;

    If (rowData.getAttribute (8)! = null) {}

    int slotId = Integer.parseInt (rowData.getAttribute (5) m:System.NET.SocketAddress.ToString ());

    int sectionId = Integer.parseInt (rowData.getAttribute (6) m:System.NET.SocketAddress.ToString ());

    int teacherId = Integer.parseInt (rowData.getAttribute (7) m:System.NET.SocketAddress.ToString ());

    String rowData.getAttribute = chk (8) m:System.NET.SocketAddress.ToString ();

    If (chk.equals ("true")) {}

    try {}

    System.out.println ("dateee:" + result + "id Teachr" + teacherId + ETD + "" + slotId + "" + sectionId);

    appM.submitClassHeld (teacherId, dte, IDEmplacement, sectionId);

    System.out.println ("After proc");

    } catch (NullPointerException e) {}

    System.out.println ("-Execption" + e.getMessage ());

    }

    }

    }

    }

    Returns a null value.

    }

    There are no issues with values... This function works only once. When we submit the values on the selection box it works once, but when press us the button submit again select different box it inserts the value in the database, but on the page shows null pointer exception.

    RowData are so is equal to null.

    Change this line in the following way:

    System.out.println ("rowData =" + rowData);

    If (rowData! = null & rowData.getAttribute (8)! = null)

    and lat me know what happens

    JohnMackanzi wrote:

    Number of line 58

    If (rowData.getAttribute (8)! = null) {}

  • 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.

  • Cannot use the native sequence of database to insert data through the DbAdapter

    Hello

    I use Oracle Fusion Middleware 12.1.3 (selection of pre-designed developer programs for Oracle VM VirtualBox VMs |) Oracle Technology Network). I'm trying to insert data into the Oracle database coming with the device via a DbAdapter. I want to use the native Oracle sequences for primary keys and have configured appropriatelly the DbAdapter. But in execution, I get the following exception:

    Caused by: java.sql.SQLIntegrityConstraintViolationException: ORA-01400: cannot insert NULL into ('SCOTT'. "ORDERS '." (' ' ID ')

    If I configure the such DbAdapter that do not use sequences, I get the same exception. I'm missing here?

    Kind regards

    Nicolas

    Reading more carefully the exception, in the log file of the server, not just the display of messages in the console of the em, I could note that the ConnectionFactory configured on the outgoing Dbadapter connection used to access the database was incorrect. He was using JavaDb instead of Oracle that I made a mistake of copying and pasting. Correction of this error has resolved the problem.

  • cannot insert media for the new virtual machine

    Here is the configuration:

    2 x ESXi without shared storage in the same cluster of vCenter DC

    Media (iso files OS) were imported from vShpere in the VCD console, media folder was created the data store of ESX server no.2, noticed that a single iso file might have been a copy at a distance of ESX server n ° 1.

    In console organization VCD, create a virtual machine that is checked is under the n ° 1 ESX server according to vCenter console, try "insert the CD/DVD"... "when power on or off, got the error below in vcloud-container - debug.log:

    I suspect that the VM on the ESX n ° 1 cannot access the media file on a server ESX no.2 (at least it is impossible using vCenter), is there a workaround?

    Thank you

    William

    2010-09-03 10:57:26, 708 | INFO | Quartz-pool-1-wire-542 | TaskManager. waitForCompletion (safe) for task back to the State of completion ERROR | #778461740

    2010-09-03 10:57:26, 708 | DEBUG | Quartz-pool-1-wire-542 | TaskManager. Attempt to remove the wait for the task handle | #778461740

    2010-09-03 10:57:26, 708 | ERROR | Quartz-pool-1-wire-542 | TaskWaiterInvRecord | Dump of the task. #778461740

    2010-09-03 10:57:26, 708 | ERROR | Quartz-pool-1-wire-542 | TaskWaiterInvRecord | LmVimMoRef dumpster: type = value Task = task-238 | #778461740

    2010-09-03 10:57:26, 708 | ERROR | Quartz-pool-1-wire-542 | TaskWaiterInvRecord |   entityName = 0516723195-RHEL | #778461740

    2010-09-03 10:57:26, 708 | ERROR | Quartz-pool-1-wire-542 | TaskWaiterInvRecord |   descriptionId = VirtualMachine.reconfigure | #778461740

    2010-09-03 10:57:26, 708 | ERROR | Quartz-pool-1-wire-542 | TaskWaiterInvRecord |   State = error | #778461740

    2010-09-03 10:57:26, 708 | ERROR | Quartz-pool-1-wire-542 | TaskWaiterInvRecord |   name = ReconfigVM_Task | #778461740

    2010-09-03 10:57:26, 708 | ERROR | Quartz-pool-1-wire-542 | TaskWaiterInvRecord |   error.localizedMessage = invalid configuration for the device '0'. | #778461740

    2010-09-03 10:57:26, 708 | ERROR | Quartz-pool-1-wire-542 | LmVim                          | Lack of type http://com.vmware.vim.binding.vim.fault.InvalidDeviceSpec is not supported. | #778461740

    2010-09-03 10:57:26, 709 | ERROR | Quartz-pool-1-wire-542 | TaskServiceImpl | Cannot run the task VAPP_INSERT_CD_FLOPPY(com.vmware.vcloud.entity.task:778461740). #778461740

    com.vmware.ssdc.util.LMException: fault of type com.vmware.vim.binding.vim.fault.InvalidDeviceSpec is not supported.    Message [DEFAULT]: Invalid Configuration for the device '0'.

    Invalid configuration for the device '0'.

    -Several Exceptions follow: [com.vmware.vim.binding.vim.fault.InvalidDeviceSpec:]

    deviceIndex = 0

    inherited from com.vmware.vim.binding.vim.fault.InvalidVmConfig:

    property = deviceChange [0].device.backing.fileName

    inherited from com.vmware.vim.binding.vim.fault.VmConfigFault:

    inherited from com.vmware.vim.binding.vim.fault.VimFault:

    [legacy of the com.vmware.vim.binding.vim.fault.InvalidDeviceSpec: invalid configuration for the device '0'.]

    at com.vmware.ssdc.library.vim.LmVim.Convert(LmVim.java:474)

    at com.vmware.ssdc.library.vim.LmVim.Convert(LmVim.java:498)

    at com.vmware.ssdc.library.vim.LmVim.Convert(LmVim.java:509)

    at com.vmware.vcloud.val.taskmanagement.TaskWaiterInvRecord.CheckForError(TaskWaiterInvRecord.java:187)

    at com.vmware.vcloud.val.internal.impl.VC20VirtualServer.reconfigureVm(VC20VirtualServer.java:1887)

    at com.vmware.vcloud.val.internal.impl.VC20VirtualServer.InsertMediaDevice(VC20VirtualServer.java:716)

    at com.vmware.vcloud.val.internal.impl.VC20VirtualServer.InsertCD(VC20VirtualServer.java:769)

    at com.vmware.ssdc.backend.services.impl.VmManagerImpl.insertMedia(VmManagerImpl.java:1342)

    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 org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)

    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)

    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)

    at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:77)

    at com.vmware.ssdc.backend.annotation.GenericMethodDiagnosticsInterceptor.aroundMethod(GenericMethodDiagnosticsInterceptor.java:36)

    at sun.reflect.GeneratedMethodAccessor2074.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:627)

    at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:616)

    at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:64)

    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:160)

    at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)

    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)

    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)

    to $Proxy125.insertMedia (Unknown Source)

    at com.vmware.vcloud.vapp.impl.VAppServiceImpl.insertMediaTask(VAppServiceImpl.java:1654)

    at com.vmware.vcloud.vapp.impl.VAppServiceImpl.executeTask(VAppServiceImpl.java:398)

    at com.vmware.vcloud.management.system.TaskServiceImpl.dispatchTask(TaskServiceImpl.java:1009)

    at com.vmware.vcloud.management.system.TaskExecutionJob.execute(TaskExecutionJob.java:177)

    at org.quartz.core.JobRunShell.run(JobRunShell.java:199)

    to com.vmware.vcloud.scheduler.impl.ElasticQuartzThreadPool$ $3 1.run(ElasticQuartzThreadPool.java:209)

    to com.vmware.vcloud.scheduler.impl.ElasticQuartzThreadPool$ $3 1.run(ElasticQuartzThreadPool.java:207)

    at com.vmware.vcloud.common.threadpool.ThreadContextExecutor.execute(ThreadContextExecutor.java:36)

    to com.vmware.vcloud.scheduler.impl.ElasticQuartzThreadPool$ 3.run(ElasticQuartzThreadPool.java:207)

    to java.util.concurrent.ThreadPoolExecutor$ Worker.runTask (ThreadPoolExecutor.java:886)

    to java.util.concurrent.ThreadPoolExecutor$ Worker.run (ThreadPoolExecutor.java:908)

    at java.lang.Thread.run(Thread.java:619)

    Subexception: com.vmware.vim.binding.vim.fault.InvalidDeviceSpec:

    deviceIndex = 0

    inherited from com.vmware.vim.binding.vim.fault.InvalidVmConfig:

    property = deviceChange [0].device.backing.fileName

    inherited from com.vmware.vim.binding.vim.fault.VmConfigFault:

    inherited from com.vmware.vim.binding.vim.fault.VimFault:

    inherited from com.vmware.vim.binding.vim.fault.InvalidDeviceSpec: invalid configuration for the device '0'.

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

    at java.lang.Class.newInstance0(Class.java:355)

    at java.lang.Class.newInstance(Class.java:308)

    at com.vmware.vim.vmomi.core.types.impl.ComplexTypeImpl.newInstance(ComplexTypeImpl.java:143)

    at com.vmware.vim.vmomi.core.types.impl.DefaultDataObjectFactory.newDataObject(DefaultDataObjectFactory.java:26)

    to com.vmware.vim.vmomi.core.soap.impl.unmarshaller.ComplexStackContext. (ComplexStackContext.java:33)

    at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.StackContextFactory.newContext(StackContextFactory.java:92)

    at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.FaultStackContext.getNestedContext(FaultStackContext.java:84)

    to com.vmware.vim.vmomi.core.soap.impl.unmarshaller.UnmarshallerImpl$ UnmarshallContext.beginElement (UnmarshallerImpl.java:354)

    to com.vmware.vim.vmomi.core.soap.impl.unmarshaller.UnmarshallerImpl$ UnmarshallContext.parse (UnmarshallerImpl.java:258)

    to com.vmware.vim.vmomi.core.soap.impl.unmarshaller.UnmarshallerImpl$ UnmarshallContext.parse (UnmarshallerImpl.java:210)

    to com.vmware.vim.vmomi.core.soap.impl.unmarshaller.UnmarshallerImpl$ UnmarshallContext.unmarshall (UnmarshallerImpl.java:191)

    at com.vmware.vim.vmomi.core.soap.impl.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:71)

    at com.vmware.vim.vmomi.client.common.impl.ReturnvalStackContext.setValue(ReturnvalStackContext.java:42)

    at com.vmware.vim.vmomi.client.common.impl.ResponseUnmarshaller.unmarshal(ResponseUnmarshaller.java:97)

    at com.vmware.vim.vmomi.client.common.impl.ResponseImpl.unmarshalResponse(ResponseImpl.java:203)

    at com.vmware.vim.vmomi.client.common.impl.ResponseImpl.setResponse(ResponseImpl.java:162)

    at com.vmware.vim.vmomi.client.http.impl.HttpExchange.run(HttpExchange.java:103)

    to java.util.concurrent.ThreadPoolExecutor$ Worker.runTask (ThreadPoolExecutor.java:886)

    to java.util.concurrent.ThreadPoolExecutor$ Worker.run (ThreadPoolExecutor.java:908)

    at java.lang.Thread.run(Thread.java:619)

    2010-09-03 10:57:26, 730. DEBUG | Quartz-pool-1-wire-542 | TaskServiceImpl | Cleaning of the entities busy ones for task '778,461,740' | #778461740

    2010-09-03 10:57:26, 733. DEBUG | Quartz-pool-1-wire-542 | BusyObjectServiceImpl | Point entitie (s) busy 1 Ref task VAPP_INSERT_CD_FLOPPY(com.vmware.vcloud.entity.task:778461740) | #778461740

    2010-09-03 10:57:26, 743. DEBUG | Quartz-pool-1-wire-542 | TaskServiceImpl | Registered end task "778,461,740" (number of attempts: 1) | #778461740

    2010-09-03 10:57:26, 750. DEBUG | Quartz-pool-1-wire-542 | TaskServiceImpl | Job not programmed with trigger 'GLOBAL_com.vmware.vcloud.management.system.TaskServiceImpl_trigger778461740' task '778,461,740' | #778461740

    2010-09-03 10:57:26, 995 | DEBUG | pool-Pier-19 | AuthorizationMethodInterceptor | Allowing the method: public abstract java.util.Collection com.vmware.vcloud.api.presentation.service.QueryService.getList (com.vmware.vcloud.api.presentation.entity.query.QuerySpec). |

    2010-09-03 10:57:26, 995 | DEBUG | pool-Pier-19 | QueryServiceImpl | Getting the list to: vmQueryList |

    2010-09-03 10:57:26, 995 | DEBUG | pool-Pier-19 | QueryServiceImpl |     Param: isVappTemplate equals false.

    2010-09-03 10:57:26, 995 | DEBUG | pool-Pier-19 | QueryServiceImpl |     Param: OR (null) |

    2010-09-03 10:57:26, 995 | DEBUG | pool-Pier-19 | AuthorizationMethodInterceptor | Allowing the method: public abstract com.vmware.vcloud.management.query.GenericSecureQueryDao.checkAuthorization (com.vmware.vcloud.api.presentation.entity.query.QuerySpec) Sub. |

    2010-09-03 10:57:27, 001 | DEBUG | pool-Pier-19 | QueryServiceImpl |     Result: lines 1 (com.vmware.vcloud.api.presentation.entity.query.VMQueryListData) |

    From what I've observed, the media files are saved on the catlog. If you click Catlog and right-click on the media file and click Open, you would see the details on the file (datastore, host). When you return to My Cloud and select the virtual machine, you will get to see the ESX host where it is now supplied the data store where the CD must be shared with this ESX host where the virtual machine is configured.

    I'm not sure if there is no work around and shared storage usage is mandatory. Try to use Openfiler to create shared storage and use at end of test.

    If you have found this or other useful information, please consider awarding points to 'Correct' or 'useful '.

    F10

    VCP3, VCP4, HP UX CSA

    http://KB.VMware.com/

  • Cannot insert information into the Clipboard in paint

    Cannot insert information in the Clipboard in paint!

    Using Vista Ulitmate, 4 GB RAM

    The tool will capture has the same problem?  Who save the Desktop view and allow paint open the saved image, or you paste the picture in Paint?

    Do you get the error even if you start in "Safe Mode with networking" try print screen from there?

    Vista Advanced Boot Options (or 7)
    http://Techblissonline.com/Vista-advanced-boot-options/

    If it does not seek it.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/default.aspx/KB/929135

    Have you tested with another user even if you need to create one to do this?

    http://www.google.com/webhp?hl=en#hl=en&expIds=25657,25941,26758&sugexp=ldymls&xhr=t&q=%22The+information+on+the+Clipboard+can't+be+inserted+into+Paint.%22&cp=64&pf=p&sclient=psy&site=webhp&source=hp&aq=f&aqi=&aql=&oq=&gs_rfai=&pbx=1&fp=207a1c3c62b92b94

  • How to insert data into the table by using the expression builder in the assign activity

    How to insert data into the table by using the expression builder in affect business in BPEl, I use SOA Suite 11.1.1.5
    Can someone help me please

    Hello

    I don't think that oraext:query-database() can insert data into the table.

    What are your needs?
    Can not you plan to use the DB adapter with the insert operation?

    Kind regards
    Neeraj Sehgal

  • How to insert data into the database using smartview

    Hello
    I am trying to insert data into the database using * "Send data" * button on the Ribbon of Essbase.
    My database is empty.

    I opened an ad hoc network, it returns * "#missing" * in all cells
    I have modified the cells and provided data in the cells that I want to. Now, I supported on * "Send data" * button.
    It just reloaded the adhoc grid instead of submit data, I rechecked the data through data console Administrative Service are not inserted.

    I am following the right way to insert data? If not, could you please suggest me how (Populate) insert default data in the database?

    --
    VINET

    You go about it the right way, once you have submitted if you réactualisiez then data values should be there, if you POV is against members of dynamic calc and then data not written to the database, you need to check the Member properties of your POV.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Code 646, cannot install dates. The question of liciense agreement is not required.

    Code 646, cannot install dates. The question of liciense agreement is not required.

    Try this FixIt:
    Code error '0 x 80070646', '646', or '1606' when you try to install the Office updates

    http://support.Microsoft.com/kb/2258121 "a programmer is just a tool that converts the caffeine in code" Deputy CLIP - http://www.winvistaside.de/

  • Insert data on the Image

    Hello

    I want to put the image data dynamically?, can someone help me to insert data on the image?

    Its urgent I'm waiting

    Thank you

    I assume you mean the text data. You could just add a textfield over an image by adjusting the XY coordinates. You just check that your index Z is correct.

  • Insert data into the source of destinator Table

    Hi all

    Need to insert data in sample_table1 table xxc_source_table sample_table2

    create table xxc_source_table (DESCRIPTION varchar2 (10));

    Insert the table xxc_source_table values('A201.) ABC.4084.GR');

    create table sample_table1 (col_1 varchar2 (10), col_2 varchar2 (10), col_3 varchar2 (10), col_4 varchar2 (10));

    create table sample_table2 (col_1 varchar2 (10), col_2 varchar2 (10), col_3 varchar2 (10), col_4 varchar2 (10), moved_flag varchar2 (2));

    col_1 = A201

    col_2 = ABC

    col_3 = 4084

    col_4 = GR

    Note: Insert data into the col_1, the col_3, the col_4 of the xxc_source_table sample_table1

    (2) if the next (form xxc_source_table) data is exist in the sample_table2, and then set the moved_flag as Y in this column

    3) xxc_source_table has 17000 lines

    Thank you.

    Post edited by: Rajesh123 please do not consider cross the line message

    Hi Renon,

    Why you don't want substr and instr? For best performance, you should go with substr and instr instead of regexp_substr. However you asked me to provide the code instead of substr and InStr. Then try the below...

    INSERT ALL

    IN VALUES sample_table1 (col1, col2, col3, col4)

    IN sample_table2 VALUES (col1, col2, col3, col4, 'Y')

    SELECT REGEXP_SUBSTR (DESCRIPTION,'[^.] +', 1, 1) col1,.

    REGEXP_SUBSTR (DESCRIPTION,'[^.] +', 1, 2) col2.

    REGEXP_SUBSTR (DESCRIPTION,'[^.] +' 1, 3) col3.

    REGEXP_SUBSTR (DESCRIPTION,'[^.] +' 1, 4) col4

    OF xxc_source_table;

    Thank you

    Ann

Maybe you are looking for

  • Why emails are marked [in BULK]

    All of a sudden, the e-mails are marked [in bulk] why?

  • Yoga 2 13: Recovery Partitions empty?

    On a whole new Yoga 2 13 (500 GB hdd), when I check the disk management, I see the following partitions: 1000 MB (has no volume label) "Healthy (recovery partition)" 260MO (has no volume label) "Healthy (EFI System Partition)" 1000 MB (has no volume

  • Update of HP Pavilion Dv6 graphic card

    Hello I was wondering if I could update my hp pavilion dv6-3078tx graphics card. My graphics card is ati mobility radeon hd 5650. Not a bad map graphic but not the best that I can not play Assassin Creed 3. I've heard of upgrade on a laptop is imposs

  • News and updates from window feeds on my sidebar

    When I install the updates from the window, it says I have a differerent windows flavor and new microsoft feeds on my sidebar does not refresh.

  • The Activation of Windows 7 laptop: scrambled Serial Sticker.

    Hello. I have a Samsung laptop with a Windows Home Premium (x 64) OS which I completely cleaned recently.I used DBan to wipe the hard drive and when I went to activate Windows 7 again, I realized the sticker under the laptop that showed the Windows s