Conversion Error setting value '33'  for 'null Converter'

Hi,everyone,it looks my custom Converter dosen't work.
CreditCard class:
package com.corejsf;
public class CreditCard {
     private String number;
     public CreditCard(){
     public CreditCard(String number){
          this.number=number;
     public String toString(){
          return this.number;
==============================
PaymentBean:
package com.corejsf;
import java.util.Date;
public class PaymentBean {
     private double amount;
     private Date date=new Date();
     private CreditCard card;
     public PaymentBean(){
     public double getAmount(){
          return this.amount;
     public void setAmount(double newValue){
          this.amount=newValue;
     public Date getDate(){
          return this.date;
     public void setDate(Date newValue){
          this.date=newValue;
     public CreditCard getCard(){
          return this.card;
     public void setCard(CreditCard newValue){
          this.card=newValue;
=================================
CreditCardConvert:
package com.corejsf;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.convert.ConverterException;
import javax.faces.application.FacesMessage;
public class CreditCardConvert implements Converter{
     public Object getAsObject(FacesContext context,UIComponent component,String newValue) throws ConverterException{
          StringBuilder builderForNewValue=new StringBuilder(newValue);
          boolean foundInvalidCharacter=false;
          char invalidChar;
          int newValueLength=newValue.length();
          int i=0;
          char chFromNewValue;
          while(i<newValueLength && !foundInvalidCharacter){
               chFromNewValue=builderForNewValue.charAt(i);
               if(Character.isDigit(chFromNewValue) || Character.isSpaceChar(chFromNewValue)){
                    i++;
               }else{
                    foundInvalidCharacter=true;
                    invalidChar=chFromNewValue;
                    FacesMessage message=new FacesMessage();
                    message.setDetail("detail error convert message for CreditCard with error Char:"+invalidChar);
                    message.setSummary("summary error convert message for CreditCard with error Char:"+invalidChar);
                    message.setSeverity(FacesMessage.SEVERITY_ERROR);
                    throw new ConverterException(message);
          return new CreditCard(builderForNewValue.toString());
     public String getAsString(FacesContext context,UIComponent component,Object newValue) throws ConverterException{
          return newValue.toString();
===============================
faces-config.xml:
<?xml version="1.0" encoding="UTF-8"?>
<faces-config
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
version="2.0">
     <managed-bean>
          <managed-bean-name>payment</managed-bean-name>
          <managed-bean-class>com.corejsf.PaymentBean</managed-bean-class>
          <managed-bean-scope>session</managed-bean-scope>
     </managed-bean>
     <converter>
          <converter-id>com.corejsf.CardConvert</converter-id>
          <converter-class>com.corejsf.CreditCardConvert</converter-class>
     </converter>     
     <navigation-rule>
          <from-view-id>/index.xhtml</from-view-id>
          <navigation-case>
               <from-outcome>result</from-outcome>
               <to-view-id>/result.xhtml</to-view-id>
               <redirect/>
          </navigation-case>
     </navigation-rule>
     <navigation-rule>
          <from-view-id>/result.xhtml</from-view-id>
          <navigation-case>
               <from-outcome>index</from-outcome>
               <to-view-id>/index.xhtml</to-view-id>
               <redirect/>
          </navigation-case>
     </navigation-rule>
</faces-config>
==================================================
index.xhtml:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core">
     <h:head>
          <title>index page</title>
     </h:head>
     <h:body>
          <h:form>
               <table>
                    <tr>
                         <td>
                              <h:inputText id="iptCard" label="card" required="true" convert="com.corejsf.CardConvert" value="#{payment.card}">
                              </h:inputText>
                              <h:message for="iptCard"></h:message>
                         </td>
                    </tr>
                    <tr>
                         <td>
                              <h:inputText id="iptAmount" label="amount" required="true" value="#{payment.amount}">
                                   <f:convertNumber minFractionDigits="2"></f:convertNumber>
                              </h:inputText>
                              <h:message for="iptAmount"></h:message>
                         </td>
                    </tr>
                    <tr>
                         <td>
                              <h:inputText id="iptDate" label="date" required="true" value="#{payment.date}">
                                   <f:convertDateTime pattern="MM/yyyy"></f:convertDateTime>
                              </h:inputText>
                              <h:message for="iptDate"></h:message>
                         </td>
                    </tr>
                    <tr>
                         <td>
                              <h:commandButton value="sumbit" action="result"></h:commandButton>
                         </td>
                    </tr>
               </table>
          </h:form>
     </h:body>
</html>
Can anyone help me,TKS!

And besides,if I change the first inputText to:
<td>
<h:inputText id="iptCard" label="card" required="true" value="#{payment.card}">
     <f:convert convertId="com.corejsf.CardConvert"></f:convert>
</h:inputText>
<h:message for="iptCard"></h:message>
</td>
The app runs and result in:
WebContent/index.xhtml @13,55 <f:convert> Tag Library supports namespace: http://java.sun.com/jsf/core, but no tag was defined for name: convert
Is any configuration problem there?
TKS!

Similar Messages

  • Conversion Error setting value ''{0}'' for ''{1}''

    Hi
    I have to populate a drop-down list on my page with the values coming from the DB.
    JSF code:
    <td align="right"><div id="wait" style="visibility:hidden;">Select an existing Application</div></td>
    <td align="left"><div id="wait1" style="visibility:hidden;" >
    <h:selectOneMenu id="exist" value="#{processApplication.selectedOwner}" styleClass="selectOneMenu">
    <f:selectItems value="#{processApplication.existingOwners}"></f:selectItems>
    </h:selectOneMenu>
    </div>
    </td>
    processApplication bean:
    public List<SelectItem> getExistingOwners() {                    
    //existingOwners = this.getOwners();
    try{
         List < SelectItem > existingOwners = new ArrayList < SelectItem > ( ) ;
         SelectItem si_0 = new SelectItem();
         SelectItem si_1 = new SelectItem();
    SelectItem si_2 = new SelectItem();
         si_0.setValue("11");
         si_0.setLabel("sri");
         si_1.setValue("21");
         si_1.setLabel("ADAMS");
         existingOwners.add(si_0);
         existingOwners.add(si_1);
         logger.info("values in the list" +existingOwners.get(1).getValue());
              }catch(Exception e){
                   logger.debug(e.getCause());
                   e.printStackTrace();
              return existingOwners;
         public void setExistingOwners(List<SelectItem> existingOwners) {
              try{
              this.existingOwners = existingOwners;
              }catch(Exception e){
                   logger.debug("%%%%");
                   logger.debug(e.getCause());
                   e.printStackTrace();
    public String getSelectedOwner() {
         try{
         List<SelectItem> test = this.getExistingOwners();
         selectedOwner = (String)test.get(1).getValue();
         logger.debug("selected owner from the list" +selectedOwner);
         }catch(Exception e){
         logger.debug(e.getCause());
         e.printStackTrace();
         return selectedOwner;
         public void setSelectedOwner(String selectedOwner) {
              this.selectedOwner = selectedOwner;
    public List<SelectItem> getExistingOwners() should actually be a call to the DB to get the list.
    But since i was getting exception I tried to hard code the list in the method itself.
    But , I get this exception:
    logger.info values in the list 21
    [6/15/09 12:49:45:687 EDT] 0000003d ServletWrappe E SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: /processApplication.jsp. Exception thrown : javax.servlet.ServletException: Conversion Error setting value ''{0}'' for ''{1}''.
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:658)
         at com.ibm._jsp._processApplication._jspService(_processApplication.java:149)
         at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:85)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:907)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:118)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
         at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:701)
         at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:646)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
         at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
    Earlier, I had a drop down list that was working perfectly fine.
    But its values came from a Helper class and not the DB.
    What is it that Iam missing or doing wrong?
    Please help me.
    Thanks.

    Based on your example on the link that you referred to I tried to do this
    fillSelectItems();
    as the initialization block (I read what it means)
    changed my getter method to
    public List<SelectItem> getExistingOwners() { return existingOwners; }
    private void fillSelectItems() {
    this.existingOwners = new ArrayList<SelectItem>();
    try{
         existingOwners.clear();
         List test = this.getOwners();
         SelectItem[] myitem = new SelectItem[test.size()];
         for(int i=0;i<test.size();i++) {
         Object[] arrayOne = (Object[])test.get(i);
    try{
         SelectItem tmp = new SelectItem();
         tmp.setLabel(arrayOne[0].toString()+(String)arrayOne[1]);
         tmp.setValue((Integer)arrayOne[0]);
         myitem[i] = tmp;
    this.existingOwners.add(myitem);
    }catch(Exception e){
              logger.debug(e.getCause());
              e.printStackTrace();
         }catch(Exception e){
              logger.debug(e.getCause());
              e.printStackTrace();
    Basically, I moved what I had earlier in getter method I have it now in the fillSelectItems()
    Butthen, I get a NullPointerException.

  • IllegalArgumentException: Conversion Error setting value ''{0}'' for ''{1}'

    Hi all i am facing one problem while using <h:selectManyMenu style="height:100;" value="#{cityf.cityLook}">
    <f:selectItems value="#{cityf.city}" />
    </h:selectManyMenu>
    so ,plz help me about this error.!!!!!!
    java.lang.IllegalArgumentException: Conversion Error setting value ''{0}'' for ''{1}''.
         com.sun.faces.util.Util.getSelectItems(Util.java:670)
         com.sun.faces.renderkit.html_basic.MenuRenderer.getOptionNumber(MenuRenderer.java:509)
         com.sun.faces.renderkit.html_basic.MenuRenderer.renderSelect(MenuRenderer.java:486)
         com.sun.faces.renderkit.html_basic.MenuRenderer.encodeEnd(MenuRenderer.java:451)
         javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:740)
         com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:473)
         com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:470)
         com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:253)
         javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:721)
         javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:629)
         javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:566)
         com.sun.faces.taglib.html_basic.PanelGridTag.doEndTag(PanelGridTag.java:460)
         org.apache.jsp.Demo_jsp._jspx_meth_h_005fpanelGrid_005f0(Demo_jsp.java:192)
         org.apache.jsp.Demo_jsp._jspx_meth_h_005fform_005f0(Demo_jsp.java:159)
         org.apache.jsp.Demo_jsp._jspx_meth_f_005fview_005f0(Demo_jsp.java:125)
         org.apache.jsp.Demo_jsp._jspService(Demo_jsp.java:90)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
         org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
         org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:233)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
         org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
         org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
    city.jsp:
    <html>
    <body>
    <f:view>
    <h:form id="select">
    <h:panelGrid columns="1">
    <h:column>
    <h:outputText value="Select City : "/>
    <h:selectManyMenu style="height:100;" value="#{cityf.cityLook}">
    <f:selectItems value="#{cityf.city}" />
    </h:selectManyMenu>
    </h:column>
    </h:panelGrid>
    </h:form>
    </f:view>
    </body>
    </html>
    City Bean:
    public class City {
         private CityIDLookup[] city;
         private String[] cityLook;
    public CityIDLookup[] getCity() {
         return city;
    public void setCity(CityIDLookup[] city) {
         this.city = city;
    public String[] getCityLook() {
         return cityLook;
    public void setCityLook(String[] cityLook) {
         this.cityLook = cityLook;
    faces.config.xml:
    <managed-bean>
    <managed-bean-name>cityf</managed-bean-name>
    <managed-bean-class>com.class.City</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>

    With SelectItem I mean the javax.faces.model.SelectItem class.
    <h:selectManyMenu value="#{myBean.selectedItems}">
        <f:selectItems value="#{myBean.selectItems}" />
    <h:selectManyMenu>MyBeanprivate String[] selectedItems; // + getter + setter
    private List<SelectItem> selectItems; // + getter

  • JSF: Conversion Error setting value

    Anyone knows how to fix this? I got the following error when I tried to put 50 numbers in the dropdown list:
    javax.servlet.ServletException: "{2}" Conversion Error setting value ''{0}'' for ''{1}''.
    Here is the bean
         private String[] items=null;
         public String[] getItems() {
              items = new String[50];
              for (int i=0; i <50; i++){
                   String va = String.valueOf(i);
                   items= va;
              return items;
         public void setItems(String[] it) {
              items = it;
    Here is the tag:
    <h:selectOneMenu id="test" value="1">
         f:selectItems value="#{QuestionBean.items}"/>
    </h:selectOneMenu>

    f:selectItems value attribute must be a list of SelectItem objects.
    Transform your items list and it'll work.

  • Error-No value given for one or more required parameters when using oleDBDa

    Hello,
    I have this sql statement and it works well, the Crystal Report gives good result when I put concrete values like:
    string comstring = "SELECT NOVI.GBR as gbrnov, NOVI.AB as abnov, NALOG1.DATA as datanov, Min(NALOG1.POCKM) AS MinOfPOCKM, Max(NALOG1.KRAJKM) AS MaxOfKRAJKM, (Max(NALOG1.KRAJKM)-Min(NALOG1.POCKM)) AS RAZLIKA, Count(IIf(([MAGACIN.SIFRA]='0991000'),[MAGACIN.KOL],Null)) AS Gorivo, Avg(IIf(([MAGACIN.SIFRA]='0991000'),[MAGACIN.KOL],Null)/100) AS potrosgor100km, Sum(IIf(([MAGACIN.SIFRA]='0993050' Or [MAGACIN.SIFRA]='0993051'),[MAGACIN.KOL],Null)) AS Motmaslo, Sum(IIf(([MAGACIN.SIFRA]='0992201'),[MAGACIN.KOL],Null)) AS Addblue, ([Addblue]/[Gorivo])100 AS Addbluegor, Sum(IIf(([MAGACIN.SIFRA]='0999001'),[MAGACIN.KOL],Null)) AS Antifriz, NOVI.DATAP, NOVI.DATAS, IIf(([NOVI].[KM]<=([NOVI].[KMS1][NOVI].[KMS2])),'ZA SERVIS',(IIf(([NOVI].[KM]<=([NOVI].[KMP1][NOVI].[KMP2])),'PROVERKA',''))) AS Zabeleska FROM (NALOG1 INNER JOIN NOVI ON NALOG1.GBRV = NOVI.GBR) INNER JOIN MAGACIN ON NOVI.GBR = MAGACIN.GBR where (((NOVI.GBR)>='1001' And (NOVI.GBR)<='1080') AND ( ((NOVI.AB)='AK') OR ((NOVI.AB)='AK') ) AND ((NALOG1.DATA)<=#10/31/2011# and (NALOG1.DATA)>=#10/31/2011#) ) GROUP BY NOVI.GBR, NOVI.AB, NALOG1.DATA, ([Addblue]/[Gorivo])100, NOVI.DATAP, NOVI.DATAS, IIf(([NOVI].[KM]<=([NOVI].[KMS1][NOVI].[KMS2])),'ZA SERVIS',(IIf(([NOVI].[KM]<=([NOVI].[KMP1][NOVI].[KMP2])),'PROVERKA','')))";          
    but when I use code like this :
    string comstring = "SELECT NOVI.GBR as gbrnov, NOVI.AB as abnov, NALOG1.DATA as datanov, Min(NALOG1.POCKM) AS MinOfPOCKM, Max(NALOG1.KRAJKM) AS MaxOfKRAJKM, (Max(NALOG1.KRAJKM)-Min(NALOG1.POCKM)) AS RAZLIKA, Count(IIf(([MAGACIN.SIFRA]='0991000'),[MAGACIN.KOL],Null)) AS Gorivo, Avg(IIf(([MAGACIN.SIFRA]='0991000'),[MAGACIN.KOL],Null)/100) AS potrosgor100km, Sum(IIf(([MAGACIN.SIFRA]='0993050' Or [MAGACIN.SIFRA]='0993051'),[MAGACIN.KOL],Null)) AS Motmaslo, Sum(IIf(([MAGACIN.SIFRA]='0992201'),[MAGACIN.KOL],Null)) AS Addblue, ([Addblue]/[Gorivo])100 AS Addbluegor, Sum(IIf(([MAGACIN.SIFRA]='0999001'),[MAGACIN.KOL],Null)) AS Antifriz, NOVI.DATAP, NOVI.DATAS, IIf(([NOVI].[KM]<=([NOVI].[KMS1][NOVI].[KMS2])),'ZA SERVIS',(IIf(([NOVI].[KM]<=([NOVI].[KMP1][NOVI].[KMP2])),'PROVERKA',''))) AS Zabeleska FROM (NALOG1 INNER JOIN NOVI ON NALOG1.GBRV = NOVI.GBR) INNER JOIN MAGACIN ON NOVI.GBR = MAGACIN.GBR where (((NOVI.GBR)>=? And (NOVI.GBR)<=?) AND ( ((NOVI.AB)=?) OR ((NOVI.AB)=?) ) AND ((NALOG1.DATA)<=? and (NALOG1.DATA)>=?) ) GROUP BY NOVI.GBR, NOVI.AB, NALOG1.DATA, ([Addblue]/[Gorivo])100, NOVI.DATAP, NOVI.DATAS, IIf(([NOVI].[KM]<=([NOVI].[KMS1][NOVI].[KMS2])),'ZA SERVIS',(IIf(([NOVI].[KM]<=([NOVI].[KMP1][NOVI].[KMP2])),'PROVERKA','')))";
    Edited by: Don Williams on Nov 23, 2011 7:22 AM

    and the code after that:
    command.CommandText = comstring;
                if (radioButton4.Checked == true)
                    if (textBox1.Text == "")
                        button1.Enabled = false;
                        MessageBox.Show("Внесете гаражен број", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                        textBox1.Focus();
                        command.Parameters.AddWithValue("@gbr1", textBox1.Text);
                        command.Parameters.AddWithValue("@gbr2", textBox1.Text);               
                else if (radioButton5.Checked == true)
                    command.Parameters.AddWithValue("@gbr1", "1001");
                    command.Parameters.AddWithValue("@gbr2", "1080");
                    button1.Enabled = true;
                    textBox1.Text = "";
                else if (radioButton6.Checked == true)
                    command.Parameters.AddWithValue("@gbr1", "1081");
                    command.Parameters.AddWithValue("@gbr2", "1149");
                    button1.Enabled = true;
                    textBox1.Text = "";
                else if (radioButton7.Checked == true)
                    command.Parameters.AddWithValue("@gbr1", "1001");
                    command.Parameters.AddWithValue("@gbr2", "1149");
                    button1.Enabled = true;
                    textBox1.Text = "";
                else
                    MessageBox.Show("Немате избрано гаражен број или тип на автобус.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                    button1.Enabled = false;
                if (checkBox1.Checked == true && checkBox2.Checked==true)
                    command.Parameters.AddWithValue("@ab1", "AK");
                    command.Parameters.AddWithValue("@ab2", "GP");
                    button1.Enabled = true;
                else if ((checkBox1.Checked == true) && (checkBox2.Checked == false))
                    command.Parameters.AddWithValue("@ab1", "AK");
                    command.Parameters.AddWithValue("@ab2", "AK");
                    button1.Enabled = true;
                else if (checkBox2.Checked == true )
                    command.Parameters.AddWithValue("@ab1", "GP");
                    command.Parameters.AddWithValue("@ab2", "GP");
                    button1.Enabled = true;
                else
                    MessageBox.Show("Немате избрано автобаза.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                    command.Parameters.AddWithValue("@ab1", "AK");
                    command.Parameters.AddWithValue("@ab2", "GP");
                    button1.Enabled = false;
                command.Parameters.AddWithValue("@data1", dateTimePicker1.Value.Date);
                command.Parameters.AddWithValue("@data2", dateTimePicker2.Value.Date);
                 DataSet2 dataSet2=new DataSet2();    
                 OleDbDataAdapter oleDBDataAdapter1 = new OleDbDataAdapter();
                oleDBDataAdapter1.SelectCommand=command;
                    dataSet2.Clear();
                    oleDBDataAdapter1.Fill(dataSet2,"Tabela");
                    if (dataSet2.Tabela.Count == 0)
                        MessageBox.Show("Nema podatoci za toj period");
                    ReportDocument cryRpt = new ReportDocument();
                    cryRpt.Load(@"C:\Potrosuvacka-Pregledi\Potrosuvacka-Pregledi\CrystalReport6.rpt");
                cryRpt.PrintOptions.PaperOrientation = CrystalDecisions.Shared.PaperOrientation.Landscape;
                    cryRpt.SetDataSource(dataSet2);
                    crystalReportViewer1.DisplayToolbar=true;
                crystalReportViewer1.ReportSource = cryRpt;                      
                crystalReportViewer1.Refresh();
                    conn.Close();
    I get an error:
    "No value given for one or more required parameters."
    Could anybody help me please?
    Thank you in advance.
    Edited by: nelpet06 on Nov 23, 2011 9:30 AM

  • Can't build gcc-4.1.2; error: bad value (generic) for -mtune= switch

    I need this specific version of gcc, so I got the old PKDBUILD from svn, see below. However when gcc compiles I run into this compile error:
    TARGET_CPU_DEFAULT="" \
    HEADERS="auto-host.h ansidecl.h" DEFINES="USED_FOR_TARGET " \
    /bin/sh ../../gcc-4.1.2/gcc/mkconfig.sh tconfig.h
    ./xgcc -B./ -B/usr/i686-pc-linux-gnu/bin/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -L/home/chelg/tmp/abs/gcc-4.1/src/gcc-build/gcc/../ld -O2 -O2 -march=i686 -mtune=generic -O2 -pipe -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/. -I../../gcc-4.1.2/gcc/../include -I../../gcc-4.1.2/gcc/../libcpp/include -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time -fno-omit-frame-pointer \
    -c ../../gcc-4.1.2/gcc/crtstuff.c -DCRT_BEGIN \
    -o crtbegin.o
    ../../gcc-4.1.2/gcc/crtstuff.c:1: error: bad value (generic) for -mtune= switch
    make[2]: *** [crtbegin.o] Error 1
    make[2]: Leaving directory `/home/chelg/tmp/abs/gcc-4.1/src/gcc-build/gcc'
    make[1]: *** [stage1_build] Error 2
    make[1]: Leaving directory `/home/chelg/tmp/abs/gcc-4.1/src/gcc-build/gcc'
    make: *** [bootstrap] Error 2
    ==> ERROR: Build Failed.
    Aborting...
    Here is the PKGBUILD I use:
    # $Id: PKGBUILD,v 1.60 2007/02/14 14:53:50 jgc Exp $
    # Maintainer: Jan de Groot <[email protected]>
    pkgname=gcc
    pkgver=4.1.2
    pkgrel=3
    pkgdesc="The GNU Compiler Collection"
    arch=(i686 x86_64)
    url="http://gcc.gnu.org"
    depends=('glibc' 'binutils>=2.17')
    options=('!libtool')
    source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-{core,g++,objc}-${pkgver}.tar.bz2
    ftp://gcc.gnu.org/pub/gcc/libstdc++/doxygen/libstdc++-man-4.0.0.tar.bz2
    DW_CFA_val.patch
    gcc_pure64.patch)
    md5sums=('2af3fb599635219171c6ae1f3034888a' '75c6d5fa3415d614314caf0f509e8933'
    'abda05c0ab99059e8f9e7a625361fd87' '2be86d2117c8fa7f9ec2845cc0660ab1'
    '078680c207f7cd490044d4a53edf158d' '1ceaa49e3a1d9f984ecc2893c43f7425')
    build() {
    export MAKEFLAGS="-j1"
    cd ${startdir}/src/gcc-${pkgver}
    # Don't install libiberty
    sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
    if [ "${CARCH}" = "x86_64" ]; then
    patch -Np1 -i ../gcc_pure64.patch || return 1
    fi
    patch -Np0 -i ${startdir}/src/DW_CFA_val.patch || return 1
    # Don't run fixincludes
    sed -i -e 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
    mkdir ../gcc-build
    cd ../gcc-build
    ../gcc-${pkgver}/configure --prefix=/usr --enable-shared \
    --enable-languages=c,c++,objc --enable-threads=posix \
    --enable-__cxa_atexit --disable-multilib --libdir=/usr/lib \
    --libexecdir=/usr/lib --enable-clocale=gnu
    make bootstrap || return 1
    make DESTDIR=${startdir}/pkg install || return 1
    mkdir -p ${startdir}/pkg/lib
    (cd ${startdir}/pkg/lib; ln -s ../usr/bin/cpp)
    (cd ${startdir}/pkg/usr/bin; ln -sf gcc cc; ln -sf g++ c++)
    # install the libstdc++ man pages
    mkdir -p ${startdir}/pkg/usr/man/man3
    install -m644 ${startdir}/src/man/man3/* ${startdir}/pkg/usr/man/man3/
    Last edited by Phlogiston (2009-02-27 20:08:37)

    or here you go:
    # $Id: PKGBUILD,v 1.60 2007/02/14 14:53:50 jgc Exp $
    # Maintainer: Jan de Groot <[email protected]>
    pkgname=gcc-4.1
    pkgver=4.1.2
    pkgrel=3
    pkgdesc="The GNU Compiler Collection"
    arch=(i686 x86_64)
    url="http://gcc.gnu.org"
    depends=('glibc' 'binutils>=2.17')
    options=('!libtool')
    source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-{core,g++,objc}-${pkgver}.tar.bz2
    ftp://gcc.gnu.org/pub/gcc/libstdc++/doxygen/libstdc++-man-4.0.0.tar.bz2
    DW_CFA_val.patch
    gcc_pure64.patch)
    md5sums=('2af3fb599635219171c6ae1f3034888a' '75c6d5fa3415d614314caf0f509e8933'
    'abda05c0ab99059e8f9e7a625361fd87' '2be86d2117c8fa7f9ec2845cc0660ab1'
    '078680c207f7cd490044d4a53edf158d' '1ceaa49e3a1d9f984ecc2893c43f7425')
    build() {
    export MAKEFLAGS="-j1"
    cd ${startdir}/src/gcc-${pkgver}
    # Don't install libiberty
    sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
    if [ "${CARCH}" = "x86_64" ]; then
    patch -Np1 -i ../gcc_pure64.patch || return 1
    fi
    patch -Np0 -i ${startdir}/src/DW_CFA_val.patch || return 1
    # Don't run fixincludes
    sed -i -e 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
    mkdir ../gcc-build
    cd ../gcc-build
    ../gcc-${pkgver}/configure --prefix=/opt/gcc-4.1 --enable-shared \
    --enable-languages=c,c++,objc --enable-threads=posix \
    --enable-__cxa_atexit --disable-multilib \
    --enable-clocale=gnu
    make bootstrap || return 1
    make DESTDIR=${startdir}/pkg install || return 1
    mkdir -p ${startdir}/pkg/lib
    # (cd ${startdir}/pkg/lib; ln -s ../usr/bin/cpp)
    # (cd ${startdir}/pkg/usr/bin; ln -sf gcc cc; ln -sf g++ c++)
    # install the libstdc++ man pages
    mkdir -p ${startdir}/pkg/usr/man/man3
    install -m644 ${startdir}/src/man/man3/* ${startdir}/pkg/usr/man/man3/

  • Conversion error in Table control for Negative values

    hello all,
    Iam using table control with 6 columns and in that columns values are coming from Ztable. and out of that one column is of value which is input/output field and having negative value's also.type of that column is DEC.
    Now when i run the report dump occurs showing error message as COnversion Error.
    I think its because of negative value even the in attributes of that column i had selected With Sign checkbox.
    Now when i run the report then if in Ztable negative value is there then i want to display negative value in table control also.
    Please suggest me...
    <removed_by_moderator>
    Thanking you.
    Regards.
    Edited by: Hemant Baviskar on Sep 10, 2008 3:07 PM
    Edited by: Julius Bussche on Sep 10, 2008 1:13 PM

    Hemant
    Refer to following link:
    Table Control : Conversion error
    Thanks
    Amol Lohade

  • PR to PO conversion error - Partial line items not getting converted

    Hi All,
    Automatic PR to PO conversion ( ME59N ) is not happening for few line items.
    For the same Article,site, vendor combinations,its getting converted on few days and on few days its not.
    No changes were made to the any.
    1. Source List is created for the Article & Vendor combination. Validity is fine. Fixed vendor option is checked.
    2. Info record is maintained.
    3. Auto PO option is checked in Vendor Master
    4. No release Strategy
    Will the Purchase Group have any impact in the conversion?
    Kindly share your views.
    Thanks in adance.
    Regards,
    Bhaskar

    It's going to be a data selection problem.  If it was a problem with conversion you would see something recorded in the log (assuming you have the log parameter set to show all messages).
    Make sure the Auto PO flags are set in the correct purchasing org and site.  Does your requisition have a purcahsing org?
    What selection critera do you have set in ME59N?  You mention that that the problem only occurs on certain days so it could be related to the release date.
    The only other thing I could suggest is authorisation checks.  Are you approved for the correct activity types (the activity for ME59N is not create) , plants, purchasing groups etc.
    Also keep in mind everything I have said may not be relevant to the IS-Retail solution you are using.  I can't be certain if there are any differences in this area when you are running that solution.  It might be worth asking the question in that forum http://scn.sap.com/community/retail

  • Currency conversion error in Update rules for 0SD_C03

    Hi All
    I have freshly installed Sales Overview cube 0SD_C03 from BI Content(3.x version) and when extracting data from datasource "2LIS_13_VDITM" there is an error "Error: Conversion foreign curr. -> local curr.: 0090000000 20080516 M -> SGD".
    Till PSA data is loading fine, there is error while loading from PSA to cube(ie. in Update Rule).
    Checked in the PSA for the errored records, all the records which have 0(zero) as amount are green and the rest of them are errored with the above message.
    When checked in the manage cube there are added records but the request is red.
    Please let me know if some one as the clue.
    Regards
    Jayant

    Hi
    You will find the transfer global settings for the source system where you are extracting the data.
    Select the source sytem, right click,go to transfer gloabal settings, (select the currencies in this)
    Then Reload the data into the cube,
    After, Reloading the data into the cube replicate the master data, and activate the mappings,and load the data.
    I think, this will work....
    Regards
    Sudheer

  • Dropdown List Value Test For Null || " "

         I wrote a pre-sign script to test a for a value in a dropdown list before allowing signature of the document. However I want to test for a value of null in addtion to one space aka " ". I added a value in the dropdown list of " " along with the choices of names so users could erase an accidental selection in this list before they were ready. However when I place the or ( || ) operator in the if statement of the script the script doesn't work. If I remove the || " " statement the script works as it is supposed to. How do I test for this value of " " along with the null test so I don't have to write another if statement?
    if (form1.Page3.Author.Reviewed.Admin.rawValue == null || " ")
    xfa.event.cancelAction = 1
    xfa.host.messageBox("You did not select your name on the dropdown list before trying sign the document .");
    else

    Your if statement is incomplete. You need to put the test in again for the other value:
    if (form1.Page3.Author.Reviewed.Admin.rawValue == null || form1.Page3.Author.Reviewed.Admin.rawValue == " ")

  • Why cannot I set value "base_directory"  for AIT?

    Hi,
    I am trying to insert MHP app into a ts and then try to recieve it on stb.
    I have a simple Xlet named HelloWorld including only one file HelloWorld.class . This xlet will display a string "Hello" on screen.
    Suppose that my xlet is stored in file system as the following:
    Test
    |----- HelloWorld.class
    |----- Folder
    |------- HelloWorld.class
    2 HelloWorlds are the same; and the whole file system will be broadcast in DSMCC OC.
    If i generate AIT including the first xlet (of Test directory) with:
    base_directory : /
    initclass: HelloWorld
    Result : GOOD, stb can run HelloWorld xlet
    If i generate AIT including the second xlet (of Folder subdirectory) with:
    base_directory: /
    initclass: Folder.HelloWorld
    or:
    base_directory: Folder
    initclass: HelloWorld
    Result: stb cannot run this Xlet.
    (I sure that the whole file system is broadcast .)
    So i think that stb just load and run xlets in root directory???
    I donnot know what causes the error ?
    How can stb load and run xlets in subdirectory?
    Thanks in advance
    Nghia.

    Sill question, but have you made sure that the path structure you are using matches the package structure for your application?
    Copying HelloWorld.class into "Folder" should not work unless the base directory is also set to "Folder". (I say this because you've indicated that the two HelloWorlds" are the same). Remember that the full name of your initial class is <package>.<className>. If this doesn't match your initclass setting then the VM will be unable to load your class.
    In general there is no particular reason why your initial class has to be at the root of the DMCC, although it is possible that the devive you are using to play out your AIT has some additional restrictions about what can be done.
    Roger

  • Selectitems conversion Error

    Hi ,
    I am using a selectitems tag :
    <h:selectOneMenu id="title">
    <f:selectItems value="#{WorkFLowBean.workFlowTitleOptions}" />
    </h:selectOneMenu>
    But i am getting the following error:
    javax.servlet.ServletException: Conversion Error setting value ''{0}'' for ''{1}''.
    Can it come from my faces-config.xml ?
    Here it is:
    <managed-bean>
    <description>
    TODO
    </description>
    <managed-bean-name>WorkFlowBean</managed-bean-name>
    <managed-bean-class>com.vivacances.boPackages.WorkFlowBean</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    <managed-property>
    <property-name>waitRules</property-name>
    <property-class>java.lang.String</property-class>
    <value>cancel,sent</value>
    </managed-property>
    <managed-property>
    <property-name>inProgressRules</property-name>
    <property-class>java.lang.String</property-class>
    <value>cancel,sent</value>
    </managed-property>
    </managed-bean>
    Thank you all :-)

    ok i've found out what it was... i've made a mistake in the name of my bean !

  • SelectManyListbox Conversion error. Please Help

    In my application, I have a selecteManyListbox, but the selections are entirely optional.
    I have set required="false" in the component, still I see the message:
    Conversion Error setting value "" for '#{Page1.selections}'.
    The application works just fine if I select one or more options, so I do not think there is any problem in the code or the setup.
    How do I skip any conversion errors, so that I can proceed without any selections?

    Show your jsp page and source of the bean.

  • Numeric or value error: character to number conversion error

    I'm having problems inserting a value from a date picker field (DD-MON-YYYY HH MI )
    i'm submitting this value to a packaged procedure that accepts this field as VARCHAR2 .
    on the insert, i do a to_date( P_DATE, 'DD-MON-YYYY HH:MI PM' )
    and i get the numeric conversion error.
    If I change the to_date on the procedure side, I get the :could not read the end of the format mask - which I've found threads about on this site.
    I've tried using HH24 and different formats, but I get one of the two above errors on the insert.
    If I don't fill in the datepicker field at all, it works fine.
    help is appreciated !
    Bill

    Here is the trace anyway:
    *** ACTION NAME:(application 4000, page 1) 2004-09-24 12:58:44.052
    *** MODULE NAME:(HTML DB) 2004-09-24 12:58:44.052
    *** SERVICE NAME:(TOPS) 2004-09-24 12:58:44.052
    *** SESSION ID:(151.1) 2004-09-24 12:58:44.052
    *** 2004-09-24 12:58:44.052
    ksedmp: internal or fatal error
    ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    Current SQL statement for this session:
    declare
    rc__ number;
    begin
    owa.init_cgi_env(:n__,:nm__,:v__);
    htp.HTBUF_LEN := 255;
    null;
    null;
    null;
    null;
    f(p=>:p);
    if (wpg_docload.is_file_download) then
    rc__ := 1;
    wpg_docload.get_download_file(:doc_info);
    null;
    null;
    null;
    commit;
    else
    rc__ := 0;
    null;
    null;
    null;
    commit;
    owa.get_page(:data__,:ndata__);
    end if;
    :rc__ := rc__;
    end;
    ----- PL/SQL Call Stack -----
    object line object
    handle number name
    6A3C4A00 532 package body FLOWS_010500.WWV_FLOW_UTILITIES
    6A3C4A00 2502 package body FLOWS_010500.WWV_FLOW_UTILITIES
    6A3C4A00 2748 package body FLOWS_010500.WWV_FLOW_UTILITIES
    6A0E63C8 991 package body FLOWS_010500.WWV_FLOW_FORMS
    6A11675C 932 package body FLOWS_010500.WWV_FLOW_DISP_PAGE_PLUGS
    6A11675C 247 package body FLOWS_010500.WWV_FLOW_DISP_PAGE_PLUGS
    6A4B54E0 8341 package body FLOWS_010500.WWV_FLOW
    6A2A99F0 102 procedure FLOWS_010500.F
    6A2B9E54 10 anonymous block
    ----- Call Stack Trace -----
    calling call entry argument values in hex
    location type point (? means dubious value)
    ksedmp+524          CALLrel  ksedst+0 1
    ksedmptracecb+15 CALLrel _ksedmp+0            C
    _ksddoa+118          CALLreg  00000000             C
    ksdpcg+143          CALLrel  ksddoa+0
    ksdpec+180          CALLrel  ksdpcg+0 1966 6D7D208 1
    __PGOSF3__ksfpec+11 CALLrel _ksdpec+0            0
    8
    _kgerev+77           CALLreg  00000000             7474210 1966
    kgerec1+18          CALLrel  kgerev+0 7474210 6DCE5EC 1966 1
    6D7D260
    peirve+465          CALLrel  kgerec1+0
    pevmCVTCN+346 CALLrel _peirve+0           
    pfrinstrCVTCN+36 CALLrel pevmCVTCN+0 6E6E604 71CE370 7160F0C
    pfrrunno_tool+51 CALL??? 00000000
    pfrrun+1834         CALLrel  pfrrun_no_tool+0 6E6E604 6A3C010A 6E6E640
    plsqlrun+1051 CALLrel _pfrrun+0            6E6E604
    peicnt+179          CALLrel  plsql_run+0 6E6E604 1 0
    kkxexe+477          CALLrel  peicnt+0
    opiexe+4896         CALLrel  kkxexe+0 6A2B9E54
    kpoal8+1705         CALLrel  opiexe+0 49 3 6D7E06C
    _opiodr+977          CALLreg  00000000             5E 14 6D7E7CC
    _ttcpip+1827         CALLreg  00000000             5E 14 6D7E7CC 0
    _opitsk+1098         CALL???  00000000            
    opiino+938          CALLrel  opitsk+0 0 0 747ABC0 6DEFB14 D8 0
    _opiodr+977          CALLreg  00000000             3C 4 6D7FBBC
    opidrv+479          CALLrel  opiodr+0 3C 4 6D7FBBC 0
    sou2o+45            CALLrel  opidrv+0 3C 4 6D7FBBC
    opimai+237          CALLrel  sou2o+0
    OracleThreadStart@  CALLrel  opimai+0
    4+899
    77E7D338 CALLreg 00000000

  • Report is showing "null" string for null values.

    hi ,
    I am new to BI Publisher and creating a report in BI Publisher. In the result set for null values, report is printing as "null". I checked the query , it gives blank (empty value) data for null values. But in report it is coming as "null" value (string "null"). I require to show the report as blank data for null values. Can you please help me to find solution for this ?.
    Thank you very much in advance.
    Regards
    Gayathri.

    it shouldnt happen like that
    try these
    <?xdoxslt:ifelse(ADDRESS3!='',ADDRESS3,'')?>
    or
    <?xdoxslt:ifelse(ADDRESS3!='null',ADDRESS3,'')?>
    if those didnt work send me your template and xml to my email i can try that at my side .
    Email [email protected]

Maybe you are looking for

  • Daisy chain of routers

    I've already got a 500GB Time Capsule on its way in the mail. I've just found out that I'm going to be moving into a house with a bunch of friends. The potential problem is that the owner of the house already has his own wireless a/b/g router (brand

  • How to automate the  process of vendor invoice verificaiton  from SAP

    My client to scan the Invoice (once it is received from vendor), upload it in SAP, the User will look at the Invoice in SAP and then perform Invoice Verification in MIRO. The Process mechanics is 1.Plant Manager will receive the Invoice physically by

  • Animated Title in Premiere Elements 7.0

    I'm having problems in putting animation into a title in Premiere Elements 7.0. I begin making a title such as a title like this: Now the problem[ENTER] begins... When I type "Now the problem", I could apply an animation. Once I click ENTER & type "b

  • AII 4.0 Documentation

    Hi All, SAP AII 4.0 is currently in Ramp-Up. If you have access to SAP Service Marketplace, you can obtain detailed information on AII 4.0 technical landscape, supported functions and features under the following links - SAP Library (Online-Help) for

  • Can JRE and MVM Coexist???

    In an IE6 environment, I realize I can install both the MVM from MS and the JRE from Sun, and that I can toggle the use of the JRE within IE's advanced settings, but... Can they both be used by different apps at the same time? I've got a PDM web app