Unit test in sql developer 4.1 fails but passes in 4.0

I can't tell if it's a question of Java or Sql * developer issue.

SQL * Developer Version: 64-bit 4.1.0.17.29

Versions of Java: Tried jdk 8: 1.8.0_5, 1.8.0_20 and 1.8.0_31 - all 64 bits

That is the message in the response of unit test:

CPS_TOOLS.PREP_FOR_DELIMITED_FIELD failed: Missing defines
oracle.jdbc.driver.Accessor.isNull(Accessor.java:744)
oracle.jdbc.driver.CharCommonAccessor.getString(CharCommonAccessor.java:350)
oracle.jdbc.driver.OracleCallableStatement.getString(OracleCallableStatement.java:661)
oracle.jdbc.driver.OracleCallableStatementWrapper.getString(OracleCallableStatementWrapper.java:860)
oracle.jdbc.proxy.oracle$1dbtools$1raptor$1proxy$1driver$1oracle$1RaptorProxyOJDBCStatement$2oracle$1jdbc$1internal$1OracleCallableStatement$$$Proxy.getString(Unknown Source)
oracle.dbtools.raptor.datatypes.strategies.callablestatement.CallableBindingVARCHAR.customOutputByPosition(CallableBindingVARCHAR.java:51)
oracle.dbtools.raptor.datatypes.strategies.callablestatement.CallableBindingDatumAtName.customOutput(CallableBindingDatumAtName.java:123)
oracle.dbtools.raptor.datatypes.impl.CallableBindingImpl.getOutput(CallableBindingImpl.java:74)
oracle.dbtools.unit_test.testObjects.UtTestImplArgs.getOutput(UtTestImplArgs.java:320)
oracle.dbtools.unit_test.runner.Runner.executeRunn ...


Now, the same unit test works with the following text:

SQL * Developer Version: 64-bit 4.0.2.15

The Versions of Java: 64 bit jdk 7 - 1.7.0_55

I tried to follow here debug information collection:

http://www.thatjeffsmith.com/archive/2012/06/how-to-collect-Debug-Info-for-Oracle-SQL-Developer/

However, there is no report in the command window after a ctrl-pause/break. At the same time, however, it is not like sql * developer hangs here.

Thoughts?

EA 4.1 includes a new feature to save all JDBC calls (view > Log, and then note the statements tab in the logs pane), so it could be the difference in the behavior of Test Unit between 4.0 and 4.1.

You use the JDBC default 12.1 driver, or you have overridden by specifying a particular Oracle client?  In other words, in

Tools > Preferences > Database > advanced > use Oracle client > configure...


I read that somewhere there may be problems when you use the clients pre - 12 c with earlier versions of JDBC. driver

Tags: Database

