Code insight and possible side effects

Hi,
I'm using SQL Developer 1.2 on MacOSX 10.4.9 (MacBook Pro) and noticed the following problems:
In SQL Worksheet, start typing a query and use the shortcut for code insight ie: "SELECT * FROM SCHEMA.EMPL":
Nothing happens, no completion popup is displayed (first problem)
Hit backspace to correct the table name : the backspace is disabled (second problem) as other keys (already mentionned in the forum).
Load presets from preferences: keys are now working again (... except code insight)
Regards
FJ

Hi,
I downloaded the latest release of SQLDevlopper (multiplatform this time) and here is the error log linked to my actions.
- Create a new connection, test it with success and save. - OK
- Connect to the new connection:
java.sql.SQLException: Fonction non prise en charge
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
at oracle.jdbc.dbaccess.DBError.throwUnsupportedFeatureSqlException(DBError.java:690)
at oracle.jdbc.OracleDatabaseMetaData.getDatabaseMajorVersion(OracleDatabaseMetaData.java:4028)
at oracle.dbtools.raptor.InitializeConnectionListener.initConnection(InitializeConnectionListener.java:99)
at oracle.dbtools.raptor.InitializeConnectionListener$1.run(InitializeConnectionListener.java:73)
- Type query select * from myschema. :
Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: oracle.jdbc.OraclePreparedStatement.setStringAtName(Ljava/lang/String;Ljava/lang/String;)V
at oracle.dbtools.db.DBUtil.bind(DBUtil.java:748)
at oracle.dbtools.db.DBUtil.bind(DBUtil.java:1094)
at oracle.dbtools.db.DBUtil.executeOracleQuery(DBUtil.java:470)
at oracle.dbtools.db.DBUtil.executeQuery(DBUtil.java:497)
at oracle.dbtools.db.DBUtil.executeReturnArrayList(DBUtil.java:658)
at oracle.dbtools.db.DBUtil.resolveName(DBUtil.java:1142)
at oracle.dbtools.db.DBUtil.resolveName(DBUtil.java:1108)
at oracle.dbtools.raptor.insight.CompletionInsight.getInsightData(CompletionInsight.java:236)
at oracle.javatools.editor.insight.AbstractInsight.showInsight(AbstractInsight.java:777)
at oracle.javatools.editor.insight.AbstractInsight.showInsight(AbstractInsight.java:707)
at oracle.javatools.editor.insight.AbstractInsight.actionPerformed(AbstractInsight.java:502)
at javax.swing.Timer.fireActionPerformed(Timer.java:271)
at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Now the backspace key is not working till the reloadBuffers() function is called
Hope this helps
Message was edited by:
user580108

