Code insight broken in 1.1 on Linux

On a clean installation of SQLDeveloper 1.1 using Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05) on Debian Linux, I get the following exception dumped to the terminal after typing a schema name and a dot (.). Needless to say, a list of tables never appears.
Any suggestions?
Here's the error:
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: -1
at oracle.dbtools.raptor.insight.CompletionInsight.findAliasedName(CompletionInsight.java:321)
at oracle.dbtools.raptor.insight.CompletionInsight.getInsightData(CompletionInsight.java:237)
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:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Matt

Exactly the same scenario on Fedora Core4 Java 1.5.
Anybody have a solution to this yet ?

Similar Messages

  • EA1 - Error displaying code insight

    All,
    I recently tried to use the code insight feature. In the main worksheet, the cursor stops blinking and then it starts back up after a few seconds - the insight window never shows. But when I check the logging page, I see the following two error messages.
    SEVERE     200     0     oracle.dbtools.raptor.insight.InsightableOracleDatabase     
    SELECT object_type type, user owner, object_name, null column_name
    FROM all_objects
    WHERE rownum <=20 and object_type IN ('FUNCTION', 'PACKAGE')
    and owner = ?
    union all
    SELECT 'FUNCTION' type, owner, procedure_name object_name, null column_name
    FROM all_procedures
    WHERE rownum <=100  and object_type = 'PACKAGE'   and procedure_name is not null
    and object_name = ?
    SEVERE     201     78     oracle.dbtools.raptor.insight.InsightableOracleDatabase     
    ORA-00904: "OBJECT_TYPE": invalid identifierDan

    Indeed:
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
    PL/SQL Release 10.2.0.1.0 - Production
    CORE     10.2.0.1.0     Production
    TNS for Solaris: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    5 rows selected
    desc all_procedures
    Name Null Type
    OWNER NOT NULL VARCHAR2(30)
    OBJECT_NAME NOT NULL VARCHAR2(30)
    PROCEDURE_NAME VARCHAR2(30)
    AGGREGATE VARCHAR2(3)
    PIPELINED VARCHAR2(3)
    IMPLTYPEOWNER VARCHAR2(30)
    IMPLTYPENAME VARCHAR2(30)
    PARALLEL VARCHAR2(3)
    INTERFACE VARCHAR2(3)
    DETERMINISTIC VARCHAR2(3)
    AUTHID VARCHAR2(12)
    11 rows selected
    ++++++++++++++++++++++++++++++++++++++++++++
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Prod
    PL/SQL Release 10.2.0.2.0 - Production
    CORE     10.2.0.2.0     Production
    TNS for Linux: Version 10.2.0.2.0 - Production
    NLSRTL Version 10.2.0.2.0 - Production
    5 rows selected
    desc all_procedures
    Name Null Type
    OWNER VARCHAR2(30)
    OBJECT_NAME VARCHAR2(30)
    PROCEDURE_NAME VARCHAR2(30)
    OBJECT_ID NUMBER
    SUBPROGRAM_ID NUMBER
    OVERLOAD VARCHAR2(40)
    OBJECT_TYPE VARCHAR2(19)
    AGGREGATE VARCHAR2(3)
    PIPELINED VARCHAR2(3)
    IMPLTYPEOWNER VARCHAR2(30)
    IMPLTYPENAME VARCHAR2(30)
    PARALLEL VARCHAR2(3)
    INTERFACE VARCHAR2(3)
    DETERMINISTIC VARCHAR2(3)
    AUTHID VARCHAR2(12)
    15 rows selected

  • 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

  • Jsp taglibs in include files not detected, throws errors, no code insight

    I have a jsp which is included in all the other jsp. it looks something like this
    taglibs.jsp
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
    <%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
    <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
    test.jsp
    <%@ include file="/jsp/menu/taglibs.jsp"%>
    <html>
         <head>
              <title>Tours</title>
         </head>
         <body>
    <form:form commandName="testCommand">
                   <form:hidden path="tour.firstname" id="tour.firstname" />
    and so on.
    I am having 2 problems
    1. the jsp editor show errors all over the place saying
    element path not expected
    element commandName not expected etc.
    2. no code insights.
    but if i include the taglib def in test.jsp it dosn't show any error and also provides code insights. but seldom do people include all taglibs in all jsps.
    is there a way for Jdeveloper to show code insights in jsp pages which includes a jsp or like xml schemas could be added at some place(tools-pref-xml schemas) and when used anywhere, would provide code insights.

    am not sure, try with this
    <jsp:include   .../>

  • 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

  • Code insight not working in sql developer 1.1.0.23

    i just downloaded today. insight options all checked in preferences section. popup time set to less than a second. i get nothing to work in sql worksheet or while modifying a package body.

    Hello,
    You should see things from this side sometimes ;-) It's a small team, working hard, very focused! Yes, there is indeed a sense of urgency and we are testing a patch SQL Developer 1.1 at the moment. There is always the battle between wanting to get an updated release to you, the community, quickly, and delaying to ensure what you get is good.
    Code insight, performance and many other issues have been addressed in this patch.
    As for your other point, we want the tool to be lightweight, easy to install, easy to use with a clear user interface. Perhaps there'll be a new battle when adding features, but that's the goal.
    Regards
    Sue

  • 30EA2 code insight completion odities

    update statements seem not to be supported by code insight completion for table name:
    For example for table 'table_name':
    type 'update table_' and press ctrl-space does not complete table name.
    When table name is typed, completion for field names works.
    Completion of select statements:
    Type ' select ' (space is important)
    Popup show 'select * from' among others, select 'select * from' and get:
    'sSELECT * FROM'
    This happens only if select is the only statement on the worksheet.

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

  • No code insight for 1.5 SDK

    I added the 1.5 SDK in the libraries and now JDev recognizes 1.5 classes and methods however code insight does not appear to work for the 1.5 classes.

    Crap... belay that. It seems to be working after restarting Jdev.

  • Slow code insight in JDev 9.0.3.1035

    Hello,
    sometimes when I invoke code insight in my Jdev it needs up to 30 secs to display. In this time JDeveloper is completely blocked and does not react to any keyboard or mouse input. It doesn't matter if the library is on a network drive or on the local harddisk, even with standard JDK-Lib (for example: java.text. ) this problem appears. And, this happens not always, sometimes the popup comes as fast as I set in JDev's preferences.
    Has anyone experienced such a behaviour??
    Thank you.
    Christian

    Interesting... I confirmed via. Metalink that there was a bug within JDev 9.0.3.1 that caused code insight to fail when editing JSP against at least an Orace Portal based project.. I'm not sure if it's related, but I have a feeling it might be. Are you by chance developing with Portal? I've also noticed no problems with code insight when i'm working with straight webapps built from Struts. Perhaps it's to do with the libraries in your project.
    If you're on Windows, try the sysinternals file monitor program (www.sysinternals.com) and see if it's trying to access large files or something over the network.
    HTH,
    -sean

  • BUG: Code Insight

    JDeveloper 11g Preview 2 on Windows XP
    Code Insight is not refreshing properly. Two use cases:
    1) Light grayed out indicator that member variable is not in use in a source file does not reliably disappear if you copy and paste exact member variable name into a method;
    2) Redline indicators demonstrating code syntax errors do not disppear if you correct the error. It happens with all sorts of errors after their correction: exceptions not being thrown or caught, methods not being implemented, etc...I have to shutdown JDEV process and restart to get them to go away.
    Nice interface if the annoying messages would go away when fixed.

    It is likely a threading issue which means that it does not happen reliably -- however, next time I encounter it -- i will record my JDeveloper session and upload the recording. The amount of code is probably not feasible. However, I bet you could reproduce if you did the following things:
    1) Create a couple of user libraries and import into your project;
    2) Create some simple class files and use classes from imported jars;
    3) create some member variables based on imported class files;
    4) Use the "generate getters and setters" from member variables by placing your cursor on class file name (I notice that the default behavior is not consistent -- sometimes it shows all the getter and setter methods of every variable with 1 randomly checked --- other times none are checked -- other times all are checked) and generate;
    5) continue doing this until you begin to get code insight errors to correct. Notice how the IDE begins to slow down as it appears to be processing much more in the background (also not good -- I am tempted to just turn code insight off and use the compiler);
    Anyway -- stay tuned

  • 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

  • Code insight

    hi there
    can anyone tell me why in all java IDEs it is impossible to let the Code editor to invoke the code insight list whenever any char is typed.
    this disability exist in all java IDEs. I use netbeans and eclipse and they both never allow you to extend this property(invoking the list of suggested code with more characters than the (.)) which is more essential than the whole IDE and I wait for every new plugin or new version to see if they have implemented it. but it seems like they have never used visual studio and seen how powerful it is.
    can any one please write some plugin to fix this.
    thanks,

    Hi ,
    still, how would you handle the case where a user types 2 letters and then pauses. The IDE would query the full classpath stack and find say 1000 hits. Because no user wants to see 1000 options to continue I assume you wouoldn't want to see the list of possible options and instead like to only code complete if the search returns a unique result. This means that the code complete check is a waste of resources to this time. So what's wrong with the option to press ctrl+enter whenever you please ?
    Frank

  • Code Insight Weaknesses / Issues

    Congratulations Oracle, SQL Developer is a great product.
    However, major gripe for our developers is the weakness of SQL Developer's code insight. For example
    a) Package names and or proc / func names - all of the results are always in uppercase, rather than the case they were compiled with. Our packages and package procedures are mixed case, because they are far more readible that way.
    1. I type P_ [press ctrl + space] I see :
    P_ACCOUNTS
    P_ACCOUNTPOSTINGS
    P_UTILS
    whereas I should see:
    P_Accounts
    P_AccountPostings
    P_Utils
    as this is the case of the compiled objects and this is how they appear in the navigator.
    2. I select P_UTILS and get P_UTILS in editor, then type ".", I see :
    INDEXEXISTS
    CONSTRAINTEXISTS
    OBJECTEXISTS
    whereas I should see:
    IndexExists
    ConstraintExists
    ObjectExists
    b) Object type names would be clearer than a glyph. I'd prefer to see function MYFUNC, rather than a glyph and MYFUNC.
    c) Code insight gives you no idea what parameter types are, and we can't seem to get the "parameter insight" facility working
    I type MY and invoke code insight :,
    SQL Developer would show : MYFUNC(PINPUT1,PINPUT2)
    TOAD would show : function MyFunc(pInput1 integer, pInput2 integer) return integer;
    and TOAD will maintain showing the parameters as I type them in. TOAD is far superior is this respect.
    We hope you can address this for the next version.
    Paul

    This insight will be overhauled. It has many issues. Including what you have listed.
    -kris

Maybe you are looking for

  • Synchronization JAVA and ABAP Dictionary

    Hello all, I'm going to do some Java-Development and have to call function modules in SAP ABAP (BAPIs) Environment. All the Input and output parameters are defined within the ABAP Dictionary. Do I have to create all these Dataelements and Structures

  • Auto levels on import preset

    I tried a search to see how you can get AP3 to do an "auto levels" adjustment during import, but I am not sure how to do it. If I do an "auto" adjust on an image and then create a preset, does AP3 apply the levels based on that particular file used,

  • Smartforms problem wuuu :(

    Hi there Smartformers. I've got strange problem with my SF. The problem is that I added 2 tables to SF. 1st is a header, 2nd is a table content. Problem is that when I pass itab to 2nd (content) table-object I got 'formatting error'. ... but when I d

  • Staspack question

    Hi, I have in my Statspack report this information: Top 5 Timed Events ~~~~~~~~~~~~~~~~~~                                                     % Total Event                                               Waits    Time (s) Ela Time SQL*Net more data fro

  • DNS Advice Needed

    Is it possible or advisable to let a standalone webserver hosting a handful of websites to be it's own dns server - in terms of holding the authoritative records for the domains hosted? Thank you