Blank page on backing bean exception

When there is exception in the backing bean, a blank page is displayed. I was expecting response with status code 500. When I debug the http response the status code is 200. I have configured the webapp to display error page on status code 500. Since it is not returning status code 500, this page is not displayed.
In web.xml
<error-page>
<error-code> 500 </error-code>
<location>/500.jsf</location>
</error-page>
I am using Sun RI Implementation of JSF on weblogic 10.3
Please some one help me.
Here's a stack trace.
Note :I purposely introduced devide by zero exception in my backing bean action.
####<Mar 11, 2009 10:57:16 AM PDT> <Error> <HTTP> <KOLCHK1-D1> <AdminServer> <[ACTIVE] ExecuteThread: '21' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1236794236482> <BEA-101107> <[weblogic.servlet.internal.WebAppServletContext@1943319 - appName: 'sam', name: 'hcp', context-path: '/hcp', spec-version: '2.5'] Problem occurred while serving the error page.
javax.servlet.ServletException: / by zero
     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
     at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
     at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:502)
     at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:251)
     at weblogic.servlet.internal.ForwardAction.run(ForwardAction.java:22)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
     at weblogic.security.service.SecurityManager.runAs(Unknown Source)
     at weblogic.servlet.internal.ErrorManager.handleException(ErrorManager.java:144)
     at weblogic.servlet.internal.WebAppServletContext.handleThrowableFromInvocation(WebAppServletContext.java:2244)
     at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2093)
     at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

Then the problem lies somewhere else. I can't determine it based on the as far given information.

