BUG? ORA-01461 in Unit Tester when saving a long Dynamic Value Query

I get an ORA-01461 "can bind a LONG value only for insert into a LONG column" error when saving a Test Implementation with a Dynamic Value Query whose length of the SQL statement is roughly 2,000 characters - I'm UNIONing ALL about 30 test case values together, but it seems to be choking on such a long SQL string for some reason....
I am running version Early Adopter Release #2 (2.1.0.63), build MAIN-63.10.
Thoughts?

Confirmed.
Bug 9119144: ORA-01461 IN UNIT TESTER WHEN SAVING A LONG DYNAMIC VALUE QUERY (OR OTHER CLOB)
Brian Jeffries
SQL Developer Team

Similar Messages

  • How can I compare the actual and expected values in Unit testing when they are XML files?

    I have created a unit test for a method in VS 2008. My expected value and actual value are XMLs. Therefore though the output is same as I expect it gives an error as I am doing string comparison now. How can I compare these 2 XMLs in expected output and
    actual output format in Unit Testing?
    mayooran99

    In unit test, when you want to validate XML files, you feed them into the class / struct that you want to feed the XML into and compare the values there (You don't just feed it in XMLReader and feed it line by line, right? But if it really is, that's how
    you should also test it in unit tests).
    In short, how you'd use the XML in your code, that's how you should test it in unit test.

  • [svn:osmf:] 15979: Second code submission for bug FM-760, add unit tests to increase code coverage.

    Revision: 15979
    Revision: 15979
    Author:   [email protected]
    Date:     2010-05-09 16:26:09 -0700 (Sun, 09 May 2010)
    Log Message:
    Second code submission for bug FM-760, add unit tests to increase code coverage.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-760
    Modified Paths:
        osmf/trunk/framework/OSMFTest/org/osmf/OSMFTests.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/dvr/MockHTTPNetStream.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/dvr/TestHTTPStreamingDVRCastDVRT rait.as
    Added Paths:
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/TestHTTPNetStreamMetrics.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/TestHTTPStreamRequest.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/TestHTTPStreamingFileHandlerBase .as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/TestHTTPStreamingIndexHandlerBas e.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/TestHTTPStreamingUtils.as

    Revision: 15979
    Revision: 15979
    Author:   [email protected]
    Date:     2010-05-09 16:26:09 -0700 (Sun, 09 May 2010)
    Log Message:
    Second code submission for bug FM-760, add unit tests to increase code coverage.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-760
    Modified Paths:
        osmf/trunk/framework/OSMFTest/org/osmf/OSMFTests.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/dvr/MockHTTPNetStream.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/dvr/TestHTTPStreamingDVRCastDVRT rait.as
    Added Paths:
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/TestHTTPNetStreamMetrics.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/TestHTTPStreamRequest.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/TestHTTPStreamingFileHandlerBase .as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/TestHTTPStreamingIndexHandlerBas e.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/TestHTTPStreamingUtils.as

  • [svn:osmf:] 15956: First code submission for bug FM-760, add unit tests to increase code coverage.

    Revision: 15956
    Revision: 15956
    Author:   [email protected]
    Date:     2010-05-07 10:42:13 -0700 (Fri, 07 May 2010)
    Log Message:
    First code submission for bug FM-760, add unit tests to increase code coverage.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-760
    Modified Paths:
        osmf/trunk/framework/OSMFTest/org/osmf/OSMFTests.as
    Added Paths:
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/dvr/
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/dvr/MockHTTPNetStream.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/dvr/TestDVRInfo.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/dvr/TestHTTPStreamingDVRCastDVRT rait.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/dvr/TestHTTPStreamingDVRCastTime Trait.as

    Revision: 15956
    Revision: 15956
    Author:   [email protected]
    Date:     2010-05-07 10:42:13 -0700 (Fri, 07 May 2010)
    Log Message:
    First code submission for bug FM-760, add unit tests to increase code coverage.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-760
    Modified Paths:
        osmf/trunk/framework/OSMFTest/org/osmf/OSMFTests.as
    Added Paths:
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/dvr/
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/dvr/MockHTTPNetStream.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/dvr/TestDVRInfo.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/dvr/TestHTTPStreamingDVRCastDVRT rait.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/dvr/TestHTTPStreamingDVRCastTime Trait.as

  • Unit test with Dynamic Value Query

    Hi,
    I am planing a function which should return a table name for a given ROWID. The ROWID will be selected from a view. Now I am trying to setup a unit test which consists of Startup and Teardown Process as well as a Dynamic Value Query. During Startup Process one dataset is inserted in a table which is part of a view definition. The dataset should be selected during Dynamic Value Query. However I am getting the following error message: Unable to run the test because no rows were returned by the dynamic query. Is there the possibility that within a Dynamic Value Query I can't make use of datasets which where inserted by a Startup Process? I am asking because the selection outside the unit testing framework supplies the dataset as expected.
    SQL Developer: 3.2.20.09 Build MAIN-09.87
    Java: 1.6.0_45
    Regards.

    Dynamic SQL is very tricky.  Since you can get the data outside your application extract and test the dynamic SQL as it is generated.  When working with dynamic SQL I find it useful to first generate the SQL text as a string and then if necessary store it in a table (CLOB type) for later reference.  Because of the uncertainty of obtaining bind variable values later I prefer to hard-code such values into dynamic SQL - possibly slightly less efficient for Oracle at run time but a lot easier to work with when debugging and tuning (again, apart from the built-in inefficiency of not using bind variables)  I usually find the overhead of the hard-coded values not too bad and the ability to know the data values at a glance useful.  I also find it useful to write dynamic SQL in such a way so that the resulting statement can be pasted in to any normal SQL tool (SQL*PLUS, SQL*Developer) and run without any editing.
    There may be some quirk in the generated dynamic SQL preventing it from finding anything.
    Good luck.

  • 30EA2 - UNIT TESTING - Dynamic Value Query truncating time from dates.

    So i've been using the SQL Developer Unit Testing facility (very nice by the by) for a bit now and just recently upgraded to the latest beta release (3.0.02.83). It looks like a bug was introduced whereby the dynamic value queries are truncating all the time information from any DATE Data Types.
    This causes some serious sadness for my current test cases and for me since i have to revert to the previous beta release :)

    Irian wrote:
    I noticed that in the new 30EA2 the parameter:
    AddVMOption -Doracle.jdbc.mapDateToTimestamp=false has been introduced by default in
    [SQLDEveloper_install_dir]/sqldeveloper/bin/sqldeveloper.confmaybe this has something to do with the incorrect date behaviour, try to remove the parameter and check again.That seems to have done the trick.
    Many thanks!

  • Getting this error when saving: Names longer than 31 characters are not supported on the destination volume

    I've just tried to save a document in Pages and got this error
    Names longer than 31 characters are not supported on the destination volume
    Never had a problem like this before. I haven't changed disks or formatted disks. Running latest Yosemite 10.10
    The only reference I can find to this error on the internet says that it's for applications prior to OS X which I think we can discount.
    The only other reference I can find in the support community relates to one person with problems saving attachments in Mail and dates from early 2014.
    Can anybody give me a suggestion on what I might need to do?
    Thanks

    What format are you saving to?
    Where are you saving the files to and what is that volume formatted as?
    Have you tested with files from other applications, such as TextEdit?
    Peter

  • JavaScript works when saving file as Dynamic or Static but not 6.0 compatible

    I need to be make required fields not required when a form is submitted from a specific button. This gives the user the ability to save the form without having to complete it. I have this working using the following script when the form is saved as Dynamic or Static.
    for (var i = 0; i < xfa.host.numPages; i++)
    var fields = xfa.layout.pageContent(i, "field");
    for (var j = 0; j < fields.length; j++)
    var field = fields.item(j);
    field.mandatory = "disabled";
    But when the form is saved as Adobe 6.0 Compatible, it does not work. Can anybody explain to me why this is? And possibly help me convert this so it will work with Adobe 6.0 forms.
    Thanks
    Nate

    But if I run that in terminal I get this:
    anthony-computer:~ anthonyjk$ java -version
    java version "1.5.0_13"Yes - commandline/Terminal, that's what I meant.
    So long as the program doesn't use any 1.6-only features, then will it will compile OK both at school (using1.6) and at home (using 1.5). Eclipse can be told to produce .class files that are compatible with a particular runtime. In your case the school compiler was producing 1.6 class files that are no good when you take them home. Hence the need to recompile, telling Eclipse you want 1.5 compatible .class files.
    Or - as I mentioned - download and install the most recent JDK for use at home. There'll be less confusion that way

  • When overwritting CLOB longer previous value still remains

    Hi,
    I have a problem with updating CLOB's. Below is how I write them:
    String selectStatement = "select description from modules where " +
    "system = ? and version = ? and module = ? for update";
    PreparedStatement selStmt = con.prepareStatement(selectStatement);
    selStmt.setString(1, system);
    selStmt.setString(2, version);
    selStmt.setString(3, module);
    ResultSet rset = selStmt.executeQuery();
    ResultSetInPool rpool = (ResultSetInPool)rset;
    if (rpool.next()) {
    desclob = (CLOB)((OracleResultSet)rpool.getUnderlyingResultSet()).getCLOB(1);
    // Write character stream (description) to CLOB variable
    writer = ((CLOB)desclob).getCharacterOutputStream();
    writer.write(description.toCharArray());
    writer.flush();
    } else {
    throw new NoSuchEntityException("Row does not exist");
    The problem is that when there is a value already written which is longer then new one, part of the old value (which has not been overwriten) still remains in the database. Is that normal behavior? Is there any way how to address this problem better/faster then updating row with EMPTY_CLOB() and writting string again?
    Thanks for response in advance,
    RAF

    Hi Rafal,
    If you are using Oracle9i JDBC Drivers, then use the
    oracle.sql.CLOB.trim(long offset) method to clear the contents of the CLOB.
    like ,
    // clear the contents of clob
    clob.trim(0);
    else If you are using JDK 1.4 , use java.sql.Clob.truncate(long offset)
    clob.truncate(0);
    then start streaming the new contents into the clob.
    I guess its the normal behaviour of CLOB.
    Regards
    Elango.

  • [svn:osmf:] 15073: Add unit tests for AdobeFragmentRunTable.as

    Revision: 15073
    Revision: 15073
    Author:   [email protected]
    Date:     2010-03-26 13:48:28 -0700 (Fri, 26 Mar 2010)
    Log Message:
    Add unit tests for AdobeFragmentRunTable.as
    Fix bugs uncovered by the unit tests
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/f4f/AdobeBootstrapBox.as
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/f4f/AdobeFragmentRunTable.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/HTTPStreamingTestsHelper.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/f4f/TestAdobeBootstrapBox.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/f4f/TestAdobeFragmentRunTable.as
    Added Paths:
        osmf/trunk/framework/OSMFTest/org/osmf/net/httpstreaming/f4f/TestAdobeFragmentRunTableInt egration.as

  • Abt unit  test plan

    hi
    can u plz explain abt unit test planning?
    es

    hi bramara,
    Unit testing is used to test the proper working of a single module.
    Integration testing is used to test the integration between the modules,
    when the complete business scenario of a client is tested (say from sales order creation to receipt of money from customer).
    Unit Testing
    When you test every single document is called unit testing.
    String Testing
    One transaction full activity is called string testing. For example Vendor
    invoice, goods received and vendor payment.
    Integration Testing
    It is purely with other modules and we have to check whether the FI testing
    is working with other related modules or not.
    Testing of combined parts of an application to determine if they function
    together correctly.There are three types of integration testing.1. Big bang
    testing: Testing with all modules combined together invariable of its
    levels. Often done for small projects.2. Bottom up test:Testing by
    integrating lower level modules and ascending towards the higher-level
    modules.3. Top down: Testing the higher-level modules and descending towards
    the lower level modules.This can be accomplished with dummy modules to
    replace the under construction modules with so-called stubs and drivers.
    not.
    Regression Testing
    Testing for whole database. Bring all the data into another server and do
    the testing is called regression.
    Thanks,
    <REMOVED BY MODERATOR>
    kushagra
    Edited by: Alvaro Tejada Galindo on Jan 31, 2008 9:45 AM

  • Variable substitution in Unit Testing validation - Date format?

    Using SQL Developer unit testing, I am having difficulty comparing Date datatype in a validation.
    I use a Dynamic Value Query to set the parameters of an insertion procedure under test.
    select * from (select doc_nbr as p_mstr_doc_nbr, doc_nbr as p_assoc_doc_nbr, sysdate as p_date_added from documents sample(0.01) order by dbms_random.random)  where rownum <= 1;So P_DATE_ADDED is a DATE datatype.
    I wish to validate that the insertion was correct. So I run a Process Validation returning one or more rows.
    SELECT * FROM X100_ASSOC
      WHERE MSTR_DOC_NBR = '{P_MSTR_DOC_NBR}'
        AND ASSOC_DOC_NBR = '{P_ASSOC_DOC_NBR}'
        AND to_char(DATE_ADDED,'dd-MON-yy HH24:MI:SS')  = {P_DATE_ADDED};I understand that the {P_DATE_ADDED} is substituting in a string. From Help page :
    "What is actually substituted is the string representation of the parameter value. For example:
    If P1 is a parameter of type NUMBER and has the value 2.1, the string {P1} will be replaced by the string 2.1.
    If P1 is a parameter of type VARCHAR2 and has the value ABC, the string '{P1}' will be replaced by the string 'ABC'. (Note the single-quotation marks around {P1} in this example.)"
    I need to know the format that the date is cast into as a string. Then I can do the comparision on the where clause.
    Any answers? or details of where is more in depth documentation?
    Thank you,
    Bill

    I agree as a general rule. However in this case, it appears that the variable substitution routine is returning the default format. So to compare my expected data to the returned data I choose to use the default format. If the variable substitution routine specified an explicit format, I would use that. In my original question, I asked if anyone knew the format.
    Regards,
    Bill

  • SQL Developer 3 EA1: Unit test

    Hi,
    I just started using the unit test frame work in SQL Developer 3 EA 1 and I need some help defining a test case involving parent - child tables that are manipulated using a plsql API. The API for the child table requires the key of a record in the parent table. The parent record, and its key, is created by a test case startup process. The key is retrieved using a dynamic value query in the test implementation. It appears the dynamic value query is executed before the test case startup processes have been executed. Is this expected behaviour? My expectation is the startup processes are executed before the dynamic values query.
    Also, is it possible to use values from the startup processes as parameter values of the test case other than using a dynamic value query?
    Test case summary:
    2 Startup processes: The first deletes all data from parent and child tables. The second inserts in a record into the parent table.
    Zero Teardown processes.
    Test implementation: Dynamic value query that selects the key from the parent table and defines literals for the remaining parameters of the test case.
    1 Process validation: Test whether a record has been inserted into the childe table with the expected values.
    Thanks
    Alistair

    Hi Alistair -
    We execute the dynamic query to control how many times the test (start up, test case, validation, tear down) cycle executes.
    To get the behavior you want, put the test in a test suite and have the test suite start up do the table initialization for you.
    Brian Jeffries
    SQL Developer Team

  • List of values failure error when trying to use dynamic data values

    Hi there,
    I have a user who is experiencing problems when trying to use dynamic values in a report.  Whenever he tries to insert dynamic parameters he gets the following error message:
    Prompting failed with the following message: 'List of Values failure: Failed to get values.  [Cause of error: Access is denied.]  Error Source: prompt.dll  Error Code: 0x8004380D
    He even opened the sample report - prompting.rpt - that is included with CR and gets the same error.
    We are using Crystal Reports XI Release 2 ver. 11.5.11.1470.
    Any help would be appreciated.

    Please excuse my ignorance of the product.  I've had this problem dropped in my lap and I know practically nothing about Crystal Reports.  In doing some digging it appears to me as if the BusinessObjects Enterprise software may not be installed properly, if at all.  In the programs menu under the BusinessObjects XI Release 2 folder I see a BusinessObjects Enterprise folder, but the only icon listed in that folder is Software Inventory Tool.
    Is the BusinessObjects Enterprise software a separate install from Crystal Reports or is it bundled together?  I talked with the tech that did the install and he said that all he had was the Crystal Reports install media.

  • SQLDEV 2.1.0.63 gives ORA-904 on UT_TEST_RESULTS when running unit test

    Hi, I am trying to create and run my first unit test using sqldeveloper 2.1.0.63 but it fails with followkng error:
    ----- Error Stack Dump -----
    ORA-00904: "TEST_USER_NAME": invalid identifier
    ----- Current SQL Statement for this session (sql_id=b9c4zd8fqmykv) -----
    select utr_id, name, status, message, run_date,coverage,test_user_name from ut_test_results where ut_id = :ID order by run_date desc
    table ut_test_results indeed does not have this column test_user_name:
    SYS@madlnlcs11/map SQL> DESC UT_SP5.UT_TEST_RESULTS
    Name Null? Type
    UTR_ID NOT NULL VARCHAR2(40)
    UT_ID NOT NULL VARCHAR2(40)
    NAME NOT NULL VARCHAR2(120)
    STATUS NOT NULL VARCHAR2(20)
    MESSAGE VARCHAR2(2000)
    COVERAGE NOT NULL NUMBER(1)
    RUN_DATE NOT NULL TIMESTAMP(6)
    CREATED_ON NOT NULL TIMESTAMP(6)
    CREATED_BY NOT NULL VARCHAR2(120)
    UPDATED_ON NOT NULL TIMESTAMP(6)
    UPDATED_BY NOT NULL VARCHAR2(120)
    how come there's this mismatch? The Unitest repository was created by the same sqldeveloper !
    regards,
    Andre

    This seems to be coming from the repository being marked as Shared repository. Appearantly sqldeveloper is issueing a different query, referencing TEST_USER_NAME, in that case. After I did a DESELECT AS SHARED REPOSITORY and drop/recreate of the repository the error ORA-904 no longer occurs.

Maybe you are looking for

  • How Do I Place image from online source?

    I need to insert an image from the internet. How do I do that?

  • Database Link, nice but drops

    I have a database link to a remote site (staging server to live server). All is well until I throw quite a lot of data (some data from a table full of BLOBs), at which point I get, for example... SQL> insert into MyTable@Myremote select * from MyTabl

  • Alertbox on submit email if a subform is visible

    Hello, I'm trying to create a script that would show a alertbox reminding the user that he must join needed files to the email before sending it. But this message must only be shown if a specific subform is visible, if it is not, than it must tranfer

  • Is it possible to save a video massage that I've r...

    I have a received a video message and I would like to share it with some friends out of skype but I dont know how. If at least I knew how to to save it or forward it (even on skype) or find it on files manager. So does anyone knows how to??

  • Poolable exception IN OAF

    HI All, I am working in R12 when i am running one custom page from jevloper it is giving strange error can any one help me to resolve this i think one profile option is there to resolve earlier i done like that i for got that profile option can any o