some hibernate queries does not not in Weblogic10.3

Hello
My application uses Hibernate and got recently migrated from Tomcat to Weblogic 10.3.
in Weblogic after the deployment of the application, for the links I get hibernate query exception, these were perfectly fine with Tomcat.
Please find below the exception and classes

ProductLine.Hbm.xml
< hibernate-mapping >

< name = "com.test.example.model.product.ProductLine class" table = 'sq_product_line"lazy ="false">"
< name id = column "productLineId" = "product_line_id" type = "string" / >

< property name = column 'businessUnit"="business_unit_id"/ >

< / class >...

< / hibernate-mapping >



Java call is (ProductLine.java)
public static {list getAllSorted()
A session = Persistence.getSession ();
List pList;
Query query = session.createQuery ("from ProductLine" + "ORDER BY productLineId ASC");
pList = query.list ();
return the pList;
}

The exception is:
org.hibernate.exception.SQLGrammarException: could not execute the query
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.loader.Loader.doList(Loader.java:2223)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
at org.hibernate.loader.Loader.list(Loader.java:2099)
at org.hibernate.hql.classic.QueryTranslatorImpl.list(QueryTranslatorImpl.java:912)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
at com.test.example.model.product.ProductLine.getAllSorted(ProductLine.java:41)
line 41 is query.list)

………………….
Caused by: java.sql.SQLException: ORA-00904: "PRODUCTLINEID": invalid identifier

at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)


I tried different options as shown below:
(1) added < container-descriptor >
< prefer-web-inf-classes > true < / prefer-web-inf-classes >
< / container-descriptor >
(2) added < prefer-application-packages >
< package name > antlr-*. * < / package-name >
< package name > org.apache.xerces. * < / package-name >
< / prefer-application-packages > in weblogic application. XML

None of the above worked.

Can someone please help me solve this problem.

Thank you
Jayashree

You can try the following query

Query query = session.createQuery("select p from ProductLine p ORDER BY p.productLineId ASC");

rather than use simply "ProductLine".... ».

Tags: Fusion Middleware

