Cant find the error, please help

Hi, everyone,
My environment, is eclipse3.2.1 Tomcat5.5 JSF 1.1, everything seen working well until I change a property in my bean (let called �LIC3310�). I have an array of selectItem(let called �catItem�) in the bean gonna use
<f:selectItems value=#{LIC3310.catItem}>
to output it. In this array, I use integer as its itemValue (before, I use a String as its itemValue, but now I want to change it to integer and I have change all the getter and setter as well) and a String as its itemLabel. I put followed code in my page
<h:selectOneMenu value="#{LIC3330.currentCat}">
<f:selectItems value="#{LIC3330.catItem}"/>
</h:selectOneMenu>
I�m sure embedded this code between view tag and form tag.
<f: view> <h:form> <--! Code is here --></h:form></f:view>
But when I load into this page, it didn�t show me anything, and when I try to reload it, It show me some error messages as below:
javax.servlet.ServletException: Cannot get value for expression '#{LIC3330.currentCat}'
     javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
     org.apache.myfaces.webapp.MyFacesServlet.service(MyFacesServlet.java:74)
root cause
javax.faces.el.EvaluationException: Cannot get value for expression '#{LIC3330.currentCat}'
     org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:402)
     javax.faces.component.UIOutput.getValue(UIOutput.java:77)
     javax.faces.component.UIInput.validate(UIInput.java:357)
     javax.faces.component.UIInput.processValidators(UIInput.java:183)
     javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:624)
     javax.faces.component.UIForm.processValidators(UIForm.java:70)
     javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:624)
     javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:146)
     org.apache.myfaces.lifecycle.LifecycleImpl.processValidations(LifecycleImpl.java:262)
     org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
     javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
     org.apache.myfaces.webapp.MyFacesServlet.service(MyFacesServlet.java:74)
This problem is annoying me serial days I �m so appreciated if anyone can help.
thank you so much,
emmy.ma

