Coherence cannot handle year in dates of 9999 ?

Hi,
I have been running into an issue with dates in coherence. We have some data which specifies a date of 01/01/9999 to indicate that the date does not expire.
However this results in errors when loading into coherence as follows:-
java.io.IOException: year is likely out of range: 9999
I then found this related thread:-
Storing large DateTime values from .NET
Is it really true that coherence cannot handle a valid date ???? Why would you possibly validate a year in the first place given 9999 is actually a valid year !.
TIA
Martin

Hi,
What is the code that causes the error? What version of Coherence are you using?
I can serialize/deserialize the date you have without seeing any problems. For example...
Calendar c = Calendar.getInstance();
c.set(9999, Calendar.JANUARY, 1);
Date d = c.getTime();
ConfigurablePofContext pofContext = new ConfigurablePofContext("coherence-pof-config.xml");
Binary b = ExternalizableHelper.toBinary(d, pofContext);
Date d2 = (Date) ExternalizableHelper.fromBinary(b, pofContext);
System.out.println(d2);The above code works fine when I ran it with Coherence 3.7.1.6
If I have a class that implements PortableObject with a date field set to 1/1/9999 this also serializes without any problems.
JK

Similar Messages

  • BIP cannot handle large CLOB data.

    We have OBIEE 1.3.4.1 on Redhat, database is Oracle 11.2.0.2 on the same box.
    In Publisher, I build a report with table with a CLOB type.
    BIP can handle of the clob data over 4000 limit of varchar2, but failed at one of the rows that with clob size over 25000 character. The error message isThe report cannot be rendered because of an error, please contact the administratorIs this really beyond the limit of Publisher, or there is a place I can configure BIP to handle it.
    Thanks

    If I do not use any template and just show the XML in BIP View, I get a more meaningful error A semi colon character was expected. Error processing resource 'http://cchdb.thinkstream.com:9704/xmlpserver/servlet/xdo'. ...
    10/31/2006  LA-DOC P&P W ORLEANS, LA      PROB: POSS OF COCAINE BEGIN 10/30/2006 END 10/30
    ----------------------^This appear to due to the '&'. How can make BIP treat '&' as an ordinary character?

  • My lumia 520 cannot handle a slow Data connection.

    I use a 2g data connection of about 8 KB/sec avg speed for internet access but ie or other browser and apps cannot display the website of data. Is there a workaround? At first I thought that my net was slow but that is the case as it works well on android phones. Please help my phone is just using my bandwith.

    IE cannot load even google website sometimes.in the morning though when speeds are better it works better.
    I even use uc browser in speed mode but it is the same. Help

  • SAP BO Data Services XI 3.2 - Cannot Handle Multithreaded RFC Connection?

    Hi Guys,
    Just want to ask for your inputs if Data Services cannot handle multiple RFC connection request to BW system?
    The scenario is:
    There is one BODI job using RFC connection and trigger the 2nd job at the same time and it happen that the 2nd job failed.
    Current version of SAP BO Data Services XI 3.2 that we are using is 12.2.2.1
    Thanks in advance,
    Randell

    Arpan,
    One way to get to the multiprovider data is to use Open Hub with a DTP that gets the data from the multiprovider and exposes it as an open hub destination to Data Services. With Data Services XI 3.2 we now fully support Open Hub where Data Services will (1) start the process chain to load the data (2) read the data when process chain ended and (3) notify Open Hub when done so that the data can be purged again.
    More info on Open Hub here : http://help.sap.com/saphelp_nw04/helpdata/en/1e/c4463c6796e61ce10000000a114084/content.htm
    But I will also look into the why we show the multiproviders when browsing the metadata, but get an error when trying to extract using the ABAP method (not via Open Hub). You could be right in your assumptions below and we might just need to hide the multiproviders when browsing metadata.
    Thanks,
    Ben.
    Edited by: Ben Hofmans on Jan 5, 2010 6:06 PM - added link to Open Hub documentation which references multiproviders as possible source.

  • Parser cannot handle leap years? simpler example

    Here is a simpler example. If you change the <aDate> to 2001-02-29 the instance document still validates. However 2001-02-30 fails, as it should and 2001-02-28 validates, as it should.
    The schema, d.xsd:
    <?xml version = "1.0" encoding = "UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2000/10/XMLSchema"
    targetNamespace="http://localhost/d"
    elementFormDefault="qualified">
    <element name="example">
    <complexType>
    <sequence>
    <element name="aDate" type="xsd:date"></element>
    </sequence>
    </complexType>
    </element>
    </xsd:schema>
    and the instance document d.xml with an incorrect date:
    <?xml version = "1.0" encoding = "UTF-8"?>
    <example xmlns="http://localhost/d"
    xmlns:xsd="http://www.w3.org/2000/10/XMLSchema-instance"
    xsd:schemaLocation="http://localhost/d
    http://localhost.emv2.com/1914/d.xsd">
    <aDate> 2001-02-29</aDate>
    </example>
    I used the XSDSample.java file provided with the xdk9 for validation.
    Any ideas?
    Thanks,
    -Stephen

    I've tried 9.0.2 beta and I get the same behaviour.
    I can also reproduce the same behaviour by taking the catalogue.xml and cat.xsd example in the xdk/demo/java/schema directory.
    I changed the Date element type from "year" to "date" and modified the <Date> elements in catalogue.xml appropriately (e.g. 1954-02-28 instead of just 1954).
    I get the same behaviour, Feb. 29 always passes validation no matter what year, Feb. 30 always fails:
    Here's what it says when it fails on Feb. 30
    file:/tmp/xdk92/xdk/demo/java/schema/catalogue.xml<Line 14, Column 40>: XSD-2025: (Error) Invalid text '1977-02-30' in element: 'Date'
    Parser Exception: Invalid text '1977-02-30' in element: 'Date'
    I'm using the Linux versions, if that makes a difference.
    Also, I've tried referencing the xml instance two ways, via a file reference /home/ssimm...
    and via a URL http://localhost/.... The behaviour is consistent. (I don't think this should make a difference, I'm just trying to get the behaviour to change)
    Any ideas?
    Thanks,
    -Stephen

  • Are Cube organized materialized view with Year to Date calculated measure eligible for Query Rewrite

    Hi,
    Will appreciate if someone can help me with a question regarding Cube organized MV (OLAP).
    Does cube organized materialized view with calculated measures based on time series  Year to date, inception to date  eg.
    SUM(FCT_POSITION.BASE_REALIZED_PNL) OVER (HIERARCHY DIM_CALENDAR.CALENDAR BETWEEN UNBOUNDED PRECEDING AND CURRENT MEMBER WITHIN ANCESTOR AT DIMENSION LEVEL DIM_CALENDAR."YEAR")
    are eligible for query rewrites or these are considered advanced for query rewrite purposes.
    I was hoping to find an example with YTD window function on physical fact dim tables  with optimizer rewriting it to Cube Org. MV but not much success.
    Thanks in advance

    I dont think this is possible.
    (My own reasoning)
    Part of the reason query rewrite works for base measures only (not calc measures in olap like ytd would be) is due to the fact that the data is staged in olap but its lineage is understandable via the olap cube mappings. That dependency/source identification is lost when we build calculated measures in olap and i think its almost impossible for optimizer to understand the finer points relating to an olap calculation defined via olap calculation (olap dml or olap expression) and also match it with the equivalent calculation using relational sql expression. The difficulty may be because both the olap ytd as well as relational ytd defined via sum() over (partition by ... order by ...) have many non-standard variations of the same calculation/definition. E.g: You can choose to use or choose not to use the option relating to IGNORE NULLs within the sql analytic function. OLAP defn may use NASKIP or NASKIP2.
    I tried to search for query rewrite solutions for Inventory stock based calculations (aggregation along time=last value along time) and see if olap cube with cube aggregation option set to "Last non-na hierarchical value" works as an alternative to relational calculation. My experience has been that its not possible. You can do it relationally or you can do it via olap but your application needs to be aware of each and make the appropriate backend sql/call. In such cases, you cannot make olap (aw/cubes/dimensions) appear magically behind the scenes to fulfill the query execution while appearing to work relationally.
    HTH
    Shankar

  • What data type do I use in MSA to handle CRM DEC data?

    Dear Geeks,
    We have a customer field 'ZZ_SUPPORT' on CRM (40 SP11) opportunities, which we flow
    down to mobile sales. It previously carried a NUMC2 value (a number
    from 1 - 99), and this worked fine... the data flowed fine in both
    directions. The data element ZZ_SUPPORT used in CRM is based on a newly
    created data domain called Z1_TO_99 and this was defined as data type NUMC
    (2 characters), which we have changed to DEC (4 characters, and decimal
    places 2, and screen display5). Having made this change and also
    changed the screen layout in SE51, the field now looks good and takes
    a value like '12.34' without error. We can also see the '12.34' value
    being carried in the Opp_Write Bdoc in SMW01 classic segment. However, the BDoc does not migrate
    successfully to Mobile - the ZZ_Support value is lost. In Mobile, I
    have genereted the Tables associated with Opportunity_write, and also
    the BDoc, and I have also changed the BOOPPORTUNITY / Y_Support field
    (which carries the value) from NUMC2 to String5. I have also tried Long5, and currency4
    because there is no data type "DEC" available in Mobile. When I send
    opportunity messages up from Mobile to CRM, I see them going into SMQ2
    and then they dissappear because the Function module cannot handle the
    BDoc. What is the problem? Is it the function module? or the data type
    used on Mobile - if so what should I use in the absense of "DEC"?
    Richard

    Sounds like a strange issue indeed. I would call Johnny Nobles.
    Tx: Smoggen ?
    Sorry, can't come up with better ideas.
    Cheers,
    Seb.

  • Year-to-Date using mdx

    Hi,
    I am new to mdx and struggling with the syntax.
    I have made the below (simple) query wich works fine.
    select {(EJV1, Dec, [RUBRIEK 5] )} on Columns,
    Descendants([109]) on rows
    From Resultat
    where (FY10, Prognose, [geen klant], [Geen omzet])
    Now i would like to have a year to date value.
    When i use the query below i see all the separate months.
    How can I adjust this query so the period values are aggregated?
    select { (YTD([Dec]))} on Columns,
    Descendants([109]) on rows
    From Resultat
    where (FY10, Prognose, [geen klant], [Geen omzet])
    Thanks.

    We use a VALUE dimension to dynamically calculate YTD/QTD/Thousands/Millions...
    Our ASO database has P&L and B/S data so this YTD Member Formula handles them differently:
    IIF(IsLevel([TIME].Currentmember, 0),
         IIF(IsAncestor([Balance_Sheet_Accounts ], [ACCOUNTS].Dimension.CurrentMember),
              [TIME].CurrentMember,
         Sum(PeriodsToDate ([TIME].Generations(2), [TIME].Currentmember))
    0
    This lets us query with Excel as if we had the Dynamic Time Series functionality of BSO.
    Edited by: baboland on May 20, 2010 1:53 PM
    Edited by: baboland on May 20, 2010 1:54 PM

  • Year to date variable

    Hello experts,
    I have installed the variable : Current Year From Start, Range to Current date(Sap Exit) with tech name 0I_IPMD7. How do i know which time infoObject it is applicable to?
    i want to use this in the year to date sales calculation. But cannot see this available in any of the time infoobjects in the present 0sd_c03 cube!!
    please guide..
    regards,

    Hi Aby,
    Please look at RSZGLOBV table. You'll see that this variable is based on 0IPM_BEGDATE characteristic.
    You can also look in SE37 at the FM RSVAREXIT_0I_IPMD7 to figure out what the code is doing.
    Best regards,
    Eugene

  • End Date of the Selection Period defaults as tax year end date in P45

    Hi,
    We have recently implemented both HRSP'S and CLC'S. In addition to this, we have also applied the following SAP Notes:
    1. 1305238
    2. 1309852
    3. 1310431
    4. 1316197
    Despite this, we are still having the below problem with the P45 Program.
    The End Date of the Person Selection Period automatically defaults to the end of the tax year, we are now unable to overide the date suggested by the system.
    Can anyone suggest the cause of this issue.
    Rgds
    Sandy

    Hi,
    With the Inyear movement legal changes ,HMRC have now introduced a check where in P45 cannot be produced for leavers who have a future leaving date 30 days from the current date.
    In line with the above changes,the chance of issuing P45 for future leavers is now checked by the P45 program even though the person selection end date is the tax year end date . So that's why the date is getting defaulted from the tax year.
    Hope this could solve your issue.
    Regards
    Roop

  • PopUp User&Pass / URL iViews / Portal cannot handle this?!

    Hi There,
    i`ve created some URL iViews and other iViews to Pages (Urls etc) that needs Authentification via User and Password.
    So the PopUp comes up for User and Pass.. but when i enter the Data and click ok the PopUp comes up again and again... after 3 times i become the Message that the Page cannot be displayed etc...
    When i open the URL in the Browser and put in User and Pass all works fine.
    Only from Iviews from the Portal it works not.. it seems that the Portal cannot handle this?!?
    Can someone help here?
    Regards
    Bjoern

    Hi Bjoern,
    Use Application Integrator for embedding application as per your scenario :-
    The Application Integrator:-
    http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bf8cc890-0201-0010-00b1-8d04e5f4378a?language=en
    Step-By-Step Guide to implement Application Integrator
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/70/5a3842134bad04e10000000a1550b0/frameset.htm
    Hope it helps
    Regards
    Arun

  • Cannot connect to JDBC data source

    We are trying to configure Visual Composer to connect to the backend BI-ABAP
    BI database which is DB2, from the Visual Admin on the windows box.
    Downloaded the driver for DB2 JDBC from IBM website
    (ibm_data_server_driver_package_win64_ALL_LANG_v97.exe) Not sure if this is the correct driver, because we are unable to connect to the BI
    Landscape information
    BI- ABAP: NW 701 SP4 AIX 6100-3/DB2 v9.5.0.4,FIXPACK 4
    BI-JAVA: NW 701 SP4 WIN2003 X64/SQL2005 SP3
    When i run this url http://servername:port/TestJDBC_Web/test2 i i get the following error
    Exception Details:
    com.sap.ip.bi.sdk.exception.BIConnectionFailedException: Cannot open the connection
         at com.sap.ip.bi.sdk.dac.connector.jdbc.JdbcConnectionFactory.getConnectionEx(JdbcConnectionFactory.java:238)
         at com.sap.ip.bi.sdk.trialarea.connector.servlet.model.JDBCModel.getConnection(JDBCModel.java:796)
         at com.sap.ip.bi.sdk.trialarea.connector.servlet.model.JDBCModel.getTables(JDBCModel.java:132)
         at com.sap.ip.bi.sdk.trialarea.connector.servlet.controller.Control2.doPost(Control2.java:25)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    Caused by: com.sap.ip.bi.sdk.exception.BIResourceException: Cannot open the connection
         at com.sap.ip.bi.sdk.dac.connector.jdbc.JdbcManagedConnection.(JdbcManagedConnection.java:123)
         at com.sap.ip.bi.sdk.dac.connector.jdbc.JdbcManagedConnectionFactory.createManagedConnection(JdbcManagedConnectionFactory.java:112)
         at com.sap.engine.services.connector.jca.ConnectionHashSet.match(ConnectionHashSet.java:338)
         at com.sap.engine.services.connector.jca.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:262)
         at com.sap.ip.bi.sdk.dac.connector.jdbc.JdbcConnectionFactory.getConnectionEx(JdbcConnectionFactory.java:233)
         ... 19 more
    Caused by: com.sap.ip.bi.sdk.exception.BIResourceException: Cannot connect to JDBC data source
         at com.sap.ip.bi.sdk.dac.connector.jdbc.impl.Connection.connectDB(Connection.java:336)
         at com.sap.ip.bi.sdk.dac.connector.jdbc.impl.Connection.connect(Connection.java:99)
         at com.sap.ip.bi.sdk.dac.connector.jdbc.JdbcManagedConnection.(JdbcManagedConnection.java:118)
         ... 23 more
    Caused by: java.sql.SQLException: No suitable driver
         at java.sql.DriverManager.getConnection(DriverManager.java:532)
         at java.sql.DriverManager.getConnection(DriverManager.java:140)
         at com.sap.ip.bi.sdk.dac.connector.jdbc.impl.Connection.connectDB(Connection.java:320)
         ... 25 more

    Hi,
    you can check the configuration:
    http://help.sap.com/saphelp_scm50/helpdata/en/43/e35b3315bb2d57e10000000a422035/content.htm
    Regards, Mayur

  • Discoverer Parameters: Year to Date

    Hi guys,
    At the moment im working on a database warehousing project. I'm using discoverer as a front end for a user friendly environment. Does anyone know how i can create a parameter to show the year to date? i need to put the following condition into the paramater:
    FULL_DATE BETWEEN =add_months(sysdate,-12) AND =sysdate
    However, as im sure you'll find, you cannot use the 'BETWEEN' function when using parameters :( - Ideally i'd like the user to be able to choose between two buttons, one showing all the data and one showing year to date. I would prefer to use a parameter to do this rather than the user adding/removing conditions from worksheet.
    Thanks in advance,
    Chris.

    Hi Chris
    Take a close look at Rod's answer because you can use BETWEEN when using parameters. Rod's answer looks for the code YTD and if found uses the full year to date.
    Another solution would be to use a parameter that asks the user whether they want to see the year to date, receiving Y or N. Having got the answer you then create a suitable DECODE, like this:
    FULL_DATE BETWEEN DECODE(:YTD_QUESTION,'Y',ADD_MONTHS(SYSDATE,-12), FULL_DATE) AND SYSDATE
    This solution works when the datatype that you are checking for will not allow a user to type characters, so can be used when a date or number is being checked.
    Best wishes
    Michael

  • Previous years plan data for single year.

    I have 7 plan data for each year. For example for 2017 I have following ..
    what is planned for 2017 in 2011.
    what is planned for 2017 in 2012
    what is planned for 2017 in 2013.
    what is planned for 2017 in 2014.
    what is planned for 2017 in 2015.
    what is planned for 2017 in 2016.
    what is planned for 2017 in 2017.
    Client wants to store all the previous years plan relating to each year.
    I already have various category for plan such as plan1, plan2, revised plan etc.
    How to handle the above scenario for 7 years plan data. Appreciate any inputs..

    Categories named against planned year can be created. A working category(PLAN) is used in all reports and input templates. whenever PLAN data is finalized PLAN can be copied to respective planned years category . ie in 2012 , when planned data is finalized, PLAN is copied to PLAN2012 .In 2013 , PLAN should be copied to PLAN2013.
    That way , planned amounts of 2017 can be retrieved from   respective planned year categories .
    Planned amount of 2017 in 2012 is cat:PLAN2012,Time:2017.total 
    Planned amount of 2017 in 2014 is cat:PLAN2014,Time:2017.total
    Hope this helps.

  • What feature I can use in SQLServer 2014/SQLAzure to Horizontal scaling in case a single machine cannot handle the load

    Hi all,
    I need advise for 
    What feature I can use in SQLServer 2014/SQLAzure to Horizontal scaling  in case a single machine cannot handle the load.
    Please some body suggest.
    I know some features :
    1.AlwaysOn
    2.Peer to Peer replication
    Thanks in advance.

    Hello,
    Windows Azure SQL database is not on-premise SQL Server 2014.
    SQL database not support Always on Availability Group and Replication. Scaling out in Azure SQL Database requires sharding, which horizontally partitions data across multiple databases. You should design custom sharding solutions by using application
    code across multiple databases.
    If you use Azure virtual machines (VMs) with SQL Server 2014, you can configure Alwayson Availability Groups. Please refer to the following article:High Availability and Disaster Recovery
    for SQL Server in Azure Virtual Machines
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

Maybe you are looking for

  • Having a blank login at start up

    previously when i started my computer up i had a blank login where i filled out the username and password, but at some point it changed to where my avatar and name is provided along with the guest account. i would like to revert back to the old setti

  • How can i use an animated image in FORMS

    I like to use an animated image, means a jpg image created by a jpeg_animator, in a simple control image. Thanks for help. null

  • What's the best method for securely erasing files on OS X?

    Hello, I'm looking for a method for securely erasing files on OS X. I know OS X has the srm command doable in the Terminal, but this command uses the 35-pass Gutmann algorithm which is, to me, obsolete as of now. Do you know modern methods for secure

  • "Youtube reported an unknown error" everytime I try to publish to youtube

    Lately, everytime I try to publish a video from iMovie to YouTube, I get an error message saying "YouTube reported an unknown error". I end up having to export the movie before I can manually upload it to YouTube, which is quite time consuming. Is th

  • Using devguide in Sun Studio 11?

    Hi! Newbie question here: Can I use OpenWindows DevGuide as my GUI builder for my application in the Sun Studio 11 compiler? Any help would be appreciated! Thanks!