Why wouldn't indexOf ArrayList function work?

I can't post EXACT code since it's company information. I will try to replicate it here though so please bare with me.
BEAN:
public class Product {
String name;
String soldDate;
Long id;
// set and get functions for each also
}Product are in a database, the bean above represents what is in the database record.
ArrayList productList = new ArrayList();
// Initialized with Product objects.
// Function deletes a product based on an id
// gets record from database and converts it to a Product object
Product prodToDelete = myDBAccess.get(id);
int index = productList.indexOf(prodToDelete);
productList.remove(index);I get an IndexOutOfBoundsException thrown because the index comes back as -1. I printed out all the values and everything is the same.

"Searches for the first occurence of the given argument, testing for equality using the equals method."
Oh so in Product class I need a function
public boolean equals(Product p){
... // test each attribute?
}

Similar Messages

  • Why Doesn't the XIRR function work?

    In Excel if you have 5 records from a1:b5 then XIRR looks like this:
    XIRR(A1:A5, B1:B5) you get a nice neat answer like .35
    Here is a version that works in Crystal that would require manual entry of any new quarters numbers and dates-- and if you plug this into Crystal it works:
    (XIRR([1000000,-100000,-100000,-100000,-100000,10277.49,-100000], [DateValue(1999,2,1),DateValue(1999,3,1),DateValue(1999,6,1), DateValue(1999,12,1),DateValue(2000,3,1),DateValue(2000,6,1),DateValue(2000,9,1)]))*.100
    You do get a nice answer of something like .035.  But this is all done manually and I need it to function automatically when the report is refreshed.
    So you have a range for the currency and a range for the date fields. I need to simulate this in crystal. Crystal has an XIRR function, and with the arrays, I should be able to fill in the range, but am having difficulty getting it to work.
    After building the arrays, I made another formula to combine the arrays in the XIRR formula.
    I am down to this error now after getting this formula this far  --
    "Numerical method did not converge; try another value for guess."
    Here's where I am with the formula, although they don't want to use the guess part of the XIRR function - they just want to use the XIRR(number/currency, date).  Maybe you could pass this on too?:
    /{@Reset} for the group header (NOT using a repeated group header):
    whileprintingrecords;
    numbervar array x := 0;
    datevar array y := date(0,0,0);
    numbervar i := 0;
    numbervar j := 0;
    //{@accum} for the detail section:
    whileprintingrecords;
    numbervar array x;
    datevar array y;
    numbervar i := i + 1;
    numbervar j := count({table.groupfield},{table.groupfield});
    if i <= j then (
    redim preserve x[j];
    redim preserve y[j];
    x<i> := tonumber({table.currency});
    y<i> := datevalue({table.datetime})
    //{@xirr calc} to be placed in the group footer:
    whileprintingrecords;
    numbervar array x;
    datevar array y;
    xirr(x,y)
    The array works correctly.  So why do I get that error and why doesn't the XIRR formula work like they say it should?  Has anyone used this successfully in Crystal--maybe you could shed some light?
    Thanks!

    Hi,
    I am receiving that same error when the last item in the array is 0, otherwise all works perfectly.
    When I run the same group of numbers and dates in Excel it returns without issue.
    -265500.00,-690000.00,-570000.00,16814.25,-855000.00,-619500.00,55293.46,30411.40,15183.76,  0.00
    01-25-2007,03-06-2007,05-02-2007,06-29-2007,08-01-2007,08-24-2007,09-17-2007,03-14-2008,05-28-2008,03-31-2010
    =XIRR(A2:J2,A1:J1,-0.1)
    Is there a known bug in Crystal's XIRR function when the last value is 0? 
    Or a hot-fix that will repair this?
    Thanks in advance,
    Gary
    PS. I am using Crystal XI Product Version: 11.0.0.2495

  • Why doesn't my XMLTable function work?

    Hi,
    I'm trying to read through my XML document using a XMLTable function, because a repetition of elements might occur. I wrote a SQL-script to test this function, but it does not give me the desired output. This is my script. I use a dummy table PETER_XML to pass the value to the XMLTable function. I would rather have done this directly with a PL/SQL variable, but that did not work.
    CREATE TABLE PETER_XML (AVY XMLTYPE);
    set serveroutput on size 100000
    set echo on
    set feedback on
    declare
    cursor c_avy is
    SELECT XMLRESPONSE."DepartureStation" DEPARTURE,
           XMLRESPONSE."FlightNumber"     FLIGHTNR
    FROM   PETER_XML,
           XMLTABLE(XMLNameSpaces('http://schemas.navitaire.com/WebServices' as "web",
                                  'http://schemas.xmlsoap.org/soap/envelope/' as "soapenv",
                                  'http://schemas.navitaire.com/WebServices/ServiceContracts/BookingService' as "book",
                                  'http://schemas.navitaire.com/WebServices/DataContracts/Booking' as "book1",
                                  'http://schemas.microsoft.com/2003/10/Serialization/Arrays' as "arr",
                                  'http://schemas.navitaire.com/WebServices/DataContracts/Common/Enumerations' as "enum",
                                  'http://schemas.navitaire.com/WebServices/ServiceContracts/BookingService' as "ns0",
                                  'http://schemas.navitaire.com/WebServices/DataContracts/Booking' as "ns1" ),
                    '//GetAvailabilityRequest/TripAvailabilityRequest/AvailabilityRequests/AvailabilityRequest'
                    PASSING PETER_XML.AVY
                    COLUMNS
                      "DepartureStation" varchar2(3) PATH 'DepartureStation',
                      "FlightNumber"     varchar2(4) PATH 'FlightNumber'
                   ) XMLRESPONSE;
    l_response clob := '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://schemas.navitaire.com/WebServices" xmlns:book="http://schemas.navitaire.com/WebServices/ServiceContracts/BookingService" xmlns:book1="http://schemas.navitaire.com/WebServices/DataContracts/Booking" xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:enum="http://schemas.navitaire.com/WebServices/DataContracts/Common/Enumerations">
       <soapenv:Header>
          <web:Signature>bnuOiHCVb3k=|Gx+eTRcZ5ABozAy8MosBFwagyUw7zrRXf1iprmw9Q4W17wt8SDpjYV2HwZRGIHYtE46UFBJw/aFyKVqjToEAfSTfh7cePm4r9JJwcIveDc75NuxnzoY14pKC+WLYDzE0MaALra4i/tI=</web:Signature>
          <web:ContractVersion>340</web:ContractVersion>
       </soapenv:Header>
       <soapenv:Body>
              <ns0:GetAvailabilityRequest xmlns:ns0 = "http://schemas.navitaire.com/WebServices/ServiceContracts/BookingService">
                       <ns1:TripAvailabilityRequest xmlns:ns1 = "http://schemas.navitaire.com/WebServices/DataContracts/Booking">
                                 <ns1:AvailabilityRequests>
                                          <ns1:AvailabilityRequest>
                                                    <ns1:DepartureStation>AMS</ns1:DepartureStation>
                                                    <ns1:ArrivalStation>CTA</ns1:ArrivalStation>
                                                    <ns1:BeginDate>2013-07-13T00:00:00</ns1:BeginDate>
                                                    <ns1:EndDate>2013-07-13T00:00:00</ns1:EndDate>
                                                    <ns1:CarrierCode>HV</ns1:CarrierCode>
                                                    <ns1:FlightNumber> 547</ns1:FlightNumber>
                                                    <ns1:FlightType>All</ns1:FlightType>
                                                    <ns1:PaxCount>1</ns1:PaxCount>
                                                    <ns1:Dow>Daily</ns1:Dow>
                                                    <ns1:CurrencyCode>EUR</ns1:CurrencyCode>
                                                    <ns1:DisplayCurrencyCode>EUR</ns1:DisplayCurrencyCode>
                                                    <!--ns1:SourceOrganization>COO</ns1:SourceOrganization-->
                                                    <ns1:MaximumConnectingFlights>0</ns1:MaximumConnectingFlights>
                                                    <ns1:AvailabilityFilter>Default</ns1:AvailabilityFilter>
                                                    <ns1:ProductClassCode>NG</ns1:ProductClassCode>
                                                    <ns1:SSRCollectionsMode>None</ns1:SSRCollectionsMode>
                                                    <ns1:InboundOutbound>Both</ns1:InboundOutbound>
                                                    <ns1:NightsStay>0</ns1:NightsStay>
                                                    <ns1:IncludeAllotments>true</ns1:IncludeAllotments>
                                                    <ns1:FareTypes>
                                                              <ns2:string xmlns:ns2 = "http://schemas.microsoft.com/2003/10/Serialization/Arrays">T</ns2:string>
                                                    </ns1:FareTypes>
                                                    <ns1:PaxPriceTypes>
                                                              <ns1:PaxPriceType>
                                                                       <ns1:PaxType>ADT</ns1:PaxType>
                                                              </ns1:PaxPriceType>
                                                    </ns1:PaxPriceTypes>
                                                    <ns1:JourneySortKeys>
                                                              <ns2:JourneySortKey xmlns:ns2 = "http://schemas.navitaire.com/WebServices/DataContracts/Common/Enumerations">EarliestDeparture</ns2:JourneySortKey>
                                                    </ns1:JourneySortKeys>
                                                    <ns1:IncludeTaxesAndFees>false</ns1:IncludeTaxesAndFees>
                                                    <ns1:FareRuleFilter>Default</ns1:FareRuleFilter>
                                                    <ns1:LoyaltyFilter>MonetaryOnly</ns1:LoyaltyFilter>
                                                    <ns1:TravelClassCodeList>
                                                              <ns2:string xmlns:ns2 = "http://schemas.microsoft.com/2003/10/Serialization/Arrays">Y</ns2:string>
                                                    </ns1:TravelClassCodeList>
                                          </ns1:AvailabilityRequest>
                                 </ns1:AvailabilityRequests>
                                 <ns1:LoyaltyFilter>MonetaryOnly</ns1:LoyaltyFilter>
                       </ns1:TripAvailabilityRequest>
              </ns0:GetAvailabilityRequest>
       </soapenv:Body>
    </soapenv:Envelope>';
    begin
    dbms_output.put_line ('Start');
    insert into peter_xml (avy) values ( XMLTYPE(l_response) );
    dbms_output.put_line ('Insert processed ' || to_char(sql%rowcount) || ' rows.' );
    for r_avy in c_avy loop
       dbms_output.put_line ( 'Departure ' || r_avy.departure || ' Flightno. ' || r_avy.flightnr );
    end loop;
    end;
    rollback;
    The script runs fine, but the problem is that I do not get any output form the cursor for-loop. When I address the elements using 'ns1:etc' I get an error, which suggests that the function is actually reading the XML. Since it gave no output, I started including all these XMLNameSpaces.
    Can anyone let me know what I'm missing?
    And if I can pass the value with a PL/SQL variable, it would save me the use of a dummy table. That would be nice.
    Thanks in advance.
    Peter

    Hi Peter,
    Since it gave no output, I started including all these XMLNameSpaces.
    All these namespaces have meaning, don't include them blindly, but if you do, use them.
    The main XQuery expression doesn't reference any of the necessary namespaces.
    Here's a simplified version that gives the expected output.
    Please note that I only use the namespaces I need to resolve the XQuery :
    declare
      cursor c_avy (p_xmlresponse in xmltype) is
        select x.DEPARTURE
             , x.FLIGHTNR
        from xmltable(
               xmlnamespaces(
                 'http://schemas.xmlsoap.org/soap/envelope/' as "soap"
               , 'http://schemas.navitaire.com/WebServices/ServiceContracts/BookingService' as "ns0"
               , 'http://schemas.navitaire.com/WebServices/DataContracts/Booking' as "ns1"
             , '/soap:Envelope/soap:Body/ns0:GetAvailabilityRequest/ns1:TripAvailabilityRequest/ns1:AvailabilityRequests/ns1:AvailabilityRequest'
               passing p_xmlresponse
               columns
                 DEPARTURE varchar2(3) path 'ns1:DepartureStation'
               , FLIGHTNR  varchar2(4) path 'ns1:FlightNumber'
             ) x ;
      l_response clob := '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://schemas.navitaire.com/WebServices" xmlns:book="http://schemas.navitaire.com/WebServices/ServiceContracts/BookingService" xmlns:book1="http://schemas.navitaire.com/WebServices/DataContracts/Booking" xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:enum="http://schemas.navitaire.com/WebServices/DataContracts/Common/Enumerations">
       <soapenv:Header>
          <web:Signature>bnuOiHCVb3k=|Gx+eTRcZ5ABozAy8MosBFwagyUw7zrRXf1iprmw9Q4W17wt8SDpjYV2HwZRGIHYtE46UFBJw/aFyKVqjToEAfSTfh7cePm4r9JJwcIveDc75NuxnzoY14pKC+WLYDzE0MaALra4i/tI=</web:Signature>
          <web:ContractVersion>340</web:ContractVersion>
       </soapenv:Header>
       <soapenv:Body>
              <ns0:GetAvailabilityRequest xmlns:ns0 = "http://schemas.navitaire.com/WebServices/ServiceContracts/BookingService">
                       <ns1:TripAvailabilityRequest xmlns:ns1 = "http://schemas.navitaire.com/WebServices/DataContracts/Booking">
                                 <ns1:AvailabilityRequests>
                                          <ns1:AvailabilityRequest>
                                                    <ns1:DepartureStation>AMS</ns1:DepartureStation>
                                                    <ns1:ArrivalStation>CTA</ns1:ArrivalStation>
                                                    <ns1:BeginDate>2013-07-13T00:00:00</ns1:BeginDate>
                                                    <ns1:EndDate>2013-07-13T00:00:00</ns1:EndDate>
                                                    <ns1:CarrierCode>HV</ns1:CarrierCode>
                                                    <ns1:FlightNumber> 547</ns1:FlightNumber>
                                                    <ns1:FlightType>All</ns1:FlightType>
                                                    <ns1:PaxCount>1</ns1:PaxCount>
                                                    <ns1:Dow>Daily</ns1:Dow>
                                                    <ns1:CurrencyCode>EUR</ns1:CurrencyCode>
                                                    <ns1:DisplayCurrencyCode>EUR</ns1:DisplayCurrencyCode>
                                                    <!--ns1:SourceOrganization>COO</ns1:SourceOrganization-->
                                                    <ns1:MaximumConnectingFlights>0</ns1:MaximumConnectingFlights>
                                                    <ns1:AvailabilityFilter>Default</ns1:AvailabilityFilter>
                                                    <ns1:ProductClassCode>NG</ns1:ProductClassCode>
                                                    <ns1:SSRCollectionsMode>None</ns1:SSRCollectionsMode>
                                                    <ns1:InboundOutbound>Both</ns1:InboundOutbound>
                                                    <ns1:NightsStay>0</ns1:NightsStay>
                                                    <ns1:IncludeAllotments>true</ns1:IncludeAllotments>
                                                    <ns1:FareTypes>
                                                              <ns2:string xmlns:ns2 = "http://schemas.microsoft.com/2003/10/Serialization/Arrays">T</ns2:string>
                                                    </ns1:FareTypes>
                                                    <ns1:PaxPriceTypes>
                                                              <ns1:PaxPriceType>
                                                                       <ns1:PaxType>ADT</ns1:PaxType>
                                                              </ns1:PaxPriceType>
                                                    </ns1:PaxPriceTypes>
                                                    <ns1:JourneySortKeys>
                                                              <ns2:JourneySortKey xmlns:ns2 = "http://schemas.navitaire.com/WebServices/DataContracts/Common/Enumerations">EarliestDeparture</ns2:JourneySortKey>
                                                    </ns1:JourneySortKeys>
                                                    <ns1:IncludeTaxesAndFees>false</ns1:IncludeTaxesAndFees>
                                                    <ns1:FareRuleFilter>Default</ns1:FareRuleFilter>
                                                    <ns1:LoyaltyFilter>MonetaryOnly</ns1:LoyaltyFilter>
                                                    <ns1:TravelClassCodeList>
                                                              <ns2:string xmlns:ns2 = "http://schemas.microsoft.com/2003/10/Serialization/Arrays">Y</ns2:string>
                                                    </ns1:TravelClassCodeList>
                                          </ns1:AvailabilityRequest>
                                 </ns1:AvailabilityRequests>
                                 <ns1:LoyaltyFilter>MonetaryOnly</ns1:LoyaltyFilter>
                       </ns1:TripAvailabilityRequest>
              </ns0:GetAvailabilityRequest>
       </soapenv:Body>
    </soapenv:Envelope>';
    begin
      for r_avy in c_avy (xmltype(l_response)) loop
        dbms_output.put_line ( 'Departure ' || r_avy.departure || ' Flightno. ' || r_avy.flightnr );
      end loop;
    end;
    Indeed, you don't need an intermediate table for this requirement. However, and depending on your db version, storing the XML in a binary XMLType table may improve performance dramatically.
    For small contents, you probably won't see a difference between the two approaches, but just so you know in case you have to deal with big XMLs in the future.

  • Why don't standard XPath functions work in XSLT?

    I'm having a lot of trouble trying to do some simple string processing in XSLT. What I would like to do is make selection using the standard xpath functions defined by the w3c. I'm using this as my cheat sheet:
    http://w3schools.com/xpath/xpath_functions.asp
    I've tried the default XSLT parser that comes with Java, the latest distro of Xalan and the latest distro of Saxon. Nothing seems to recognize the fn namespace:
    xmlns:fn="http://www.w3.org/2005/02/xpath-functions"
    In particular, I'm trying to use the tokenize(string, regex) function. Only Xalan seems to support this at all, only recognizes {http://xml.apache.org/xalan}tokenize, and it is treating the regex as a literal.
    This is very frustrating. Is it possible to get the standard Xpath functions to work for XSLT?

    How did you get it to work with Saxon? I have saxon9he.jar on my classpath. When I try to transform this:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        xmlns:src="http://xml.kitfox.com/schema/game/tileWorld/textTable"
        xmlns:xalan="http://xml.apache.org/xalan"
        xmlns:fn="http://www.w3.org/2005/02/xpath-functions"
        version="1.0">
        <xsl:output method="text"/>
    <xsl:template match="/">
        <xsl:for-each select="fn:tokenize('a b c', '\s+')">
            "<xsl:value-of select="."/>"
        </xsl:for-each>
    </xsl:template>
    </xsl:stylesheet>I get the error
    Error on line 100
      Cannot find a matching 2-argument function named
      {http://www.w3.org/2005/02/xpath-functions}tokenize()Is there some other jar you need to include to get http://www.w3.org/2005/02/xpath-functions to resolve?

  • Why wont the spell check function work in a fillable form? Please help deadline looming.

    Spell check wont work. Have read through various internet help solutions but no luck so far.
    I have windows 7 64 bit.
    The forms are on a CD-Rom (from about 10 years ago) but I have up to Adobe date software on my PC.
    Edit-Preferences-Spelling shows I have English United Kingdom selected and the check box, check spelling whilst typing is ticked.
    When I press F7 and start it finds nothing even though I have made deliberate mistakes to check if it's working.
    Any help would really be appreciated.
    Message was edited by: Awel-y-coed

    It's possible the author of the file disabled the spell-checking option for this field.

  • Why won't the Tabs function work (Open new window in a new tab instead)??

    My current problem is- - I'm running FF.32, and when I click on a link (in an email, article, webpage link... anything) it opens in the Current window... it doesn't open a new* window, or new tab (as selected)... it "closes" the current page and opens the clicked-on link or email... Unless* I right-click on it and Tell it to open in a new tab instead (but I have to right-click and tell it to do this). I don't think this is normal. What do I need to change..?

    I think it is Firefox's default setting to open links in the current tab unless the site forces the link to open in a new window, or you explicitly open the link in a new tab/window.
    You may need an extension like [https://addons.mozilla.org/en-US/firefox/addon/tab-mix-plus/ Tab Mix Plus] to open links like how you want.

  • Why wouldn't Wordpress Dashboard function properly with the latest Firefox update #17?

    My Dashboard for 2 websites have issues when running via Firefox. I get pages which are totally corrupted from what I usually get. What is going wrong with the update?

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!

  • Why the step-and-repeat function (command+d) isn't working in Illustrator CS5?

    Why the step-and-repeat function (command+d) isn't working in Illustrator CS5?
    I am trying this. Take an object, move it some inches on the right while holding the option key, so I duplicate it.
    Usually, I pressed on command+d to duplicate this action on and on (duplicate the object and moving it some inches away), but now it is not working.
    any idea?

    kwakoo,
    It may be time for the list:
    The following is a general list of things you may try when the issue is not in a specific file, and when it is not caused by issues with opening a file from external media. You may have tried/done some of them already; 1) and 2) are the easy ones for temporary strangenesses, and 3) and 4) are specifically aimed at possibly corrupt preferences); 5) is a list in itself, and 6) is the last resort.
    If possible/applicable, you should save current artwork first, of course.
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to at least 5 times);
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
    4) Move the folder (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible), for CS3 - CC you may find the folder here:
    https://helpx.adobe.com/illustrator/kb/preference-file-location-illustrator.html
    5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
    Even more seriously, you may:
    6) Uninstall (ticking the box to delete the preferences), run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • Why is my touch screen function not working when using facetime

    Why is my touch screen function not working when using facetime

    Hello megascones,
    After reviewing your post, it sounds like the screen is not responding to touch in one app. I would recommend that you read this article, it may be able to help the issue.
    If the screen on your iPhone, iPad, or iPod touch doesn't respond to touch - Apple Support
    Restart your device. If you can't restart, reset your device.
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • Why can't I get the average function work with empty cells?

    Why can't I get the average function work with empty cells?

    The thing that I am having a problem with is that I made a different form that calculates the average no matter how may of the cells have numbers or not and I didn't use an if function.  I have tried with this other form and and it calulates as if all the cells where being used.  I am using the [*] in both instances but it only works in the one I did earlier.

  • Why wouldn't "sudo reboot" work?

    This morning, as usual, I put my PowerBook to sleep at 8:29am, disconnected the power cord, unplugged the display and networking cables, and brought my PB to work, connecting it to the ethernet network and opening the lid. The display didn't turn on. I was able to ssh in via my trusty iPhone, and I typed "sudo reboot." The weird thing is that my PB didn't reboot (perhaps it just shut down?) See below at 9:10:49. Finally, at 9:13, I held the power key down to shut down.
    Does that give any insight into what might be happening? Why wouldn't a reboot work?
    Sep 11 08:29:08 Musa kernel[0]: System SafeSleep
    Sep 11 09:09:03 Musa com.apple.loginwindow[45]: launchctl start error: No such process
    Sep 11 09:09:05 Musa kernel[0]: mappinghibernateflush start
    Sep 11 09:09:05 Musa kernel[0]: mappinghibernateflush time: 376 ms
    Sep 11 09:09:05 Musa kernel[0]: hibernatepage_listsetall start
    Sep 11 09:09:05 Musa kernel[0]: removed hash, pca: 2176 pages
    Sep 11 09:09:05 Musa kernel[0]: hibernatepage_listsetall time: 276 ms
    Sep 11 09:09:05 Musa kernel[0]: pages 435427, wire 122930, act 208417, inact 6286, zf 1722, throt 0, could discard act 38159 inact 41724 purgeable 16189
    Sep 11 09:09:05 Musa kernel[0]: hibernatepage_listsetall found pageCount 339355
    Sep 11 09:09:05 Musa kernel[0]: IOHibernatePollerOpen, mlget_interruptsenabled 0
    Sep 11 09:09:05 Musa kernel[0]: IOHibernatePollerOpen(0)
    Sep 11 09:09:05 Musa kernel[0]: writing 338446 pages
    Sep 11 09:09:05 Musa kernel[0]: image1Size 312505344
    Sep 11 09:09:05 Musa kernel[0]: all time: 20809 ms, comp time: 7112 ms, deco time: 0 ms,
    Sep 11 09:09:05 Musa kernel[0]: image 745830912, uncompressed 1377361920 (336270), compressed 739405880 (53%), sum1 832ed62a, sum2 3eaac011
    Sep 11 09:09:05 Musa kernel[0]: hibernatewriteimage done(0)
    Sep 11 09:09:05 Musa kernel[0]: sleep
    Sep 11 09:09:05 Musa kernel[0]: System Wake
    Sep 11 09:09:05 Musa kernel[0]: Wake event 0020
    Sep 11 09:09:05 Musa kernel[0]: USB caused wake event (EHCI)
    Sep 11 09:09:05 Musa kernel[0]: UniNEnet::monitorLinkStatus - Link is up at 100 Mbps - Full Duplex (PHY regs 5,6:0x43e1,0x0005)
    Sep 11 09:09:07 dhcp-128-83-77-123 configd[14]: setting hostname to "dhcp-128-83-77-123.frit.utexas.edu"
    Sep 11 09:09:13 dhcp-128-83-77-123 airportd[2364]: Error: Apple80211Associate() failed -6
    Sep 11 09:09:18 dhcp-128-83-77-123 kernel[0]: AFPSleepWakeHandler: waking up
    Sep 11 09:09:21 dhcp-128-83-77-123 airportd[2364]: Could not find any preferred networks; trying broadcast requests..
    Sep 11 09:09:22 dhcp-128-83-77-123 airportd[2364]: Broadcast requests also failed..
    Sep 11 09:09:23 dhcp-128-83-77-123 airportd[2364]: Probing highest ranked networks via directed scan..
    Sep 11 09:10:25 dhcp-128-83-77-123 sshd[2384]: USER_PROCESS: 2386 ttys000
    Sep 11 09:10:48 dhcp-128-83-77-123 sudo[2400]: joey : TTY=ttys000 ; PWD=/Users/joey ; USER=root ; COMMAND=/sbin/reboot
    Sep 11 09:10:49 dhcp-128-83-77-123 reboot[2400]: rebooted by joey
    Sep 11 09:10:49 dhcp-128-83-77-123 reboot[2400]: SHUTDOWN_TIME: 1221142249 37848
    Sep 11 09:10:49 dhcp-128-83-77-123 mDNSResponder mDNSResponder-171.4 (Apr 20 2008 12:00:04)[17]: stopping
    Sep 11 09:10:49 dhcp-128-83-77-123 SystemStarter[40]: "/Library/StartupItems" failed sanity check: path was created after boot up
    Sep 11 09:13:07 localhost kernel[0]: Darwin Kernel Version 9.4.0: Mon Jun 9 19:36:17 PDT 2008; root:xnu-1228.5.20~1/RELEASE_PPC

    Have you tried booting holding the "s" key for Single User Mode? If it works at the prompt type, *fsck -fy* and press "return" it should do a disk repair. When that is finished press return again, then type reboot press return to get back to the Mac the way you know it.
    Do you have a backup you can try booting from? Another option is to use another Mac in Firewire target disk mode, so you can copy data from it.
    If you can get to your system, one way or the other, your log file indicates an issue with /Library/Startup Items, so the first troubleshooting step I'd take after fsck would be removing that folder to your desktop. It is usually empty by default so any items within you put there.
    -mj

  • Why is my BDC_CURSOR command not working to position the cursor?

    Why is my BDC_CURSOR command not working to position the cursor?  Here are the details regarding my issue.
    I am writing a BDC to mass delete routing material assignments using transaction CA02.  I am OK to navigate through the initial screen to go to the Header screen and from here I am OK to navigate to the Material Assignments screen.  But once here, I cannot get the BDC_CURSOR command to take me into the list.  Here are the commands I am using.  Please let me know what I may try differently.
    CA02 Material Assignment - Set position  <-- this resets list of materials to correct position
      PERFORM bdc_dynpro      USING 'SAPLCZDI'   '1010'.
      PERFORM bdc_field       USING 'BDC_CURSOR'  'RC27X-ENTRY_ACT'.
      PERFORM bdc_field       USING 'BDC_OKCODE'   '=ENT1'.
      PERFORM bdc_field       USING 'RC27X-ENTRY_ACT'  c_position.
    CA02 Material Assignment - Delete
      PERFORM bdc_dynpro      USING 'SAPLCZDI'   '1010'.
      PERFORM bdc_field       USING 'BDC_CURSOR'  'MAPL-MATNR(01)'.    <-- this is not working to set the cursor into the list
      PERFORM bdc_field       USING 'BDC_OKCODE'  '=LOE'.             " trash can
      PERFORM bdc_field       USING 'RC27X-ENTRY_ACT'  c_position.
    CA02 Material Assignment - Green Check OK
      PERFORM bdc_dynpro      USING 'SAPLCZDI'   '1010'.
      PERFORM bdc_field       USING 'BDC_CURSOR'  'RC27X-ENTRY_ACT'.
      PERFORM bdc_field       USING 'BDC_OKCODE'   '=BACK'.            " check mark
      PERFORM bdc_field       USING 'RC27X-ENTRY_ACT'  c_position.

    Thank you for your reply.
    I had used SM35 to record.  However, I was not aware of the "create program" feature.  I had commented out a section from my previous post which I have now added back (latest code below).  But it still did not resolve the issue.
    When I execute with dismode = 'N', I get back error message "No batch input data for screen SAPLCZDI 1010".
    When I execute with dismode = 'E' (only show dynpros when error), it stops at the material selection screen without placing my cursor in the list.  I can then MANUALLY click to set the cursor position in the list, MANUALLY click the trashcan, it then uses my BDC command to respond to the popup asking "Do you want to delete", still leaving me at the material selection screen.  I can then MANUALLY click the green check (or enter), then it continues with the BDC to go back to the previous screen, and saves.  But it still will not place my cursor in the material selection list (SAPLCZDI screen 1010).
    Here is code used.  It is the second section of code labeled "CA02 Material Assignment - Delete" that is not working.
    CA02 Material Assignment - Set position
    this code functions to position the desired material to first in screen list
      PERFORM bdc_dynpro      USING 'SAPLCZDI' '1010'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'RC27X-ENTRY_ACT'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=ENT1'.
      PERFORM bdc_field       USING 'RC27X-ENTRY_ACT'
                                     c_position.
    CA02 Material Assignment - Delete
      PERFORM bdc_dynpro      USING 'SAPLCZDI' '1010'.
      PERFORM bdc_field       USING 'BDC_CURSOR' 
                                    'MAPL-MATNR(01)'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=LOE'.             " trash can
      PERFORM bdc_field       USING 'RC27X-ENTRY_ACT'
                                     c_position.
    Acknowledge Pop-Up Screen
      PERFORM bdc_dynpro      USING 'SAPLSPO1' '0100'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=YES'.
    CA02 Material Assignment - Green Check OK
      PERFORM bdc_dynpro      USING 'SAPLCZDI' '1010'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'RC27X-ENTRY_ACT'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=BACK'.            " check mark
      PERFORM bdc_field       USING 'RC27X-ENTRY_ACT'
                                     c_position.

  • Why is my Photo Booth not working now that I installed OS X Mountain Lion?

    I just updated to the OS X Mountain Lion and now my Photo Booth will not work. If I try and open Photo Booth it says "You can't use this version of the application "Photo Booth" with this version of OS X. You have "Photo Booth" 3.0.3." Why wouldn't the new software include a new version of Photo Booth?

    Photo Booth version 5 came with Mountain Lion. Try running Software Update to see if the program will update.
    If you can't find it you may have to try reinstalling Mountain Lion.

  • How E-mail functionality works with Interaction Center Webclient

    Dear all,
    How the E-mail functionality works with IC Webclient, How can we can send and receive E-mails to customers and internal employees through Interaction Center.
    Does SMTP server required to be involved for this functionality or External Telephony system Vendor iprovides this function.
    What is ERMS? and why we use this in IC Webclient.
    Please educate me to understand the concept of E-mail functionality in IC Webclient.
    Your help will be highly appreciated.
    Best wishes,
    Raghu ram.

    Hello Raghu ram,
    The SAP CRM Interaction Center uses a concept of a shared email inbox for agent teams. This allows customers to communicate with your Interaction Center by sending emails to a corporate email address like service@yourcompany. You typically group your agents together into queues based on a particular product or skillset. Using this concept, customer's don't send emails directly to a specifc agent's email address, and agent's don't send emails directly to each other. That would rather still be done with groupware products like Microsoft Outlook.
    You have three options for routing emails into the CRM Interaction Center. You can push emails real-time to agents via a screen pop using third-party contact-center software like SAP BCM, Genesys, Avaya, and so on. Or there are two options for sending emails into the agent inbox, where the emails are processed in offline mode by agents, technicians, and engineers. You can route emails directly to a specific inbox group/queue by using different emails addreses. Or, you can leverage ERMS to decide where which agents to route the email to based on business rules.
    Please see the various notes mentioned above that appear in the sticky note on top of this forum. For example, there is a nice 85 page FAQ document on the Agent Inbox in note 882653. And ERMS note 940882 is also very useful.
    Regards,
    John

  • Why I cannot use search function in my apple store? I use Ipad 3 and it is the latest software

    Why I cannot use search function in the apple store on my ipad?

    Nobody here could possibly answer your question as presented. Have you tried any troubleshooting steps at all?
    Quit the app store completely and reboot the iPad. Go to the home screen first by tapping the home button. Double tap the home button and the recents tray will appear with all of your recent apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Tap the home button or anywhere above the task bar.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
    If that doesn't work ... A few more details from you might help you get your problem resolved.

