Program error in using Hibernate in MyEclipse IDE

Hi,
I have two classes student and staff.I am trying for student class only.And the database tables are student and staff. I am using 10g database.
Student(studentId,name,email,password).
I want delete a row from the database using hibernate. I am testing it in TestClient program. when adding a record it is adding correctly and placing it in database but when deleting and listing it is giving an error. The following error is coming.
Hibernate: select max(studentid) from student
Successfully inserted the record.
Hibernate: insert into student (name, email, password, studentid) values (?, ?, ?, ?)
Exception in thread "main" java.lang.IllegalStateException: No data type for node: org.hibernate.hql.ast.tree.IdentNode
+-[IDENT] IdentNode: 'studentid' {originalText=studentid}
     at org.hibernate.hql.ast.tree.SelectClause.initializeExplicitSelectClause(SelectClause.java:145)
     at org.hibernate.hql.ast.HqlSqlWalker.useSelectClause(HqlSqlWalker.java:712)
     at org.hibernate.hql.ast.HqlSqlWalker.processQuery(HqlSqlWalker.java:536)
     at org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:645)
     at org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:281)
     at org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:229)
     at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:228)
     at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:160)
     at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111)
     at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:77)
     at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:56)
     at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:72)
     at org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133)
     at org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:112)
     at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1623)
     at com.client.TestClient.listStudentByGroupId(TestClient.java:72)
     at com.client.TestClient.main(TestClient.java:88)
Can anyone help how to solve this. I am using MyEclipse IDE.
Thanks

I am using MyEclipse IDE.Doesn't matter.
Have you looked at the Hibernate Docs, website, and forums?

