Proble with eclipselink 2.1.3 migration towards version 2.3.* or 2.4.*

Hello guys,
I ran into a problem last week when trying to deploy our application on Weblogic 12c. (12.1.1). Until now our application was running on weblogic 10.3.4.
Several of our JPA queries do not compile/execute anymore due to the new eclipselink version : 2.3.1 embedded in weblogic 12.1.1.
On weblogic 10.3.4 the JPA queries work fine (eclipselink version 2.1.3). On 12c, with eclipselink version 2.3.1, we get a ORA-0904 error on several queries. Eclipselink 2.3.1 does not compile the query into a correct native SQL query (same problem as http://www-01.ibm.com/support/docview.wss?uid=swg24022303).
Error : Internal Exception: java.sql.SQLSyntaxErrorException: ORA-00904: "T5"."M_FOR_ID_LIE": invalid identifier
The JPA query :
SELECT DISTINCT cla FROM Classe cla, IN (cla.aet.formation.MVfos) mvfo
WHERE cla.ans = :ansCode
AND cla.lycee.id = :lyceeid
AND mvfo.ans = :ansCode AND cla.aet.niveauEtudes IN :nEtudes
// Is a child of me selected?
AND (EXISTS (SELECT mvfo2.id FROM MVfo mvfo2 WHERE mvfo.MFor.id = mvfo2.MFor.formationLie.id AND mvfo2.id IN :mvfoids)
// Is the parent of myself selected?
OR EXISTS(SELECT mvfo3.id FROM MVfo mvfo3 WHERE mvfo.MFor.formationLie.id = mvfo3.MFor.id AND mvfo3.id IN :mvfoids)
// Is a "brother" of myself selected (and it's not me)?
OR EXISTS(SELECT mvfo4.id FROM MVfo mvfo4 WHERE mvfo.MFor.formationLie.id = mvfo4.MFor.formationLie.id AND mvfo4.id IN :mvfoids AND mvfo.id <> mvfo4.id))
ORDER BY cla.code
The resulting SQL :
SELECT DISTINCT t0.ID, t0.ALIAS, t0.ANS, t0.CLOTURE_P1, t0.CLOTURE_P1_NOTES, t0.CLOTURE_P1_REGENT, t0.CLOTURE_P2, t0.CLOTURE_P2_NOTES, t0.CLOTURE_P2_REGENT, t0.CLOTURE_P3, t0.CLOTURE_P3_NOTES, t0.CLOTURE_P3_REGENT, t0.CODE, t0.CONSEIL_P1, t0.CONSEIL_P2, t0.CONSEIL_P3, t0.DEBUT_SAISIE_P1, t0.DEBUT_SAISIE_P2, t0.DEBUT_SAISIE_P3, t0.FIN_SAISIE_P1, t0.FIN_SAISIE_P2, t0.FIN_SAISIE_P3, t0.FORMATION_NB_HEURES, t0.FORMATION_TAUX_PRESENCE, t0.FORMATION_TITRE, t0.LECONS_P1, t0.LECONS_P2, t0.LECONS_P3, t0.MAX_ELEVES, t0.MIN_ELEVES, t0.TRI1, t0.TRI2, t0.TRI3, t0.TRI4, t0.TYPE_HORAIRE, t0.AET_ID, t0.LYC_ID, t0.ENS_ID
FROM AET t3, M_FOR t2, M_VFO t1, CLA t0
WHERE ((((((t0.ANS = ?) AND (t0.LYC_ID = ?)) AND (t1.ANS = ?)) AND (t3.NIVEAU_ETUDES IN (?,?,?,?)))
AND ((EXISTS (SELECT ? FROM M_FOR t7, M_FOR t6, M_FOR t5, M_VFO t4
                    WHERE (((t5.ID = t6.ID) AND (t4.ID IN (?))) AND (((t7.ID = t4.M_FOR_ID) AND (t5.ID = t1.M_FOR_ID)) AND (t6.ID = t7.M_FOR_ID_LIE))))
OR EXISTS (SELECT ? FROM M_FOR t10, M_FOR t9, M_VFO t8
               WHERE (((t9.ID = t10.ID) AND (t8.ID IN (?))) AND ((t9.ID = t5.M_FOR_ID_LIE) AND (t10.ID = t8.M_FOR_ID)))) )
OR EXISTS (SELECT ? FROM M_VFO t11, M_FOR t13, M_FOR t12
               WHERE ((((t9.ID = t12.ID) AND (t11.ID IN (?))) AND (t1.ID <> t11.ID)) AND ((t13.ID = t11.M_FOR_ID) AND (t12.ID = t13.M_FOR_ID_LIE)))) )) AND (((t3.ID = t0.AET_ID) AND (t2.ID = t3.M_FOR_ID)) AND (t1.M_FOR_ID = t2.ID)))
               ORDER BY t0.CODE ASC
The JPA get's confused with the scoping of the M_FOR table. We use the same table again in different subqueries. T5 is reused in the second qubquery which is wrong (it's not in the FROM). and thus we get a ORA-0904 error.
So I was hoping that I could solve this problem by upgrading to JPA version 2.4.1 which I did using the following tutorial :
http://docs.oracle.com/cd/E23943_01/doc.1111/e25034/tlandwls.htm#BABEDCEI Section 2.3.3 Task 3: Update the Version of EclipseLink in WebLogic Server.
Basically I made a shared-library with the 2.4.1 JPA and reference it from our project.
With the 2.4.1 version I run into a org.eclipse.persistence.exceptions.JPQLException on A LOT of queries even before the queries are compiled into native sql:
I have simplified a query to make it understandable :
Caused by: Exception [EclipseLink-0] (Eclipse Persistence Services - 2.4.0.v20120608-r11652): org.eclipse.persistence.exceptions.JPQLException
Exception Description: Syntax error parsing [SELECT eleve FROM Eleve eleve WHERE CONCAT(eleve.nom, 'what is going on here') IN :modCodeList ].
The IN expression does not have a valid expression
I have the impression that the left side of a IN expression can't be a constant. If I put (eleve.nom IN :list) this query passes. If I put (1 in :list) the query fails for the same reason.
I have double checked the runtime version of eclipselink with:
logger.debug("ECLIPSELINK VERSION " + org.eclipse.persistence.Version.getVersionString());
So to summarize, I have native sql problems (incorrect sql) with versions 2.3.* and I have parsing exceptions with versions 2.4.0 and 2.4.1. I suppose that with versions 2.4.* I will run into the same native sql problems of versions 2.3.* once all the queries parse.
Versions 2.1.3 and 2.2.0 work.
Has anyone any idea or experience with migration problems of weblogic and/or eclipselink. Any help would be very appreciated.
Thanks in advance for your help.
David

