Need help on getHibernateTemplate().find

I normally use
return getHibernateTemplate().find("FROM Province order by ID");
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
    <class name="com.irbeautina.province.Province" table="province">
        <id name="ID" column="ID">
               <generator class="increment"/>
          </id>
        <property name="province" type="string">
            <column name="province" length="50" />
        </property>
        <property name="area" type="string">
            <column name="area" length="20" />
         </property>
    </class>
</hibernate-mapping>everything on a project works fine
now I need to change Query to
select p.ID, p.province, (select count(d.ID) from District d where d.provinceid=p.ID) as dcount FROM Province p order by p.provinceI got an error
java.lang.NumberFormatException: For input string: "ID"This is my jsp
<select name="cboprovince" id="cboprovince" onChange="redirect(this.options.selectedIndex)">
              <c:forEach var="provincelist" items="${provincelist}">
              <option value=1><c:out value="${provincelist.ID}"/></option>
              </c:forEach>
        </select>How can this error occur, How can I solve this ?

This is not a right forum for this question.

Similar Messages

  • I actually need help but cannot find the answer. Please.......Lately when open a new tab it does not open with a blank page. I don't want to set my homepage as

    I actually need help but cannot find the answer.
    Please.......Lately when open a new tab it does not open with a blank page. I don't want to set my homepage as blank as when I first open Firefox, it automatically loads my hotmail page. But then if I open other pages I don't get a blank page. Help, please?
    Thank you.
    ''[Personal information removed by moderator. Please read [[Forum and chat rules and guidelines]], thanks.]''

    hello, please refer to [[New Tab Page – show, hide and customize top sites]] in order to switch the feature off.

  • HT3775 I get the following message when trying to open an .avi downloaded from my video cam, need help, can not find the codec, thank you.The document "IMAG0026.AVI" could not be opened. A required codec isn't available.

    I get the following message when trying to open an .avi downloaded from my video cam, need help, can not find the codec, thank you. This is for Quicktime Player.
    "The document “IMAG0026.AVI” could not be opened. A required codec isn't available."

    Try Perian.
    http://perian.org/

  • Need help " Can't find a valid editor for this file extension" not sure why I am getting and this or what to do.

    also say explorer not reading SWF files and I have to reload them? Not sure what that is either,
    Thanks
    Jim

    Hi Nancy
    Trying to update my site got to make some changes.  Do you work on sites via remote? I am on Cloud.
    : Nancy O. 
    Sent: Monday, September 01, 2014 3:47 PM
    To: James Neidner
    Subject:  Need help " Can't find a valid editor for this file extension" not sure why I am getting and this or what to do.
    Need help " Can't find a valid editor for this file extension" not sure why I am getting and this or what to do.
    created by Nancy O. <https://forums.adobe.com/people/Nancy+O.>  in Dreamweaver support forum - View the full discussion <https://forums.adobe.com/message/6692200#6692200>

  • I need help can i find out what device request a password reset.

    I dont check my email very often and when i did i had a email from apple saying how do i rest my password. they sent it to me on 8/15/13 at 2:30pm. also i went to my icloud account and noticed i only have 1 ipod and my sons iphone registered. i did have 2 ipods and my sons iphone. so i need some help finding out if i can get that email tracked back to the device. Also i had another email from 7/9/13.
    Your Apple ID,  was just used to download Paper Run from the App Store on a computer or device that had not previously been associated with that Apple ID. You may also be receiving this email if you reset your password since your last purchase. that is what the 2nd email said. so now i am worried. if anyone can help lead me in the right derection. thank you

    I do not think you can find out on what device the purchases was made.
    I would change the password for your account.
    You can also contact iTunes and see what they can do
    Apple - Support - iTunes - Contact Us

  • Need help, unable to find my Serial Number

    I recently moved to a new house, with all the ensuing hassles. Shortly after moving I decided to upgrade my computer to Windows 8. And in order to try and get rid of some old problems I only kept the private files and did a clean update.
    After (succesful) Windows upgrade I had to reinstall my Adobe Photoshop CS6 Extended, only to find out that I cannot find the box containing the CD. It must have been misplaced during our moving. On my Adobe account on adobe.com I find no trace of the order, although I did buy it through Adobe. All I have is an email from Adobe thanking me for buying the CS6 and encouraging me to register my new product. Which I forgot to do.
    So here I am, without my serial number and thus unable to get Photoshop back onto my computer. This is extremely worrying, is there anything I can do?
    Regards Rotski

    Serial Number or Activation Issues
    You need to contact Adobe Support either by chat or via phone when you have serial number and activation issues.
    Here are some links to help make contact:
    http://www.adobe.com/support/chat/ivrchat.html
    http://www.adobe.com/support/download-install/supportinfo/

  • Need Help-Unable to find an available port

    Hi,
    I am Working one BPEL Process where in need to invoke a WebService.
    I was able to deploy my BPEL Process with the Web Service Call but i am getting an error while invoking the Webservice from the Process.
    BPEL PM Version 10.1.2.0.2
    <bindingFault>
    <part name="summary" >
    <summary>Unable to find an available port</summary>
    </part>
    </bindingFault>
    Can you please let me know any work around is needed here.
    Thanks in Advance
    Edited by: user2574568 on Jun 24, 2009 8:28 AM
    Edited by: user2574568 on Jun 24, 2009 12:23 PM

    Include the following jar's in your classpath and re-compile ur code. It should work:
    - commons-discovery.jar
    - servlet-2_2.jar
    - axis.jar
    - saaj.jar
    - jaxrpc.jar

  • HT200150 I need help with the Find my Phone application

    We found my daughters phone using the Find my Phone application. Before we found it, I locked it so that no one could use it. Now I am in able to unlock it because I can't seem to remember the password. Is there anyway around this?

    If you found the phone and cant remember the password, you will need to plug it into itunes and restore it to factory settings.
    Ryan

  • HT204407 Need help with the Find Friends ap

    My daughter uses the same apple ID that I do and I'm trying to follow her with the Find Friends ap. I've installed it on her phone and requested her as a friend from my phone.  When I installed it on her phone it is basically using the same Apple account so it says I am requesting myself as a friend. It won't give me her location! How can I get the ap to show me her location?

    Welcome to the Apple Community.
    To begin with, I would like to try to explain Apple's confusing nomenclature in regard to iCloud.
    Apple have called the whole cloud thing iCloud, there are a number of features under the iCloud umbrella, some of which require their own login. iTunes is one of these, another is what Apple have unfortunately also called iCloud too.
    You can use the same Apple ID (account) to login to both iCloud and iTunes, but you don't need to and often users will login to each service using a different ID.
    The part that you need to remember is that the services available when you log into iCloud are completely different and unrelated to those when you log in to iTunes. Your iCloud login enables mail, contacts, calendars, find my phone, Back to My Mac, Documents & Data sharing and photosstream, it does not affect any of your iTunes services.
    To avoid confusion when discussing your problem, when I mention iCloud, I am referring to the services under the iCloud login, Whereas I will refer to the whole cloud thing as The Cloud.
    I'd be inclined to let your daughter have her own Apple ID for iCloud and Find Freinds, even if you share one for iTunes.

  • 3gs no service after updating to ios 5 tried network reset, reset all settings and even restoring from back been with out phone for 3 weeks now need help telus cant find network problem and apple has bad customer support please help!!!

    my 3gs has no service after updating from ios 5 tried resetting network settings, resetting all settings and restoring from back up on itunes.
    telus cant find any network problems and apple is difficult to deal with.please help 3 weeks with no phone and $70 a month not happy.

    I have been having a similar problem for the last few days.Without warning the signal will just completely duck out leaving the device searching for several minutes before settling on a no signal message.
    Sometimes restarting the device, toggling data and 3g settings or toggling Airplane Mode will set things right. However, a lot of the time I've been left without a working phone.
    I don't believe this is a SIM issue, as I had to change my SIM only one month ago for another signal related problem. Again any help would be appreciated here as well.

  • I accidentally deleted important text messages between me and a friend I really need these back and i need help trying to find a way i haven't synced my iPhone to the computer since 2013

    I need these deleted text messages, they are very important.  I have been up all night trying to recover these lost text messages but no matter how many times I try I can't get them. I haven't synced my device to itunes since sometime in 2013 and my icloud isn't working and doesn't say that it backs up text messaging. I'm out of ways to get my deleted text message. It's very important that i get it back. It can stop a lot of problems that  I am having.

    If you have not made a backup of the device while the text messages were on the device, then there is nothing that you can do. If you have created a backup of the device with the messages on there, then you can restore to that backup. The iCloud backup does backup SMS, so if you did make one, then they would be there. Otherwise, you are out of luck.

  • URGENT! I need help on LDAP - Finding deleted users Attribute "sAMAccount"

    Hi,
    I am trying to get deleted users from Active Directory after a certain interval. Every time only the differences in the result will be shown. Also I need to get the value of the specific attribute called "sAMAccount" every time for each user(in the result).
    I am using polling here.
    *if (localCookie == null) {*
                        // Specify the DirSync Control
                        *Control[] ctls = new Control[] { new DirSyncControl() };*
                        ctx.setRequestControls(ctls);
                   *} else {*
                        // Specify the DirSync Control with cookie
                        *Control[] ctls = { new DirSyncControl(1, Integer.MAX_VALUE, localCookie, true) };*
                        ctx.setRequestControls(ctls);
    rspCtls = ctx.getResponseControls();
    *if (rspCtls != null) {*
                   *for (int i = 0; i < rspCtls.length; i++) {*
                        *if (rspCtls[i] instanceof DirSyncResponseControl) {*
                             *DirSyncResponseControl rspCtl = (DirSyncResponseControl) rspCtls;*
                             localCookie = rspCtl.getCookie();
    The typical problem I am facing here is 2nd iteration onwards the result is not fetching the attribute "sAMAccount".
    Please suggest the possible reason and solution.

    String searchBase = "DC=test,DC=com";
    String searchString = "(&(objectClass=user)(|(givenName=*)(isDeleted=TRUE)))";
    String url = "ldap://jbaitest.test.com:389";
    String initCntxtFact = "com.sun.jndi.ldap.LdapCtxFactory";
    String login= "CN=Administrator,CN=Users,DC=TEST,DC=COM";
    String passwd = "welcome@1";
    byte[] localCookie = AdPolling.getCookie();
    try {
        Hashtable<String, String> env = new Hashtable<String, String>();
        env.put(Context.INITIAL_CONTEXT_FACTORY, initCntxtFact);
        env.put(Context.SECURITY_AUTHENTICATION, AdConstant.SECURITY_AUTH_TYPE_SIMPLE);
        env.put(Context.SECURITY_PRINCIPAL, login);
        env.put(Context.SECURITY_CREDENTIALS, passwd);
        env.put(Context.PROVIDER_URL, url);
        LdapContext ctx = new InitialLdapContext(env, null);
        SearchControls searchCtls = new SearchControls();
        String returnedAtts[] = null;
        searchCtls.setReturningAttributes(returnedAtts);
        searchCtls.setReturningObjFlag(true);
        searchCtls.setSearchScope(SearchControls.SUBTREE_SCOPE);
        if (localCookie == null) {
            Control[] ctls = new Control[] { new DirSyncControl() };
            ctx.setRequestControls(ctls);
        } else {
         // Specify the DirSync Control with cookie
         Control[] ctls = { new DirSyncControl(1, Integer.MAX_VALUE, localCookie, true) };
         ctx.setRequestControls(ctls);
        NamingEnumeration enumSearchResult = ctx.search(searchBase, searchString, searchCtls);
        AdRestClientConnector adRestCon = populateUsers(enumSearchResult); // Method to get the different  attribute values
        rspCtls = ctx.getResponseControls();
        if (rspCtls != null) {
         for (int i = 0; i < rspCtls.length; i++) {
             if (rspCtls[i] instanceof DirSyncResponseControl) {
              DirSyncResponseControl rspCtl = (DirSyncResponseControl) rspCtls;
              localCookie = rspCtl.getCookie();
    AdPolling.setCookie(localCookie);
    } catch (NamingException e) {
         log.error(AdConstant.ERROR_SEARCHING_DIR_PROBLEM + e);
    } catch (Exception e) {
         log.error(AdConstant.ERROR_SEARCHING_DIR_PROBLEM + e);

  • I need help with the finder.

    In the finder, under placees, I accidently took out the documents folder, is there anyway to replace it?

    You are having a difficult day aren't you?
    Try going to Spotlight, enter Documents, then Show all, and when you see the folder, drag it into the Finder window.

  • Need help with icloud, FIND MY IPHONE, google maps

    I pull up icloud on my computer, see all my iphones that are on listed but when I go to test the FIND MY IPHONE, all I see is the iphone I chose and a "CAN'T SHOW LOCATION, GOOGLE MAPS IS NOT AVAILABLE".  How do I make it available?  I have google earth downloaded on my notebook and it works on my desktop computer but not on my laptop.  I have hit "display content" on the alert bar but I get nothing.

    I had the same problem when I used Firefox as my browser; problem went away when I used IE instead.

  • Need help turning off find my phone

    I Purchased an iphone4 from a couple and later found out that in order to install apps that I need their account password. I texted them and they said they didn't remember it. They said to contact apple and give them the info they used when they purchased and registered the phone. They gave me the info but where/how do I use the info to turn it off so I can delete the account. I have the phone activated and  am using it but want certain apps and want to add my music library but can't. Thanks in advance for your help

    You will not be able to use this iPhone if you don't get them to sign out of their Apple ID with the appropriate Password.  If they forgot their Apple ID and Password they can go online and correct things but they will need to answer their Security Questions and also may need to receive information on their Recovery email Address.  This can all be done relatively quickly, but they will need to cooperate. 

Maybe you are looking for

  • Resetting MacBook to a previous day to retrieve document

    Sunday night I wrote a very important document. On Monday, I accidentally saved something else in its place. Is there anyway I can reset my computer to Sunday night and retrieve the original document? Please help!

  • Digital Signature Validation process goes into unending state

    Hi all I am working Adobe Digital Signatures in Web Dynpro Java applications. I have been using [this|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/com.sap.km.cm.docs/media/streamingmedia/developer-areas/user-interface-technology/interactive-form

  • FCP and Sony HC3... I can control Cam... but no image or capture

    Hello. I just bought the Sony DSR HC3. I can control playback with capture, set in and outs, but there is no image opn the screen. Any ideas. I did a search and there was one person that had a the same problem, but there was no resolution in the thre

  • Weblogic 7.0 sp4 failing to resolve from /etc/hosts on solaris 8

    Hello, I am facing a strange problem on one of the installations of weblogic 7 in using the JNDI lookup. This weblogic instance throws me the following exception whenever I try to lookup through JNDI a remote EJB; weblogic.utils.NestedError: This add

  • Regarding tabstrips

    Hi, I have a tabstrip control with 3 tab. Out of those three, I want to keep one tab hidden(not shown to the user). I want it to be shown only on passing a certain condition. How do I hide(and unhide) a tab in a tabstrip control?