Similar Messages

  • Photoshop CS4 "Program Error" when using Text tool

    Hello. I was having problems with Photoshop displaying a "Program Error" every so often, so I deleted the preference file and all seemed good. But after deleting the preference file for my Photoshop CS4 and re-launching Photoshop, the text tool causes Photoshop to display a Program Error when using the tool. It never did this before. Should I reinstall Photoshop? I am using a Powermac G5 running 10.5.8. I have already tried repairing the disk permissions.
    Thanks

    Thats kinda what I thought too, but the problem started happening randomly. It started when we were trying to use photomerge with large photos. The program just started giving the program errors. I still think it may be a font problem, but without going through my 2000+ fonts and disabling them one by one, how can I resolve this issue?
    Thanks

  • Preverification Error while using kXML with Netbeans IDE

    Hello All,
    I am using Netbeans IDE for wrting a program that parses a xml using
    kXML and display some results on screen.
    The Netbeans IDE gives the various obfuscation levels.
    The code is properly compiled at any level less than the
    highest obfuscation level. If I compile it at HIGH obfuscation level then it gives the following error-----
    Error preverifying class e
    VERIFIER ERROR e.a(Ll;)Lorg/kxml/kdom/Element;:
    Cannot find class org/kxml/kdom/Element
    D:\Netbeans_Workspace\TestObfuscation\nbproject\build-impl.xml:269: Preverification failed with error code 1.
    BUILD FAILED (total time: 4 seconds)
    How can we obfuscate the program using highest level of obfuscation.
    Thanks
    Vikas

    Thanks Peace,
    But I am facing the same problem even when I use the source java files of kXML and include those in my project and use them as additional classes to my class.
    It again builds properly when I don't use the highest obfuscation level.
    But if I try to obfuscate using Level HIGH it throws the same error.
    However when I try to run this project from J2ME Wireless Toolkit, it is running fine on the emulator.
    I guess the error is something specific to Netbeans IDE. Have anyone of you encountered such a bizzare error.
    Thanks,
    Vikas

  • Program error when using the Eyedropper tool on Win8/Photoshop CC (14.2.1)

    After a year of using Photoshop CC (with many errors I still have to cope with) there is a new one. Whenever I use the color picker I get an error message, that the quest can not be done for a program error. I click close and I can use the new color but I can not see it in the tool bar preview. This really disturbs my flow while working a great deal (always clicking the error message away, never having a color preview). I am annoyed paying 25 € per month for so many error, just because Photoshop is considered a standard in the industry.

    First Part System Info:
    Adobe Photoshop Version: 14.2.1 (14.2.1 20140207.r.570 2014/02/07:23:00:00) x64
    Operating System: Windows 8 64-bit
    Version: 6.2
    System architecture: Intel CPU Family:6, Model:10, Stepping:9 with MMX, SSE Integer, SSE FP, SSE2, SSE3, SSE4.1, SSE4.2, HyperThreading
    Physical processor count: 2
    Logical processor count: 4
    Processor speed: 2494 MHz
    Built-in memory: 3798 MB
    Free memory: 1788 MB
    Memory available to Photoshop: 3114 MB
    Memory used by Photoshop: 60 %
    Image tile size: 128K
    Image cache levels: 4
    Font Preview: Medium
    TextComposer: Latin
    Display: 1
    Display Bounds: top=0, left=0, bottom=1080, right=1920
    OpenGL Drawing: Enabled.
    OpenGL Allow Old GPUs: Not Detected.
    OpenGL Drawing Mode: Basic
    OpenGL Allow Normal Mode: True.
    OpenGL Allow Advanced Mode: True.
    AIFCoreInitialized=1
    AIFOGLInitialized=1
    OGLContextCreated=1
    NumGPUs=1
    gpu[0].OGLVersion="3.0"
    gpu[0].MemoryMB=1962
    gpu[0].RectTextureSize=16384
    gpu[0].Renderer="Intel(R) HD Graphics 4000"
    gpu[0].RendererID=4416
    gpu[0].Vendor="Intel"
    gpu[0].VendorID=4318
    gpu[0].HasNPOTSupport=1
    gpu[0].DriverVersion="10.18.10.3316"
    gpu[0].Driver="igdumdim64.dll,igd10iumd64.dll,igd10iumd64.dll,igdumdim32,igd10iumd32,igd10 iumd32"
    gpu[0].DriverDate="20131001000000.000000-000"
    gpu[0].CompileProgramGLSL=1
    gpu[0].TestFrameBuffer=1
    gpu[0].OCLPresent=1
    gpu[0].OCLVersion="1.2 "
    gpu[0].CUDASupported=0
    gpu[0].OCLBandwidth=0
    gpu[0].glGetString[GL_SHADING_LANGUAGE_VERSION]="1.30 - Build 10.18.10.3316"
    gpu[0].glGetProgramivARB[GL_FRAGMENT_PROGRAM_ARB][GL_MAX_PROGRAM_INSTRUCTIONS_ARB]=[1447]
    gpu[0].glGetIntegerv[GL_MAX_TEXTURE_UNITS]=[8]
    gpu[0].glGetIntegerv[GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS]=[96]
    gpu[0].glGetIntegerv[GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS]=[16]
    gpu[0].glGetIntegerv[GL_MAX_TEXTURE_IMAGE_UNITS]=[16]
    gpu[0].glGetIntegerv[GL_MAX_DRAW_BUFFERS]=[8]
    gpu[0].glGetIntegerv[GL_MAX_VERTEX_UNIFORM_COMPONENTS]=[4096]
    gpu[0].glGetIntegerv[GL_MAX_FRAGMENT_UNIFORM_COMPONENTS]=[4096]
    gpu[0].glGetIntegerv[GL_MAX_VARYING_FLOATS]=[64]
    gpu[0].glGetIntegerv[GL_MAX_VERTEX_ATTRIBS]=[16]
    gpu[0].extension[AIF::OGL::GL_ARB_VERTEX_PROGRAM]=1
    gpu[0].extension[AIF::OGL::GL_ARB_FRAGMENT_PROGRAM]=1
    gpu[0].extension[AIF::OGL::GL_ARB_VERTEX_SHADER]=1
    gpu[0].extension[AIF::OGL::GL_ARB_FRAGMENT_SHADER]=1
    gpu[0].extension[AIF::OGL::GL_EXT_FRAMEBUFFER_OBJECT]=1
    gpu[0].extension[AIF::OGL::GL_ARB_TEXTURE_RECTANGLE]=1
    gpu[0].extension[AIF::OGL::GL_ARB_TEXTURE_FLOAT]=1
    gpu[0].extension[AIF::OGL::GL_ARB_OCCLUSION_QUERY]=1
    gpu[0].extension[AIF::OGL::GL_ARB_VERTEX_BUFFER_OBJECT]=1

  • Program Error when Using PS Background Eraser

    Each time I use Background Erase, I get Program Error.  Anyone else having this issue or know of a solution?

    I have the same error when I try to use the background eraser tool in Photoshop. I just noticed it today. Restarted program, MAC. Tried in both RGB and CMYK, same message. I can see it begin to remove at the very beginning of clicking, then the error message:
    "Could not use the background eraser because of a program error."
    Photoshop CS6 13.0.5x64
    MAC OS 10.8.4
    Hmmmmm.
    Tom

  • Error in using Hibernate with EJB

    I have generated my Hibernate related configurtion file,POJO Classes & hbm files using MyEclipse 5.0. And Iam using JBuilder 10.0.176.0
    to develop the EJB module. When i try to compile my module it is saying POJO class is bad.
    "Bean2InsertBean.java": cannot access ejb_hibernate.Testsql,bad class file: D:\MyJava\bea\OurClasses\ejb_hibernate\Testsql.class,class file has wrong version 49.0, should be 48.0,Please remove or make sure it appears in the correct subdirectory of the classpath.
    But the classes are in correct directory.

    It looks like you have compiled the POJO class with Java 5 version whereas you are compiling the EJB module with Java1.x (i.e. a lower version). Compile the POJO class with Java 1.x and then try compiling the EJB module with the same version

  • Program error when using tools

    I have Elements 9 and am getting an error message when trying to use most of my tools.  I just installed this so don't have alot of experience with the program.  What is causing this? I went to the programs/elements9 and set my user preference to access all, and it still does not work. I have a Windows XP.

    See if a reset of the pse 9 preferences helps:
    If you just installed it, maybe your images are in color mode or bit depth that some tools won't work on.
    On an image that the tools generate a message on, go to Image>Mode and see if choosing RGB Color and 8 bits/channel makes any difference.
    What does the error message say?
    http://help.adobe.com/en_US/photoshopelements/using/WS287f927bd30d4b1f626a494c12e28b3ab58- 7fe2.html

  • Program error after using connected smart objects

    Hello, dear friends. I need your help.
    My problem is:
    1. I placed linked smart objects in to the photo and then tried to replace content of this smart object. Suddenly program shut down. And If I try to do the same one more time the same happened.
    2. Some times I could do this operation till the end but replaced content didn't save my changes made for this smart object. And then program shut down again.
    This problem stops my work, that is why I'll be pleased to hear any solution.
    Thank you.

    What have you done for trouble-shooting so far? (Restoring Preferences after making sure all customized presets like Actions, Patterns, Brushes etc. have been saved might be of special interest).
    http://blogs.adobe.com/crawlspace/2012/07/photoshop-basic-troubleshooting-steps-to-fix-mos t-issues.html
    Also please read this (in particular the section titled "Supply pertinent information for quicker answers"):
    http://forums.adobe.com/docs/DOC-2325

  • Can't save because of program error

    I had this problem a year ago, then I started using the computers at school, and forgot how to fix it. Any help would be appreciated.
    Here's the problem
    I used Lightroom to make some edits, including the masking brush. When I opened in photoshop, finished editing and tried to save, It gave me the dreded, "Can not save because of program error"
    I used to be able to fix this by going into some setting and deleting part of something. But for the life of me, I can't remember what or where. Is there anyone familiar with this that can help?

    First thing to try is resetting the preferences by holding down
    the Shft+Alt+Ctrl keys (windows) Cmd-Shift-Option  (mac)
    as you start the pse 8 editor and then click yes in dialog.
    Some more information might help such as which OS (windows or mac)
    and how much ram you have and if this has worked before or never worked and
    the format your trying to save your files in.
    MTSTUNER

  • Getting an error when using adobe photoshop CC, "Could not move the data because of a program error". Any idea on what this means?

    Getting an error when using adobe photoshop CC, "Could not move the data because of a program error". Any idea on what this means?

    Have no idea of what you were even doing in Photoshop my crystal ball is out for repairs so I can not see.  

  • When I open a raw file (NEF Nikon 7100)  and apply setting then click save, I get an error ( could not complete your request because of a program error ). Ideas?

    when I open a raw file (NEF Nikon 7100)  and apply setting then click save, I get an error ( could not complete your request because of a program error ). Ideas?

    Oh, dear.
    If you use PSE as your external editor for iphoto, you need to save the images back to iphoto by using Save, not Save As and not changing anything like the name or format that would bring up the Save As window. (You may need to adjust the editor prefs>saving files>on first save to save over existing.)
    OR you can export the photos from iphoto to the desktop, use file>open in the editor and then change whatever you want and either import the saved image to the organizer or import it back to iphoto as a new file. What you are doing is extremely risky, particularly to the iphoto library which you may easily damage by your workflow.
    I would start the organizer holding down the shift key, then create a new catalog and switch to the new one. Then try opening the editor without opening an image and see if you get any farther.
    PSE and iphoto are not designed to be used as you've been doing. You are trying to write to the iphoto library from outside iphoto, which is the fastest known way to corrupt the library and lose all your photos.

  • Photoshop Elements 8. "Could not use Clone Stamp Tool because of a program error."  Please help.

    Photoshop Elements 8.  "Could not use Clone Stamp Tool because of a program error."  Please help.

    Try this:
    Open your picture file
    Access the clone stamp tool
    Hold down the ALT key on the keyboard and left click on the area from which you wish to clone, then release the ALT key, and click to place the pixels at the destination
    TIPS:
    It is a good idea to open a blank layer at the top in the layers palette, and do the cloning on this layer. Be sure that "sample all layers" at the top is checked. You can change the layer opacity if necessary
    Use the bracket keys next to the letter p on the keyboard to increase & decrease the size of the cursor
    Let us know  how you make out with the error message now.

  • Program error using Auto-blend in CS4

    When I try to do a depth-of-field auto-blend with  five or six layers (with or without auto-align first) Photoshop starts to do the  blend and then stops with this error message:   
    Could not complete auto-blend layers command because of program error.  OR  Could not auto-blend the layers because of program error.
    The NEF layers were created with my D300, and are 4288 by 2488 pixels.  I  also converted them to TIF and tried it that way.  And I tried converting to 8  bit mode - also failed.  If I change the image size to 1000 pixels  it  works. According to Photoshop Preferences I have 1675 MB available RAM,  photoshop is allowed to use 1356 MB.  According to my Control Panel I have 3.00  GB of RAM in Windows XP with Service Pack 3.  Do you have suggestions, other  than adding RAM, for making it work?

    when Photoshop starts acting up it's always a good idea to reset your preferences
    http://forums.adobe.com/thread/375776?tstart=0

  • Program error using quick selection tool

    When I try to use the quick selection tool in PS4, I get the message that it is not available because of a program error. Any help on this?

    when Photoshop starts acting up it's always a good idea to reset your preferences
    http://forums.adobe.com/thread/375776?tstart=0

  • Error While using date fields in HIbernate Criteraia

    I am trying a sample applciation using Hibernate with JPA. I am using annotations to map database table with Java class.I am using org.hibernate.Criteria to form where clause. My code looks as follows:
    EntityManagerFactory emf = Persistence.createEntityManagerFactory("PERSISTANCE_UNIT");
    EntityManger em = emf.createEntityManager();
    Session session = em.getDelegate();
    Criteria criteria = session.createCriteria(MyDO.class)
    criteria.add(Restrictions.eq("myDO.date",myDO.getDate()));
    List list = criteria.list();
    I am searching the data base based on the date field (myDO is an instance of MyDO.class which contains the mapping to the data base table). While running the application first time after publishing to server, I am getting the following error. For subsequent running of the application I am not getting any error and the appliaction was running with actual results.
    JDBCException W org.hibernate.util.JDBCExceptionReporter logExceptions SQL Error: -181, SQLState: 22007
    JDBCException E org.hibernate.util.JDBCExceptionReporter logExceptions THE STRING REPRESENTATION OF A DATETIME VALUE IS NOT A VALID DATETIME VALUE
    org.hibernate.exception.DataException: could not execute query
         at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:77)
         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.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:94)
         at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1569)
         at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283)
    Can anybody help in fixing the problem.
    Thanks in advance.

    Resolved the issue by setting System date where expected

Maybe you are looking for

  • Downloads to documents folder fail due to parallel upload

    Hi, mobile documents is a great tool that I use to replicate all business relevant documents to mobile clients. However there is one great disadvantage for me. When you download a file that is a bit larger (>1 MB), during the download the client will

  • Sharepoint 2013 - Search for link names on a single page

    Hi I am messing around with SP13 and trying to get my search result web part to only search for link names and display all results. I have created the search source to point at the sub site. If I search for part of a link name it will list all links

  • Problem in Purchase order version management

    Dear Guru, My Friend i have some problem in version management in Purchase order, when my user changed PO new version created, then user fill the data like reason, text, requested by but he forget about the tick mark on completed field so that PO not

  • Drag and Drop / Parallax / Timeline

    Hi! there's a way to execute timeline by dragging? (ex: drag right direction = play timeline normally || drag left direction = play reverse) i would create a parallax draggable, but don't find nothing 4 execute a timeline animation, use always a scro

  • Keyboard problem - First character not showing up

    Hi all.... I've noticed a funny quirk on my mid 2006 iMac. Lately, when I try to type anything in either a form field or in Spotlight, the first character I type doesn't show up. Only after hitting it again will it do so. I tried resetting the PRAM,