java.sql.SQLException: Invalid column name 'Staff_approved'. Error Code: 207 Call: SELECT Staff_id, Staff_description, Staff_image_large, Staff_order, Staff_linkedin, Staff_email, Staff_position_title, Staff_telephone_mobile, Staff_telephone_direct, Site_owner_id, Staff_status, Staff_approved, Staff_image_small, Staff_name, Staff_department_id, Site_locationseq FROM WWWWebsite_Staff WHERE (Site_owner_id = ?) bind => [27] Query: ReadAllQuery(name="WWWWebsiteStaff.findBySiteOwnerId" referenceClass=WWWWebsiteStaff sql="SELECT Staff_id, Staff_description, Staff_image_large, Staff_order, Staff_linkedin, Staff_email, Staff_position_title, Staff_telephone_mobile, Staff_telephone_direct, Site_owner_id, Staff_status, Staff_approved, Staff_image_small, Staff_name, Staff_department_id, Site_locationseq FROM WWWWebsite_Staff WHERE (Site_owner_id = ?)")

eclipse.org | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Eclipse Community Forums: EclipseLink ยป Invalid column name problem

    eclipse.org | 8 months ago
    java.sql.SQLException: Invalid column name 'Staff_approved'. Error Code: 207 Call: SELECT Staff_id, Staff_description, Staff_image_large, Staff_order, Staff_linkedin, Staff_email, Staff_position_title, Staff_telephone_mobile, Staff_telephone_direct, Site_owner_id, Staff_status, Staff_approved, Staff_image_small, Staff_name, Staff_department_id, Site_locationseq FROM WWWWebsite_Staff WHERE (Site_owner_id = ?) bind => [27] Query: ReadAllQuery(name="WWWWebsiteStaff.findBySiteOwnerId" referenceClass=WWWWebsiteStaff sql="SELECT Staff_id, Staff_description, Staff_image_large, Staff_order, Staff_linkedin, Staff_email, Staff_position_title, Staff_telephone_mobile, Staff_telephone_direct, Site_owner_id, Staff_status, Staff_approved, Staff_image_small, Staff_name, Staff_department_id, Site_locationseq FROM WWWWebsite_Staff WHERE (Site_owner_id = ?)")

    Root Cause Analysis

    1. java.sql.SQLException

      Invalid column name 'Staff_approved'. Error Code: 207 Call: SELECT Staff_id, Staff_description, Staff_image_large, Staff_order, Staff_linkedin, Staff_email, Staff_position_title, Staff_telephone_mobile, Staff_telephone_direct, Site_owner_id, Staff_status, Staff_approved, Staff_image_small, Staff_name, Staff_department_id, Site_locationseq FROM WWWWebsite_Staff WHERE (Site_owner_id = ?) bind => [27] Query: ReadAllQuery(name="WWWWebsiteStaff.findBySiteOwnerId" referenceClass=WWWWebsiteStaff sql="SELECT Staff_id, Staff_description, Staff_image_large, Staff_order, Staff_linkedin, Staff_email, Staff_position_title, Staff_telephone_mobile, Staff_telephone_direct, Site_owner_id, Staff_status, Staff_approved, Staff_image_small, Staff_name, Staff_department_id, Site_locationseq FROM WWWWebsite_Staff WHERE (Site_owner_id = ?)")

      at javax.faces.component.UIData.getValue()
    2. JavaEE 7
      UIData.getValue
      1. javax.faces.component.UIData.getValue(UIData.java:585)
      1 frame
    3. RichFaces Core API
      AbstractTableRenderer.encodeTableStructure
      1. org.ajax4jsf.component.UIDataAdaptorBase.getValue(UIDataAdaptorBase.java:1647)
      2. org.ajax4jsf.component.SequenceDataAdaptor.getDataModel(SequenceDataAdaptor.java:65)
      3. org.ajax4jsf.component.SequenceDataAdaptor.createDataModel(SequenceDataAdaptor.java:59)
      4. org.richfaces.component.UIDataTable.createDataModel(UIDataTable.java:121)
      5. org.ajax4jsf.component.UIDataAdaptorBase.getExtendedDataModel(UIDataAdaptorBase.java:621)
      6. org.ajax4jsf.component.UIDataAdaptorBase.setRowKey(UIDataAdaptorBase.java:339)
      7. org.richfaces.renderkit.AbstractTableRenderer.encodeTableStructure(AbstractTableRenderer.java:138)
      7 frames
    4. RichFaces Core Implementation
      DataTableRenderer.doEncodeBegin
      1. org.richfaces.renderkit.html.DataTableRenderer.doEncodeBegin(DataTableRenderer.java:140)
      2. org.richfaces.renderkit.html.DataTableRenderer.doEncodeBegin(DataTableRenderer.java:128)
      2 frames
    5. org.ajax4jsf.renderkit
      RendererBase.encodeBegin
      1. org.ajax4jsf.renderkit.RendererBase.encodeBegin(RendererBase.java:100)
      1 frame
    6. JavaEE 7
      UIData.encodeBegin
      1. javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:788)
      2. javax.faces.component.UIData.encodeBegin(UIData.java:879)
      2 frames
    7. RichFaces Core API
      UIDataAdaptorBase.encodeBegin
      1. org.ajax4jsf.component.UIDataAdaptorBase.encodeBegin(UIDataAdaptorBase.java:1225)
      1 frame
    8. org.ajax4jsf.renderkit
      RendererBase.renderChildren
      1. org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:275)
      2. org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:258)
      2 frames
    9. RichFaces Core Implementation
      PanelRenderer.doEncodeChildren
      1. org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:200)
      2. org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:195)
      2 frames
    10. org.ajax4jsf.renderkit
      RendererBase.encodeChildren
      1. org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:120)
      1 frame
    11. JavaEE 7
      UIComponentBase.encodeChildren
      1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
      1 frame
    12. JSF
      GridRenderer.encodeChildren
      1. com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:271)
      2. com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:242)
      2 frames
    13. JavaEE 7
      UIComponent.encodeAll
      1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
      2. javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
      3. javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
      4. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
      5. javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
      6. javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
      6 frames
    14. JSF
      ViewHandlerImpl.renderView
      1. com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:245)
      2. com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:176)
      2 frames
    15. com.sun.rave
      ViewHandlerImpl.renderView
      1. com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:320)
      1 frame
    16. org.ajax4jsf.application
      AjaxViewHandler.renderView
      1. org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
      2. org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
      2 frames
    17. JSF
      LifecycleImpl.phase
      1. com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
      2. com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
      2 frames