Similar Questions

  • my iPhone 6s has problems with the GPS when I use some applications, it does not work well and give especially the bad road. Can someone help me?

    my iPhone 6s has problems with the GPS when I use some applications, it does not work well and give especially the bad road. Can someone help me?

    My iphone 6 has started having the same problem. Its literally the GPS. Saying that it does not find me at all. Ive seen say location for more than an hour in the suburbs of chicago. It started to happen to me after I downloaded the latest update for the iphone. I hope they react and let you know what is happening because I'm dying to know as well.

  • Hibernate button does not appear on the start menu

    Hibernate button does not appear on the start menu

    Hibernate button does not appear on the start menu

    Here is the link to MS Help and support about the case.

    http://support.Microsoft.com/kb/929658

    Note : scroll down for more information and find out if your computer supports the hibernation.
    Note: If the computer does not support the hibernation feature, you cannot enable the feature.

    t-4-2

  • I have some clips where does not show the audio waveform and others where the thumbnail to display the video does not show. THE possibilities of sight are checked in the Tools menu.

    I have some clips where does not show the audio waveform and others where the thumbnail to display the video does not show. THE possibilities of sight are checked in the Tools menu. Screen Shot2016-03-14 11_53_24.jpg I'm on a Mac Pro 2013. Latest version at all.

    Looks like without the audio element is a nested element.  You will need to restore the audio signal in order to see the wave forms.

    I have the same problem (sometimes):

    https://forums.Adobe.com/message/8527998#8527998

    Without rhyme or reason, as far as I can tell.

  • Research and links on some Web sites does not.

    If you go on nike.com, there is a search bar on the top that allows you to search different products as "Boots", but when you press on enter, nothing happens. I'm sure this use to work and I tried with chrome, which does not. However, this feature works very well with IE11.

    There is also a problem with the link of rewards on routard.com after you log on to your account. Yet once this does not work for chrome but IE11 works very well.

    Does anyone else have this problem?

    So this ended up being a weird problem with windows/software/registry/and maybe some other things. After a new installation of windows, everything works fine.

    I think that the root cause was to download DVDShrink, which installed a pirate browser and failed et seq. anyway, problem now gone.

  • HP NOTEBOOK PC 650: 650 HP LAPTOP PC SOME KEYBOARD KEYS DOES NOT

    HELLO, I HAVE A PROBLEM WITH MY KEYBOARD.

    SOME of THEM DO WORK not, SO I THOUGHT IT WAS keyboards PROBLEM

    SO I JUST BOUGHT A NEW KEYBOARD PART. I TOOK THE OLD AND INSTALLED THE

    A NEW... ALWAYS THE SAME KEYS OF THE KEYBOARD DO NOT WORK. PLEASE HELP ME...

    THANX, N.

    Hello lialou,

    I got your message about the new keyboard failure.  I recommend you do a full system restore to see if that restores the function of these keys.  Make sure that you back up your data beforehand.

    Performing a recovery of system HP (Windows 7)

    Performing a recovery of HP (Windows 8) system

    If it does not, it could be a problem with the connection cables and you should give us a call on repair options.  You can reach HP Total Care at 1-800-474-6836 in North America or Start here if you live outside of North America.

  • SOME DEVICES WORK DOES NOT THEN STARTS TO SPARE

    I have recently upgraded to Windows 8 Windows 7 and now I'm having this problem.

    At the start of some of the features not working and not see the same in the Device Manager. As some of start, Bluetooth and webcam does not work, on another USB port isn't working and sometimes all the these do not work.

    One thing is that only USB 2.0 does not, while the USB 3.0 ports work and it is a SIGN of TILT on the 2.0 device in the specific DEVICES MANAGER. But when I turn off and turn back on, it works fine but I can't do something on the Bluetooth device or the imagery.

    My PC is DELL INSPIRON N5110. I have already updated all the drivers from the website of the manufacturer for Windows 8.

    Help, please!

    I would try to disable the quick start System.  This QuickStart uses a special kind of hibernation of driver that is not compatible with all devices and drivers that have been built before Windows 8.

    You can go to the control panel (press Windows + X to get there easily), then Power Options to disable it:

  • Media Queries does not? I have several downloaded on the test link

    Hey guys...

    I had a lot of mobile problems with this site. I tried a few queries, I tried a lot of things, essentially same result.

    The biggest problem I see is the background does not appear. The menu is not centered, etc. But the wrong circles and inconsistencies in the pages really kills me.

    LINK

    The page author has several that I'm trying. If you look at the other pages, you will see that I started with 2 queries. No work anywhere. Provided background on the purchase only page on my Droid Mini.

    Thank you

    You use the device-width as in

    @media screen alone

    and (min-device-width: 768px)
    and (max-device-width: 1024px)
    and (orientation: landscape)

    Device-width returns to the screen (for example, 1024 to 1024 x 768) resolution, whereas the width refers to the width of the browser itself (which will be different from the resolution if the browser is not maximized). If your resolution is big enough to put you in a breaking point, but the width of the browser is small enough to enter another, you end up with a strange combination of the two.

    Unless you have a legitimate reason to restrict style sheets, based on the resolution and not the size of the window, then just use min-width/max-width and avoid the min-device-width/max-device-width.

  • Some website just does not load on iPhone Safari 6?

    The Web site who does not open on my iPhone is - www.reddit.com. It works perfectly on all other devices except for the phone. I tried to reboot my iPhone, cookies/clear the cache in Safari, but it does not load on my phone on 4G or WiFi network! It is just like "Safari cannot open the page because the server stopped working. The iPhone is open to all other Internet sites without any problems. Any ideas? If it helps, I'm on the latest version of iOS.

    Thank you!

    Try m.reddit.com

    There is also an application dedicated for reddit.

  • Equium A60 - standby and Hibernate function does not

    I have a Toshiba Equium (or Satellite) laptop A60 - bought in 2004.

    The problem that I have with him, it is that the sleep feature is very + capricious. Times it usually works. At worst it's working only a small proportion of the time. Very bad moments it never works at all.

    When startup fails I open the screen and the computer turn on, I hear the fan and hard drive, but the screen is just black display (although the backlight is on in the background).
    Sometimes, the mouse pointer is visible at the center of a black screen Uni and at other times small forests of window are visible - but the screen is still black.
    The computer is in a State of brain death, and I have to turn it off and restart to get it working again.

    I've been through this forum looking for ideas and tried without notable success the following:
    Disabling wake-up-on-LAN
    * I have already installed the latest version of the BIOS.

    I need to know how to solve this problem because my A60 is getting old and so it tends to become very hot if left running for a long period at a time.

    The total number is A60 - PSA67E 00200D8J

    I am running Windows XP is installed on original Toshiba drive - but with 5 years ' worth of Microsoft updates added on top. When I tried to reinstall the operation usually on the eve of the OS works, but by the time wherever I installed all the extras (drivers card wireless firewall, AV,...), it goes back to be unreliable again.

    Thanks in advance for any help.

    Hello

    > When the night before fails, I open the screen and the computer turn on, I hear the fan and hard drive, but the screen is just black display (although the backlight is on in the background).
    > When I tried to reinstall the operation usually on the eve of the OS works
    > I need to know how to solve this problem because my A60 is getting old and so it tends to become very hot if left running for a long period at a time.

    This means that after the installation of a new OS everything seems to work properly but after a short time the night before fails again one generally, this occurs when the laptop gets hot.
    Is this good?

    Hmm I think you should check if the high temperature does not affect the functionality of the laptop
    This is perhaps the main reason for your question.
    So I recommend to clean the vents and to remove dust using the jet of compressed air (you can get it from most computer resellers)

    In very rare cases, it would be helpful to renew the thermal grease which is placed between the cooling module and CPU.
    But this must be done ONLY by a mobile technician because the procedure of disassembly is really complicated.

    Update the display driver too. This could help to resolve the problem with the black screen.

  • Some videos transferred does not work on Windows Media Player (no picture when playing video, audio only)

    Hello!

    I have this problem, and it's very frustrating.

    I tried to solve this problem, but it seems that it does not work.

    When I want to click and open to see a video that was my old HTC SD card that I transferred all the files and videos on my account Dropbox, and now when I try to open and watch the video, it doesn't appear as an audio file and not with the original video.

    However, when I watch the video on my Dropbox account or my Samsung phone, it's showing the video perfectly well. I also tried to transfer the videos separately, but it simply doesn't. Here I'll show you a picture of what it looks like on the videos which does not appear

    http://oi58.Tinypic.com/wi4ub8.jpg

    And it's one of the rare videos that work to see, (on the phone EVEN HTC and SD card)

    http://gyazo.com/090902637ebd63f7fa6ff6080d40a409

    Help, please!

    Hello, I have now fixed my problem by downloading a converter called Freemake Video Converter!

  • I have photoshop elements 13 on disc, but for some reason, it does not load on the new computer with windows 10 can you help me?

    I have photoshop elements 13, but it does not load on my new computer with windows 10 can help you?

    Copy the contents of the drive in a desktop folder and install from this directory.

    If this fails, explain what you see while trying to install.

  • How to open the program once installed? For some reason, it does not appear in my list of program!

    After installing the program using creative cloud on a Windows computer, the program (por first cs6) does not appear in my program list.

    Thanks for your help!

    This is the reason why it does not appear in the list of programs.

    Applications like After Effects, Premiere Pro are compatible with 64-bit computers only.

    However, you can install the CS 4 version that is compatible with 32-bit computers.

    Reference:

    System requirements | Adobe Premiere Pro

  • E530 some special keys does not

    Hello!

    I use Lenovo ThinkPad Edge E530 (3259-C2G) for about a week (by the way, it's my first laptop, and I am very happy that I bought it) and I can't understand why some special keys do not work.

    I can't:

    cut my micro (F4);

    launch of the camera and audio settings (F5);

    change the output location of the screen (F6);

    order by (F9) wireless.

    Other special keys (F1, F2, F3, F7, F8, F10, F11, F12) work correctly.

    Waiting for you in the solutions/help.


  • Dynamic Flash HTMLText some HTML tags does not

    var myText:String = "< b > index term is 6 < /b > that is, term < SUP > 6 < / sub >.

    The tag < SUP > above does not work. The flash has ignored the tag.

    How can I use Super and Sub script.

    Can someone help me...?

    Thanks in advance.

    Concerning
    Razzak

    Thank you very much...!

    My problem was solved :)

    Concerning
    Razzak

Maybe you are looking for