Calendar's before(Object when) method

Can anyone shed some light on this subject?
Why is it permissible to call cal.before(myTextArea) or cal.after("Hello") ???
The API even defines Object when as a Calendar instance! But this isn't enforced in the method signature!
What's most alarming is the fact that instances of the Date class generate a false result regardless of it's relationship in time to the Calendar instance.
Anyone can make a simple test case and see this behavior for themselves...
Can anyone explain this?

The source code for the Calendar class returns false if you don't pass something that's an instance of Calendar. The only reason I can think of for this design is that they meant for Calendar to be extended (it is an abstract class). And a subclass that implements a particular calendar might need to compare a particular date to something totally different. Like what? I don't know.

Similar Messages

  • Detected use of SPRequest for previously closed SPWeb object. Please close SPWeb objects when you are done with all objects obtained from them, but not before.

    I have develop a custom solution for SharePoint Foundation 2010 that provide PDF documents filled with lists data and attachemnts.
    If the Customer run the solution to get the PDF we found in the ULS log following entry:
    03/07/2014 12:07:20.69  w3wp.exe (0x0B10) 0x18EC 
    SharePoint Foundation General                        90hv Unexpected 
    Detected use of SPRequest for previously closed SPWeb object.  Please close SPWeb objects when you are done with all objects obtained from them, but not before.  Stack trace:    at Microsoft.SharePoint.Utilities.SPUtility.GetLocalizedString(String
    source, String defaultResourceFile, UInt32 language)     at Microsoft.SharePoint.SPFieldCollection.get_DisplayNameDict()     at Microsoft.SharePoint.SPFieldCollection.GetFieldByDisplayName(String strDisplayName, Boolean
    bThrowException)     at Microsoft.SharePoint.SPFieldCollection.GetField(String strName, Boolean bThrowException)     at Microsoft.SharePoint.SPListItem.GetValue(String strName, Boolean bThrowException)    
    at Microsoft.SharePoint.SPListItem.get_Item(String fieldName)    
    at ECM_PDF_Excel.ListClicked.GetECOs(Dictionary`2 searchedEC... e918ecd4-7ed6-44bb-9e4f-d764586a2f79 ...RECONumber)    
    at ECM_PDF_Excel.PDF.Create()     at ECM_PDF_Excel.Layouts.ECM_PDF_Excel.ECMPDFExcel.ProcessRequest(HttpContext context)     at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()    
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)     at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)     at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext
    context, AsyncCallback cb)     at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr
    managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 f... e918ecd4-7ed6-44bb-9e4f-d764586a2f79
    03/07/2014 12:07:20.69* w3wp.exe (0x0B10)                        0x18EC SharePoint Foundation        
     General                        90hv Unexpected ...lags)     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr
    managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32
    flags)     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)   e918ecd4-7ed6-44bb-9e4f-d764586a2f79
    We check the method
            /// <summary>
            /// Returns the ECOs in a Dictionary: ECO Number, Suffix
            /// </summary>
            /// <param name="searchedECRECONumber">Dictionary, with the search ECR/ECO Number</param>
            /// <returns>Dictionary ECO Number, Suffix</returns>
            public static Dictionary<string, string> GetECOs(Dictionary<String, String> searchedECRECONumber)
                SPSite siteContx = SPContext.Current.Site;
                SPWeb webContx = siteContx.RootWeb;
                Dictionary<string, string> listECOs = new Dictionary<string, string>();
                string ecoNumber = string.Empty;
                string ecoSuffix = string.Empty;
                if (searchedECRECONumber.ContainsKey(ConstantData.listClickedECONumberDictionary))
                    ecoNumber = searchedECRECONumber[ConstantData.listClickedECONumberDictionary];
                else
                    return listECOs;
                // Ich suche die ECO Nummber bei gegebener ECR Nummer
                // Ich brauche den Listen Namen der in den Spalten Realtion ECR Number & Realtion ECO Number einen Wert hat
                SPList dataList = webContx.Lists.TryGetList(ConstantData.listName_ECMExcelTemplateDataLists);
                if (dataList != null)
                    SPListItemCollection dataListItems = webContx.Lists.TryGetList(ConstantData.listName_ECMExcelTemplateDataLists).Items;
                    foreach (SPItem dataListItem in dataListItems)
                        Object relationECRColumnName = (String)dataListItem[ConstantData.listFieldName_ECMExcelTemplateDataLists_RelationECRNumber];
                        Object relationECOColumnName = (String)dataListItem[ConstantData.listFieldName_ECMExcelTemplateDataLists_RelationECONumber];
                        if (relationECRColumnName != null && relationECOColumnName != null)
                            // Ich habe den Listennamen gefunden in dem Spalten Realtion ECR Number & Realtion ECO Number einen Wert haben
                            string searchedListName = (String)dataListItem[ConstantData.listFieldName_ECMExcelTemplateDataLists_Title];
                            string searchedECOSuffixColumnName = (String)dataListItem[ConstantData.listFieldName_ECMExcelTemplateDataLists_RelationECONumber];
                            // Get the List from variable listName
                            listECOs = GetECOsDictionary(searchedListName, searchedECOSuffixColumnName, ecoNumber, relationECOColumnName);
                return listECOs;
    - What take we wrong?
    - How can we avoid this message?
    Regards
    Jonnyenglisch
    Ralf Happe - Christobal Colón N° 1 ES 07670 Portocolom Tel.: +34 6961 0375 7 @: [email protected] Skype: ralfhappe msm: [email protected] www.ralfhappe.com ralfhappe | soluciónes

    Here the code of GetECOsDictionary:
             /// <summary>
            /// Fill the dicionary with related ECO Numbers/Suffix
            /// </summary>
            /// <param name="searchedListName">String: the name of the list</param>
            /// <param name="ecoNumber">String: the ECO Number</param>
            /// <param name="relationECOColumnName"></param>
            /// <returns>Dictionary</returns>
            private static Dictionary<string, string> GetECOsDictionary(string searchedListName, string ecoNumber, Object relationECOColumnName)
                SPSite siteContx = SPContext.Current.Site;
                SPWeb webContx = siteContx.RootWeb;
                Dictionary<string, string> listECOs = new Dictionary<string, string>();
                SPQuery oQuery = new SPQuery();
                oQuery.Query = "<OrderBy>" +
                                    "<FieldRef Name='" + "Title" + "' Ascending='TRUE'></FieldRef>"
    +
                                "</OrderBy>" +
                                "<Where><BeginsWith>" +
                                    "<FieldRef Name='" + "Title" + "'/>" +
                                    "<Value Type='Text'>" + ecoNumber + "</Value>" +
                                "</BeginsWith></Where>";
                SPListItemCollection searchedListItems = webContx.Lists.TryGetList(searchedListName).GetItems(oQuery);
                foreach (SPItem searchedListItem in searchedListItems)
                    // Wenn die geclickte ECO Nummer gleich der Listen ECO Nummer ist dann setze die gefundene ECO Nummer
                    string foundECONumber = (String)searchedListItem[relationECOColumnName.ToString()];
                    string[] splitECONumber = foundECONumber.Split(ConstantData.splitBy_Slash);
                    if (ecoNumber == splitECONumber[0])
                        ecoNumber = splitECONumber[0];
                        if (splitECONumber.Count() == 1)
                            listECOs.Add(foundECONumber, "0");
                        if (splitECONumber.Count() > 1)
                            listECOs.Add(foundECONumber, splitECONumber[1]);
                return listECOs;
    Ralf Happe - Christobal Colón N° 1 ES 07670 Portocolom Tel.: +34 6961 0375 7 @: [email protected] Skype: ralfhappe msm: [email protected] www.ralfhappe.com ralfhappe | soluciónes

  • Subsequent to Yosemite or updates, my repeating calendar events can not be updated as before. When I update an event (of the repeating event) on my MacBook Pro; its reverts back when I shut it down and come back, and doesn't update other devices?

    Subsequent to Yosemite or updates, my repeating calendar events can not be updated as before. When I update an event (of a repeating event) on my MacBook Pro; its reverts back when I shut it down and come back, and doesn't update other devices?
    Has anyone experienced this and does anyone know a fix?

    This is incredibly frustrating for me too!
    I have a repeated monthly event for a discount at a store that is offered on the first Tuesday of every month. So I have a repeated event taking place on the 1st of every month. In the previous month I reset next month's date from the 1st to whatever date falls on the first Tuesday.
    But ever since upgrading to Yosemite, I am experiencing the same problem as the original person who posted. The date saves on my calendar but does not sync to my iCloud. When I reboot the computer, the date reverts back to the 1st.
    I'm thankful I don't have any events that needed to be tracked because ALL of my previous changes in the past have reverted back to the 1st of the month. I would have been in the same terrible situation as yaz999 in having to manually change every event in previous months.
    Why hasn't this bug been fixed yet???!!!

  • How can I set a value in a field before create when a New button is clicked

    Hi,
    I am using
    JDeveloper 10.1.3.1.0.3984 and
    JHeadstart 10.1.3.1 release 10.1.3.1.26
    I have one group and there is a detail group under that group.
    From main group to detail group there are 3 field relating those groups.
    field1
    field2
    fieldSEQ (auto-generated by database trigger)
    These 3 fields are PK.
    In the detail group, there is a New button. So, when the New button is clicked, it tries to create the record with those 3 fields value as those are coming from main group. As a result it's giving the duplicate error as that record already exists in the table.
    But I don't want to create the record with that SEQ as that will be created in the trigger.
    How can I set the SEQ temporarily any no. (-1) before create when the New button is clicked?
    Can anybody help?
    Thanks
    Syed Jabbar
    University of Windsor
    Windsor, ON, Canada

    Hello Syad,
    What I would suggest is setting the sequence number at the creation of the entity object (so in the create() method) by using the database sequence. This way it will always be unique.
    So something like:
    protected void create(AttributeList AttributeList) {
    super.create(AttributeList);
    SequenceImpl sequence =
    new SequenceImpl("KCP_SEQ", getDBTransaction());
    setFieldSeq( sequence.getSequenceNumber());
    If this still does not solve it: please go to the ADF Forum since this problem is an ADF problem, not a JHeadstart problem.
    Regards,
    Evert-Jan de Bruin
    JHeadstart Team.

  • What happens to objects when you redeclare a new object?

    ... and is there a more proper way of "deleting" them from memory, or is it a case of waiting until the garbage collector in java sweeps them up?
    i.e.
    private CustomObjectType myObject;
    public final void myMethod() {
    myObject = new CustomObjectType("I am the first object");
    // do some temporary work with myObject
    /// now I need to do more work with another temporary object, so just replace the "link"
    myObject = new CustomObjectType("I am a second object");
    Is it better to declare new variables to hold this second object?
    Should a person declare the object to be null when no longer required?
    Do I ever need to worry about this, does the garbage collector sort out references for me?
    (Please go easy, still learning and don't really need to know this right now but I'm curious! :)

    What happens to objects when you redeclare a new object?If you go:
    Dog myDog = new Dog();
    and then go:
    Dog myDog = new Dog();
    you are replacing the first reference to Dog() with another one. I don't think it would make sense to do this because it is redundant.
    But if you go:
    static Dog myDog = new Dog();
    and then go:
    static Dog myDog = new Dog();
    then then second one will be ignored because the first one already assigned Dog() to myDog.. so the second one won't replace the first one - it will just be ignored or generate an error.
    is there a more proper way of "deleting" them from memory, or is it a case of waiting until the garbage collector in java sweeps them up?In c and c++ you have to think about when the life of an object ends and destroy the object to prevent a memory leak. But in Java the garbage collector takes this task on if a certain amount of memory is used. If you don't use a lot of memory the gc won't bother and the objects will be destroyed when you exit the program.
    You can use:
    finalize(){
    // insert code to be executed before the gc cleans up
    and if you call System.gc() (which you probably won't need to do) then the code in the finalize() method will run first e.g. to erase a picture from the screen before collecting the object.
    private CustomObjectType myObject;public final void myMethod() {
    myObject = new CustomObjectType("I am the first object");
    // do some temporary work with myObject
    /// now I need to do more work with another temporary object, so just replace the "link"
    myObject = new CustomObjectType("I am a second object");
    you could do:
    public class CustomObjectType{
        //this constructs an instance of the class using a string of your choice
        CustomObjectType(String str) {
            System.out.println(str);
        static void main(String[] args){
            CustomObjectType myObject = new CustomObjectType("I am the first object");//  This sends the constructor the string you want it to print
            CustomObjectType myObject2 = new CustomObjectType("I am the second object");//  This sends the constructor the string you want it to print
    }Bruce eckel wrote Thinking in Java 4th edition considered to be the best book on Java because of how much depth he goes into, although some recommend you should have atleast basic programming knowledge and a committment to learn to get through the book.
    I just started it and it helps a lot. Maybe u could borrow it from the library.. good luck!

  • ActiveX Object Creation method to pass to an Invoke Node

    Hi!
    I'm trying to optimize the way in which I use MathCAD from LabVIEW.  One of my VIs is having really poor performance in terms of execution speed and memory usage.
    My VI converts a 2D LabVIEW array of doubles into a 2d Mathcad matrix and puts that matrix into a Mathcad worksheet.  The issue is that you do not just pass the 2d array of doubles into the SetValue invoke node as a variant.  You have to create a Mathcad.MatrixValue object, and then pass the object to the SetValue invoke node.
    Here is the example code provided in the Mathcad developers manual:
    SetElement Method
    var m = CreateObject("Mathcad.MatrixValue");
    for(row = 49; row >=
    0; --row)
    for(col = 9; col >= 0;
    --col)
    var val = row + col;
    m.SetElement(row, col, val);
    Here is my implimentation in LabVIEW:
    Here is my SubVI
     Here is my main VI:
    My SubVI is running out of memory and throwing the following error:
     Exception occured in mplrun: Exception of type 'System.OutOfMemoryException' was thrown. in NL SubVIs Library.lvlib:Convert LabVIEW 2d Array to MathCAD Variant Matrix (SubVI).vi->test.vi
    It doesn't always throw the error.  When I watch the memory consumption of LabVIEW it goes up to about 250k and then drops to 90k and slowly builds back up to 250k.  Initialy starting the code takes awhile too on my computer.  From start of VI until first loop iteration it is about 20 seconds, and then about 150-250ms after that.  Not very good performance.
    Any advice on how to optimize this code would be appreciated.  I'm not really sure when I should close some of these references.  I tried closing the reference in my converting SubVI, but I guess that destroys it so MathCAD can't use it.
    I'm in LabVIEW 2009.  Any help is appreciated. 
    Thanks for your time and input!
    -Nic

    I'm not sure this will solve your problems but it should help.  You need to close ALL of your references to Mathcad objects when you're done using them.  That means you need to close the reference to the Mathcad MatrixValue after you pass it to Mathcad (to do this you'll need to convert it back from a variant, or pass the reference directly out of your subVI), and you should also close the reference to the matrix that you get back after you've converted it to a LabVIEW array.  Otherwise you'll continuously allocate more and more memory rather than allowing it to be reused.
    Less importantly, you should also close your references to IMathcadWorksheets and IMathcadWorksheet (but since you only open them once it's not causing your memory problems).

  • More than one entity found for a single-object find method

    Hi everyone...
    I have this error when my webservice is running..I don't know what it means and what would be the best solution..
    <pns:message>More than one entity found for a single-object find method.</pns:message>
    it throws an Exception..
    Thanks!

    = More than one row found in a DB with the "unique" key supplied...
    Your method is returning an object where it should return a collection ?
    Enjoy

  • Need to Hide Objects Default method in Approval Task

    Dear All,
      I have a requirement, where I need to hide the default method that is getting displayed in the approval task of the workflow.
    The employee object and Trip objects default method are getting displayed in the preview of approval task. And same is getting displayed in the universal worklist in the columns of attachments.
      There is an option in univesal worklist configuration where we can remove the attachments for display.
      But to our requirement , only certain objects and attachments should be shown in portal and R/3 of the approval task.We need to restrict the employee object and trip object which is shown in objects and attachments column of the standard descision task.
    Let me have any suggestion on this.
    Thanks in advance.
    regards,
    Sabari Prabhu.

    Hi,
    I took a look into this same issue some time ago, and at least I didn't find a way to restrict only certain attachments for displaying in UWL. If the attachments cannot be hidden, I have tried to avoid using the business objects as much as possible. For example the employee object is many times binded to the task only because you want to display certain attributes in the task description. Then I have just binded the needed attributes into separate container elements. Of course this will not solve all the cases.
    Then other useful options are that you change the default method, and this method is implemented in a way that it either does not display anything, or displays something (maybe just an error message etc.) that makes more sense than the default method that SAP delivers. Or then you can implement for example your own web dynpro application that will be launched when you click the attachment.
    Regards,
    Karri

  • Reader XI IE 8 plugin displays "Expected a dict object" when opening a FrameMaker 9.0.4 PDF

    We have PDF manuals that are created with FrameMaker 9.0.4.  Since we updated Adobe Reader to version XI users have been receiving "Expected a dict object" when opening the PDF manual using PDF Reader XI plugin in IE 8.   The manual does open if we disable the plugin.  The PDF manual is located at: http://www.otda.ny.gov/resources/fiscal-reference/FRM-3.pdf
    Is this a problem with the plugin or with FrameMaker?  We already tried Repairing the Adobe Reader Installation and there are no updates for FrameMaker

    This message usually relates to uploading your PDF file as ascii or text, because, although it may look like a text file, it is really binary. 
    Select "binary" before uploading and it should work perfectly

  • Error:Work item 000000001099:Object FLOWITEM method EXECUTE cannot be execu

    Hello experts,
    I have created a Sales order workflow whr after creation sales order will go to 1 person inbox and he will check the SO thoroughly and thn i hv added a user decision step for APPROVED or REJECTED for same person.
    Now after creation of sales order it goin to the person inbox for checkin SO but when he is saving it thn decision screen with button APPROVED or REJCTED is not coming and m getting error :Work item 000000001099: Object FLOWITEM method EXECUTE cannot be executed. and error: Error when processing node '0000000024' (ParForEach index 000000)
    i checked the agent mapping for both step....and thr is no error in agent mappin...in both steps i have mapped same rule with responsibility IDs
    PLz suggest urgently wht can be cause of error.
    Regards
    Nitin

    Hi Nitin,
    I think this seems to be an agent assignment issue.
    To debug this issue go to the workflow log and check if the agents are correctly being picked by the rule or not. Simulate the rule and check for the agents being picked.
    In the workflow log, check the agent for the User Decision step. If there is no agent found then there might be some issue with the data passed to rule.
    Hope this helps!
    Regards,
    Saumya

  • BPM error: exception cx_merge_split occured,object FLOWITEM method EXECUTE

    Hi Guys
    I am working on a interface involving BPM.....
    I am facing this problem while executing the interface...
    I am getting error texts as below:
    exception cx_merge_split occured,
    object FLOWITEM method EXECUTE
    I am trying to fix it....Please provide any iputs on this...
    Thanx in adavance.

    Is your Transformation step designed for multimapping (n:1 or 1:n)?
    If yes the payload seems to be incorrect....did you check the working of your mapping (MM/ IM) using the expected payload structure...
    the transformation step in BPM has been given exception as System Error
    There is one block step before the transformation step...in which exception is not given...?can this be the cause??
    Does it mean...you have a Block step in your BPM and your Transformation Step is placed in it....the Block should have an exception handling branch...have the exception handling logic as per your need....the Block step needs to use Exception Handler...same Handler to be used in the Transformation Step's System Error section.
    Press F7 and check if your BPM is giving any warning message.
    Regards,
    Abhishek.

  • WF Error: Object CL_HRASR00_WF_COMPONENTS method WI_EXECUTION_VIA_R3_INBOX

    I am using the standard task 17900100 to allow a manager to 'edit' an adobe form (not just approve or reject). The issue below does not occur every time but sometimes there is an error in the workflow log. The error message is as follows:
    Object CL_HRASR00_WF_COMPONENTS method WI_EXECUTION_VIA_R3_INBOX cannot be executed.
    I can see in the log that the agent was selected correctly but the task has not been sent to the agent. When I use transaction SWPR to restart the workflow (without making any changes), it restarts just fine and the task is sent to the agent's UWL inbox.
    Does anyone know why I may be getting this error and how to prevent it? Could be related to a timing issue since it only occurs occassionally and not for every WF instance?
    Thanks,
    Derrick

    Hi Derrick,
    Did you find any solution to this issue? I am also facing the same issue.
    I checked in application log SLG1 and the following error is logged:
    Person is already being processed by user 01CPxxxxxxxx. (message number PBAS_SERVICE001)
    However, this is happenning in some occassions but not everytime I execute 'Send' button in UWL workitem (Task TS33700021).
    Regards,
    Sumit

  • PO release workflow - Object FLOWITEM method EXECUTE  - WL821

    Hello,
    I have copied and slightly mofidified std wf WS20000075 (BUS2012). It was successfully tested in DEV.
    Then, after transport to QA, I get the following error in tc SWEL:
    Work item 000000001111: Object FLOWITEM method EXECUTE cannot be executed
    Error when processing node '0000000093' (ParForEach index 000000)
    Agent determination for step '0000000093' failed
    Workflow WS90100001 no. 000000001111 activity 0000000093 role 'AC20000027': No agent found
    Resolution of rule AC20000027 for task TS20000166: no agent found
    Error when processing node '0000000093' (ParForEach index 000000)
    Error when creating a component of type 'Schritt'
    Error when creating a work item
    The top error is detailled as below:
    Work item 000000001111: Object FLOWITEM method EXECUTE cannot be executed
        Message no. WL821
    Any clue on how to fix this this error?
    Best regards,
    Peter

    Hi Rick
    I have same issue and following are details.
    1. I have copied standard workflow and task 166 is throwing error.
    "Resolution of rule AC20000027 for task TS20000166: no agent found"
    2. I have recreated the step but still the workflow is throwing error.
    3. If I execute the rule individually (PFAC_DIS) with a specific PO then the rule works fine. The rule executes the below mentioned exit successfully.
    4. I am using exit to determine the agent, the workflow works fine if I don't use the exit. The exit is EXIT_SAPLEBNF_005. I am just pulling the agent from a ztable.
    Please advise if you can help as I have not seen anyone answering.
    by the way irrespective of the explicit rule update in the workflow the step executes AC20000027 by default.
    Can you please help asap. Thank you.
    regards
    barin

  • Object CL_SWF_XI_MSG_BROKER method CALL_TRANSFORMATION cannot be executed

    Hi all,
    I am getting error in one of the BPM mapping steps.
    The error description is as below:
    Error handling for work item 000000013183
    Work item 000000013186: Object CL_SWF_XI_MSG_BROKER method CALL_TRANSFORMATION cannot be executed
    com/sap/xi/tf/_MM_352_Validated_To_353_File_com.sap.aii.utilxi.misc.api.BaseRuntimeExceptionRunti
    The mapping works fine for a set of data.
    But when the validations fail for another set of data it gives the above error.
    Please let me know if you have info on this error.
    Best regards,
    Thangesh

    Hi,
    The scenario is File<->XI->IDoc.
    In BPM, we do validations & if the validation fails, the file is sent back to the Filerserver.
    The File format is a nested structure.
    The File format is as below:
       >Header record
       >Customer
       >Address
       >Address
       >Partner details
            >>Address
            >>Address
       >Partner details 
           >>Address
           >>Address
       >Trailer record
    <b>The mapping works fine for a set of data:</b>
    The mapping works fine if the File structure contains single record per structure/node.
    <b>But the validations fail for another set of data & it gives the above error:</b>
    But the mapping fails if the File structure is complex or nested structure. i.e., more than one record per structure.
    could you kindly suggest how to handle this error?
    best regards,
    Thangesh

  • Detected use of SPRequest for previously closed SPWeb object. Please close SPWeb objects when you are done with all objects obtained from them

    HI
    i am keep seeing this message in ulsviewer of splogs in a webfront end server
    Detected use of SPRequest for previously closed SPWeb object.  Please close SPWeb objects when you are done with all objects obtained from them, but not before.  Stack trace:  
    at Microsoft.SharePoint.SPWeb.get_Exists()   
    at Microsoft.SharePoint.WebControls.CssLink.OnLoad(EventArgs e)   
    at System.Web.UI.Control.LoadRecursive()   
    at System.Web.UI.Control.LoadRecursive()   
    at System.Web.UI.Control.LoadRecursive()   
    at System.Web.UI.Control.LoadRecursive()   
    at System.Web.UI.Control.LoadRecursive()   
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)   
    at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)   
    at System.Web.UI.Page.ProcessRequest()   
    at System.Web.UI.Page.ProcessRequest(HttpContext context)   
    at ASP._layouts_icc_icc_scan_view_aspx.ProcessRequest(HttpContext context)   
    at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()   
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)   
    at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)   
    at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)   
    at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)   
    at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)   
    at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)   
    at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)   
    at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
    adil

    Hi,
    Your SPweb object is not disposed properly.
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/3a25eb86-8415-4053-b319-9dd84a1fd71f/detected-use-of-sprequest-for-previously-closed-spweb-object-please-close-spweb-objects-when-you?forum=sharepointdevelopmentprevious
    http://sharepoint.stackexchange.com/questions/50793/detected-use-of-sprequest-for-previously-closed-spweb-object-after-spquery
    Please remember to click 'Mark as Answer' on the answer if it helps you

Maybe you are looking for

  • Transferring iTunes TV shows from old PC to new MAC

    I recently purchased the a brand new MacBook Pro in mid-July. I would like to know how to get the TV shows I bought through iTunes on my old windows laptop to my new macbook pro. I have the same account pulled up that I purchased them with, but it sa

  • Crop Marks not in correct place when Bleed applied - possible Bug/Error?

    Apologies if anyone has posted this elsewhere - I checked the Help, FAQ, Forums and Googled it - but I really can't find a solution to this minor problem I'm having. I have created a document that will be cut to 120mm x 120mm, I wanted to include a 1

  • PSE 13 recognizes printer but will only "print" as .xps

    I am trying to print photos using PSE 13 and it shows my printer as an option but after I click "print" it goes straight to the "Save file as" menu and I can save it as an .xps like my printer isn't there. I have tried uninstalling and reinstalling a

  • Limit a Windows 7 machine to 1 user login at a time

    I've searched everywhere for a solution to this but have not found anything outside of restarting the machine. I need to limit a Windows 7 computer to only allow one user logged in at a time. This machine has applications only allow one user to run t

  • Invalid account error when doing an internal reconciliation

    Hi all. A client is having this issue with one of the users. when trying to do an internal reconcilation on a business partner..the user gets an error Invalid Account Code [Message 173-9] She tried to do the recon 3 times and got that error. They are