Similar Messages

  • To get a page fragment's button id in another page's backing bean

    Hi,
    I've a page fragment file with command button 1 and a jspx page with command button 2. On clicking button 1, jspx page opened in a dialog window. When i press button 2, button 1 also get pressed automatically. In action method of button 2, the id of button 1 returns null. How can i get the id of button 1 in button 2's action method. Page fragment and jspx page have separate backing bean. And both the buttons are bound with those bean respectively.
    The code in jspz page's backing bean is,
    fragmentBean frag = new fragmentBean();
    frag.getButton1();
    This 'frag.getButton1();' returns null value. how can i get button 1's id?

    Hi,
    fragmentBean frag = new fragmentBean();
    frag.getButton1();
    you create a new bean instance instead of having JSF serving you this. What you should do is
    ELContext context = FacesContext-->ELContext
    ExpressionFactory factory = FacesContext --> Application --> ExpressionFactory
    ValueExpression ve = factory.createValueExpession(..., "#{managedBeanToReference}", ...);
    fragmentBean bean = (fragmentBean) ve.getValue(...);
    Frank

  • Getting DCBindingContainer of page in backing bean

    How i can access binding container of a page in backing bean?

    Hello,
    You can refer to chapter 9.10 in the Developer's Guide for ADF 11g:
    http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/bcservices.htm#CHDDDBFC
    Using the following piece of code in your backing bean:
    public BindingContainer getBindings() {
      if (this.bindings == null) {
      FacesContext fc = FacesContext.getCurrentInstance();
      this.bindings =
        (BindingContainer)fc.getApplication().evaluateExpressionGet(fc,"#{bindings}", BindingContainer.class);
      return this.bindings;
    }If JDev asks which BindingContainer class to import, choose this one: oracle.binding.BindingContainer
    Regards,
    Chris
    Edit: Too late, you found it yourself! :-)
    Edited by: Chris Schryvers on 02-Dec-2009 05:08

  • How To Customize displaying  of JSP page From Backing Bean

    I would like to customize the displaying of jsp page from backing bean based on user Roles
    For example
    - if the Role is Admin then backing bean should display Admin.jsp
    - if the Role is Guest then backing bean should display Guest.jsp
    Any pointers/suggestions will be highly appreciated
    Regards
    Bansi

    Thanks to all for providing thoughts
    I wanna make it more Dynamic. In the sense
    "Backing Beans should drive the rendering of first jsp page in the application " and not jsp page driving the backing bean or not to put some kind of hard coding in jsp page to see if its admin user then display certain set of UI Components or certain set of other UI components for other users.
    As we have atleast 10 different Roles and there can be Composite Roles i.e. combination of two roles. In this case how does the Backing Bean drives the rendering of jsp page?
    Regards
    Bansi

  • To add components in JSF page from backing bean

    I am trying to display list of available files under a directory using HtmlSelectOneMenu. In constructor of backing bean i have the following code
    directory = new File("C:\\files");
        files = directory.list();
        String[] fileList = this.getFiles();
        List valueList = new ArrayList();
        for (int i=0; i < fileList.length; i++) {
            SelectItem item = new SelectItem(fileList);
    valueList.add(item);
    UISelectItems items = new UISelectItems();
    items.setId("items"+sessionVariable);
    items.setValue(valueList);
    listbox = new HtmlSelectOneMenu();
    listbox.setId("listbox"+sessionVariable);
    listbox.getChildren().add(items);
    getPanelGrid1().getChildren().add(listbox);
    and my jsf looks like this <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <f:view>
    <html>
    <head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/>
    <title>Employee</title>
    <link type="text/css" rel="stylesheet" href="resources.css"/>
    <style type="text/css">
    body {
    background-color: #ffffff;
    a:link { color: #000000; }
    </style>
    </head>
    <body><h:form binding="#{backing_SampleEdit.form1}" id="form1">
    <h:panelGrid columns="2" binding="#{backing_SampleEdit.panelGrid1}"
    id="panelGrid1" >
    <h:outputLabel value="Template Name"
    binding="#{backing_SampleEdit.outputLabel1}"
    id="outputLabel1"/>
    </h:panelGrid>
    </h:form></body>
    </html>
    </f:view>
    <%-- oracle-jdev-comment:auto-binding-backing-bean-name:backing_SampleEdit--%>
    I am getting an exception like "Cant instantiate the class exception"..
    please help me out in this..                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    The Stacktrace looks like this
    SEVERE: Managedbean backing_SampleEdit could not be created Can't instantiate class: 'com.backing.SampleEdit'.. class com.backing.SampleEdit : java.lang.NullPointerException
    javax.faces.FacesException: Can't instantiate class: 'com.backing.SampleEdit'.. class com.backing.SampleEdit : java.lang.NullPointerException
         at com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:229)
         at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:282)
         at com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:97)
         at com.sun.faces.el.impl.NamedValue.evaluate(NamedValue.java:145)
         at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:166)
         at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:160)
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
         at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:406)
         at javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1019)
         at javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1046)
         at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:761)
         at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:451)
         at com.sun.faces.taglib.html_basic.FormTag.doStartTag(FormTag.java:345)
         at SampleEdit.jspService(_SampleEdit.java:60)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
         at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
         at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
    Caused by: java.lang.ClassNotFoundException: class com.backing.SampleEdit : java.lang.NullPointerException
         at java.beans.Beans.instantiate(Beans.java:208)
         at java.beans.Beans.instantiate(Beans.java:48)
         at com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:223)
         ... 45 more
    Caused by: java.lang.NullPointerException
         at com.backing.SampleEdit.<init>(SampleEdit.java:53)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at java.lang.Class.newInstance0(Class.java:350)
         at java.lang.Class.newInstance(Class.java:303)
         at java.beans.Beans.instantiate(Beans.java:204)
         ... 47 more

  • Target Servlet in page from backing bean.

    Hi,
    How do I render a servlet in a page from a backing bean instead of a new page as it currently doing.
    the backing bean consists of...
    String url = "/ScriptOutputServlet?docNum=" + command;
            blog.debug("URL = " + url);
            FacesContext ctxt = FacesContext.getCurrentInstance();
            try
                ctxt.getExternalContext().dispatch(url);
            }catch(Exception e)
                e.printStackTrace();
            }finally{
                ctxt.responseComplete();
            }I suppose my question is how do I add a target into the URL to render back into a frame on the original page for example?
    Thanks in advance

    First off, let me thank you for all your replies, your help is much appreciated.
    What I'm trying to achieve is for the user to be able to click a command link which is a shell script and have the stdout of the script returned to the same page. Please let me know what info/code you need.
    From the jsf page...
    <h:commandLink action="#{executeBean.executeScript}" immediate="true" styleClass="#{t.nodeSelected ? 'documentSelected':'document'}" actionListener="#{t.setNodeSelected}" >
                                                <t:graphicImage value="../images/document.png" border="0"/>
                                                <h:outputText value="#{node.description}"/>
                                                <f:param name="docNum" value="#{node.description}"/>
                                            </h:commandLink>
                                        </h:panelGroup>
                                    </f:facet>
                                </t:tree2>
                                <jsp:include page="/ScriptOutputServlet" />
    public void doExecute(String command)
            String url = "/faces/private/main.jsp?docNum=" + command;
            blog.debug("URL = " + url);
            FacesContext ctxt = FacesContext.getCurrentInstance();
            try
                ctxt.getExternalContext().redirect(url);
            }catch(Exception e)
                e.printStackTrace();
            }finally{
                ctxt.responseComplete();
            }I'm hoping I'm making some more sense...
    Many thanks again,
    nick
    Edited by: nickbeenham on Dec 26, 2007 9:38 AM

  • Page scoped backing bean keeps old data, why???

    I have two pages, a search/list page and an add page. On the search/list page there is an add buttom that simply navigates to the add page.
    The first time I press the add button all fields in the page are blank so I enter data and submits. The data i saved and we are navigated back to the search/list page. The next time I press the add button and are naviagted to the add page, all fields are filled with the same values as the last time I visited the page.
    The add page backing bean is (annotated by Seam) to reside in PAGE scope so it should loose its values between invokations of the add page.
    I get the exact same instance of the bean every time I nav to the add page. (Until the session is closed of course)
    Why this behaviour?
    Thanx.

    Check if a session scoped bean or other class is keeping a reference to the bean

  • Page Template Backing Bean Availability

    I have a page template that is used in pages across in a bounded Task flow. The backing bean is defined in the adfc-config.xml file.
    There are properties in the template backing bean that I use to determine whether to set some UI Components Visible property to true or false. So far so good and the UI Visible property is set as expected when run. e.g.
    #{backingBeanScope.beanNameBacking.myGroupAccordionVisible}
    I created another bounded Task Flow that contains a page that also references the Page Template. The new Task Flow is called from the original Task Flow.
    When I run the application now, the backing bean properties (in the Page Template) are highlighted as unknown and I get a runtime null pointer exception.
    This is even more confusing as I reference the template backing bean as a managed bean in the new (and old) Task Flow, and from the new Task Flow I can call a method in the template backing bean successfully. Why would the properties be unknown?
    Cheers.

    Hi,
    >highlighted in yellow and the hint says the bean property contained in the EL is not known
    First remove your existing EL and create EL as i said before,After create new EL it will not highlighted in yellow because EL is based on your managed Bean.

  • Generic Way to Catch Backing Bean Exceptions Possible ?

    For customizing the way errors are shown to the user I already have:
    - Override the method reportErrors(PageLifecycleContext) as described in the section "20.8.1 How to Change Exception Handling"
    - Created a custom subclass of DCJboDataControl (as example#55 on Steve blog) and override the beginRequest() for exceptions like a JDBC connection error.
    However I have one more situation I would like to have a generic solution and that is for the backing action methods that can throw exceptions not being handled by a try {} catch {} statement. Ex: NullPointerException. Currently what happens in that case is that a 500 Internal Server Error page is shown to the user.
    I was thinking of having a servlet filter, but I am not sure if that is the best way to achieve it.
    Any thought is welcomed.
    Thanks,
    Claudio.

    Sure, but I warn you, that example won't be portable directly from a JSF implementation to another (RI vs. MyFaces mainly) as you have to use directly an implementation class. It's really a minor change from one implementation to another though.
    There's a portable way, but it implies rewriting the full Lifecycle class on your own (which I did to add new features as well, but you should do that until you're fully comfortable with the specification). Anyway, here's the simple example
    In faces-config.xml
    <factory>
      <lifecycle-factory>mypackage.MyLifecycleFactory</lifecycle-factory>
    </factory>In MyLifecycleFactory class
    public class MyLifecycleFactory extends LifecycleFactoryImpl
      private Map<String, Lifecycle> cache;
      public MyLifecycleFactory()
        cache = new HashMap<String, Lifecycle>(3);
      public Lifecycle getLifecycle(String lifecycleId)
        Lifecycle lifecycle = cache.get(lifecycleId);
        if (lifecycle == null)
          lifecycle = super.getLifecycle();
          if (lifecycle == null)
            return null;
          lifecycle = new LifecycleDecorator(lifecycle);
          cache.put(lifecycleId, lifecycle);
        return lifecycle;
    }Where LifecycleFactoryImpl is com.sun.faces.lifecycle.LifecycleFactoryImpl in JSF RI and org.apache.myfaces.lifecycle.LifecycleFactoryImpl in MyFaces (that's the only change you have to do for it to work in an implementation or another).
    In LifecycleDecorator class
    public class LifecycleDecorator extends Lifecycle
      private Lifecycle wrapped;
      public LifecycleDecorator(Lifecycle wrapped)
        this.wrapped = wrapped;
      public void execute(FacesContext context)
        try
          wrapped.execute(context);
        catch (Exception e)
          // Do something
      public void render(FacesContext context)
        try
          wrapped.render(context);
        catch (Exception e)
          // Do something
      public void addPhaseListener(PhaseListener listener)
        wrapped.addPhaseListener(listener);
      public void removePhaseListener(PhaseListener listener)
        wrapped.removePhaseListener(listener);
      public PhaseListener[] getPhaseListeners()
        return wrapped.getPhaseListeners();
    }Regards,
    ~ Simon

  • Had multiple problems with Firefox 4..went back to 3.6.16. Now always opens to a blank page rather than my chosen home page, no matter how many time sI have set it to open on my homepage. Running Windows Vista. Any suggestions?

    $ was totally jacked up, no tabs, no history, no buttons that worked and always opened on a blank page. I saved my bookmarks, uninstalled 4, reinstalled 3.6.16 and all my problems went away except for the oening on a blank page. As soon as I hit home, it opens.
    Tnx,
    JFN3

    i ran into a simuler problem using firefox 4 with win 7. browser would not display web address and when you open the browser it would display a blank page. also back, forward, and refresh button's where grayed out and could not click hem.
    after checking plugins i was able to get it working with disableing java deployment toolkit.

  • Can I catch the resulting TopLink query in the JSF backing bean?

    Hello!
    I'm using a JSF in my application. In my case, data on the JSF Pages is based on a TopLink queries, which usually have some parameters. Such a construction works fine except one moment.
    For export data purposes, I need to catch the generated text of query evidently, suppose, in a Page's backing bean.
    Is it possible to perform this action and how to?
    Thanks.

    generally speaking, you can just throw one exception a time. you can throw your own application but you can't throw both SQLException and your own.

  • How to read values of dynamic UI elements in a backing bean?

    Hi, I have an ADF page where some of the UI elements (in this case, checkboxes) are dynamically rendered as such:
    <af:forEach var="row" items="#{backing_testPage.userList}">
    <af:selectBooleanCheckbox id="checkbox" value="#{row.id}"
    text="#{row.name}" selected="#{row.userSelected}"/>
    </af:forEach>
    I am wondering how can I read the values of these checkboxes in my page's backing bean. It does not seem possible to specify a distinct binding value for the selectBooleanCheckbox elements in order to tie them to a CoreSelectBooleanCheckbox variable in my backing bean (so that I could check whether the checkbox is selected or not).
    When the page gets rendered, I did see that the checkboxes get assigned distinct ids like checkbox_1, checkbox_2, checkbox_3, etc... Not sure if that would help with this.
    Would appreciate any tips on this as I've been struggling with this for awhile. Thanks!

    You probably would do better with a SelectManyCheckbox. Here's how:
    In your backing bean you need:
    private String[] usernames;
    public String[] getUsernames () {
      return usernames;
    public void setUsernames (String[] _usernames) {
      usernames = _usernames;
    }In your page:
    <af:selectManyCheckbox value="#{backing_testPage.usernames}">
      <f:selectItems value="#{backing_testPage.userList}"/>
    </af:selectManyCheckbox>When the form is rendered any strings in the usernames array that are in the userList will be checked. When submitted, any checked items will be in the array.

  • How to call popup from backing bean

    Hi,
    I have an application under jdev 11.1.1.1.0
    I am using the explorer template.
    I have my popups in one page and from another page i need to call these popups.
    I cannot use the <af:showPopupBehavior> because i am using the <af:setActionListener> in my command button.
    So in the action attribute I called my backing bean
    public String showDelBoxPopup() {
       FacesContext context = FacesContext.getCurrentInstance();
       ExtendedRenderKitService extRenderKitSrvc =
         Service.getRenderKitService(context,ExtendedRenderKitService.class);
       extRenderKitSrvc.addScript(context,"AdfPage.PAGE.findComponent('delBoxPopup').show()");
       return null;
    }But i always receive a null error.
    How can i call a popup in one page from another page using backing bean.
    Thank you in advance.
    Emile BITAR

    Hi,
    You can use <af:setActionListener> with <af:showPopupBehavior>, if you set triggerType="click" on the showPopupBehavior and contentDelivery="lazyUncached" on the popup to ensure the popup will be raised after setActionListener.
    I also don't understand what you mean by calling the popup from another page (is that page included as a region?), but if you say it works then your other option could be to bind the popup to the backing bean and use popup.getClientId() in your javascript.
    String script = "var popup = AdfPage.PAGE.findComponent(\"" + popup.getClientId(fc) +  "\"); popup.show();";Pedja

  • How i can display data from backing bean from jsf adf page

    Hi all
    I am creating a adf bc jsf application i am referring hr schema employee table
    in my jsf page i have a inputtext with label employee number if i enter employee number and press tab i should get employee name and jobid and salary for this purpose i am doing like as follows
    my view object query is as follows
    SELECT EMPLOYEE_ID,FIRST_NAME,JOB_ID,SALARY
    FROM EMPLOYEES
    WHERE EMPLOYEE_ID=:EMP_NO
    and my backing bean for my jsf page is as follows
    package view.backing;
    import javax.faces.component.html.HtmlForm;
    import javax.faces.event.ValueChangeEvent;
    import oracle.adf.view.faces.component.core.input.CoreInputText;
    import oracle.adf.view.faces.component.core.output.CoreOutputText;
    import oracle.adf.view.faces.component.html.HtmlBody;
    import oracle.adf.view.faces.component.html.HtmlHead;
    import oracle.adf.view.faces.component.html.HtmlHtml;
    import oracle.jbo.ApplicationModule;
    import oracle.jbo.Row;
    import oracle.jbo.ViewObject;
    import oracle.jbo.client.Configuration;
    public class BindTest3
    private HtmlHtml html1;
    private HtmlHead head1;
    private HtmlBody body1;
    private HtmlForm testForm;
    private CoreInputText employeeId;
    private CoreOutputText firstName;
    private CoreOutputText jobId;
    private CoreOutputText salary;
    public void setHtml1(HtmlHtml html1)
    this.html1 = html1;
    public HtmlHtml getHtml1()
    return html1;
    public void setHead1(HtmlHead head1)
    this.head1 = head1;
    public HtmlHead getHead1()
    return head1;
    public void setBody1(HtmlBody body1)
    this.body1 = body1;
    public HtmlBody getBody1()
    return body1;
    public void setTestForm(HtmlForm form1)
    this.testForm = form1;
    public HtmlForm getTestForm()
    return testForm;
    public void setEmployeeId(CoreInputText inputText1)
    this.employeeId = inputText1;
    public CoreInputText getEmployeeId()
    return employeeId;
    public void changeMethod(ValueChangeEvent event)
    String EmployeeId=(String)event.getNewValue();
    CheckForBind check=new CheckForBind();
    System.out.println(check.getEmployeeNo());
    String amDef = "model.AppModule";
    String config = "AppModuleLocal";
    ApplicationModule am =
    Configuration.createRootApplicationModule(amDef,config);
    ViewObject vo = am.findViewObject("EmployeeBindViewObj1");
    vo.setNamedWhereClauseParam("EMP_NO",EmployeeId);
    System.out.println("Query will return "+
    vo.getEstimatedRowCount()+" rows...");
    vo.executeQuery();
    while (vo.hasNext()) {
    Row curUser = vo.next();
    System.out.println(vo.getCurrentRowIndex()+" "+
    curUser.getAttribute("EmployeeId")+" "+
    curUser.getAttribute("FirstName")+" " curUser.getAttribute("JobId")" "+curUser.getAttribute("Salary"));
    //firstName =(String)curUser.getAttribute("EmployeeId");
    //setFirstName(curUser.getAttribute("EmployeeId"));
    firstName.setValue((String)curUser.getAttribute("FirstName"));
    //jobId.setValue((CoreOutputText) curUser.getAttribute("FirstName"));
    // salary.setValue((CoreOutputText)curUser.getAttribute("Salary"));
    // values.setJobId((CoreOutputText)curUser.getAttribute("JobId"));
    // values.setFirstName((CoreOutputText) curUser.getAttribute("FirstName"));
    //values.setSalary((CoreOutputText)curUser.getAttribute("Salary"));
    Configuration.releaseRootApplicationModule(am,true);
    public void setFirstName(CoreOutputText outputText1)
    this.firstName = outputText1;
    public CoreOutputText getFirstName()
    return firstName;
    public void setJobId(CoreOutputText outputText2)
    this.jobId = outputText2;
    public CoreOutputText getJobId()
    return jobId;
    public void setSalary(CoreOutputText outputText3)
    this.salary = outputText3;
    public CoreOutputText getSalary()
    return salary;
    and my jsf page is as follows
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
    <f:view>
    <afh:html binding="#{backing_BindTest3.html1}" id="html1">
    <afh:head title="Home" binding="#{backing_BindTest2.head1}" id="head1">
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/>
    <style type="text/css">
    body {
    background-color: #f7f7f7;
    </style>
    </afh:head>
    <afh:body binding="#{backing_BindTest3.body1}" id="body1">
    <h:form binding="#{backing_BindTest3.testForm}" id="testForm">
    <af:inputText label="Employee No" binding="#{backing_BindTest3.employeeId}"
    id="employeeId" valueChangeListener="#{backing_BindTest3.changeMethod}" autoSubmit="true"/>
    <af:outputText value="#{backing_BindTest3.firstName.value}"
    binding="#{backing_BindTest3.firstName}"
    id="firstName"/>
    <af:outputText value="outputText2"
    binding="#{backing_BindTest3.jobId}"
    id="jobId"/>
    <af:outputText value="outputText3"
    binding="#{backing_BindTest3.salary}"
    id="salary"/>
    </h:form>
    </afh:body>
    </afh:html>
    </f:view>
    <%-- oracle-jdev-comment:auto-binding-backing-bean-name:backing_BindTest2--%>
    but i am getting result in console but i cant get the value of firstname into my jsf page
    can any one can tell me for get the value to jsf page what i can do
    and what are the changes i can do in my jsf page

    hi,
    i tried to set value like as follows
    name=(CoreOutputText)curUser.getAttribute("FirstName");
    but that time i getting exception like as follows
    ec 22, 2007 2:17:27 PM com.sun.faces.lifecycle.ProcessValidationsPhase execute
    SEVERE: java.lang.ClassCastException: java.lang.String
    javax.faces.el.EvaluationException: java.lang.ClassCastException: java.lang.String
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:150)
         at oracle.adf.view.faces.component.UIXComponentBase.__broadcast(UIXComponentBase.java:1087)
         at oracle.adf.view.faces.component.UIXEditableValue.broadcast(UIXEditableValue.java:247)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:269)
         at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:363)
         at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:98)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.ClassCastException: java.lang.String
         at view.backing.ChangeValue.changeMethod(ChangeValue.java:49)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:146)
    What will be the resion please help it is very critical for me

  • How to handle exception on a backing bean constructor ?

    Hello,
    I would like to handle the exceptions throw on the constructor of a backing bean, and redirect the user to a "service not available" page.
    When I use "request.sendRedirect()" method to redirect the user to such page, I logically got an "IllegalStateException: Cannot forward a response that is already committed".
    Do you have any idea how can I redirect or forward a user to a page when the response is already commited? Is it possible to use servlet filter and do a forward after the doFilter()?
    Thank you.

    Just throw the exception and map an error page in the web.xml.
    <error-page>
        <exception-type>java.lang.Exception</exception-type>
        <location>error.jsp</location>
    </error-page>

Maybe you are looking for