Bug in OC4J [unexpected token: IN] when use Subquery

Hi
I use this named query in my entity, but when I run it from JDeveloper 10.1.3.0.4 (SU2)
it throw exception
Thia is as sample query:
@NamedQuery(name="EmpbyDept",query="SELECT object(o) FROM Employees o WHERE o.departments IN(SELECT object(d) FROM Departments d)")
Internal Exception: Exception [TOPLINK-0] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.EJBQLException
Exception Description: Syntax Recognition Problem parsing the EJBQL [SELECT object(o) FROM Employees o WHERE o.departments IN(SELECT object(d) FROM Departments d)]. The parser returned the following [unexpected token: IN]
I looked in the Java Persistence API Proposed final for the In Expressions and it look like this:
in_expression ::=state_field_path_expression [NOT] IN ( in_item {, in_item}* | subquery)
in_item ::= literal | input_parameter
Ghassan

Hi Ghassan,
At the moment we don't have a final date for the release, but we are hopeful to have a 10.1.3.1 Beta release very soon (in a few weeks), please keep watching the OTN space, and we will also announce it here in the forums.
Thanks for your patience.
Deepak

Similar Messages

  • [svn:fx-trunk] 9225: Fix bug: Rows disappear in Spark List when using negative gap in layout and using virtualization

    Revision: 9225
    Author:   [email protected]
    Date:     2009-08-11 11:36:09 -0700 (Tue, 11 Aug 2009)
    Log Message:
    Fix bug: Rows disappear in Spark List when using negative gap in layout and using virtualization
    Fix: Change H/V layouts first-visible-element lookup logic to accommodate negative gaps.
    QE notes: None
    Doc notes: None
    Bugs: SDK-22497
    Reviewer: Hans
    Tests run: checkintests,
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22497
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/HorizontalLayout.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/layouts/VerticalLayout.as

    sorka;
    You can check the LabVIEW Support page.
    There is a troubleshooting section called LabVIEW Installation/Getting Started Resources. It also includes a LabVIEW 7.x Frequently Asked Questions that has a link that reads Issues Fixed in LabVIEW 7.1. However, not much information is provided there.
    Other places where you can post your findings is at the LAVA Forum (check the Bug list forum) and the Info-LabVIEW mailing list. These are not official places, but usually they li
    sten
    Enrique
    www.vartortech.com

  • Bug : sortascending_ena.png file is missing when using export to html code

    In SQL Developer 3.2.10.09 :
    Make an explain plan of an sql request with a "SORT".
    Export this explain to html code to a directory.
    The HTML file is using a sortascending_ena.png image file but this file is missing in the images sub directory.

    Hi,
    Not sure why that png (and lots of others too) is not getting copied into the images sub-directory of your user application data folder for SQL Developer. Probably each component is supposed to be responsible for checking that directory and copying images over there as needed.
    I logged a bug:
    Bug 14770237 - EXPLAIN PLAN EXPORT HTML NOT COPYING ALL REQD PNG FILES TO IMAGES DIR
    You can extract it from your installation's ...\sqldeveloper\sqldeveloper\extensions\oracle.sqldeveloper.jar file, from directory \oracle\dbtools\raptor\images using one of the unzip utilities.
    Regards,
    Gary
    SQL Developer Team

  • Unexpected Select error when using a cursor

    Platform Oracle 8i
    When running the following script I get:
    PLS-00103: Encountered the symbol "SELECT" when expecting ...
    declare
    cursor ret is select ACCOUNTID, (Select count(*) from ap_refund where ap_id = vap.ancillaryproductid and satisfy_ind = 'Y') as APCount
         from vap where ACCOUNTID in (319146, 311169, 80454, 319055, 514742, 319095, 311112, 311111, 311143, 514722);
    Acct varchar(255);
    APcount Number;
    begin
    open ret;
    loop
    fetch ret into acct, APcount;
    exit when ret%NotFound;
    DBMS_OUTPUT.PUT_LINE(acct || ' ' || APcount);
    end loop;
    close ret;
    end;
    Any ideas how I can get around this issue?

    please see the result as under
    SQL> ed
    Wrote file afiedt.buf
      1  SELECT deptno,dname,ct
      2  FROM DEPT d,
      3      ( SELECT dno,COUNT(*)ct
      4    FROM EMP GROUP BY dno)e
      5  WHERE deptno IN(10,20) AND
      6*     d.deptno=e.dno
    SQL> /
        DEPTNO DNAME                  CT
            10 ACCOUNTING              3
            20 RESEARCH                5so you would write your query for cursor something like this,
    *** not Tested
    SELECT ACCOUNTID, ct AS APCount
    FROM vap ,(SELECT ap_id,COUNT(*) ct
              FROM ap_refund
               WHERE  satisfy_ind = 'Y'
                 GROUP BY ap_id) r
    WHERE ACCOUNTID IN (319146, 311169, 80454, 319055, 514742, 319095, 311112, 311111, 311143, 514722)
      AND r.ap_id=vap.ancillaryproductid;

  • Unknown  and unexpected error (5002) when using the basket

    Hi all
    I 've encountered the following error message when I try to buy music by the basket
    " Unknown error (5002)" and I can't see my basket ! Does anybody know what I have to do in order to buy and download music!
    Thanks !

    Hi,
    Sorry to hear your basket is the same as my basket and from what I read upon these sacred forums, many otheres are experiencing this trouble as well. If it's a user problem, it appeared just after one of the last two updates. Depricated? Unknown. User problem? Not likely. I wish I had an answer for you. Hopefully someone will have it soon. Mine has been down for 3 weeks now. I even tried uninstalling and trying a previous version. No such luck.
    Cheers

  • Can't view the sheets when using subquery in discoverer desktop

    Hi All,
    I have created 5 subqueries sheets and I need the data from sheet1, sheet3, sheet5. But in the main sheet when I choose the subquery sheets, its showing only 3 sheets(i.e., sheet1, sheet2, sheet4). I don't want the data from sheet2 and sheet4 but I want from sheet1,3,5. I can't view the sheet3,5.
    Please advice.
    Thanks,
    Kamal

    I use Image Converter for iPad to convert my Sony RAW file.
    Not sure if it'll work for Canon.

  • How to get values from resultset when using subquery???

    Hi ,
    I have a problem in executing sql query from java.
    I am executing an sql query which return a intersection of values from 3 tables.
    Here is the query I am using
    select id from dps_user where id in (select b.id from dps_user b,laserlink c
    where c.userid='univ.'||b.login and c.status in(1,3,8,9,10)
    intersect
    select b.id from dps_user b,laserlink c
    where c.userid=b.login and c.status in(1,3,8,9,10)).
    this query is working fine from sql .
    when I am trying to excute the same query from java nothing is coming into resultset.
    String ISP_AND_EMAIL="select id "+
                             " from dps_user where id in (select b.id from dps_user b,laserlink c "+
                                  "where c.userid='"+"univ.'"+" ||b.login and c.status in(1,3,8,9,10)"+
                                  " intersect "+
                                  " select b.id from dps_user b,laserlink c"+
                                  " where c.userid=b.login and c.status in(1,3,8,9,10))";
              System.out.println(ISP_AND_EMAIL);
              rs=stmt.executeQuery(ISP_AND_EMAIL);
    How to use concatinate string (|| ) in java.
    can anyone help to retrieve the values from this resultset...
    Thanks

    concatnation is done using + in java.
    I am doubtful about the following line where there may be error
    "where c.userid='"+"univ.'"+" ||b.login and c.status in(1,3,8,9,10)"+
    I don't know if the univ. is a string or some variable.I need more clarification on this line,then i may help u.
    thx

  • Unexpected Token: Error occuring inside a stored procedure

    I get an unexpected token error when trying to compile below stored procedure. The error occurs on the exec pk_proof.pr_ProofAssets execution statement inside the stored procedure. Any reason why?
    CREATE OR REPLACE PROCEDURE MONTHLY_ASSET (ln_business_dt_num IN NUMBER DEFAULT NULL,
                                               missing_tbl_name OUT NOCOPY VARCHAR2)
    IS
       ln_business_dt_num NUMBER;
       missing_tbl_name VARCHAR2;
       no_tbl_name_found EXCEPTION;
       bad_date_value EXCEPTION;
       counts_not_matched EXCEPTION;
    BEGIN
       IF ln_business_dt_num < 0 THEN
       RAISE bad_date_value;
       ELSE
         Select MAX(business_dt_num) into ln_business_dt_num
         FROM sasor.dp_ca_proof;
       if missing_tbl_name IS NOT NULL then
          raise no_tbl_name_found;
       end if;
       exec pk_proof.pr_ProofAssets('SLH_DST_ASSET', ln_business_dt_num, 'sasor_batch');

    EXEC (short for EXECUTE) is an SQL*Plus command. Just remove it.

  • Invalid Content-Type value on OC4J 10.1.3.4.0 when using JAX-WS

    Hi all,
    I'm developing web services using JAX-WS on top of OC4J 10.1.3.4.0. I followed the procedure to enable this in the developer guide with success. My web service is running fine but the headers of the HTTP response contains an invalid value for the Content-Type header
    The charset element has the value utf-8" (with the double quote included) which is interpreted as a wrong encoding by the client application.<br />
    Below is the HTTP request and response with the error. (I stripped the soap part for clarity)<br />
    <br />
    POST /mywebservice/ HTTP/1.1<br />
    Content-Type: text/xml;charset=UTF-8<br />
    SOAPAction: "http://soap.exemple.com/mywebservice"<br />
    User-Agent: Jakarta Commons-HttpClient/3.0.1<br />
    Host: behs0054:8888<br />
    Content-Length: 2174<br />
    <br />
    &lt;...&gt; soap message<br />
    <hr />
    HTTP/1.1 500 Internal Server Error<br />
    Date: Fri, 03 Oct 2008 13:10:43 GMT<br />
    Server: Oracle Containers for J2EE<br />
    Connection: Keep-Alive<br />
    Keep-Alive: timeout=15, max=100<br />
    Content-Type: text/xml;charset=<strong>utf-8"
    </strong>Transfer-Encoding: chunked
    &lt;...&gt; soap fault received
    <hr />
    Thanks a lot for your answers,
    Gauthier

    Does not only happen when using JAX-WS.
    the following servlet code is enough to reproduce the problem :
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    response.setContentType("text/xml;charset=\"utf-8\"");
    It only occurs on 10.1.3.4.0 (works fine on 10.1.3.3.0 and 11.1.1.1.0 TP4)
    Regards

  • [svn] 1720: Bugs: LCDS-304 - Authentication not working in all cases when using security constraint with NIO endpoints .

    Revision: 1720
    Author: [email protected]
    Date: 2008-05-14 14:50:06 -0700 (Wed, 14 May 2008)
    Log Message:
    Bugs: LCDS-304 - Authentication not working in all cases when using security constraint with NIO endpoints.
    QA: Yes
    Doc: No
    Details:
    Update to the TomcatLoginCommand to work correctly with NIO endpoints.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/LCDS-304
    Modified Paths:
    blazeds/branches/3.0.x/modules/opt/src/tomcat/flex/messaging/security/TomcatLoginCommand. java

    Revision: 1720
    Author: [email protected]
    Date: 2008-05-14 14:50:06 -0700 (Wed, 14 May 2008)
    Log Message:
    Bugs: LCDS-304 - Authentication not working in all cases when using security constraint with NIO endpoints.
    QA: Yes
    Doc: No
    Details:
    Update to the TomcatLoginCommand to work correctly with NIO endpoints.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/LCDS-304
    Modified Paths:
    blazeds/branches/3.0.x/modules/opt/src/tomcat/flex/messaging/security/TomcatLoginCommand. java

  • [svn] 2692: Bug: BLZ-227 - When using JMS Destination, MessageClient and FlexClient not released from memory when the session times out .

    Revision: 2692
    Author: [email protected]
    Date: 2008-07-31 13:05:35 -0700 (Thu, 31 Jul 2008)
    Log Message:
    Bug: BLZ-227 - When using JMS Destination, MessageClient and FlexClient not released from memory when the session times out.
    QA: Yes
    Doc: No
    Checkintests: Pass
    Details: Fixed a memory leak with JMS adapter. Also a minor tweak to QA build file to not to start the server if the server is already running.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-227
    Modified Paths:
    blazeds/branches/3.0.x/modules/core/src/java/flex/messaging/services/messaging/adapters/J MSAdapter.java
    blazeds/branches/3.0.x/qa/build.xml

    Revision: 2692
    Author: [email protected]
    Date: 2008-07-31 13:05:35 -0700 (Thu, 31 Jul 2008)
    Log Message:
    Bug: BLZ-227 - When using JMS Destination, MessageClient and FlexClient not released from memory when the session times out.
    QA: Yes
    Doc: No
    Checkintests: Pass
    Details: Fixed a memory leak with JMS adapter. Also a minor tweak to QA build file to not to start the server if the server is already running.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-227
    Modified Paths:
    blazeds/branches/3.0.x/modules/core/src/java/flex/messaging/services/messaging/adapters/J MSAdapter.java
    blazeds/branches/3.0.x/qa/build.xml

  • ITunes closed unexpected when using BeoSoundPlugin

    Hi,
    After installing iTunes 10 a few days ago I am not able to open my iTunes anymore. If I try to I get a "Problem report about iTunes" saying that iTunes closed unexpected when using BeoSoundPlugin. I have never experienced any problems with this before. I don't think I have any BeoSound installed anymore. I am simply not able to enter iTunes. I have tried to uninstall iTunes and install it again but without any success.
    Does anybody know what to do? I have attached some of the text from the Problem report below.
    Process: iTunes [422]
    Path: /Applications/iTunes.app/Contents/MacOS/iTunes
    Identifier: com.apple.iTunes
    Version: 10.0 (10.0)
    Build Info: iTunes-10006701~1
    Code Type: X86 (Native)
    Parent Process: launchd [79]
    PlugIn Path: /Users/jesperstrunge/Library/iTunes/iTunes Plug-ins/BeoSoundPlugin.bundle/Contents/MacOS/BeoSoundPlugin
    PlugIn Identifier: com.bang-olufsen.itunes.2
    PlugIn Version: ??? (1.0.0f1)

    Hej Jesper and velkommen to the forums!
    The answer, if there is one, seems to be contained here (scroll down):
    http://beophile.com/?page_id=1091
    You may still have part of BeoSound left on your Mac. Either use Spotlight to find them or have a look in the most obvious places:
    Home/Library/Input Managers
    Hard Disk/library/Input Managers
    Hard Disk/Library/Application Support
    Also, try repairing permissions.

  • Bug report & possible patch: Wrong memory allocation when using BerkeleyDB in concurrent processes

    When using the BerkeleyDB shared environment in parallel processes, the processes get "out of memory" error, even when there is plenty of free memory available. This results in possible database corruption.
    Typical use case when this bug manifests is when BerkeleyDB is used by rpm, which is installing an rpm package into custom location, or calls another rpm instance during the installation process.
    The bug seems to originate in the env/env_region.c file: (version of the file from BDB 4.7.25, although the culprit code is the same in newer versions too):
    330     /*
    331      * Allocate room for REGION structures plus overhead.
    332      *
    333      * XXX
    334      * Overhead is so high because encryption passwds, replication vote
    335      * arrays and the thread control block table are all stored in the
    336      * base environment region.  This is a bug, at the least replication
    337      * should have its own region.
    338      *
    339      * Allocate space for thread info blocks.  Max is only advisory,
    340      * so we allocate 25% more.
    341      */
    342     memset(&tregion, 0, sizeof(tregion));
    343     nregions = __memp_max_regions(env) + 10;
    344     size = nregions * sizeof(REGION);
    345     size += dbenv->passwd_len;
    346     size += (dbenv->thr_max + dbenv->thr_max / 4) *
    347         __env_alloc_size(sizeof(DB_THREAD_INFO));
    348     size += env->thr_nbucket * __env_alloc_size(sizeof(DB_HASHTAB));
    349     size += 16 * 1024;
    350     tregion.size = size;
    Usage from the rpm's perspective:
    The line 346 calculates how much memory we need for structures DB_THREAD_INFO. We allocate structure DB_THREAD_INFO for every process calling db4 library. We don't deallocate these structures but when number of processes is greater than dbenv->thr_max then we try to reuse some structure for process that is already dead (or doesn't use db4 no longer). But we have DB_THREAD_INFOs in hash buckets and we can reuse DB_THREAD_INFO only if it is in the same hash bucket as new DB_TREAD_INFO. So line 346 should contain:
    346     size += env->thr_nbucket * (dbenv->thr_max + dbenv->thr_max / 4) *
    347         __env_alloc_size(sizeof(DB_THREAD_INFO));
    Why we don't encounter this problem earlier? There are some magic reserves as you can see on line 349 and some other additional space is created by alligning to blocks. But if we have two processes running at the same time and these processes end up in the same hash bucket and we repeat this proces many times to fill all hash buckets with two DB_THREAD_INFOs then we have 2 * env->thr_nbucket(37) = 74 DB_THREAD_INFOs, which is much more than dbenv->thr_max(8) + dbenv->thr_max(8) / 4 = 10 and plus allocation from dbc_put, we are out of memory.
    And how we will create two processes that end up in the same hash bucket. We can start one process (rpm -i) and then in scriptlet we start many processes (rpm -q ...) in loop and one of them will be in the same hash bucket as the first process (rpm -i).
    I would like to know your opinion on this issue, and if the proposed fix would be acceptable.
    Thanks in advance for answers.

    The attached patch for db-4.7 makes two changes:
      it allows enough for each bucket to have the configured number of threads, and
      it initializes env->thr_nbuckets, which previously had not been initialized.
    Please let us know how it works for you.
    Regards,
    Charles

  • Data refresh bug when using inheritance?

    I am getting unexpected behaviour when using the pm.refresh(Object) method.
    Refresh works correctly and reloads data if the lock has been updated on
    tables/objects with no inheritance. However, if I try to use refresh on an
    object that is part of an inheritance hierarchy, the query that is executed
    to get the jdolockx value is missing the table join.
    Example:
    Table Entity
    id
    displayname
    jdolockx
    jdoclassx
    Table Individual (inherits from Entity)
    id
    firstName
    lastName
    jdolockx
    Query executed when calling refresh and passing in Individual
    SELECT
    t0.JDOLOCKX
    FROM
    ENTITY t0,
    INDIVIDUAL t1
    WHERE
    t1.ID = 1151
    Problem
    Missing crucial join t1.ID = t0.ID
    These classes work correctly with correct SQL when inserting/selecting.
    Any help is greatly appreciated.
    Regards
    Nathan Boyes

    Sorry, forgot to mention Kodo version
    Kodo 2.5.3
    SQLServer2000
    "nathan boyes" <[email protected]> wrote in message
    news:bmj215$qq3$[email protected]..
    I am getting unexpected behaviour when using the pm.refresh(Object)method.
    Refresh works correctly and reloads data if the lock has been updated on
    tables/objects with no inheritance. However, if I try to use refresh onan
    object that is part of an inheritance hierarchy, the query that isexecuted
    to get the jdolockx value is missing the table join.
    Example:
    Table Entity
    id
    displayname
    jdolockx
    jdoclassx
    Table Individual (inherits from Entity)
    id
    firstName
    lastName
    jdolockx
    Query executed when calling refresh and passing in Individual
    SELECT
    t0.JDOLOCKX
    FROM
    ENTITY t0,
    INDIVIDUAL t1
    WHERE
    t1.ID = 1151
    Problem
    Missing crucial join t1.ID = t0.ID
    These classes work correctly with correct SQL when inserting/selecting.
    Any help is greatly appreciated.
    Regards
    Nathan Boyes

  • Bug in JDev 9.0.3.3 when using derived views

    Hi,
    I observed in JDev 9.0.3.3 the following behavior when
    using derived views:
         -I'm creating the view V1 based on the entity E1, add to it a couple of fields from E1 without generating Java files and close the wizard
         -now I'm trying to create another view V1Ext that extends V1; when I try to add to V1Ext new fields from E1, the corresponding wizard button is disabled!!
    Regards,
    Dan

    If you whant to add additional attributes from E1 you must now the "magic clue" to tell Jdeveloper to make E1 editable. As far as I know this is not a bug, but a "feature" of JDeveloper:
    Do the following:
    In the ViewObject Wizard go to the Entities page and mark the Entity E1 on the left and also mark Entity E1 on the right. Now you will realize that the Button ">" will be enabled. If you click on it you will be asked if you "want to update Entity E1 with E1..." (don't know the actual message, sorry). Press "OK" and you will be able to edit attributes of E1.
    It's magic, isn't it?

Maybe you are looking for

  • I can't install Oracle 10g Client in x86-64(Intel EM64T)

    Dear All, Recently, I tried to install the Oracle 10g client in Redhat Enterprise Linux 4.0 with x86-64 (Intel EM64T) platform. As I know,that is either Oracle 9i or Oracle 10g has been certified to Redhat AS 3.0 operating system. How can I install O

  • ITunes - Incoming network connections error message

    Hello, I am hoping some one can help me? I have a Mac and I keep get an error message appear when I open my ITunes. The error message reads " Do you want the application iTunes to accept incoming network connections". I have changed the security sett

  • Bridge causes crash

    Hi, Just installed my new CS5.5 on my Mac running 10.6.8.  Never experienced anything like this before with any of the Adobe products.  In Photoshop, I choose "Browse in Bridge."  It opens.  When I then go to access ANY of the drop down menus, I get

  • How to trigger alerts..

    Hi frendz.. i have little problem abt "how to trigger alert" I have successfully created XI Alerts using ALRTCATDEF. But, it seems, the email is not coming. Do we have to trigger them also? If yes, please provide some document which specifies how to

  • 7.1 missing features on 9930

    updated to 7.1 on 01-10-2012. did verizon block the fm radio feature? also, am I the only one missing a virtual keyboard?