Similar Messages

  • Code Insight and mixed case PL/SQL identifiers

    Let’s assume I hava a package “Test” with a procedure “DoSomeReallyHardWork”.
    I would like code insight to complete a call of this procedure and preserve the original case.
    I don’t like “test.dosomereallyhardwork” and I strongly dislike “TEST.DOSOMEREALLYHARDWORK".
    Is there any way to achive this kind case preservation?
    I recompiled my code with PL/Scope turned on, but it seems that all identifiers are stored in uppercase. Bug or feature?

    The identifiers are case insensitve, so your code could as easily read
    create or replace procedure TestProc is
    ThisVarHasNoMeaning varchar2(100);
    begin
    ThisVarHasNoMeaning := 'Test';
    THISVARHASNOMEANING := 'Other';
    end TestProc
    You only have one identifier, but can have multiple capitalizations. While it would be nice if the declaration was the 'definitive' one, it looks like they've gone the easy route and uppercased them all for consistency.
    If you used _ (the This_Var) in your variable names, at least you could use initcap to pretty them up.

  • Code Insight and Fedora Core 2

    Hi,
    Code insight doesn't seem to work on my FC2 system. Does anyone know how to fix it ?
    Leighton

    One or more of the following steps makes it work: ( Our system is Fedora Core 2 / KDE 3.3.0 / Java 1.4.2_04 / kernel 2.6.5 / AMD Duron 1800+ / 512MB RAM + 1GB cache )
    1. upgrade to kernel 2.6.9-rc3 ( not likely to be relevant )
    2. upgrade to Java 1.4.2_05 and configure JDeveloper for this library
    3. make it a system library
    4. turn of IPv6 lookups in KDE ( set env var KDE_NO_IPV6=true )
    Leighton

  • Code Insight and JSP and JDEVELOPER

    Hi everybody
    Does anybody can help me how I can enable code insight feature of jdeveloper?
    Remember that import statement is in jsp tags.
    Thanks a lot
    Shahram

    The Code Insight feature currently only works with .java files.
    null

  • Dom loader and time side effect problem.

    I will try to be clear because the problem seems to be complex...
    (please do not challenge the application behavior, we can not change it and it works in all other browsers on all OS for about 4/5 years)
    You have a page A embed in an iframe (or in a frameset).
    The form named X submit fields to a page B embed in the same iframe.
    The page B wait until the body-onload event.
    In this event, the form named X in page B will be submitted with the javascript command element.submit() to a page C (always embed in iframe). This form contains some fields.
    The page C contains also a form named X with same fields as the form X in page B but initilizied in using html field value propetry with other value.
    The problem is that the DOM of the page C contains value of the form X within page B and not new values in page C...
    I don't understand the problem but it seems that is a bug in safari 3 with the DOM loader...
    In fact we try the solution to wait until the readystate change in place of the onload (in the page B, auto submit)
    And it works... we want to use the DOMContentloaded event but it does not exist in safari so we have found a "bypass" on the internet in using the readystate change...
    I think it's a bug because we don't use anything about javascript and DOM access... it seems the safari engine continue to load the DOM even if the page is changing...
    So my question is: do you think my solution is the good one? does it exist another one? better?
    What Apple will do about the problem???
    Thanks to all
    (PS we have the problem on MAC OS and also on Win XP, but the second one is in beta)

    I did a little test and I am seeing the same problem. Seems the opacity key frams get "slowed down" also.
    I can not comment on how it worked in CS3.

  • Code insight is not working correctly in Jdev 10.1.3 (preview) and java 1.5

    The code insight does not work for me. I followed the advice of Steve Muench given here:
    http://radio.weblogs.com/0118231/stories/2003/01/17/whyIsntMyCodeInsightWorking.html
    but that did not change the problem. The problem seems to be related to new java 1.5 features. As soon as I start using generics the code insight is lost...
    Any clues what is going on? I s this easy to fix?
    -- example: (NOTE that iI use double (( )) to indicate generics definitions. the forum software would not let me put in the correct syntax!)
    package mypackage;
    import java.util.Set;
    public class tester1
    private Set ((Integer)) intSet = null;
    public tester1()
    intSet. ---- NO CODE INSIGHT POPS UP! (if i change to "private Set intSet = null;" it works)
    public static void main(String[] args)
    new tester1();
    P.S.
    Also, i noticed that the auto-import ist not working for the "Set((Integer))" line!
    Message was edited by:
    user444936

    thanks for the info.
    Hmm - too bad. I may have to switch to eclipse or something then, since my project involves some 1.5 parts and the missing code insights and import features are a real pain for me.
    Cheers,
    Jochen

  • Side effect of Service Pack for SAP XI 3.0

    Hi,
    Currently we are running on SP9, and want to upgrade to latest SP for XI 3.0 , At present my system is stable and mainly we are using XSLT/Message/Java mapping. Can you guys please tell me is there any possible side effect of upgradation so that we will take care of them.
    It will be nice if you can provide checklist also.

    Dear Gourav,
    Similar kind of situation we had, there was no issue,Infact there will be more functions.
    Regards
    Agasthuri Doss
    Message was edited by: Agasthuri Doss Baladandapani

  • Code Insight.... Cloumn Names?

    Hi Guys,
    I was recently using SQL Worksheets and toyed with the code insight, and noticed that if I type in the schema name, code insight kicks in an provide a list of table names in that schema.
    But when I reach the where section of my SQL and the code insight does not provide a list of column names for the table alias. That sucks! :o)
    Am I missing something?
    Example:
    select *
    from xx.(1) xse
    where xse.(2)
    (1) code insight provides list of table names.
    (2) code insight does NOT provide a list of column name for table xse.

    Might be worth posting this one over on the SQL Developer forum - I believe we get this functionality from SQL Developer in future releases of JDeveloper.
    Thanks,
    Brian

  • Any bad side-effects to lengthy blocking in native code? - crosspost

    [This question was also posted on the Native Methods forum a day ago, so far no response]
    1) Are there any negative side-effects to having one (or maybe a few) Java threads block for an extended period (e.g. hours) in native code? Naturally the thread would NOT be one of the "special" threads (such as the Swing event dispatcher, etc).
    2) Does the answer vary by platform? I'm interested in Win32, Linux and possibly Solaris (in that order).
    3) What if I scale the number of threads blocked in JNI code up to 100 threads. Does that change any of the answers? This is perhaps a silly number, I'm just trying to understand if more resources are consumed by blocking in the JNI as opposed to blocking in Java.
    4) Do modern JVM's use one native thread per Java thread? If so, then I would guess there is really nothing special about blocking in native code.
    Lastly, Is this stuff spelled out in some document? Or is there some newsgroup dedicated to the topic? I looked a comp.lang.java.machine, but there is nothing there but spam.
    Motivation for query -- In my application I need to interface with legacy C++ code that blocks (mostly on socket and i/o selects). I'm not thrilled about native code, but if there are no serious side-effects to extended blocking, it may be a viable approach.

    [This question was also posted on the Native Methods
    forum a day ago, so far no response]
    1) Are there any negative side-effects to having one
    (or maybe a few) Java threads block for an extended
    period (e.g. hours) in native code? Naturally the
    thread would NOT be one of the "special" threads (such
    as the Swing event dispatcher, etc).No. It is common to have a "reader" thread for a blocking socket connection. This results in a block in native code for days (months). The only impact is that you may end up creating alot of threads to handle this blocking code.
    >
    2) Does the answer vary by platform? I'm interested in Win32, Linux and possibly Solaris (in that order).I would hope not. You may find that WIn32 will run out of threads fairly quickly (at about 1000 threads) Earlier versions of Linux create a different process per thread which can have a non-trival overhead. Solaris will probibly not care. It has a thread number limit but if you reach it you are probibly doing something wroung.
    >
    3) What if I scale the number of threads blocked in
    JNI code up to 100 threads. Does that change any of
    the answers? This is perhaps a silly number, I'm just
    trying to understand if more resources are consumed by
    blocking in the JNI as opposed to blocking in Java.It takes a while to start a thread, it also consumes a minimal amount of per thread memory which can add up if you have 100s of threads. f you are writing the JNI I would suggest writing it to scale such that say more connections/files etc can be handled by a small number of threads (like NIO does) and these issues are reduced.
    >
    Motivation for query -- In my application I need to
    interface with legacy C++ code that blocks (mostly on
    socket and i/o selects). I'm not thrilled about native
    code, but if there are no serious side-effects to
    extended blocking, it may be a viable approach.See above.

  • Any bad side-effects to lengthy blocking in native code? (Win32,Linux,Solar

    1) Are there any negative side-effects to having one (or maybe a few) Java threads block for an extended period (e.g. hours) in native code? Naturally the thread would NOT be one of the "special" threads (such as the Swing event dispatcher, etc).
    2) Does the answer vary by platform? I'm interested in Win32, Linux and possibly Solaris (in that order).
    3) What if I scale the number of threads blocked in JNI code up to 100 threads. Does that change any of the answers? This is perhaps a silly number, I'm just trying to understand if more resources are consumed by blocking in the JNI as opposed to blocking in Java.
    4) Do modern JVM's use one native thread per Java thread? If so, then I would guess there is really nothing special about blocking in native code.
    Motivation for query -- In my application I need to interface with legacy C++ code that blocks (mostly on socket and i/o selects). I'm not thrilled about native code, but if there are no serious side-effects to extended blocking, it may be a viable approach.

    1) Are there any negative side-effects to having one
    (or maybe a few) Java threads block for an extended
    period (e.g. hours) in native code? Naturally the
    thread would NOT be one of the "special" threads (such
    as the Swing event dispatcher, etc).As far as I know the native code is loaded dynamic when a thread will use it.
    So if the thread 1 needs the code written in the native.dll the thread 1 will use
    the first instance of native.dll. So let's say this is blocked.
    Then after 2 hours another thread called thread2 calls the native.dll code. Then
    java ask the OS to create another instance of the native.dll and so on.
    So now there are 2 threads and 2 instances of the dll in the memory.
    All these apply to the Win32 OSs.
    >
    2) Does the answer vary by platform? I'm interested
    in Win32, Linux and possibly Solaris (in that order).
    3) What if I scale the number of threads blocked in
    JNI code up to 100 threads. Does that change any of
    the answers? This is perhaps a silly number, I'm just
    trying to understand if more resources are consumed by
    blocking in the JNI as opposed to blocking in Java.
    If your machine could suffer 100 pure java threads then it is not a problem to be some of them JNI ones.
    4) Do modern JVM's use one native thread per Java
    thread? Yes. Exactly as far as I know and experienced.
    If so, then I would guess there is really
    nothing special about blocking in native code.Exactly.
    >
    >
    Motivation for query -- In my application I need to
    interface with legacy C++ code that blocks (mostly on
    socket and i/o selects). I'm not thrilled about
    native code, but if there are no serious side-effects
    to extended blocking, it may be a viable approach.Yes it is. That is actually why Native methods are existing for.

  • I'm wanting to use the "Actions" in Photoshop Elements 11.  But when I get the Actions box up, it is only showing a small list of effects to use.  And no side bar to go any further.  When I click on the little arrow at top and then click on "load actions"

    I'm wanting to use the "Actions" in Photoshop Elements 11. But when I get the actions box up, it is only showing a small list of effects to use. And no side bar. So I can't go any further.  When I click on the little arrow at top and click on "load actions", I am only getting a box with empty space saying "No items match your search".  The folder at the top does say "Actions".  How do I get more effects?  The tutorials that I've checked into all show a long list of effects in their box.  Can anyone help? 

    To use the existing actions, try the following:
    1. Open one of the Action Sets, in this example Special Effects is the Action Set, by pressing the small arrow beside the set name.
    2. Then click on the name of the Action, in this example Faded Ink is the Action name.
    3. Then press the Play button to run the action.

  • Hey guyz.. i wanna ask if i get an updated version from itunes when i plug my iPhone into the Pc, i get a letter tells me that there is an update for your iPhone ... i wanna ask is it safe to download ?? and does it make any side effects on longTerm using

    hey guyz.. i wanna ask if i get an updated version from itunes when i plug my iPhone into the Pc, i get a letter tells me that there is an update for your iPhone ... i wanna ask is it safe to download ?? and does it make any side effects on longTerm using ??

    It is safe to download if your phone is not jailbroken. Before you download it, however, take some precautions:
    Reboot your computer
    Disable your antivirus and firewall
    Connect the phone cable to a USB port directly on the computer, not a hub
    Before updating right click on the name of the phone in iTunes and choose "Backup"
    When you are given the choice choose "Download only", not "Download and Update"
    After the download completes successfully click the Update button to install it.
    Most of these steps are just being overly cautious, as most people ignore them and have no problems. But occasionally the extra steps save grief.

  • SQLdeveloper on mac and code insight

    Hi!
    Just downloaded SQL developer 2.1.0.63 and running it on snow leopard. (BTW, for others out there, make sure that you unzip the file with the standard apple utility).
    I cannot get code insight to work for an Oracle or a Teradata DB.
    For Oracle, i type in SELECT * FROM <DB_NAME>. ctr+space and nothing happens. this is in sql worksheet and in newly created files.
    BUT if i just type in SELECT, in a second it gives me select * from table autocompletion.
    as for teradata, i only get autocompletion after select in newly created files, but in sql worksheet - nothing works at all.
    any luck on this?

    when in type in select * from DBNAME.
    this is what i see in the console:
    *...?aux tok2?, parse time = 16
    Finished parsing = 0
    InsightableOracleDatabase.fetch() time = 2216
    SELECT 'SCHEMA' type, username owner, username object_name, null column_name, null column_id, null data_type
    FROM all_users WHERE rownum <=50
    and username like ?
    union all
    SELECT object_type type, owner, object_name, null column_name, null column_id, null data_type
    FROM all_objects
    WHERE      object_type ='TABLE' and object_name not like 'BIN$%' and rownum <=50
    and object_name like ?
    union all
    SELECT object_type type, owner, object_name, null column_name, null column_id, null data_type
    FROM all_objects
    WHERE      object_type ='VIEW' and object_name not like 'BIN$%' and rownum <=50
    and object_name like ?
    union all
    select 'TABLE' type, user owner, synonym_name object_name, null column_name, null column_id, null data_type
    from all_synonyms
    where synonym_name like ?
    and rownum <=50
    and owner in (user,'PUBLIC')
    DBNAME%
    DBNAME%
    DBNAME%
    DBNAME%
    Code completion time = 2271
    when i do this:
    select * from DBNAME.TABLENAME T where t.
    i get this in console:
    *...?aux t2?, parse time = 23
    InsightableOracleDatabase.fetch() time = 705
    SELECT 'COLUMN' type, owner, table_name object_name, column_name, column_id, data_type
    FROM sys.all_tab_cols
    WHERE hidden_column = 'NO' and rownum <=50 and owner = ? and table_name = ?
    union all
    SELECT object_type type, user owner, object_name, null column_name, null column_id, null data_type
    FROM all_objects
    WHERE rownum <=50 and object_name not like 'BIN$%' and object_type IN ('PROCEDURE','FUNCTION','PACKAGE')
    and owner = ?
    union all
    SELECT 'FUNCTION' type, owner, object_name||'.'||procedure_name object_name, null column_name, null column_id, null data_type
    FROM all_procedures
    WHERE rownum <=50 and procedure_name is not null
    and owner in('SYS',?) and object_name = ?
    DBNAME
    TABLENAME
    B
    TERADATA
    B
    Code completion time = 1534
    In this case, the autocompletion works!
    but in the first case - it doesn't do anything (((
    This is when connected to a Oracle DB. (i just also have a teradata connection installed, but it is not connected. not sure why it appears in the console).
    Please help!
    Edited by: strannik19 on Jan 13, 2010 3:55 AM

  • Table aliases and Code Insight Completion

    Oops, never mind, I see there are lots of threads on this... so the big question is: Does anyone know when this will be supported?
    One thing I am noticing with the new SQL Developer is that if you use table aliases (as we do here) that Code Insight Completion doesn't work. For example, if I type the following SQL:
    SELECT *
    FROM My_Table mt
    WHERE mt.
    At the point where I put the dot (i.e. mt.) I would assume that code insight would drop down a box showing me the columns in the alias mt (i.e. My_Table). But nothing happens. Now if I put the full table name My_Table in there (i.e. WHERE My_Table.) then the drop down occurs. But not if you use a table alias - and putting the full table name in defeats the purpose of using aliases.
    I know that in other SQL developers (such as PL/SQL Developer) this works fine and we are used to it working this way with aliases. Is there another way to get SQL Developer to do it this way? Or is this going to have to be a NEW feature later on?
    Thanks.
    Tom
    Message was edited by:
    tbsimpson

    Try searching this has been answered.
    http://forums.oracle.com/forums/search.jspa?objID=f260&q=alias+insight
    -kris

  • Facelets and code insight for XHTML

    Hi,
    what about support for facelets and code insight for xhtml?
    Thanks,
    Uros.

    Hi,
    actually the templating mechanism is deployable in shared libraries, which means you should be able to reuse this outside of JDeveloper with the right libraries in place. The issue we found with Facelets is with the required binding references that we need for ADF to work in templates (though this is an Oracle specific problem for as long as JSR 227 isn't turned into a J2EE standard) .
    Also, templates in JDeveloper 11 are referenced at runtime, which means they can be changed on the fly even after deployment and all pages will reflect them. Plus, you don't need to configure a new extension and filter to your JSF files/configuration making it more straight forward.
    And yes, it can be deployed to other J2EE containers than Oracle- Not sure what the open source plans are, but I'll point someone from our Trinidad supporters to this thread to shed some light on what the Trinidad community has in the plans.
    Your point for a common templating support is well taken (though I wished there would be something better than Facelets ;-) )
    Frank