Maybe you are looking for

  • Alternative to READ table

    Dear all,   We can not use READ TABLE with LOGICAL  operators like  LT, LE,GT,GE .......... Is there any alternative to read a particular line  from an internal table  with  the logical operators...... Thanks in advance...............

  • Load XML and edit

    Hi I am new to Flex and AS3 but I have some experience with XML, XSLT, XPATH, VB etc.. I am having trouble just loading the XML. How do I load an external XML file so I can edit it? This is what I have so far: <mx:Script> <![CDATA[ var myxml = 'xml/r

  • Harddrive Setup CS6 - 1 SSD, 2 Velociraptors, 1 1TB WD Caviar

    Hi guys, I've been doing a lot of research and I've been finding conflicting data on how to set up my harddrives for optimal workflow. I will be mostly using Premiere Pro and After Effects. My current computer is as follows i7 3770k Overclocked stabl

  • Some questions about eDirectory event service.

    Hello Everyone, I did a collector application which is based on eDirectory event service and Novell LDAP library for Java. We use it to monitor events and fetch logs of activities inside the server. The question is that some events defined in event s

  • Cannot quit Firefox until another user account owner also quits his Firefox

    Admin user can't quit his Firefox until user (having only Standard privileges) quits his Firefox. What I can see is that both users are utilizing same Firefox process I assume. Mac 10.8.5. Situation was same also on 10.7 (did upgrade from 10.7 -> 10.