Precision error in converter property of h:outputText tag?

Hi.
I have a date object that I am trying to render using the <hutputText> tag. Since the object contains the full date/time string, I am formatting using the converter property("*converter="javax.faces.DateTime*").
But the resulting date is a day before the actual date! Tracing this I have found that the converter property calculates the day as starting from 00:00:01 and not 00:00:00 as is standard in Java.
I am curious to find out if this is an error, intentional behaviour or an error on my part?

I am not explicitly setting the time zone or the locale because when printing out the value without the converter, the value does include the correct time zone(e.g. Fri Oct 01 00:00:00 CAT 2010). So this kinda buffles me as to why the converter would require explicit time zone handling? (perhaps I should try it.)

Similar Messages

  • RFC Function Error: Cannot convert a value of 'MM/DD/YYYY' from type java.l

    hi experts,
    iam calling an RFC using SAP_JCO_Function. one of the input parameters is date which shud be in the format 'MM/DD/YYYY' but when i create a transaction property of data type DATETIME the format changes to " 2007-06-21 14:31:50 ". to refrain form passing this value at run time i have defined the transaction property as string and defaulted the value to MM/DD/YYYY.
    When i execute the RFC i get the error "Cannot convert a value of 'MM/DD/YYYY' from type java.l".
    Issue is with time field as well. Any suggestions would be appreciated.
    Thanks,
    Avinash

    Hi
    You can use datefromxmlformat( datetime, toformat ) .
    in toformat you give: "MM/dd/yyyy" and in datetime you pass your xml format date like: 2007-06-21 T14:31:50.
    Try like this. Hope this may help you.
    Thanks

  • How to convert Property files into Java Objects.. help needed asap....

    Hi..
    I am currently working on Internationalization. I have created property files for the textual content and using PropertyResourceBundles. Now I want to use ListResourceBundles. So what I want to know is..
    How to convert Property files into Java Objects.. I think Orielly(in their book on Internationalization) has given an utitlity for doing this. But I did not get a chance to look into that. If anyone has come across this same issue, can you please help me and send the code sample on how to do this..
    TIA,
    CK

    Hi Mlk...
    Thanks for all your help and suggestions. I am currently working on a Utility Class that has to convert a properties file into an Object[][].
    This will be used in ListResourceBundle.
    wtfamidoing<i>[0] = currentKey ;
    wtfamidoing<i>[1] = currentValue ;I am getting a compilation error at these lines..(Syntax error)
    If you can help me.. I really appreciate that..
    TIA,
    CK

  • JZ0I6:An error occured converting UNICODE to the charset used by the server

    Hi Friends,
    I am using weblogic 8.1 and I developed one MD Bean(Message Distributor Bean). Which takes message from JMS queue and pulish it to JMS Topic. Database is sybase. I was facing this issue.
    I am facing following issue:
    java.sql.SQLException: JZ006: Caught IOException: java.io.IOException: JZ0I6: An error occured converting UNICODE to the charset used by the server. Error message: java.io.CharConversionException: ?
    at com.sybase.jdbc.ErrorMessage.raiseError(Ljava/lang/String;Ljava/lang/String;)V(ErrorMessage.java:???)
    at com.sybase.tds.Tds.language(Lcom/sybase/jdbc/ProtocolContext;Ljava/lang/String;Lcom/sybase/jdbc/ParamManager;)V(Tds.java:???)
    at com.sybase.jdbc.SybStatement.sendQuery(Ljava/lang/String;Lcom/sybase/jdbc/ParamManager;)Z(SybStatement.java:???)
    at com.sybase.jdbc.SybPreparedStatement.sendQuery(Ljava/lang/String;Lcom/sybase/jdbc/ParamManager;)Z(SybPreparedStatement.java:???)
    at com.sybase.jdbc.SybStatement.executeUpdate(Ljava/lang/String;Lcom/sybase/jdbc/ParamManager;)I(SybStatement.java:???)
    at com.sybase.jdbc.SybPreparedStatement.executeUpdate()I(SybPreparedStatement.java:???)
    at weblogic.jdbc.wrapper.PreparedStatement.executeUpdate()I(PreparedStatement.java:115)
    at com.lehman.PW.messageMonitor.GASMessageDistributorBean.onMessage(Ljavax/jms/Message;)V(GASMessageDistributorBean.java:343)
    at weblogic.ejb20.internal.MDListener.execute(Lweblogic/kernel/ExecuteThread;)V(MDListener.java:370)
    at weblogic.ejb20.internal.MDListener.onMessage(Ljavax/jms/Message;)V(MDListener.java:262)
    at weblogic.jms.client.JMSSession.onMessage(Ljavax/jms/MessageListener;Lweblogic/jms/common/MessageImpl;)V(JMSSession.java:2678)
    at weblogic.jms.client.JMSSession.execute(Lweblogic/kernel/ExecuteThread;)V(JMSSession.java:2598)
    at weblogic.kernel.ExecuteThread.execute(Lweblogic/kernel/ExecuteRequest;)V(ExecuteThread.java:219)
    at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:178)
    at java.lang.Thread.startThreadFromVM(Ljava/lang/Thread;)V(Unknown Source)
    Please give me the solution.

    This problem has resolved. I added one line: "CHARSET_CONVERTER_CLASS=com.sybase.jdbc2.utils.PureConverter" into weblogic datasource.
    In Internet I got lot's of article but it was worst. There were giving solution on Weblogic 4 or some old version. Generally on internet you will get article:
    http://publib.boulder.ibm.com/infocenter/wasinfo/v4r0/index.jsp?topic=/com.ibm.support.was40.doc/html/DB_Connections_Connection_Pooling/swg21066787.html
    This article is giving information about weblogic 4.
    But We need to solve the issue into weblogic into 8. So in datasource set property: CHARSET_CONVERTER_CLASS=com.sybase.jdbc2.utils.PureConverter. Do not set property: CHARSET_CONVERTER_CLASS=com.sybase.jdbc2.utils.TruncationConverter

  • Error while converting class file to exp and jca file

    error while converting *.class file to *.exp and *.jca file
    =====================================================================================================================
    linux-y60u:/home/admin/java_card_kit-2_2_1/samples/src # converter -exportpath "/home/admin/java_card_kit-2_2_1/lib/" com/sun/javacard/samples/HelloWorld 0x00:0x01:0x02:0x03:0x04:0x05:0x06:0x07:0x0b 1.0 -v -applet 0x00:0x01:0x02:0x03:0x04:0x05:0x06:0x07:0x0b:0x01 Identity
    Java Card 2.2.1 Class File Converter, Version 1.3
    Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
    parsing /home/admin/java_card_kit-2_2_1/samples/src/com/sun/javacard/samples/HelloWorld/HelloWorld.class
    parsing /home/admin/java_card_kit-2_2_1/samples/src/com/sun/javacard/samples/HelloWorld/Identity.class
    error: com.sun.javacard.samples.HelloWorld.HelloWorld: unsupported class file format of version 50.0.
    error: com.sun.javacard.samples.HelloWorld.Identity: unsupported class file format of version 50.0.
    conversion completed with 2 errors and 0 warnings.
    =====================================================================================================================

    i compile a file javacard use this command:
    ===
    javac -source 1.3 -target 1.1 -g -classpath ./classes:../lib/api.jar:../lib/installer.jar src/com/sun/javacard/samples/Identity/Identity.java
    ===
    and try to convert this class use this command
    ===
    /home/xnuxerx/admin/java_card_kit-2_2_1/bin/converter -exportpath "/home/xnuxerx/admin/java_card_kit-2_2_1/lib/" com/sun/javacard/samples/Identity 0x00:0x01:0x02:0x03:0x04:0x05:0x06:0x07:0x0b 1.0 -v -applet 0x00:0x01:0x02:0x03:0x04:0x05:0x06:0x07:0x0b:0x01 Identity
    ===
    result convert:
    ===
    Java Card 2.2.1 Class File Converter, Version 1.3
    Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
    parsing /home/xnuxerx/admin/java_card_kit-2_2_1/samples/classes/com/sun/javacard/samples/Identity/Identity.class
    converting com.sun.javacard.samples.Identity.Identity
    error: export file framework.exp of package javacard.framework not found.
    conversion completed with 1 errors and 0 warnings.
    ===
    why ??
    please your comment for this problem.
    thank 4 all.

  • Gettin error Cannot convert to number in RTF Template

    Hi,
    I am working on xml template development i am getting the followinf error
    Font Dir: C:\Program Files\Oracle\XML Publisher Desktop\Template Builder for Word\fonts
    Run XDO Start
    RTFProcessor setLocale: en-us
    FOProcessor setData: D:\Tickets\Remittance Advice XMLP\canada_report1.xml
    FOProcessor setLocale: en-us
    java.lang.reflect.InvocationTargetException
         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:324)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(XSLT10gR1.java:586)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:383)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:201)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:161)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1015)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:968)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:209)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1561)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:951)
         at RTF2PDF.runRTFto(RTF2PDF.java:626)
         at RTF2PDF.runXDO(RTF2PDF.java:460)
         at RTF2PDF.main(RTF2PDF.java:251)
    Caused by: oracle.xdo.parser.v2.XPathException: Cannot convert to number.
         at oracle.xdo.parser.v2.XSLStylesheet.flushErrors(XSLStylesheet.java:1526)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:517)
         at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:485)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:264)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:150)
         at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:187)
         ... 16 more
    I have checked the code and problem was due to following code i dont know where i went wrong
    <xsl:variable xdofo:ctx="incontext" name="inner_group" select=".//G_SEL_INV_DATA"/><?for-each:$inner_group?><?if:(position()-1) mod $no_of_lines_per_page=0?><xsl:variable name="first_rec" xdofo:ctx="incontext" select="position()"/>
    Please help me to solve this issue...
    Thanks
    Rajesh

    What was the problem in the template? I am facing the same error, when I put a conditional in the data field, it throws the XML-22036: (Error) Cannot convert to number.
    error, where if the element was printed directly it works fine.
    error
    <Line 984, Column 130>: XML-22036: (Error) Cannot convert to number.
    @Line 984 ==> <xsl:variable name="v148" select="format-number(string(xdoxslt:one($v147)), string('###0.00'), string('_DECIMALFORMAT'))"/>
    End of Process.
    <format>
    Number, ###0.00
    <DATA >BROKEN
    If (to_number(../DocumentPayableCount) + to_number(Extend/NumberOfPO) + sum(to_number(../DocumentPayable/Extend/Commentlength))) <= 7 then Extend/InvoiceAmount end if
    <DATA >ALSO BROKEN
    If (../DocumentPayableCount + Extend/NumberOfPO + sum(../DocumentPayable/Extend/Commentlength)) <= 7 then Extend/InvoiceAmount end if
    <DATA> WORKS
    then Extend/InvoiceAmount

  • After upgrading to 10.7.5 some of my AU plugins can not be validated in Logic pro. (I got error message "Remove property listener". I can not work anymore. What should I do?

    After upgrading to 10.7.5 some of my AU plugins can not be validated in Logic pro. (I got error message "Remove property listener". I can not work anymore. What should I do?
    VIBAC

    I downloaded and installed
    OS X Lion 10.7.5 Supplemental Update
    and that solved my problem completely. (368 AU plugins now works!)

  • Adobe Acrobat XI pro version, Windows 7, running on iMac parallels, converting pdf to a pdf with reduced size is not possible, error: error in converting the file! What to do? Its a bit annoying not to be able to store pdf files in reduced size, any idea?

    Adobe Acrobat XI pro version, Windows 7, running on iMac parallels, converting pdf to a pdf with reduced size is not possible, error: error in converting the file! What to do? Its a bit annoying not to be able to store pdf files in reduced size, any idea?? Thanks, Jörg

    Hi Jorg ,
    Are you trying to reduce the file size with the "Reduced size PDF" in the save as other option.
    Give it a try if you haven't done it prior.
    Open that PDF>File>Save as Other>Reduced size PDF.
    If possible ,please share the snapshot of the error message with us so that we can have a look in order to assist you further.
    Regards
    Sukrit Dhingra

  • Error in converting exchange rate from  to AED

    Dear All,
    When creating sales order I am receiving following error: Condition ZPRS: Error in converting exchange rate from  to AED.
    Such a error I am receiving when in material - there is not mantained delivery plant but this is not this case.
    (interesting is that from FX currency is missing...)
    I have also tried to play with customizing with plant assignment but without a result - this error is only in productive system in test everything is working fine...
    ??? any ideas ???
    many thanks for any brainstorming...
    Brgds. MIchal

    Dear Michal Duris      ,
    Have you maintained the currency conversion factors
    Check the following tcode
    OBBS
    OB08
    Compare between the production server and server in which there is no error (CHOOSE YOUR EXCHANGE RATE TYPE / DOCUMENT CURRENCY AND LOCAL CURRENCY )
    Check and revert back.
    If its not solved, please provide the error message number.
    Thanks & Regards,
    Hegal K Charles

  • Error while converting jad and jar to alx and cod files

    hi all,
    i am getting an error while converting jad and jar files into cod and alx files for balckberry.. here is the error i am getting.. can anyone help me this regard...
    Parsing classfile: txtCanvas.class
    I/O Error: Import file not found: d:\Research In Motion\BlackBerry JDE4.6.0\lib\
    net_rim_api.jar
    thanks in advacne
    pallavi

    thank you very much for your responses. can i send my cod and alx files to check. if you are interested only.
    here is the command which i used to convert my jad and jar files
    D:\Research In Motion\BlackBerry JDE 4.6.0\bin>rapc import="d:\Research In Motio
    n\BlackBerry JDE 4.6.0\lib\net_rim_api.jar" codename=MoBilalMIDlet -midlet jad=M
    oBilalEnglish.jad MoBilalEnglish.jar

  • Error while converting document to html

    "ORA-06502: PL/SQL: numeric or value error: invalid LOB locator specified: ORA-22275"
    I use the procedure to convert the documents if it is not already converted before using procedure as follows
    PROCEDURE "STARDOC"."HTMLOUTPUT" (
    "DOCID" IN NUMBER) IS
    mklob clob;
    doccount number;
    errorcode number;
    errormessage varchar2(200);
    BEGIN -- executable part starts here
    SELECT COUNT(document_id) INTO doccount FROM docviewhtml where document_id=docid;
    --dbms_output.put_line(doccount);
    if doccount=0 then
         dbms_output.put_line('Document Not Found: Converting '||docid);
         --If document is not found run document coversion routine
         ctx_doc.filter('idxdocuments',docid, mklob,FALSE);
         INSERT INTO docviewhtml(document_id, html) VALUES (docid, mklob);
         COMMIT;
    elsif doccount=1 then
         --return;
         dbms_output.put_line('Document Found');
         --if document id found then return the document content
         null;
    else
         --dbms_output.put_line('Error occured');
         --need to deal with duplicate documents
         null;
    end if;
    dbms_lob.freetemporary(mklob);
    EXCEPTION
    --rollback when an exception occurs
         WHEN OTHERS THEN
              errorcode:=SQLCODE;
              errormessage:=SQLERRM;     
              dbms_output.put_line(sqlcode || ':' ||sqlerrm);
              ROLLBACK;
              LOGERROR(errorcode,errormessage);
    END "HTMLOUTPUT";
    i get the error when i convert large documents
    "ORA-06502: PL/SQL: numeric or value error: invalid LOB locator specified: ORA-22275"
    Also if there are any converion errors while converting documents to html. how to find them is there a log o fany sort.
    what is wrong. please help!
    Message was edited by:
    connect2sandeep

    You free your temporary lob, but never create it.

  • Error while adding property values

    Hi Experts,
    I have a dimension named PRODUCT with almost 19,000 rows of members. Now, I'm adding a property named CATEGORY to tag each product to their corresponding product category. While processing the dimension I'm encountering the error below:
      - OLE DB error: OLE DB or ODBC error: Cannot create a row of size 8118 which is greater than the allowable maximum of 8060.; 42000.
    Errors in the OLAP storage engine: An error occurred while the dimension, with the ID of 'DMPL_DEV', Name of 'Product' was being processed.
    And also when I try to process my application, the following error occurs:
    Error message:: CreateOLAPCubeForApplication:CreateCube:OLE DB error: OLE DB or ODBC error: Cannot create a row of size 8118 which is greater than the allowable maximum of 8060.; 42000.
    Errors in the OLAP storage engine: An error occurred while the dimension, with the ID of 'DMPL_DEV', Name of 'Product' was being processed.
    Is there a limit on the number of members and properties you can add in a dimension?
    By the way, I already have ParentH1 up to ParentH10 and 7 other properties.
    Thanks,
    Marvin

    Hi,
    This is happening because of the large number of hierarchies alongwith 7 properties.
    The Admin guide says that when you are creating dimensions you should be aware of the following
    1. The maximum number of fields in a table (a dimension = 1 table) is 1024.
    2. The maximum record size is 8064 bytes (a record = 1 row in a table)
    In BPC, a field equals a property. So you can have up to 1024 properties in a dimension. One other factor that has an impact on the actual number of properties you can have in a dimension is the number of levels you have defined. SQL Server creates a set of properties for each level within the dimension. For example, you have 10 properties and three levels in your dimension, your total number of fields is 30. The second limiting factor is the size of the record. To determine record size you have to figure out the number of bytes (a byte equals a character) in each level. Since levels are repeated you only need to figure out the number of bytes in the first level and then multiply that number by the number of levels. To come up with the total number of bytes for a level you simply add up the field size for each field and multiply it by 2 (1 character = 2 bytes).
    Probable solution would be to reduce the number of INAPP properties in your dimension.
    Hope this helps.

  • Error when converting a numeric field to XML

    Hi,
            When i run the Adobe intractive form,i am getting following exception
    "Error when converting a numeric field to XML"
    Anyone plz suggest
    Regards,
    vinoth

    Hi Vinoth Raja,
    For resolving the following exception
    "Error when converting a numeric field to XML"
    You have to follow the below link:-
    http://www.saptechies.com/error-when-converting-numeric-field-xml/
    May be it will help you
    Regards,
    Sushma Yadav

  • Error while converting Image -to- PDF and then to PDF/A

    Hi,
    I'm trying to convert a Image format(JPEG,bmp,tiff) to PDF and then to PDF/A. I could able to convert Image to PDF successfully.
    I'm getting the below error while converting the PDF(that was generated) to PDF/A.
    Caused by: com.adobe.livecycle.output.exception.OutputException: Input Document is a already flat PDF Document
    at com.adobe.printSubmitter.PrintServer.transformPDF(PrintServer.java:307)
    at com.adobe.printSubmitter.service.OutputServiceImpl.transformPDFInTxn(OutputServiceImpl.ja va:518)
    at com.adobe.printSubmitter.service.OutputServiceImpl$4.doInTransaction(OutputServiceImpl.ja va:481)
    ... 106 more
    Error OCCURRED: ALC-DSC-000-000: com.adobe.idp.dsc.DSCException: Internal error.
    Please give me the solution to convert PDF to PDF/A?

    I've just read a footnote in the API documentation which indicates that the transformPDF function cannot be used for this purpose:
    "GS_Enterprise said on Nov 24, 2007 at 12:03 PM :
    Please note that the parameter "inPdfDoc" for transformPDF assumes that the stream content is an XFA-based PDF, and that it's not an XFA-based PDF with a PDF background (also known as "XFA foreground"). In other words, this function does not convert any input PDF to PDF/A, but only those PDFs generated from an XFA template which does not include any static PDF content as a background."

  • Error when converting a constant amount MAXBT in T511P

    Dear Expert,
    I am encounter error as below when run payroll for Macao,
    Error when converting a constant amount MAXBT in T511P
    CONVERT_TO_LOCAL_CURRENCY has been Called
    Data used:
    Validity end date: 28.02.2014
    Constant: MAXBT
    T511P Currency MOP
    Currency of payroll driver HKD
    Therefor, do the checking on OE00 and check the currency and validity dates for MOP currency.
    Also, checked table V_T001 table the currency that assigned for the company code.
    Checked the MOP currency and ISO code in V_TCURC table. And checked ISO code in V_CURC  table as well.
    Still encounter error as above, appreciate you advice.
    Thanks,
    Mel

    What are the values for :
    Country grouping for PA/PSA:
    Currency appearing in IT0008:
    Country key in IT0006:
    Bank Country in IT0009:

Maybe you are looking for

  • Windows 8 iTunes not allowing "sync" with iPod

    New laptop with Windows 8. Downloaded iTunes software. Manage to upload songs from iPod. But after purchasing new music, could not sync back to iPod. The iPod icon is there but the option to "sync" under Devices is grayed out. Any ideas?  Thanks, Yvo

  • (V9I) ORACLE 9I NEW FEATURE : RESUMABLE SPACE ALLOCATION

    제품 : ORACLE SERVER 작성날짜 : 2002-11-01 (V9I) ORACLE 9I New Feature : Resumable Space Allocation ===================================================== PURPOSE Oracle9i New Feature 인 Resumable Space Allocation 에 대해 알아보도록 한다. Explanation Resumable Space A

  • Can ExtendScript call a function in CS SDK?

    I suppose this could be done through BridgeTalk - but is there an easier way to have an ExtendScript function call a method in the new CS SDK? (Flash Builder)? This might simplify porting a large amount of code that's js.   Also, it seems unless you

  • How to Convert Binary Data in Binary File

    hi, my telecom client puts a binary file which is asn.1 encoded with BER. how to handle binary data in java. how to convert binary to hexa to ascii format how to convert binary to octet to ascii format please help me in this. regards, s.mohamed asif

  • Code to connect SAP 4.7 with Java

    Hi All, Please provide me some sample code or various steps of configuring java with sap 4.7 server. Regards,