Maybe you are looking for

  • WD external hard drive could not be mounted

    Hello everyone, I have a 1TB Western Digital Elements external hard drive, that in the past I had to remove from it's case and use with a SATA cable, because it wasn't getting enough power. When connecting it like this to my 2012 MacBook Pro I had no

  • Why is my hard disk not detected in my macbook, but detected in others

    I'm using the Macbook 13" Retina Display with OS Mavericks about a few days ago, when i inserted my PQI H568V my mac gave statement "the disc you inserted was not readable by this computer" then i choose the ignore button(if i'm not mistaken). Then t

  • Dynamic ALV Table Ouput

    Hi Experts, I have one final table(assume it contains 25 fields)  for final output in ALV report. I've 5 different radiobuttons on my selection-screen. Depending upon the radiobutton selected , user needs 5 different report outputs from this one tabl

  • Location of the 'save file' for games on memory ca...

    Hey, im playing the game 'air hockey' on my nokia 5800, but its stuffing up a bit so i want to re-install it just in case it got damaged a bit from a previous update... But iv got so far into the game that i dont want to lose my progress, so does any

  • What wrong in this create table statement ?

    CREATE TABLE FORM_CONTACT_DETAIL ( FORM_DETAIL_ID NUMBER (7) NOT NULL, CONTENT_ID NUMBER (7) NOT NULL, WEBSPACE_ID NUMBER (7) NOT NULL, COMPANY_NAME     VARCHAR(100), JOB_TITLE     VARCHAR(50), POSITION     VARCHAR(50), TITLE VARCHAR2 (8), FIRST_NAME