Calender error

   String timestamp = parseEventTimeId(reader);
               try {
                    Date eventtime = timeFormatStored.parse(timestamp);
                    Calendar startthis = eventtime.getTime();
                    event.setTimeStamp(startthis);
                } catch (ParseException ex) {
                    LOG.error(ex);
                }throws error :
cannot convert long to calender
please an u give me suggestion.
thanks

thanks for that i rote a new method
public static Calendar StringCalendar(String timestamp) throws ParseException {
        Calendar cal=Calendar.getInstance();
        DateFormat timeFormatStored = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
        Date eventtime = timeFormatStored.parse(timestamp);
        cal.setTime(eventtime);
        return cal;
    private static DeviceEvent parseEvent(XMLStreamReader reader, DeviceEvent event, Device device,
            DateFormat timeFormatStored) throws XMLStreamException, MalformedSigmaXMLException {
        while (reader.hasNext()) {
            if (reader.getEventType() == XMLStreamConstants.START_ELEMENT
                    && "seqNo".equals(reader.getLocalName())) {
                event.setEventID(parseEventId(event, reader));
            } else if (reader.getEventType() == XMLStreamConstants.START_ELEMENT
                    && "eventTime".equals(reader.getLocalName())) {
                String timestamp = parseEventTimeId(reader);
                try {
                    Calendar eventParser= SigmaXMLEventParser.StringCalendar(timestamp);
                   Calendar eventtime = eventParser.parse(timestamp);
                    System.out.println("time"+eventParser);
                    event.setTimeStamp(eventParser);
                } catch (ParseException ex) {
                    LOG.error(ex);
             reader.next();
        throw new MalformedSigmaXMLException("expected closing <deviceEvent>");
    public static String parseNextEventTime(XMLStreamReader reader) throws XMLStreamException,
            MalformedSigmaXMLException {
        while (reader.hasNext()) {
            if (reader.getEventType() == XMLStreamConstants.START_ELEMENT
                    && "eventTime".equals(reader.getLocalName())) {
                return parseEventTimeId(reader);
            reader.next();
        throw new MalformedSigmaXMLException("missing Device event Event Time");
    }throws exception as
java.lang.Error: Unresolved compilation problem:
     The method parse(String) is undefined for the type Calendar
     at com.gehc.device.sigma.SigmaXMLEventParser.parseEvent(SigmaXMLEventParser.java:85)
     at com.gehc.device.sigma.SigmaXMLEventParser.parseNextEvent(SigmaXMLEventParser.java:58)
     at com.gehc.device.sigma.SigmaXMLEventParserTest.assertThrowOnNextEvent(SigmaXMLEventParserTest.java:76)
     at com.gehc.device.sigma.SigmaXMLEventParserTest.testParseMessageWithoutID(SigmaXMLEventParserTest.java:29)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at junit.framework.TestCase.runTest(TestCase.java:154)
     at junit.framework.TestCase.runBare(TestCase.java:127)
     at junit.framework.TestResult$1.protect(TestResult.java:106)
     at junit.framework.TestResult.runProtected(TestResult.java:124)
     at junit.framework.TestResult.run(TestResult.java:109)
     at junit.framework.TestCase.run(TestCase.java:118)
     at junit.framework.TestSuite.runTest(TestSuite.java:208)
     at junit.framework.TestSuite.run(TestSuite.java:203)
     at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
     at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

Similar Messages

  • Invalid factory calender error in creating subcontrating po

    hello all,
    during creation of subcontracting po,system shows the error message "invalid factory calender error".
    i have checked the assignment in oy05.seems ok.
    pls provide some input.
    regards
    sumit simran.

    Hi,
    Please check the path.
    IMG>Enterprise Structure>Definition>Logistics - General>Define, copy, delete, check plant-->Define Plant.
    Here you can find the which factory calender is assigned to your plant.
    Then go to  Tcode SCAL ,  select the Holiday calender and edit it . Double click on your holiday calender   and change it  i.e valid From year to To year. Go back , select the factory calender and edit it ,  give  valid From year to To year.
    Thanks.

  • Invalid Factory Calender error

    Hello gurus,
    While making a subcontracting PO, the following error is coming "Invalid factory error or error in the factory calender"
    I have checked the plant settings & have put Factory calender IN for the plant. Still the error is coming. How to resolve this?
    Regards
    Prashant

    >
    prashantjalgi wrote:
    > The validity is from 1996 to 2010.
    >
    > If I try to extend it to 2011, the system is not allowing.
    >
    > The same error is coming when the validity is 1996 to 2010.
    Why is it not allowing? what error do you get when trying?
    Calendar maintenance is done thru CUNI, and cusotmizing is usually done in development clients.

  • Factory Calender error

    Hello All,
    I am creating the public holidays for the year 2009 and assigned to holiday calendar. When I try to open any material in MD04 it is throwing the below message. Issues is very vital please respond.
    Invalid factory calendar or error in the factory calendar 29.12.2008
    Message no. 61063
    Diagnosis
    This problem is caused by a setting error.
    Procedure
    Check the various periods of the factory calendar in customizing. If you do not have the necessary authorization to do this, inform your system administrator.
    Regards,
    Ganesh

    hi
    check the calender assinged to the plant.
    Enterprise Structure=-->Definition->Logistics - General->Define, copy, delete, check plant
    -ashok

  • Team Calender Error.

    Dear All,
    EHP6 and 7.31
    SP21
    I have configured Team Calender (Rule group and all required tables).
    There is an error in Team Calender.
    500 SAP Internal Server Error
    ERROR: Exception condition "COMMUNICATION_ERROR" raised. (termination: RABAX_STATE)    
    Regards
    Somu

    Hello Somu,
    You would be getting the dump in R/3 also, please attach the same here.
    Could you update IGS to the latest version and config IGS as described
    in the notes below:
    896400    Upgrade your integrated IGS 7.x installation
    844669    Profile parameter of IGS as of Version 7.x
    454042    IGS: Installing and Configuring the IGS
    You can check your patch level as follows:
    - Start transaction SA38 (or SE38)
    - Run the report GRAPHICS_IGS_ADMIN
    - Choose the RFC destination, IGS_RFC_DEST should be the default
    - Select Status
    This page shows the versions of the IGS components. The number before
    the last number shows the patch level. We recommend to update it to
    the latest available if not done so yet, based on the practice it
    solves number of issues (and according to SAP note 514841, step 1).
    Best Regards,
    Deepak Kumar Sharma
    Active Globol Support..

  • End of Valid Logistic Calender error while creating Sales Order

    Hi,
    While creating Sales order in VA01 the following error message comes for particular material code for a particular site only:
    24.01.2202 date comes after end of valid logistics calendar. (Please
    correct)
         Message no. 61062
    Can anyone suggest on the same.
    Regards
    Nilofer

    Hi,
    The input value given in Sales order is " Req Delivery date: 31.03.2012", but the error comes with the below date such as
    "24.01.2202 date comes after end of valid logistics calendar.(Please correct)"
    We also face one more error such as
    " Incorrect index structure for table XMVERF_POS/0000224110/000040 ".
    From where system is taking 24.01.2202 date?

  • Microsoft works 8 calender error message

    error report says modname wkcalac.dll and wont open the program
    can any body shed some light?

    It is a Microsoft problem and you can try to find explanation on some Microsoft site. You are absolutely right because this file is responsible for Works Calendar AppControl. If there is problem try to reinstall Works again. Maybe is this file corrupted or damaged.

  • Date pick calender error

    Dear Experts,
    We are using SAP B1-2007 PL 42 and occurred following error.
    When I click the date picker in any form (window) [ex:-Sales Quotation, SO, etc....), it shows only 4 days of the week.
    It hides rest of 3 days (Friday, Saturday, Sunday) in every month.
    But I can manually enter or scroll from arrow keys.
    Following is a screenshot of the error
    http://www.4shared.com/photo/_2xzM9Sq/Date_Error.html
    Would you please be able to assist us on this.

    Check [CPRF] table.
    Formid is '10000075' , Check width, VisInForm, ColId, UserSign fields.
    Our sample is ,
    select * from cprf  where formid = '10000075'  and usersign = 12
    So, results will be seen below.
    FormId                  ItemId                ColID               Width               VisInForm        VisualIndx ....
    10000075     10000013     10000000     0     N     0     
    10000075     10000013     10000001     0     N     7     
    10000075     10000013     10000003     51     Y     3     
    10000075     10000013     10000005     51     Y     2     
    10000075     10000013     10000007     51     Y     1     
    10000075     10000013     10000009     0     N     6
    10000075     10000013     10000011     0     N     5     
    10000075     10000013     10000013     16     Y     4     
    Next, We executed following query.
    UPDATE CPRF SET WIDTH = 22 , visinform = 'Y'
          where formid = '10000075'  and
                      colid in ( '10000007', '10000005', '10000003', '10000013', '10000011', '10000009','10000001' ) and
                       usersign = 12
    And, SAP Client exit, re log-on.
    Edited by: smm8ic on Jan 12, 2012 3:05 AM

  • Can't anyone help me? - Calender syncronize...

    Hi Fellows!
    I have this problem with my phone and computer! They won't come together and syncronize my calender!
    First my computer said that i needed to install MIcrosoft Outlook, so i was on microsofts website and bought Outlook 2010 (because i am a pretty busy person so i need my calender on the computer and mobile to be the same).
    But now when i want to syncronize my calender, error number 80043bee comes up. But i have the latest version of Ovi (i think, some guy from in here gave me a link, i just got it yesterday) i tried to restart my computer and my phone 2-3 times and i've tried to update my phone with the newest updates... But the error still comes.
    Please help me, im very fustrated!

    Hello :-)
    I promised to post back if I found a solution and I have (both).
    Computer PIM to Nokia phone integration was the only thing I needed Windows for. I was running WXP in a virtual machine under Linux. The Ovi Suite problem with my 5130c-2 was the kick I needed to find another solution, fully on Linux.
    It's not pretty but it works for what I want; synchronising calendar and contacts from computer to a Nokia Series 40 phone. It's all done at the command line now as proof-of-concept; if there is interest, I (or someone else!) could write a GUI interface.
    Using the Xfce desktop's Orage calendar and gnokii, the calendar can be exported to a file and the file prepared for gnokii using a custom script documented in my blog on Linux questions at http://www.linuxquestions.org/questions/blog/catkin-444761/script-to-filter-an-orage-export-ics-file...
    Using Thunderbird's Address Book for the contacts and gnokii, the contacts can be exported to a file and the file prepared for gnokii using a custom script documented in my blog on Linux questions at http://www.linuxquestions.org/questions/blog/catkin-444761/script-to-prepare-a-thunderbird-pab-expor...
    Why Thunderbird? The only other contender was Evolution but that's tightly integrated with the Gnome desktop and I much prefer Xfce.
    Why Xfce's calendar? Because it works and Thunderbird's Lighting does not on my system (Slackware64 13.1 Linux-based OS).
    Why gnokii? It was a toss up between gnokii and gammu and gammu's support for the 5130c was dubious (but it turned out gnokii's was too -- hence the scripts to prepare exports for it so gammu might have been a good choice.
    The only thing I haven't got working sounds the simplest of all; synchronising notes (plain text files) to the phone. As a workaround they can be calendar notes on an easily found date.
    Best
    Charles
    Nokia 5130c-2

  • CalDav - File Not Found

    I have a calender server running on os x server version 2.2.5.  When one user attempts to connect to his calender it returns an error and cannot login to the server.  Other users can login and get to their calendars.
    From the calender error log:
    [caldav-0]  [PooledMemCacheProtocol,client] [twext.web2.dav.method.propfind#error] File not found: <RootResource: /Library/Server/Calendar and Contacts/Data/Documents/calendar/dav/*user*/user>
    What is the best way to restore this users access to the calendar server?

    I think this is the same problem I am having, but I unlike this one I am already on 10.8.5.
    Some problem with Calendar service

  • Error While Runnig Calender Build and Run Automated Benefit cobol Process

    While Running Pay Calender Build and Automated Benefit cobol process i m getting a error
    Maximum number of set Run Cntl Record Loaded into Array.
    Array Limit Exceeded
    at pos 00028
    Please any one can help me to get rid of this problem.
    Thanks,
    Amit Asawa

    Hussein Sawwan wrote:
    Please post the details of the application release, database version and OS.Oracle EBS R12.1.1 windows server 2003
    Please verify you have no invalid objects in the database and no errors are reported in the database log file.i dont know where can i find this log file ?
    Search MOS for (ORA-06512 and GLPPOS) and go through the docs.i am sorry i don't have MOS ID :)
    Thank you
    kareem

  • Error comes while using calender in Edit Page? BUG ???

    Hi
    I am using Jdeveloper 9.0.2. My project is a BC4J project. I have created some default Browse and Edit Form on a View Object. In the Edit page when I am entering date using the calender I am getting the following error:
    " Error Message: No rows available for editing. "
    But if I am giving date manually, everything is fine.
    Please help me.
    - Arvind

    Repost

  • Won't sync calender with mobileme "inconsistent data error message"

    I have tried about everything that I can think of but can't seem to solve this problem.
    I have a new Macbook Pro and have been using mobileme and ical for some time now. I can't get my Macbook Pro to sync with mobileme ical. It does sync with the address book, but when it gets to the ical portion it tries and then reports "can't sync due to inconsistent data on this computer. Correct data and resync calender".
    I have no idea what the "inconsistent data" is. My computer gets its time from apple.com and the time/date is correct. What is the inconsistent data. My calender and schedule is a critical issue. Please help.

    Errors in syncing can happen for all sorts of reasons - loss of network connectivity, for instance - and it might be necessary to reset the synced data from a reliable source. It's not talking about deleting anything - unless you have data on your new computer that you need to retain.
    The document says that if you have this problem on your new machine, you probably need to overwrite that local data with data from MobileMe.
    Personally, I've never lost any data with dotmac or MobileMe, so my experience is it can be relied on. I do, however, keep backups of all my data as well.

  • CS4 Error when using Jquery UI Calender

    Hi - hope this is the correct forum to post on this query -
    I've just upgraded to DW - CS4 and started to play with some of the
    new widgets - I already have a page to which I applied the JQuery
    UI Calender widget which is neater than the datepicker I was using.
    This page has a number of dbase bindings to get data from several
    tables - all these are functional IF i don't modify them. However
    if I attempt to make a change which I did for the DW insert record
    behavior when I select 'connection' to choose the database this
    error message occurs:
    While executing onChange in InsertRecord.htm, the following
    JavaScript error(s) occurred:
    At line 665 of the file "C:\program files\ . . .
    \ServerBehaviors\PHP_MySQL\InsertRecord.js": name has no properties
    As far as I can see this occurs on insert & update DW
    record behaviours (edit - on a page) where I have the JQuery widget
    applied. If I remove the widget it works fine (which is what I have
    done) I was wondering if anyone else has noticed this ??

    AmiBios wrote:
    > David - Many thanks for taking time to reply - I've
    tried that option with no
    > success along with a few other such as recretaing the
    site cache - It certainly
    > does appear to be a conflict between the JQuery
    'calendar widget' and the DW
    > insert behavior. I've tried a few other widgets and all
    works well. I suppose
    > i'll just leave the widget out as the insert is just a
    wee bit more important
    Ah, reading your original post more carefully, I see what's
    happening.
    The type of JavaScript error you mention is normally caused
    by a corrupt
    cache file, but it seems as though it's happening only when
    you try to
    edit an insert record server behavior.
    Without setting up a similar page myself, I can't confirm
    whether this
    is reproducible. My advice would be to apply the widget after
    you have
    finished editing the server behavior. In theory, there
    shouldn't be any
    conflict between a jQuery widget and the server behaviors,
    but that's
    the type of thing that comes out only after thorough testing.
    It might be a good idea to submit a bug report to Adobe:
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • TS3991 When I try to use Outlook Setup for the iCloud on my PC I get an error message at step 2 of 7 Download Calender from iCloud as follows: "your setup couldn't be started because of an unexpected error"

    When I try to set up MS Outlook using Outlook Setup for Icloud it fails at step 2 of 7  Download Calender from iCloud with error message "your setup could not be started because of an unexpected error"  My iCloud calender in Outlook had previously been working, but was not reflecting the same scheduling information, so I tried to delete it and reinstall using the Outlook Setup for iCloud.
    How can I get it to work again?

    Hello, ksb2. 
    Thank you for visiting Apple Support Communities.
    We are investigating this issue. This article will be updated as more information becomes available.
    iCloud: iCloud Control Panel setup cannot be started
    http://support.apple.com/kb/TS5178
    Cheers,
    Jason H.

Maybe you are looking for