"Conversion error occurred." at f:convertDateTime pattern="dd/MMM/yyyy" /

This is my jsf code.
<h:inputText id="myDatePicker" value="#{backingBean.user.birthDate}">
<f:convertDateTime pattern="dd/MMM/yyyy" />
                    <hx:inputHelperDatePicker />
     <hx:inputHelperAssist promptCharacter="x"/>                    <hx:validateDateTimeRange maximum="#{now}" />
               </h:inputText>
When I click the button to call action backing bean, I get the "Conversion error occurred".
I've already instantiate the birthDate in constructor of User class.
I just wonder this tag apply for Date only? Because the type of birthDate attribute is Timestamp.
Thank you for you reply and any suggestion.

I use the date picker of WebSphere product.
<%@ taglib uri="http://www.ibm.com/jsf/html_extended" prefix="hx"%>
I try to remove value from this but it still not work.
Can anyone help me or need me to give more information ?
Thank you!!

Similar Messages

  • A conversion error occurred while the program -- display data on the screen

    HI all,
    Iam getting a dump error described below:
    A conversion error occurred while the program was trying to
    display data on the screen.
    The ABAP output field and the screen field may not have the
    same format.
    Some field types require more characters on the screen than
    in the ABAP program. For example, a date field on a screen needs
    two characters more than it would in the program. When attempting to
    display the date on the screen, an error will occur that triggers the
    error message.
                  Screen name.............. " Ztable_MM_MRQ "
                  Screen number............ 0100
                  Screen field............. "WA_PO_ITEMS-MENGE"
                  Error text............... "FX015: Sign lost."
    Further data:
    Give us step by step procedure to rectify the same with T.codes
    Thanks
    Regards
    Siraj

    Raymond
    please give details in se51 where i have to put a "V"  to allow negative amounts
    whether it is in Text or I/O templates
    name                                     type of screen element         Text or I/O field
    WA_PO_ITEMS-MENGE     Text                           PO_quantity__     
    regards

  • Conversion error occured

    conversion error occured while using h:selectmanyListbox tag.

    Have the exact same problem, am using Rational Application Developer 6 (WSAD 6) in combination with websphere 6. I have a datatable (server side component) which is based on a javabean collection. The javabean has an Integer attribute "id". I'm presenting the "id" as a hidden field which works fine. when I submit the form containing the table I want to bind the hidden field to a requestScope variable. But before it hits my code I already get the table:0:hidden1: Conversion error occured.
    Have tried without converter, with numberConverter and a Custom convertor (which is called and works correctly (as in it doesn't generate the Conversion error)).
    So the conversion error is generated after my own custom convertor is called. Which part of the JSF code has to convert the field after mine is done ???
    And I'm also doing this on 1 page (maybe that's something to look at....)
    Hendri

  • Problem h:SelectManyCHeckbox --Conversion error occured

    Need urgent help ,Causing a lot of trouble
    error--
    com.sun.faces.context.FacesContextImpl addMessage Adding Message[sourceId=formUserSetup:chkboxUserPrfRoles,summary=Conversion error occurred)
    Displays the form fields depending on the selected value on the select one list box.select many check boxes displays the values of the check boxes for the selected  user.Everything is working fine for the first display
      For the secong selection its throwing an error.
    code:
    onchange:
      f = document.getElementById("formUserSetup");
      f.submit();                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Thank u,
    yes ,value in the select one list box is ties toa string .Depending on the slected string i am generating a information bean that displays and binds to the form.
    I n this form i have got a select many checkbox control that displays
    --all the roles in  table
    --and the value will have roles belonging to a selected user from the list box control
    In this process when i switch b/w the users there is a conversion error

  • How to add af:convertDateTime pattern="dd/MM/yyyy"/ tag in java

    Hi,
    I am adding a date component in my screen from my backing bean. I want to set date pattern for this af:inputDate component, so how do I add
    <af:convertDateTime pattern="dd/MM/yyyy"/> to my inputDate component in my backing bean. Or is there any other way in which I can set date format on my inputDate component.
    Regards,
    Vipin V B

    try this<br><br>
    Format(DateValue(yourDateString), "dd/MM/yy")
    <br><br>
    the MM must be upper case

  • Conversion error occurs in all the command button actions

    we have two h:commandButton (save and back) in a jsf form.
    If i click the save button conversion for the form fields should happen(its happening correctly).
    But if i click the back button it should directly take me to the backing bean's action method without any conversion so that i can avoid the conversion errors.
    Is there any solution or work around to achieve this.
    Thanks,
    success_21

    success_21 wrote:
    thanks for your response. below is the exact scenario for which we are looking for a solution,
    <rich:calendar value="#{MyBean.date}" id="dat" datePattern="MM/dd/yyyy" >
    <f:validator validatorId="isValidDate" />
    </rich:calendar>
    <h:inputText value="#{MyBean.str}" id="str"> </h:inputText>     
    <h:commandButton value="save" action="#{MyBean.save}"/>
    <h:commandButton value="back" action="#{MyBean.back}"/>
    but in our case, during the back action method we need the bean value(id="str") for calculation but we don't want conversion to be happened for calendar field. if we use immediate attribute for back button we will not get the bean value(id="str") in the action method. is there any alternate solution to this.I cannot think of a standard technique to handle this case, where some of the data is needed but other data should be ignored. You might try to grab the value from the request parameter map and manually assign it to the model (this work around doesn't scale however).
    Perhaps what might work is to have a valueChangeListener on the fields which will be preserved; I think they will be fired even with the immediate attribute.
    I do not think the <f:attribute> solution suggested will work as attributes are server side artifacts.

  • Date field - no date entered - conversion error

    Hi,
    i've a input text field with a datepattern attached in my jsp, whose requrired attribute is set to false. If i submit the page and no date is entered, JSF returns "Conversion error occured" for the date field.
    For testing purposes i made a simple JSP which contains only this date field and a reload button, which only submits the form. When the button is clicked the conversion error is displayed as described.
    What am i doing wrong here?
    thx
    brunft
    <html>
    <%@ page contentType="text/html" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <f:view locale="de">
    <html>
        <head><title>Date test</title></head>
        <body>
        <h:form id="datetest">
          <p> </p>
          <h:inputText id="someDate" styleClass="formText" value="#{testDate.someDate}">
            <f:convertDateTime pattern="#{testDate.datePattern}" />
          </h:inputText>
          <p> </p>
          <h:commandButton id="refresh" styleClass="formButton"
                  value="Reload"
                  action="#{testDate.actionReload}" />
          <p> </p>
          <p style="color:red;"><h:messages /></p>
        </h:form>
        </body>
    </html>
    </f:view>The bean:
    public class TestDate {
      private Date someDate;
      private static String datePattern = "dd.MM.yyyy";
      public TestDate() {
      public Date getSomeDate() {
        return this.someDate;
      public void setSomeDate(Date someDate) {
        this.someDate = someDate;
      public String getDatePattern() {
        return this.datePattern;
      public String actionReload() {
        return "success";
    }faces-config.xml:
      <managed-bean>
        <description>Date test.</description>
        <managed-bean-name>testDate</managed-bean-name>
        <managed-bean-class>test.TestDate</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
      </managed-bean>

    You can try by deleting "pattern=="#{testDate.datePattern}"
    <f:convertDateTime pattern="#{testDate.datePattern}" />

  • Conversion error in JCo outbound call

    hi all
         i am working on making OUTBOUND call from SAP using JCo,
         our SAP system is Unicoded and i am refering Jco example 5 from JCo2.1.8 demo.
        i am able to make connection successfully , but while running test ABAP program for testing connection, i am getting Short dump error headed :
                  Conversion error "ECHOTEXT" from character set 4103 to character set 4102
    A conversion error occurred during the execution of a      Remote Function
    *Call. This happened either when the data was received *      or when it was
    *sent. The latter case can only occur if the data is sent from * a Unicode
    system to a non-Unicode system.
    The current program had to be terminated because of an
    error when installing the R/3 System.
    my ABAP prg. is this :
      REPORT  z_jco_test.
    PARAMETERS: requtext LIKE sy-lisel.
    *ECHOTEXT LIKE  SY-LISEL
    **"              RESPTEXT LIKE  SY-LISEL
    DATA: echotext type SYLISEL,
          resptext LIKE sy-lisel,
          rfctest TYPE TABLE OF rfctest,
          wa_rfctest TYPE rfctest.
    wa_rfctest-rfcdata1 = requtext.
    wa_rfctest-rfcdata2 = 'Hello World'.
    APPEND wa_rfctest TO rfctest.
    CALL FUNCTION 'RFC_PING'
      DESTINATION 'JCO'.
    *CALL FUNCTION 'STFC_CONNECTION'
    *  EXPORTING
    *    requtext       =
    ** IMPORTING
    **   ECHOTEXT       =
    **   RESPTEXT       =
    CALL FUNCTION 'STFC_CONNECTION'
      DESTINATION 'JCO'
      EXPORTING
        requtext = requtext
      IMPORTING
        echotext = echotext
        resptext = resptext
      TABLES
        rfctest  = rfctest.
    WRITE: 'Echo Text: ', echotext.
    WRITE: 'Response Text: ', resptext.
    LOOP AT rfctest INTO wa_rfctest.
      WRITE: / 'rfcdata1: ', wa_rfctest-rfcdata1.
      WRITE: / 'rfcdata2: ', wa_rfctest-rfcdata2.
    ENDLOOP. 
    i have made RFC connection unicode yes.
    please guide me

    Helo!
    We have a similar problem here. Could you please explain your solution in a bit more detail ?
    Thanks in advance,
    Markus

  • Conversion error in write access to a property

    Hello,
    in JSF I get a conversion error when I try to save an order.
    An order object has a from- and a to-address.
    To avoid duplicate coding I encapsulated the address data in a class Address.
    public class Order implements Serializable{
      private Address fromAddress;
      private Address toAddress;
      //Getter/Setter for addresses are implemented
    public class Address implements Serializable{
      private String city;
      private String country;
      private String remark;
      //Getter/Setter for all fields are implemented
    }Reading the address data works without problems.
    Writing (saving an order) does not work. For each property of Address a conversion error is thrown.
    The access is like
    <t:inputText value="#{orderBean.order.address.country}" .../>
    Principally it is possible to access the address properties because reading works.
    What is going wrong when writing?
    And how could I find out more details about the conversion errors occurred?
    Any hints appreciated
    Jan

    Hello,
    I'm afraid these are the fileds causing the errors.
    Here is an excerpt from the JSP.
    When I set rendered="false" for the panelGroup containing five "crucial" fields, I get five messages "conversion error" less.
    <t:panelTab label="#{messages['auftrag.reiter_von']}" rendered="true">
            <t:panelGrid columns="1">
              <%-- Line with input fields--%>
              <t:panelGroup>
                <t:panelGrid columns="5">
                  <!-- Name -->
                  <t:inputText size="20" maxlength="80"
                    value="#{orderBean.order.fromAddress.name}"
                    readonly="#{orderBean.readonly}">
                  </t:inputText>
                  <!-- Street -->
                  <t:inputText size="20" maxlength="80"
                    value="#{orderBean.order.fromAddress.street}"
                    readonly="#{orderBean.readonly}">
                  </t:inputText>
                  <!-- Zip -->
                  <t:inputText size="5" maxlength="10"
                    value="#{orderBean.order.fromAddress.zip}"
                    readonly="#{orderBean.readonly}">
                  </t:inputText>
                  <!-- Country -->
                  <t:inputText size="5" maxlength="5"
                    value="#{orderBean.order.fromAddress.country}"
                    readonly="#{orderBean.readonly}">
                  </t:inputText>
                  <!-- City -->
                  <t:inputText size="40" maxlength="80"
                    value="#{orderBean.order.fromAddress.city}"
                    readonly="#{orderBean.readonly}">
                  </t:inputText>
                </t:panelGrid>
              </t:panelGroup>Thx for assistance. If there is no solution in sight, I will refactor it the way I described. It already took me too much time...
    Jan

  • Conversion error in checkboxgroup component.....

    hi
    i have a checkboxgroup component. first time when i go this particular page no validation error occurs. but when i go to a different page and return back conversion error occurs in that component.
    getSubmittedValue() method for that component returns some value when error occurs.
    can anyone give some suggestions to resolve the error. or suggestions on the value to be converted for checkboxgroup

    the actual code is
    <cg:checkboxGroup binding="#{view$UsersSMSReport.action_chkbxgrp}" columns="1" id="action_chkbxgrp" style="width: 100%;"/>
    <cg:message binding="#{view$UsersSMSReport.action_msg}" for="action_chkbxgrp" id="action_msg"/>
    where cg is the our own tag discriptor file
    we use jsp-api.jar and jstl.jar for customization of components.
    the taglib file for this tag refers to class
    CGCheckboxGroupTag extends UIComponentTag
    the setProperties method in above class contains code for convertor
    if(converter != null)
    if(isValueReference(converter))
    javax.faces.el.ValueBinding _vb = getFacesContext().getApplication().createValueBinding(converter);
    component.setValueBinding("converter", vb);
    } else
    javax.faces.convert.Converter _converter = FacesContext.getCurrentInstance().getApplication().createConverter(converter);
    component.getAttributes().put("converter", converter);
    the design time class for this component is
    CGCheckboxGroupBeanInfoBase extends SimpleBeanInfo
    they are compiled into a tld file and added as complib file in project
    the same component sometimes i get conversion error in validation phase and sometimes i get error in page displaying
    java.lang.NullPointerException
    ClassName:com.sun.rave.web.ui.util.ConversionUtilities
    FileName ConversionUtilities.java
    MethodName: convertValueToArray

  • Conversion error in company code currency for general costs activity

    PS Experts,
    Please guide me in the following , The below message appeared when i created a customer project in CJ20N in our new DEV server
    This is the scenario
    Create customer project with 3 WBSE, each one has 3 NTW and 3 activities, i maintained the cost with currency same as project curr and company code currency in the first two act.
    in the third activity (General act)  in cost tab i put a currency is different than project currency& company code currency and tried to save the project, the message appears.
    note: Company code curr same as projet curr & controlling area curr
    Is there any setting is missing in customizing
    Conversion error in company code currency for general costs activity 0010
    Message no. CK443
    Diagnosis
    For cost activity 0010, a conversion error occurred in the currency of the company code to which the material is assigned.
    Procedure
    Check the global settings in Customizing to be sure the exchange rate for conversion into the company code currency is correct
    Thanks

    Hi Yassin,
    I believe you have maintained exchange rates for rate type M as per your config in OPSB.
    Now do one thing, maintain the conversion rate for P for those currencies in OB08 and then save your project.
    This will solve your problem.
    Regards,
    Kabir

  • Conversion error, from character set 4102 to character set 4103

    Hi,
    We've developed a JCO server(in Java) with an ABAP report the function provided by the JCO server.
    MetaData:
         static {
              repository = new Repository("SMSRepository");
              fmeta = new JCO.MetaData("ZSMSSEND");
              fmeta.addInfo("TO", JCO.TYPE_CHAR, 255,   0,  0, JCO.IMPORT_PARAMETER, null);
              fmeta.addInfo("CONTENT", JCO.TYPE_CHAR, 255,   0,  0, JCO.IMPORT_PARAMETER, null);
              fmeta.addInfo("RETN", JCO.TYPE_CHAR, 255,   0,  0, JCO.EXPORT_PARAMETER, null);
              repository.addFunctionInterfaceToCache(fmeta);     
    Server parameters:
           Properties prop = new Properties();
           prop.put("jco.server.gwhost","shaw2k07");
           prop.put("jco.server.gwserv","sapgw01");
           prop.put("jco.server.progid","JCOSERVER01");
           prop.put("jco.server.unicode","1");
           srv = new SMSServer(prop,repository);
    If we run JCO server in both my client machine(from developer studio) and in the WAS machine(stand alone Java program), everything is ok. In the Abap side, the SM59 unicode test return the destination is an unicode system, and the ABAP report call the function can run smoothly.
    But we package this JCO server to a web application and deploy to WAS, problem occured. The SM59 unicode test still say the destination is an unicode system. But the ABAP report runs with an ABAP DUMP:
    Conversion error between two character set
    RFC_CONVERSION_FIELD
    Conversion error "RETN" from character set 4102 to character set 4103
    A conversion error occurred during the execution of a Remote Function
    Call. This happened either when the data was received or when it was
    sent. The latter case can only occur if the data is sent from a Unicode
    system to a non-Unicode system.
    I read the jrfc.trc log, it shows it receives data in unicode 4103(that's ok), but send data in unicode 4102(that's the problem).4102 is UTF-16 Big Endian and 4103  UTF-16 Little Endian. Our system is windows on intel 32 aritechture, so based on Note 552464, it should be 4103.
    Why it sends data (Java JCO server send output parameter to ABAP) in 4102?????
    What's the problem??? Thank you very much!!
    Best Regards,
    Xiaoming Yang
    Message was edited by:
            Xiaoming Yang

    Hello Experts,
    Any replies on this?
    I am also getting a similar kind of error.
    Do you have any idea on this?
    Thanks and Best Regards,
    Suresh

  • Conversion error - Really urgent II

    I�ve got 3 Textfield that exhibit a row from a rowset, and I put a save button with the code
    public String button1_action() {
            // User event code here...
            try{
            aprovacaoRowSet.updateRow();
            aprovacaoRowSet.commit();
            info("Alteracao ok");
            }catch (SQLException e)   {
             log("ok" + e);
            error("erro" + e); }
            return null;What am I doing wrong ? for when I click this button I only got the message:
    textfield conversion error occurred
    Regards
    Marlos Rodrigues

    fyi here's the how the column types map into your java code...
    JDBC Type (which we call SQL Type) --> Java Type:
    ================================================
    CHAR --> java.lang.String
    VARCHAR --> java.lang.String
    LONGVARCHAR --> java.lang.String
    NUMERIC --> java.math.BigDecimal
    DECIMAL --> java.math.BigDecimal
    BIT --> boolean
    BOOLEAN --> boolean
    TINYINT --> byte
    SMALLINT --> short
    INTEGER --> int
    BIGINT --> long
    REAL --> float
    FLOAT --> double
    DOUBLE --> double
    BINARY --> byte[]
    VARBINARY --> byte[]
    LONGVARBINARY --> byte[]
    DATE --> java.sql.Date
    TIME --> java.sql.Time
    TIMESTAMP --> java.sql.Timestamp
    CLOB --> java.sql.Clob
    BLOB --> java.sql.Blob
    ARRAY --> java.sql.Array
    DISTINCT --> (mapping of underlying type)
    STRUCT --> java.sql.Struct
    REF --> java.sql.Ref
    DATALINK --> java.net.URL
    JAVA_OBJECT --> (underlying Java class)
    Source: JDBC 3.0 Specification, Appendix B

  • JSF Conversion error for h:selectManyListbox

    There's an exception (*Conversion error occurred*) from JSF on <h:selectManyListbox> component for id availableUsers which is bound to myBean*.*roleId
    Now myBean*.*roleId is of Long datatype and so is the usersList*.*SelectItem*.*value. So, would not be any datatype mismatch. Tried using a converter too with no luck.
    If you have come across any such issue, please do let me know, thanks!
    Exception
    javax.faces.model.SelectItem@1b115c1b]
    [8/14/08 1:59:44:645 IST] 00000061 jsf E com.sun.faces.context.FacesContextImpl addMessage Adding Message[sourceId=emailmessage:*availableUsers* ,summary=*Conversion error occurred*.)
    [8/14/08 1:59:44:661 IST] 00000061 jsf E com.sun.faces.context.FacesContextImpl addMessage Adding Message[sourceId=emailmessage:selectedUsers,summary=Conversion error occurred.)
    JSF
    <h:selectManyListbox id="*availableUsers* " value="#{myBean.roleId}" converter="javax.faces.Long"
    binding="#{myBean.usersListBox}" size="5" style="width: 138px; height: 102px">
    <f:selectItems id="usersItems" value="#{myBean.usersList}"
    binding="#{myBean.usersListBoxSelectItems}" />
    </h:selectManyListbox></td>
    CLASS
    *{code}*
    *class MyBean*
    *private Long roleId;*
    *private List usersList;*
    *{code}*
    usersList is an arraylist of SelectItem where each SelectItem is composed of a Long value and a String label as per the convention.

    I tried using a List<Long>, but getting another error now, any help would be greatly appreciated, thanks!
    Error:
    [8/15/08 0:11:32:692 IST] 0000007e jsf E com.sun.faces.context.FacesContextImpl addMessage Adding Message[sourceId=emailmessage:selectedUsers,summary=Validation Error: Value is not valid)
    JSF Code:
    h:selectManyListbox id="selectedUsers" binding="#{myBean.selectedUsersListBox}" value="#{myBean.recipientIdList}" size="5"
    converter="#{myBean.recipientIdListConverter}" style="width: 138px; height: 102px">
    <f:selectItems id="selectedUsersItem" value="#{myBean.recipientList}" binding="#{myBean.selectedUsersListBoxSelectItems}" />
    </h:selectManyListbox>
    backing Bean Code for class myBean:
    {code}public List recipientList;
    private ArrayList recipientIdList;
    private HtmlSelectManyListbox selectedUsersListBox;
    private UISelectItems selectedUsersListBoxSelectItems;
    public Converter getRecipientIdListConverter() {
              return new Converter() {
                   public Object getAsObject(FacesContext facesContext,
                             UIComponent component, String value)
                             throws ConverterException {
                        if (value == null)
                             return null;                                                       
                        for (Iterator i = recipientIdList.iterator(); i.hasNext();) {
                             Long item = (Long) i.next();
                             String val = String.valueOf(item);
                             if (val.equals(value)) {
                                  return item;
                        return null;
                   public String getAsString(FacesContext facesContext,
                             UIComponent component, Object object)
                             throws ConverterException {
                        if (object instanceof SelectItem) {                         
                             return ((SelectItem) object).getValue().toString();
                        } else if (object instanceof Long) {
                             return String.valueOf(object);
                        } else {
                             return object.toString();
         }{code}

  • Error named like "CONVERSION ERROR"

    I am creating one Module Pool Program with the Screen Painter. There is total 10 Tab Strips used in the Screen Painter.
    When I select the Last Tab, I get the Error with the message " CONVERSION ERROR"
    Can you guide me why this error can occurs?

    Hi,
    Check whether you are entering false values in a field which is not belong to that type.
    For example, if you enter characteristic value into a numeric field and doing arithmatic operations.
    CONVERSION ERROR occurs in this case.
    Please check for above.
    Regards,
    Rajesh

Maybe you are looking for

  • Query bios model

    Hi there, I'm using SCCM in my organisation(System center configuration manager), and we have several models of ThinkCntre PC's in our organisation. How can i query the bios type of each ThinkCentre computers.? I have seen that in dell computers they

  • Cycle function not working?

    This may be a stupid question, but I'm fairly new to garageband and when I try to drag a loop to my song and then press the cycle button to repeat it, the yellow bar shows up at the top but the loop doesn't repeat. I even followed the video tutorial

  • I have the PCI-6602 device and it works with my others programs.

    I downloaded the file : LabVIEW Express AI Using External Sample Clock (Scan Clock) from an NI 6602 from this website. but I get the message error :Error -200220 occurred at DAQmx when I run it.

  • Where is the Record Update Form Wizard in DWCC?

    Trying to follow online help but it doesn't relate to DWCC.   A tutorial I found for CS6 suggests that it's in Insert > Data Objects > Update Record > Record Update Form Wizard but in DWCC there is no "Data Objects" option in the Insert menu. By the

  • Query about slamd config and load test dsee7?

    Hey Guys I am configuring slamd on a VM to do some load testing on DSEE Now i edited the slamd_client.conf and edited AUTO_CREATE_CLIENTS=5 MAX_CLIENTS=5 But the clients still show as 1 on http://127.0.0.1:8080/slamd I know i had got this to work som