hi,
thanks, i have done it, it is my orIginal bean
package sources.bean;
import javax.faces.model.*;
import javax.faces.context.*;
import java.util.*;
public class LIC3330 {
     private SelectItem[] catItem;
     private String[] ramoCode;
     private int currentCat;
     final String USER = "aspnet4sql";
     final String PASSWORD = "sql2aspnet";
     public LIC3330() {
          FacesContext context = FacesContext.getCurrentInstance();
          ExternalContext app = context.getExternalContext();
          Map sessionMap = app.getSessionMap();
          Map ramoNameMap = (Map) sessionMap.get("ramoNameMap");
          Vector ramoCodeVec = (Vector) sessionMap.get("ramoCodeVec");
          catItem = new SelectItem[ramoNameMap.size()];
          ramoCode = new String[ramoNameMap.size()];
          for (int i = 0; i < ramoNameMap.size(); i++) {
               String ramoName = (String) ramoNameMap.get(ramoCodeVec.get(i));
               String rc = (String) ramoCodeVec.get(i);
               ramoCode[i] = rc;
               catItem[i] = new SelectItem(i, ramoName);
     public int getCurrentCat() {
          return currentCat;
     public void setCurrentCat(int currentCat) {
          this.currentCat = currentCat;
     public SelectItem[] getCatItem() {
          return catItem;
and the constructor is sure work, coz i use in the other bean, it work well, although i remove the constructor here, it show me an empty page without any error message. i'm really doubt of it.
emmy.ma

Similar Messages

  • Someone stole my ipod. They erased it and i cant find it. Please help! How do i find it?

    Someone stole my ipod. They erased it and i cant find it. Please help! How do i find it?

    lost/stolen                                      
    No app on the iPod is required.                            
    - If you previously turned on FIndMyiPod on the iPod in Settings>iCloud and wifi is on and connected, on a computer browser go to iCloud: Find My iPhone, sign in and go to FIndMyiPhone. If the iPod has been restored it will never show up.
    - You can also wipe/erase the iPod and have the iPod play a sound via iCloud.
    - If not shown, then you will have to use the old fashioned way, like if you lost a wallet or purse.
    - Change the passwords for all accounts used on the iPod and report to police
    - There is no way to prevent someone from restoring the iPod (it erases it) using it unless you had iOS 7 on the device. With iOS 7, one has to enter the Apple ID and password to restore the device.
    - Apple will do nothing without a court order                                                        
    Reporting a lost or stolen Apple product                                               
    - iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

  • I upgraded from Dreamweaver CS4 to CS6. but now "an TFP error occured - cannot make connection to host". I spent hours with the host technician and we cant find the error. I reinstalled DW4 and it connects to host perfectly. Anyone else seen this problem?

    I upgraded from Dreamweaver CS4 to CS6. but now when I want to upload I get "an TFP error occured - cannot make connection to host". I spent hours with the host technician and we cant find the error. I reinstalled DW4 and it connects to host perfectly. Anyone else seen this problem?
    Mac OS 10.8.5
    None of these issues are causing the error in DW CS6. We have double checked all of them and we have everything exactly right. Also I have exactly the same SiteSetup in DW CS4 and that works perfectly well. Could there must be factor in 6 that didn't exist in 4? Something that isnt in the SiteSetup but in some hidden dialog box ?
    I can also upload to my host using Fetch, a third party FTP. And as I said DW CS4 works fine. So the problem is not with my host, its with DW CS6 in particular.

    Thank you Jon, that fixed it perfectly. You have saved me from going crazy. The only difference I see now is in "Server Name" it changed what I had entered (my ftp address) to "Remote Server"; which seems odd -- but it works!   Although I know there maybe also some other dialog box I have never seen
    Of course I saw that menu item "Import"  and but I thought thats obviously not for me: "Why would I want to import an entire website?". I did not however see "Export the selected site" for thats only a tiny icon in the footer. However I would have thought the same:  "Why would I want to export my entire website?".
    An observation: I've seen this problem in a lot of Adobe software, the menu-names of items are  obscure, non descriptive. What would be better would be for the menu names or popups to say "Export Site Setup settings" and "Import Site Setup settings"

  • Cant find the camera aplication, help me please ¡¡¡

    8th months ago i lost my camera aplicattion and i dont know how to find it. Around 1 week ago i have been keeping information about how to reinstall the camera aplication, and  i clean all my phone, all aplications go away.
    please help me, this situation is killing me. try to explain me the more complete as u can, thank you ¡¡¡¡ 

    Hi there,
    Can you access the camera by going to Media > Pictures and take a picture from the Picture app?
    Also double check to ensure that the icon wasn't hidden: Go to the homescreen and press the BB Menu button, then select Show All. Search again in all folders to see if you now find it. If you do, highlight the icon, press the BB Menu button and uncheck the Hide option.
    If that still doesn't help, post back and let us know.
    If you want to thank someone for their comment, do so by clicking the Thumbs Up icon.
    If your issue is resolved, don't forget to click the Solution button on the resolution!

  • Cannot Find Symbol Error, please help.

    I am brand new to Java, so sorry if this question is obvious, but I keep receiving the following error when i try and compile the following code Circle.java
    Circle.java:17: cannot find symbol
    symbol : constructor Point()
    location: class pointClass.Point
    ^
    Circle.java:18: cannot find symbol
    symbol : method Point(double,double)
    location: class pointClass.Point
    super.Point(x,y); //set center to (x,y)
    ^
    2 errors
    I cant seem to figure out why I am getting this error, any help that anyone could provide would be greatly appreciated.
    This is the code for Circle.java:
    package circleClass;
    import pointClass.*;
    public class Circle extends Point
    private double radius; //Add a double radius field.
    public Circle()
    super(0,0); //call Point?s constructor initializing center to (0,0)
    radius = 0.0; //set radius to 0.0
    public Circle(double x, double y, double r)
    super.Point(x,y); //set center to (x,y)
    radius = r; //set radius to r
    public double r()
    return radius; //returns radius.
    public double getArea()
    return Math.PI*(radius*radius); //returns area of Circle object
    public double getCircumference()
    return 2*Math.PI*radius; //returns circumference of Circle object
    public String toString()
    return "center: ("+x+","+y+")"+"\nradius: "+r; //returns String that will give
    //output of the format...
    //center: (x,y)
    //radius: r
    If it helps, this is the code for pointClass:
    package pointClass;
    public class Point
    private double xcoor,ycoor;
    public static final Point ORIGIN = new Point();
    private Point()
    xcoor = 0;
    ycoor = 0;
    public Point(double x, double y)
    xcoor = x;
    ycoor = y;
    public double x()
    return xcoor;
    public double y()
    return ycoor;
    public String toString()
    return "(" + xcoor + "," + ycoor + ")";
    public static double distance(Point p, Point q)
    double dx = q.xcoor - p.xcoor;
    double dy = q.ycoor - p.ycoor;
    return Math.sqrt(dx*dx + dy*dy);
    Thanks for your help.

    {color:#000080}Both of your classes need to be in the same package, not each one in a package of its own. You have imported pointClass.Pont in Circle.java, but I don't think that's what you want to do. For a better understanding of packages, read{color}
    http://java.sun.com/docs/books/tutorial/java/package/index.html
    And post code like this:
    [code]CODE[/code] is displayed as CODE{color:#000080}db{color}

  • Was going to download pictures from camera now cant find anywhere. PLEASE HELP!!

    was trying to download pictures from my digital camera to my macbook. i saw that it was on the computer at one point but then before i could put it anywhere it got lost. have looked everywhere can't find the pictures anywhere. please someone help me!!!

    Hi,
    Have you looked in iphoto application. They may be there.
    Have you deleted the photos from your camera or the memory card. If not download them again.
    I take the memory card out of the camera and use a USB card reader to download my pictures.
    The card appears as a drive icon on your desk top which you open up and can then save your pictures anywhere you like.
    Hope this helps.
    Good luck,
    Alan

  • Ipad didnt work, i cant go back to the apps, and even i cant reboot the ipad. please help me, what should i do with my ipad? thank you.

    i read a book from ipad, when i want to change to a game, suddenly the ipad stuck. i cant go back home or even reboot from the turn on/off button, and now the ipad stuck. please help me, what should i do? thank you.

    If "Demo's" instructions helped...
    when i want to change to a game,
    Tap and hold down the app then tap the x with a circle then tap Delete.
    User your iPad for a few days to see if it's stable. If it is, then it's that one app causing the problem.
    Contact the app's developer (at their website) for support.

  • My Ipod stolen cant find my music please help!!!

    My Ipod has been stolen and i  have  just purchased another but now I cant find my music on Itunes playlist have I lost everything all my purchases  please help!!!

    have a read
    http://support.apple.com/kb/TS2830

  • Hi. i just downloaded this update for my macbook air and when i turn it on it says it needs to be restarted and so i do restart it. but the messages pops up again. i cant use the computer please help.

    hi so i just dpownloaded the mac os lion but when i turn my mac it says please restart it and when i do i get the message again. i am travelling soon and i need my mac to be fixed. please help me.

    Did you purchase your MacBook Air new?  Do you still have its box?  Locate its serial number and telephone Apple at the number shown at the bottom of this page (1-800-MY-APPLE if you're in the U.S.).  They can help you.

  • HT1212 have tried everything to unlock ipad mini that has been locked and cant remember the passcode please help very frustrated

    Hi there anyone, I have a ipad mii that has been locked with a code and cant remember what it is I have tried a recovery but still nothing but aa ipad disabled connect to itune message please help.

    Forgotten passcode
    http://support.apple.com/kb/HT1212

  • Cant edit syntax error, please help!

    New to dreamweaver and intergrating a wordpress blog into my site and I got a syntax error. The problem and question is how do i fix the error. Everytime i try to edit it or delete something the program dosent let me. Any help would be greatly appreciated. Below you will see i marked line 55 below.
    <?php
    * The main template file.
    * This is the most generic template file in a WordPress theme
    * and one of the two required files for a theme (the other being style.css).
    * It is used to display a page when nothing more specific matches a query.
    * E.g., it puts together the home page when no home.php file exists.
    * Learn more: http://codex.wordpress.org/Template_Hierarchy
    * @package WordPress
    * @subpackage Twenty_Eleven
    get_header(); ?>
    <div id="wrapper">
      <div id="main_content"><!-- InstanceBeginEditable name="Page Title" -->
        <div id="maincontent_heading">
          <h2>Page Title</h2>
        </div>
      <!-- InstanceEndEditable --><!-- InstanceBeginEditable name="content" -->
      <div id="content"><?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    <small><?php the_time('F jS, Y') ?> <!– by <?php the_author() ?> –></small>
    <div>
    <?php the_content('Read the rest of this entry &raquo;'); ?>
    </div>
    <p><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', ", ' | '); ?> <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>
    </div>
    <?php endwhile; ?>
    <div>
    <div><?php next_posts_link('&laquo; Older Entries') ?></div>
    <div><?php previous_posts_link('Newer Entries &raquo;') ?></div>
    </div>
    <?php else : ?>
    <h2>Not Found</h2>
    <p>Sorry, but you are looking for something that isn't here.</p>
    <?php get_search_form(); ?>
    <?php endif; ?>
    </div>
      <!-- InstanceEndEditable --></div>
      <div id="sponsors_bar">      -----------------> this is the line its calling a syntax error
        <div id="sponsor_heading">
          <h3>Sponsors</h3>
        </div>
        Logos go here </div></div>
    </div>
    <?php get_footer(); ?>

    hi,
    thanks, i have done it, it is my orIginal bean
    package sources.bean;
    import javax.faces.model.*;
    import javax.faces.context.*;
    import java.util.*;
    public class LIC3330 {
         private SelectItem[] catItem;
         private String[] ramoCode;
         private int currentCat;
         final String USER = "aspnet4sql";
         final String PASSWORD = "sql2aspnet";
         public LIC3330() {
              FacesContext context = FacesContext.getCurrentInstance();
              ExternalContext app = context.getExternalContext();
              Map sessionMap = app.getSessionMap();
              Map ramoNameMap = (Map) sessionMap.get("ramoNameMap");
              Vector ramoCodeVec = (Vector) sessionMap.get("ramoCodeVec");
              catItem = new SelectItem[ramoNameMap.size()];
              ramoCode = new String[ramoNameMap.size()];
              for (int i = 0; i < ramoNameMap.size(); i++) {
                   String ramoName = (String) ramoNameMap.get(ramoCodeVec.get(i));
                   String rc = (String) ramoCodeVec.get(i);
                   ramoCode[i] = rc;
                   catItem[i] = new SelectItem(i, ramoName);
         public int getCurrentCat() {
              return currentCat;
         public void setCurrentCat(int currentCat) {
              this.currentCat = currentCat;
         public SelectItem[] getCatItem() {
              return catItem;
    and the constructor is sure work, coz i use in the other bean, it work well, although i remove the constructor here, it show me an empty page without any error message. i'm really doubt of it.
    emmy.ma

  • Whenever i dial hash in last its always calling not requesting. i had upgraded to ios 7.   i cant get the balance please help me

    please help me.    whenever i dial hash i.e *1111#   insted of requesting its always calling.....

    Yes, I did.
    It restored everything [incl. photos] but phone contacts.
    And, after restoration the iOS was still 7.
    I tried twice but still no phone contacts.
    Please help me to get my phone contacts back!

  • I'v read all over the internet for decent export settings for mpg but cant find any. Please help.

    Hai!
    I have been searching for good export settings to use as I export my mpg files in adobe premier cs4
    But all my results are so crapy!
    I can see they are good in premiere, but after export they are as bad as if I would use windows movie maker.
    I found that AVI uncompressed only gives out the sound, no images.
    Avi compressed gives that bad look.
    QT animation gives also bad look.
    Mp4 got a max resolution of 340 x 240, so we not even gona discust that one..
    My movies are in native MOD files. I convert em by simply changing the extension to mpg
    720x576 resolution
    25 fps
    48k Hz compressed audio
    Any more info needed?
    Thanks alot for helping me, I really looked at many threads and stuff
    over internet to find a solution but i couldn't.
    This is really urgent, the movie MUST be done within 2 days. Or else i get an F

    >My movies are in native MOD files. I convert em by simply changing the extension to mpg
    You are starting with compressed files... and then you compress again... that is a DOUBLE hit on quality
    You might try some other software (no, I don't know which one) to edit your files and export without re-compressing

  • Two of my 7 calendars aren't syncing correctly via icloud from iMac to ipad and iphone.  i cant find the problem. Help!

    Two calendars in my list of seven are not correctly syncing between my iMac and my ipad &amp; iPhone.  Also, the two calendars appear in my iCloud list with alert symbols after the (triangle with exclamation mark) whereas others in list show a "broadcasting" symbol. I don't know how to find out what these alerts are.
    I have noticed problems in syncing special recurring events....I.e I am able to set up a 'last Friday of each month"  on my iMac, but it doesn't appear on my iPad or iPhone.  And I note I can't set up a special recurring event on my iPad or iPhone.  What can I do to solve this?  Is this a known flaw in iCal?
    Mary C

    I have no idea if this will help as I sync via iTunes under OSX.6.8 - but there may be a clue somewhere here:
    https://discussions.apple.com/thread/4981514
    I have to say that, even after doing all that, my problem seems to recur at random with no obvious trigger - and it is even more bizarre because, like you, not all calendars or events are affected.  Sometimes, different events within the same calendar are duplicated whereas others aren't!
    And just how the iPad seems to pick up events which no longer appear in iCal is beyond me - presumably somewhere in a plist or old cache file but, as I said, no-one has any idea what or where!
    No-one has managed to explian why my problem occurs or, indeed, just what is happening, but at least I now know how I can correct it, albeit via tedious series of steps.
    I hope that helps?

  • Airport Utility Cant find airport express PLEASE HELP!!!!!!!!!!!!!

    A teacher of mine gave me an airport express base station and he used it for a month. I bring it home and plug it in to a power source outlet and a light went green then amber the next second. it stayed like that then it started to blink amber. Then i opened my airport utility so i can configure it but the utility wont find it, i try to reset it but it still wont work.
    HELP ME!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    Hi,
    When you say you reset it, did you do it this way - http://docs.info.apple.com/article.html?artnum=108044
    Regards

Maybe you are looking for

  • SSIS Flat File Source not populating varchar column

    I have SSIS package that imports flat files with column separator | from "Flat File Source" into the database trough "OLE DB Destination". For one of the columns (file contains UIDs in curly brackets) destination column is varchar(250) null-able, whe

  • Can't log in / supposedly file-vault

    I have a power mac, which I recently updated to Lion. I've never used a password before and yet after an unusual abortive boot (unusual boot-sequence which hanged, which I had to hard-reset) I now get a login screen, which since I've never had a logi

  • I upgraded to Firefox 4 and lost my Identity Safe w/ Norton. How can I get it back?

    ''Locking, as this problem has been fixed by Norton - [http://us.norton.com/support/kb/web_view.jsp?wv_type=public_web&docurl=20100720112959EN&pvid=nis-2011&selected_nav=5&layout= see this Norton support page.] Identity Safe is a part of Norton and i

  • Screen black, but iBook still runs

    I have had a white iBook G3 for over 5 years. I had just closed it and put it to sleep. When I opened it up not long after that, it seemed to wake up (breathing light went away), but the screen was all black. I restarted it and it booted up as normal

  • ITunes 7.3 refuses to upgrade

    Tried several times and no luck. Anybody having this same problem out there? Never had this problem before. Looking for any possible solutions. Thanks.