Similar Questions

  • Automation of unit tests for the development of the ATG

    Hello
    I'm trying to set up unit tests automated to ATG. Is there anyone who has had success with this? I searched the whole forum and there is no indication in this sense. Is there anyone doing TDD for ATG?

    I've tried the ATG dust, but it is not useful and has many gaps. Anyone succeeded with other frameworks such as Mockito, needle, EasyMock etc. ? Any help is appreciated.

    It will be interesting to know what the ATG developers use for unit tests.

    Thank you.

    You can try Mockito.

    Setup
    1 initialize the component to be tested (Formhandler/repository/droplet etc.) and possible data (form entries etc.).
    2 mock, the calls of the method required when using method in mockito.

    Test
    1. write all possible test methods.
    2 when use, check the methods in Mockito for testing your methods.
    3. you can also use assertions to test the results (Ex: form errors)

  • Is there a real BENEFIT in SQL * Developer Automated Unit Testing?

    I'm trying to understand the unit test in SQL * Developer. Asked me to evaluate it as a method of test automation on an integration solution that we develop.

    (1) my 'A' schema has this table:

    SQL > DESC EMP

    Name                                      Null?    Type

    ----------------------------------------- -------- --------------------

    EMPID NOT NULL NUMBER

    EMPNAME VARCHAR2 (30)

    SALARY NUMBER (7.2)

    COMM_PCT NUMBER (2.2)

    Table (2). has these values:

    SQL > SELECT * from emps;

    EMPID EMPNAME SALARY COMM_PCT

    ---------- ---------- ---------- ----------

    1 ROHAN 10000.05

    2 JOHN 20000

    3 PETER.06

    4 SMITH

    (3.) I create this procedure in drive A:

    create or replace

    PROCEDURE award_bonus (NUMBER, sales_amt NUMBER p_empid)

    AS

    REAL Commission;

    comm_missing EXCEPTION;

    BEGIN

    SELECT comm_pct IN the commission OF EMP

    WHERE empid = p_empid;

    IF the commission IS NULL THEN

    RAISE comm_missing;

    ON THE OTHER

    PGE UPDATED

    SET salary = salary + sales_amt * commission

    WHERE empid = p_empid;

    END IF;

    END award_bonus;

    (4) now, I want to create a unit test in SQL Developer to test this procedure.

    (5) I created a user "unit_test_repos" according to the instructions in the tutorial.

    (6) ' SELECT OPERATION': I specifies the procedure of award_bonus.

    (7) ' SPECIFY the name of test': give a name and select "create with a single model.

    (8.) 'SPECIFY the STARTUP': Add a ' copy Table or the line "the startup process.

    -I give "EMP" as the source table.

    -And then I get this for the 'generated query.

    SELECT ROWID AS SRC$ ROWID, s.* FROM EMP s

    -Target table has "TMP$ AWARD_BONUS.

    (Q1) WHAT IS THE PURPOSE OF CREATING ANOTHER TABLE?

    (Q2) WHEN THE TEST IS DONE, ARE ROWS OF PGE copied into this table?

    (Q3) Why is this? Why can't the test simply read 'EMP '?

    (9) "PARAMETERS SPECIFY": I give "Input".

    -1 for P_EMPID

    -10000 for SALES_AMT

    -In "Expected result", I say "success."

    (Q4) So I should know in my mind the results of the proc, foregoing given entries?

    (10) ' SPECIFY VALIDATION': I add validation "poll rows of queries.

    -I paste the following query: SELECT count (*) FROM EMP WHERE empid = 1 AND salary = 10500

    -that is, I know that for an amount of 10000 sales, employee 1 will get a Commission of 10000*.05 = 500. For example, 10000 (its sal) + 500 = 10500.

    (Q5) The thought that the above is correct?

    (11) "TEARDOOWN SPECIFY": give nothing.

    (12) my unit test is created.

    (13.) I run now by clicking on the button of the beetle, to the left of the green arrow. Unit test is run.

    (14) now in my table a.emps, 1 salary has increased to 10 500, and the diag test case, I get the "execution results: SUCCEED.

    (15) now, I run the unit test again.

    (16.) salary 'EMP' table emp 1 is passed to 11000 (which is correct) and the so-called execution results "SUCCESS".

    (Q6)  My question is: the query I gave for validation, SELECT count (*) FROM EMP WHERE empid = 1 AND = 10500 salary, now gives 0. so, this means that no row is returned for this condition and so the test must FAIL. But how is SQL * Developer said that the test was SUCCESSFUL. How does this system of validation?

    (17.) I went through the tutorial, but I do not understand these concepts >

    (Q7) What is the purpose of disassembly? I undersand the option 'drop table' "disassembly", where you drop the temporary table, but I do not understand the others, 'Table or line restore' and 'code pl/sql user '?

    (Q8) WHAT IS the advantage of making the test like this? Can I use an Excel spreadsheet and make dozens of unit tests faster than this method?  It is easy to understand too. This method is complicated.

    Your answers and your advice would be greatly appreciated.

    The temporary table to hold the original values for EMP. After the test runs, you must configure the disassembly to reset the return values of the temporary for the next time table that the test works again, he has values of expected start.

  • Failed to create the unit test repository, tools > Unit Test > salt current rep

    Hello

    I am trying to create a unit test in sql developer 2.1 in my local machine.

    According to the user's guide to running a Unit Test of your PL/SQL Oracle SQL Developer 2.1 mentions

    Select Tools > Unit Test > reference, and then select Select current deposit.
    It should prompt for connection of repository.

    In my sql developer, it does not prompt on repository selection current (it does no action).

    It has no parameters of preference or what could be the problem?


    Help, please.

    FYI: RC1 includes this fix and was published earlier today on OTN.

  • Why SQL Developer randomly at the end sometimes introduced the special strings?

    I noticed that the SQL Developer has some problems with string manipulation in its code.

    SQL Developer 3.2 when generate us scripts of our efforts using SQL Developer data modeling we often have problems with 'archiving' scripts generated in our SVN repository because he complains about the inconsistency with line endings, and some generated lines have apparently invisible special characters (non-ascii) to the end. The solution is to open the scripts using MS WordPad and save the files immediately, as this text editor would be to filter all characters (not ascii) invisible. So, it wasn't a big deal...

    But now as we explore the SQL Developer 4, we have noticed that we have added to the names of columns during dismantling of 'Table or restore line' operations, special characters effectively corrupted tables (table definitions in the dictionary) that we use in the corresponding unit tests.

    The team SQL developers aware of the problem and if so is there any workaround?

    Please advise...

    Thank you

    Val

    Just a quick update:

    Has obtained another definition of 'corruption' in Toad table after running a unit test in SQL Developer (with the process of disassembly of the table or restore the line) and there seems to be a bug in Toad, not in SQL Developer. The special characters shown in Toad have nothing to do with the actual table definition in the dictionary. After you restart the Toad, the table definition looks good again. Probably a matter of caching in Toad...

    Thank you

    Val

  • SQL Developer CLI honor named connections in SQL dev

    While trying to run SQLDEV CLI, I get the error during command line call. Here's what I did-

    (1) created a unit test in SQl Developer

    (2) verified that it works correctly

    (3) open the command prompt and went to SQLdeveloper/sqldeveloper/bin dir.

    (4) called-> unittest sdcli64.exe - run - test - name "AWARD_BONUS_TEST" - repo UT_REPO - db HUB28. (name of the connection, the name of repo are same with SQL Developer)

    obtained after error-

    Oracle.jdeveloper.db.ConnectionException SEVERE: cannot connect to the HUB28 database. encountered error is: invalid connection information specified.

    Check the URL format for the specified driver.

    oracle.jdeveloper.db.DatabaseConnections.getUniqueConnection(DatabaseConnections.java:677)

    SEVERE empty - java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:207)

    Unable to run the test.

    Environment-

    Developer SQL 4.0 ai2

    Windows 7, 64 bit.

    Java (build 1.7.0_40 - b43) 64-bit

    Jeff Smith Sqldev Pm-Oracle Gary Graham-Oracle , I was able to run tests using SDCLI, well, there is opposition Repository connection and target DB were setup in SQLDEV using connections based TNS, SQCLI has managed to connect repository but never target DB, once I changed the target DB for a named connection (providing Server, SID) it starts to work properly. Cross, I checked all the documents, but could not find any reason for this behavior. He can see that works similarly to the 3.1, 3.2, 4.0 EA1, 4.0 ai2 can you confirm that it is intended?

  • 2.1 ai2: nobody knows what the time units are in unit tests?

    Hi all

    I ran a few tests in SQL Developer ai2 and I'm curious to know the units of time that I see in some contexts; If anyone can enlighten me, I would be very grateful...

    (1) I have my unit test set to 'collect Code coverage statistics.
    (2) when I run a test, the results tab shows the columns 'Status' and 'Time' - 'Period' means here? For example, my test '1 826' watch - is this milli-seconds of processing time? Any other clues?
    (3) I then look at the 'Test Runs Code Coverage' report and click on the appropriate entry in the upper part of the screen, which shows me the «Code coverage Details» view
    (4) I can make sense columns 'Line', 'Text' and 'Total_Occurrences', but what makes the value of the average of column "Total_Time" here? For example, for simple SUBSTR assignment operations, I see a "Total_Time" of "1201", is this microseconds, nano-seconds?

    Many thanks in advance,

    Chris Hughes

    Hi Chris -.

    (2) the term is in milliseconds (1/1000 second) (this is the time from the customer point of view for each operation)
    (4) Total_Time is in nanoseconds (1/1000000000 sec) (or at least what the documentation for plsql_profiler_data.total_time (where get us all this) ;)) said

    Brian Jeffries
    SQL development team

  • Characters not visible (caused by hitting the bar space or TAB in PL/SQL developer tool) causing slow running query? and database with low performance?

    Hi all

    I need your help to get this issue resolved its urgent and I'm not able to get to the conclusion. Here is my scenario, I'm getting slow query runs because of some non-visible characters that are copied with the application of the PL/SQL developer tool. Please find below attached screenshot: Oracle_Issue

    Oracle_Isssue.png

    Note: This non-visible characters are caused when we write the query then us hit the SPACEBAR or press TAB PL/SQL developer tool

    I use the developer tool PL/SQL to write or test the query. Now I take this request copy paste in my application of the company (who takes this query connects to Oracle or any source of data base, catch data and produce PDF reports for customers).

    Now, my client is the Oracle user when I write and you run this query by the PL/SQL Developer, it works fine, but when I paste in my Inbox feature request (reporting system) and run it, it runs slower and jams to the customer database. Now after a little research I found that when I copy the query directly from PL/SQL developer at my request, he copy some characters not visible (introduced when we press SPACE or TAB in PL/SQL developer tool when writing query) with the request, then I copy this query again to my box of the application Notepad and delete these non-visible characters. Now, after removing the non-visible characters again once I copy backup question in my application and run the query, it works normally. Please find below attached screenshot: Oracle_Issue 2

    Oracle_Isssue_2.png

    So I think that the cause of slow performance is due to some INVISIBLE CHARACTERS present in the query.

    My application uses SQL server 2008-2012 at the backend to store data from different sources.

    Character set used: SQL_Latin1_General_CP1_CI_AS


    To write and test queries: PL/SQL developer tool

    My Client use Oracle 11 g

    Character set used: Normal character: NLS_CHARACTER: AL16UTF16

    National Characeter: NLS_NCHAR_CHARACTER: WE8WIN1521

    I just wanted to know the blocking process to the top of the database and the characters not visible how affecting slow running query of query database.

    Please let me know if I'm missing something or you need more information on this issue.

    Thanks in advance,

    HP

    Simple answer. No.

    Spaces and line breaks do not change the execution plan created. Does not plan to run slower or faster.

  • What Sql Developer 'sensitive' items?

    Hello
    in the company I work in Pl/Sql Developer-I use to develop in pl - sql (this is the product of http://www.allroundautomations.com/plsqldev.html Allround Automations), as to what we work on Oracle. 8.1.7.
    Recently, I tried to install on my Oracle's Sql developer PC to. 1.1.2 which seems to work well (the latest versions are for Oracle 9->)
    I noticed that, talk to the product that I use, with Sql Developer so I write a statement such as:

    Select a.field1, a.field2
    FROM MaTable a
    where a.

    After a. tool does this for me the list of the columns in mytable and it would be very useful.
    Is this due to the fact that is not a possibility of Sql Developer or I need to do something in preferences or worms. 1.1.2 does not support this feature?

    Thank you!

    Published by: Mark1970 on February 17, 2010 5.29

    I think that it is better to use a tool for my professional competence, is not it?

    Not necessarily. Toad, PLSQL Developer and others are mature tools for working with DBs Oracle SQL Developer still has many bugs, even in version 2.1, and you should know what you can do and where not to trust him, for example, the missing lines when exporting large data sets.

    Concerning
    Marcus

    P.S.: I have installed on my PC to Toad but use SQL Developer almost exclusively. But I'm first adopters, tested all versions and I think I know when does not trust Developer SQL and use instead of other tools.

  • Why is-menu Oracle SQL Developer navigation so slow?

    For example if I click Tools, it takes like 5 seconds to open.

    The cursor icon taking also like 2-3 seconds to next day where it is.

    Oracle SQL Developer has impressive features, but I can't use it like that.

    Can anyone help or point in a direction?

    It's a nice machine but I remote desktop to it, but the rest of the applications are working fine.

    #added it

    AddVMOption - Dsun.java2d.noddraw = true

    AddVMOption - Dsun.java2d.ddoffscreen = false

    looks a bit better

  • To use SQL Developer 4.0.1 (4.0.1.14.48) on the operation of Win7 32-bit; but no JDK provided with the 32-bit download?

    For some reason, my IT Department installed a 32-bit Win7 on a laptop capable of 64-bit (HP ProBook 6460 b).

    I want to download and use SQL Developer 4.0.1 but see there is no 32 - bit download of it delivered with a suitable JDK.

    What are my options here

    (1) anyone can provide a download link for the appropriate JDK, and then what I do with it? I can place it in the same folder as the SQL Developer? I don't have administrative rights on my laptop by the way...

    (2) can I ask my IT dept to reimage my machine with Win7 64 bit rather than the 32-bit Win7?

    Here are the specifications of my laptop. Because it seems to be able to address up to 16 GB of RAM, I suspect 32 bit Win7 was installed as the laptop has only 4G of RAM in it. And without having to address more than 4 GB of RAM, it was perhaps the deciding factor to install a 32-bit version on Win7. Frankly, had not realized, he had nothing, but a 64 bit version of Windows 7:

    What is the least disruptive option / path of least resistance here?

    http://h10010.www1.HP.com/wwpc/pscmisc/VAC/us/product_pdfs/HP_ProBook_6460b_Notebook_PC_Datasheet.PDF

    You must inform your IT Department, you want a 64 bit OS.

    Then tell them you want to double your RAM.

    Trust me on this one.

    If they say no, then ask them to install Java 32 bit 7 on your machine, and you'll be ready to go.

  • Cannot connect to SQL developer

    Hi guys,.

    I have Installled Oracle Sql Developer... But I'm not able to run sqldeveloper.exe and no action that happens.

    Could you please guide me please.

    Using WIn XP

    If you run from \sqldeveloper\bin\sqldeveloper.exe, do you get any output in the console open when starting sqldev? This could help to diagnose the problem.

    K.

  • SQL Developer connection failure

    I still have problems with connecting to oracle databases I asked this before without success. Problem is that I have 3 different houses installed (database client and developer 2 studios), unfortunately I need each other. Current location ORACLE_HOME is the latest installation (I hope in fact). When I'm trying to connect to the database using the SQL Developer, I have an error to not load the jdbc library. It's strange because any other application using the database (including SQL +) works very well.
    When it is run the formula subject SQL Developer I found that oracle.home property points to the SQl Developer's installation directory but the jdbc.driver.home, jdbc.library orai18n.library all point to the first House that had been installed. That will probably cause problems.

    My question is how to change the locations by default option/paths, where are found these entries? Or what can I do to force it to work?

    You don't say what version you have, but I'm assuming because of the mistake of jdbc library 1.5.x.

    SQLDev 1.5 comes with the 11g JDBC driver, and if you use the OCI driver then it must be able to find a 11g OCIJDBC. DLL. to avoid this problem install a client 11g or avoid using the OCI driver in sqldeveloper.

    You can get sqldeveloper to ignore all other households by wrapping it in a batch file that does

    set ORACLE_HOME = % CD
    Start sqldeveloper.exe

  • sql question 4.1.1.19.59 of unit test developer

    Hello

    4.1.1.19 version build HAND - 19.59 I had a problem to run the unit tests with exception as expected result. No matter if I say "ANY" or specify an error number. All the tests fail. Must be a bug.

    Oracle SQL Developer  API_OBJEKTARTEN.GetXMLViewName.png

    Kind regards.

    SQL Developer restarting solves the problem.

  • SQL Developer: Failure-Test failed: IO error: got at least one by a CA read

    SQL Developer: Failure-Test failed: IO error: Got minus one since a call to reading

    Hello

    I'm sorry I know this is probably more frequently asked question, but I have no idea what I should get.
    I looked at the error message above to see if I could find a solution, but unfortunately I do not have.

    Right let me start with I'm a Total Noob... Well it terms of having to install Oracle 11 g myself.
    In my University they welcomed a database and we assigned to a user & pass it's how I was using SQL Developer,.
    but since I'm no longer a student at the University. I need to use the Oracle database.

    So I downloaded Oracle 11 g Enterprise installed on my laptop that I don't use much.
    Name of the database: Christiane

    It of the entire facility and seems to have succeeded, I went https://localhost:1158 / em (although not sure why em? what's the deal with that?) I thought that it would be Https://localhost:1158 / Christiane) anyway...
    Connected with the user of the System .
    Went to users and creates a named user: RUDUHR

    Thinking Yes its not work... go my other laptop open SQL Developer.

    Connection created with the following settings
    Name of con: RK
    User: RUDUHR
    Pass: TEST
    Con type: basic
    Role: by default
    Hostname: 192.168.0.8
    Port: 1158
    SID: Christiane

    It does not work well, why is that?
    192.168.0.8 is portable which oracle 11g installed and running.

    I even tried to use SYSTEM user to connect, but same error
    also tried to change the SID to em, it made no difference I get the error message status: failure Test failed: IO error: Got minus one since reading call

    So are am clueless... LOL I only know how to create tables and stuff not how to set up a database.
    and just to let you know that I transfer the port on me correct portable router.

    It does not work well, why is that?
    192.168.0.8 is portable which oracle 11g installed and running.

    It's because you read the documentation.

    1158 is the default port for Enterprise Manager
    1521 is the default port for Sqlnet.
    Your port number is incorrect.

    Of course, you can create your tables in EM too.

    As by the Forums of the label of the post (first link when you arrive at this page) it is recommended that read the documentation before asking an another Doc issue yet.

    ----------
    Sybrand Bakker
    Senior Oracle DBA

Maybe you are looking for

  • Forgotten password, but only have access to the secondary email

    Hello I tried to install Skype on mobile, I see that I forgot my Skype password. I still access to Skype from the mac app, which allows me to access the page count, but without the password, I can't change anything. The problem is that I lost access

  • Monitor LG 34'

    Did anyone here using the monitor LG 34 Inc. with the old Mac Pro?

  • start time of 4 + hours

    Someone knows how to fix a start time of 4 + hours with the following newspapers? System.log: 20 jan 17:40:38 restart [9115]: SHUTDOWN_TIME: 1453340438 303534 20 jan 17:45:27 localhost bootlog [0]: BOOT_TIME 1453340727 0 20 January 22:07:49 localhost

  • 66 a windows update error code

    E-mail address is removed from the privacy *.

  • Can upgrade graphics card, I do it?

    Hello I have a Compaq CQ57 laptop 339 - WM. I wonder if there is a way to buy a new graphics itself, or if I need a new motherboard. Thank you