EclipseLink 2.4 uses the Hermes parser by default instead of the ANTLR parser used previously, so that might explain the parsing error differences. Both issues should be filed as bugs, but it might be that once the 2.4 parse error is fixed or a workaround provided to generate the correct SQL - the code generated by the two parsers can be slightly different.
But please file both issues with as simple a test case reproduction as possible, and remember to vote for each if filed on EclipseLink instead of through Oracle support.
Best Regards,
Chris

Similar Messages

  • Hi, i have a MB Pro Intel C2D with Lion OS and i migrated the user to another MB Pro i5 Lion, after migrating I'm having a problem on Safari, it won't open and just crashing

    Hi, i have a MB Pro Intel C2D with Lion OS and i migrated the user to another MB Pro i5 Lion, after migrating I'm having a problem on Safari, it won't open and just crashing

    Shouldn't be having a problem, then. That's the version for ML. Try taking your question to the Safari forum - https://discussions.apple.com/community/mac_os/safari - that's where all the Safari experts hang out.
    Clinton

  • JPA with EclipseLink, error Entity cannot be cast to Entity, any help?

    Hello, I'm currently deploying a JPA project with EclipseLink on a MySQL db, it's been working fine, however, I'm receiving a problem of this type:
    java.lang.ClassCastException: beans.Empleado cannot be cast to beans.Empleado
    Where Empleado is my Entity, basically the problem happens here, where I store a result from a SQL select into a List and then assign the results into variables, it was working with no problems before, but now, everytime I run the code, the error shows up, and the only way to make it work at least 2 - 3 times, is restarting the Glassfish Server, here's the code:
    Query q = em.createNamedQuery("Empleado.findByIdEmpleado");
    q.setParameter("idEmpleado", 2);
    List<Empleado> listaEmpleado = q.getResultList();
    for(Empleado empleado1 : listaEmpleado){
    testString = empleado1.getTecnologia();
    But as I said, it was working fine before, so I don't think is actually a code problem, I guess the "cast" reference is happening here:
    for(Empleado empleado1 : listaEmpleado)
    The errors shows up with every function where I make this kind of casting......
    As a comment, I have a similar project at home, and I don't have these problems, this is happening on a project at work, but both project are the same, it's just I'm doing this one at work and the other at home, which is working fine, thanks in advanced, have a nice day, I just hope I was clear about this!
    Edited by: user3538005 on 08-11-2011 09:08 AM

    Hola,
    It's quite strange stuff :) Mainly the exception, beans.Empleado cannot be cast to beans.Empleado.
    I think it's because of some configuration problem, related to classloader:
    EclipseLink has it's own classloader, if your beans.Empleado is loaded by EclipseLink's classloader, and by a different one (default classloader), you will have two beans.Empleado classes in your JVM, and these classes are different, so you cannot cast them :O
    so your eclipselink's classloader has its beans.Empleado(1) class, and after executing your query you have a list with the results each of them in beans.Empleado(1).
    and your dao class, or whatever, tries to cast the beans.Empleado(1) to the default classloader's beans.Empleado(2).
    what did you change in the config when it started not to work?

  • How do i deal with multiple iPhoto libraries when migrating to Photos

    how do i deal with multiple iPhoto libraries when migrating to Photos

    I would merge them before the migration.  Also, spend some time doing any batch changes of names and dates beforehand too.
    iPhoto Library Manager has good merge and duplicate search facilities.
    http://www.fatcatsoftware.com/iplm/

  • HT201263 I am not able to restore neither from iTunes nor from iCloud. The proble with iTunes is it says that the backup is corrupted or incompatible. And I am not able to connect to iCloud for restoring. I have IOS 7.0.4 when I have taken the backup.

    I am not able to restore neither from iTunes nor from iCloud. The proble with iTunes is it says that the backup is corrupted or incompatible. And I am not able to connect to iCloud for restoring. I have IOS 7.0.4 when I have taken the backup.
    iCloud does not connect and it says Request Timed out.
    Not Sure how to restore my iPad.
    Please help!!
    Thanks

    my problem is with I cloud not iTunes what's up with apple haven't they got the brains to sort out this prob, that they have to let the "community " know instead of helping to fix the problem without having to go through all the hassle of signing in writing a small blog & then leaving it until someone bored with time to write their blog to at some point fix the prob or not ! oh nearly forgot my prob like
    HRESULT:0X80070570 no clear explanation as to what this means or why in plain English for the not techno phoebes

  • I have cs5.5 master collection. Replaced my iMac with a new one, used migration assistant, now on the new iMac the apps will not open,

    I have cs5.5 master collection. Replaced my iMac with a new one, used migration assistant, now on the new iMac the apps will not open,

    I found that out, so used the dvd install disk w the key and tried to install, ran to 87% complete then told me to close,
    safari
    safarinotificati
    i closed safari, still wouldn't finish loading, i closed all safari notifications, nope, can't find any app called safarinotificati
    New iMac, 10.10.2, photoshop ran perfectly on my old iMac with 10.10.2
    so I cannot complete the loading,
    John

  • Any proble with magnet iPad

    any proble with magnet iPad

    If it was thought that there might be a problem then they wouldn't be included in the iPad - is there a particular issue that you are concerned about ?

  • Error:Package migration from version 8 to version 6 failed with error 0xC001700A

    I was about to post a similar question where the package runs fine on VS2013 but errors when I run DTEXEC from the command prompt. 
    Error:
     Code: 0xC0016020
     Source: Package
     Description: Package migration from version 8 to version 6 failed with error 0xC001700A

    Hi TheDenver,
    Based on the error message that “Package migration from version 8 to version 6 failed with error 0xC001700A ", we can infer that the underlying cause is that the current SSIS package is created in SSDT BI 2014 for Visual Studio 2013, while you are trying
    to execute it with SQL Server 2012 DTEXEC. It seems that SQL Server 2014 Integration Services (SSIS) is installed on a machine that has SQL Server 2012 Integration Services (SSIS) installed, multiple versions of the dtexec utility are installed.
    SSIS versions are not backwards compatible. SSDT BI for VS 2013 is used for SQL Server 2014, SSDT BI for VS 2012/SSDT 2010 is used for SQL Server 2012. Please notice that once a package is upgraded from SSIS 2012 package schema to SSIS 2014 package schema,
    the package cannot be downgraded. So we cannot open or execute the SSIS 2014 packages with SSIS 2012 anymore.
    To fix this, please ensure that you run the correct version of the utility, at the command prompt run the utility by entering the full path (<drive>:\Program Files\Microsoft SQL Server\120\DTS\Binn).
    Reference:
    dtexec Utility
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • I have synced my ipad with my computer then downloaded latest ios version.  How do I resync my data back to my ipad?

    I have synced my ipad with my computer then downloaded latest ios version.  How do I resync my data back to my ipad?

    You Restore from iTune Backup.The syncing is towards the end of the Restore.
    1. Settings>General>Reset>Erase all content and settings
    2. You'll be asked twice to confirm
    3. You'll see Apple logo and progress bar
    4. You'll see a big iPad logo on screen
    5. Configuration start
    6. Set language
    7. Set country
    8. Select Network and input Password>Join
    9. Enable Location Service>Next
    10. You'll be given 3 options (a) Setup as New iPad (b) Restore from iCloud Backup (c) Restore from iTune Backup
    11. Select Restore from iTune Backup
    12. You will see picture of USB cable pointing towards iPad
    13. Connect iPad to iTune (make sure iTune is on standby)
    14. Tap Continue (computer)
    15. Restore iPad from Backup (computer)
    16. See progress bar with estimated time (computer)
    17. See Restore in Progress on iPad
    18. See Apple logo
    19. See Apple and Progress Bar
    20. Slide to Unlock
    21. Copying Apps back to iPad (computer)
    22. You'll see Loading/Installing/Waiting below the Apps (iPad)
    23. Sync Music/Podcast/Movies to iPad (computer)
    24. Sync completed (computer)

  • I just updated to version 10 and wish to downgrade to version 9. None of my security software is compatible with 10. Where can I download version 9. Version 3.6, which is available on the website, is farther back than I want to go. Thank you.

    see question

    _nat_
    You're better off with almost anything accept ZA and Kaspersky, they both are absolutely the worst security vendors at keeping up with Firefox updates this past year - each has had at least one Firefox add-on being many weeks or months behind Firefox's release schedule. It's almost like they don't know about the Firefox 18 week development process and they wait until their Firefox users complain about their crap not working with a newly released version of Firefox before they even think about doing their updates. IMO, the smart thing to do is to test the Nightly channel version (first 6 week alpha stage) for compatibility issues once a week to see what problems might exist with their software, and once the new version hits the Aurora channel (2nd 6 week alpha stage) start formulating a plan, schedule for what they need to be fixed and start fixing their stuff, while stepping up testing a bit. Once the new version hits the 6 week Beta channel they should be completing their fixes and expanding their testing to include combination's of the most popular add-ons being used by Firefox users so they can see any problems their users might run into and fix what needs to be fixed before the release of the new Firefox version.
    One other thing that these security vendors could do is to have some of their customers do their Beta testing to find the faults and weak spots in their stuff, much like open source organizations like Mozilla does with Firefox. While I'm not a computer software professional, I have 3 different Nightly versions installed that I "test" a bit almost everyday for the simpler stuff, and the Aurora version, along with the Beta version. Over that last 6 or 7 years I have found 3 or4 pretty severe faults that I filed Bug reports about, one of which resulted in the developers providing a much sterner warning message about the risk of data loss and the other Bug reports helped the developers by making them aware of a potential problem early enough in the development that is wasn't hard to avoid the issue I pointed out to them with some minor coding changes.
    Free or paid version, if these security companies are going to create and distribute a Firefox add-on the right thing to do is to keep it up to date with Firefox, or they should just discontinue the add-on and quit jerking us around with their irresponsibility and lackadaisical attitude toward Firefox. I honestly miss the "good old days" when these security companies ignored Firefox and only supported Internet Explorer.
    I use Avira Personal Free - http://www.free-av.com/ - which doesn't feel the need to build add-ons for Firefox that really don't add anything to Firefox and only provide a "bells & whistles"version of something that is already built into Firefox. Good solid anti-virus protection that is updated twice daily.

  • CUCM migration to version 10

    Hi all
    I am running a BE6k system with CUCM and CUC v9.1.2. In order to take advatage of the new feaures that CUCM and CUC version have, I have decided to migrate to version 10, but I am facing a migration issue. According to the upgrade guide, the migration from 9.x to 10 is a Refresh Upgrade (the underlying Red Hat operating system has to be upgraded) and I have to use Cisco Prime Collaboration Deployment. The ova image file for that is pcd_vApp_UCOS_10.0.1.10000-14_vmv7_v1.0.ova but I cannot find it anywhere. Moreover I cannot also find any iso images of the CUCM installation .Am I missing something??
    Thank you in advance

    Hi,
    [+5] for Jaime.
    You can also refer the discussion held for CUCM10.
    https://supportforums.cisco.com/discussion/12103966/ask-expert-cisco-unified-communications-manager-cucm-version-100
    regds,
    aman

  • How to restore my ipad?My ipad say on screen CONNECT TO ITUNE.How can i do when i connect with computer.It is need itune new version.Can you sent me.I will be waiting your answer.Please help me sir.

    How to restore my ipad?My ipad say on screen CONNECT TO ITUNE.How can i do when i connect with computer.It is need itune new version.Can you sent me.I will be waiting your answer.Please help me sir.

    Check for Updates.
    http://i1224.photobucket.com/albums/ee374/Diavonex/Album%208/78d42b19fa42e8d83b5 5a65e1333373f_zpsf58bbe10.jpg

  • ?I am getting an error when installing on my dell inspiron with latest updates for drivers.  Error 1406.  I have the problem with Scan Snap software and a full version of reader.

    ?I am getting an error when installing on my dell inspiron with latest updates for drivers.  Error 1406.  I have the problem with Scan Snap software and a full version of reader.

    Error 1402 | Error 1406 | Acrobat, Reader

  • My camera Canon G3 (i know it's old) no longer connects to iPhoto (8.1.2) on my iMac, I have checked with my friends iMac same model iPhoto version and it works fine using my cable, I would appreciate any help getting this sorted

    My camera Canon G3 (i know it's old) no longer connects to iPhoto (8.1.2) on my iMac, I have checked with my friends iMac same model iPhoto version and it works fine using my cable, I would appreciate any help getting this sorted

    As a Test:
    Hold down the option (or alt) key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?

  • I used a code i got with my moive to download the itunes version and i was watching the itunes extras, but now when i click on "play itunes extras" it plays the audio but the only thing it displays is the first frame (the movie is catching fire)

    i used a code i got with my moive to download the itunes version and i was watching the itunes extras, but now when i click on "play itunes extras" it plays the audio but the only thing it displays is the first frame (the movie is catching fire) i deleted the movie and reinstalled from my icloud backup and it still does the same thing. The actual movie works fine, its just the itunes extras

    Hi there MickeyDresaj,
    You may find the troubleshooting steps in the article below helpful.
    Troubleshooting iTunes for Windows Vista or Windows 7 video playback performance issues
    http://support.apple.com/kb/ts1718
    -Griff W. 

Maybe you are looking for

  • Ignoring white lines in a file parsed with Scanner

    I've a little problem... How to ignore white lines in a file (for configuration informations) parsed with Scanner??? My parser can ignore #(comments) and other thing, but not white lines... oooo fucking little problem!!! Thank for solutions... eurony

  • How to make a copy of a table in oracle?.

    I have a table. I would like to make an exact copy of the table (except for different name of the table) ..basically like a backup. Thanks!

  • Wait Time Bug in Advanced Queuing ?

    Hello. I'm working with oracle 8.1 db and i have oracle odp.net driver 9.2. I have the following problem in AQ, I hope someone can help me. I made this stored procedure for enqueuing: pMessageID OUT RAW,      pMessage     IN     varchar2,      pTicke

  • Scrolling through font list in character palette

    Hi. In AI CS4. XP I thought after having the newest version of Illustrator I would be able to have a text box selected & scroll through the font list to see the different fonts change on the text using the arrow up/down keys. I seem to only be able t

  • 10.1 update disappeared

    I received a notification that the 10.1 update was available for my Z10.  I clicked the option to install the update but received a message saying that I have the most current version.  I do not!  I have 10.0.9.422.  I then tried to update via Blackb