Conditionally update the list cell

Is it possible to update the list cell based on a given condition?
I was trying something like this, but it turns out that updateItem() is called later (and not when the Listview is updated from the ObservableList which i presumed)
public class lCell extends ListCell<String> {
@Override
public void updateItem(String item, boolean empty) {
            super.updateItem(item, empty);
            label.setText(getItem());//hbox contains image & a label
            System.out.println(item);
            if (item != null && !isCurrentUser)
              setGraphic(hbox);// Set the list cell as a hbox
            else if (item!=null && isCurrentUser)
             setText(getItem()); //Set it as the message present in the ObservableList
        }isCurrentUser is a "global" variable which changes it's value in a method (when another user - other than the one currently posting messages -enters the message)
Is there a way to get an output like:
<Image> User 1:
msg1
msg2
msg3...
<Image> User2:
msg1
msg2...
<Image> User1:
msgs...

Like you said, I created an object userMessage which has the username and the message. >>
public class userMessage {
        private static String user;
        private static String message;
        public userMessage(String u, String m) {
        this.user = u;
        this.message=m;
        public static String getUser() {
        return user;
        public void setUser(String user) {
        this.user = user;
        public static String getMessage() {
        return message;
        public void setMessage(String message) {
        this.message = message;
}And my list cell class looks something like this:
public class lCell extends ListCell<userMessage> {
@Override
        public void updateItem(userMessage item, boolean empty) {
            super.updateItem(item, empty);
            if (item != null)
                StringBuilder sb = new StringBuilder();
                sb.append(item.getUser()).append(": \n").append(item.getMessage());
                setText(sb.toString());
}Q). How do I add a <user name> and a <message> to the list?
I thought, if i want a new message to be sent, i call a function add() which does the needful.>>
public void add(String user, String message)
       userMessage um = new userMessage(user, message);
       obs.addAll(um);
}But it seems like the last known item (object) created over rides all the previous ones.
so if for example I have:
add(user1, Hi);
add(user2, Hi!);
add(user1, zzz); The list view shows me:
user1, zzz
user1, zzz
user1, zzz
What do I do to prevent this? Do I have to create a different object every time? :\

Similar Messages

  • Need to update the list item in the same sharepoint list with particular condition with Sharepoint Designer 2013.

    Hi All
    I have one sharepoint list with huge data i.e with 20columns and more than 200 records with the fields .
    Suppose lets consider there are A,B,C,D,E,F,G,H columns.
    Now i want to create one form with the fields A,C,E.
    When the user enter the existing data of list for columns A,C..based on C value the E column value should change and update that particular item in the list.
    Please guide me without visual web part can we acheive this by Sharepoint designer 2013 or what would be the preferable solution.
    Please help me on this as it is very urgent from me..
    Thanks in Advance
    Sowjanya G

    Hi,
    According to your post, my understanding is that you wanted to update the list item in the same sharepoint list with particular condition with Sharepoint Designer 2013.
    I recommend to create workflow associated to the list and then start the workflow automatically when an item is changed.
    In the workflow, you can add condition and actions as below:
    If current item: C equal to Test1
         Set E to Test2
    Then the value of the filed E will be changed based on the value of the filed C.
    In addition, if you create the form using InfoPath, you can add rule to the filed C as below:
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Invalid data has been used to update the list item. The field you are trying to update may be read only.

    Trying to follow Serge Luca's Step by Step Tutorial. Creating Workflows for Windows Sharepoint Services and MOSS2007.  http://sergeluca.spaces.live.com/blog/cns!E8A06D5F2F585013!859.entry
    I have an onWorkflowActivated, followed by an ifElse condition and a log to history.
    In the IfElse, each branch has a code segment, that trys to update the status column in the list that the workflow is attached to.
    private void Authorize_ExecuteCode(object sender, EventArgs e)
    // tried serveral methods
    WorkflowProperties.Item["Status"] = "Automatically Approved";
    // tried all of the following (one at a time)
    item.update();
    WorkflowProperties.Item.Update();
    WorkflowProperties.Item.SystemUpdate();
    //tried this as well.
    Microsoft.SharePoint.SPListItem item = WorkflowProperties.Item;
    item["Status"] = "Automatically Approved";
    item.Update() ;
    On the update call I keep getting "Invalid data has been used to update the list item. The field you are trying to update may be read only."
    Could someone explain how to update "Status" column of the list item that the workflow is working on?
    Thank you very much.
    Bill
     

    Hi:
    you can do the following:
    add the following code to the workflow.xml file (under the MetaData section)
    Code Snippet
    <ExtendedStatusColumnValues>
    <StatusColumnValue>Branch1</StatusColumnValue>
    <StatusColumnValue>Branch2</StatusColumnValue>
    </ExtendedStatusColumnValues>
    then add 2 SetState activities one in each branch of the IfElse.
    for the code behind of setState1 (branch1) write the following code:
    Code Snippet
    state = Convert.ToInt32(SPWorkflowStatus.Max);
    for setState2 (branch2) write the following:
    Code Snippet
    state = Convert.ToInt32(SPWorkflowStatus.Max) + 1;
    where state is the variable assigned to the field State in the properties of the SetState(design lever), or instead of state u can use the following code:
    Code Snippet
    ((SetState)sender).State
    where sender is the object sent through the function parameter.
    hope this answered your question
    Best Regards

  • Difficulty in updating the list object values

    I have created a list with Objects(MyVertex). I am trying to update the list based on the condition . Instead it adds duplicate values. The simple logic is (if the object is already in the list )only update the values or add to the list (Object) Please help me how can I correct my code.
    public static void updateResult(MyVertex c)
              Iterator it2=result.iterator();
              while(it2.hasNext())
                   //System.out.println( "Result to be added : "+c.getName());
                   j=(MyVertex)it2.next();
                   if(j.getName().equals(c.getName()))
                        j.setWeight(c.getWeight());
                        break;
                   //System.out.println( "Result item name : "+j.getName());
              result.add(c);
         }Thanks a lot .

    Thank you all for your immediate reply. It has solved half of my problem.Now It is not adding all "c" ,but it still not updating the value if the matching found.
    public static void updateResult(MyVertex c)
              Iterator it2=result.iterator();
              while(it2.hasNext())
                   //System.out.println( "Result to be added : "+c.getName());
                   j=(MyVertex)it2.next();
                   if(j.getName().equals(c.getName()))
                        j.setWeight(c.getWeight());
                        flag=true;
                        return;
                   //System.out.println( "Result item name : "+j.getName());
              if(!flag)
              {result.add(c);}
         }

  • WebPart is raising the following error "Invalid data has been used to update the list item.The field you are trying to update may be read only"

    I have created a farm solution and then i deploy it to SharePoint server, the code looks as follow, and i use it to update a page info values (as the current page values represents old info):-
    [ToolboxItemAttribute(false)]
    public partial class VisualWebPart1 : WebPart
    // Uncomment the following SecurityPermission attribute only when doing Performance Profiling using
    // the Instrumentation method, and then remove the SecurityPermission attribute when the code is ready
    // for production. Because the SecurityPermission attribute bypasses the security check for callers of
    // your constructor, it's not recommended for production purposes.
    // [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Assert, UnmanagedCode = true)]
    public VisualWebPart1()
    protected override void OnInit(EventArgs e)
    base.OnInit(e);
    InitializeControl();
    using (SPSite site = new SPSite(SPContext.Current.Site.Url))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists["Pages"];
    web.AllowUnsafeUpdates = true;
    foreach (SPListItem items in list.Items)
    items["Author"] = "SharePoint";
    items["Created"] = "01/08/2014 01:44 PM";
    items.Update();
    list.Update();
    web.AllowUnsafeUpdates = false;
    protected void Page_Load(object sender, EventArgs e)
    but when i try adding this web part to a page i got the following error:-
    Invalid data has been used to update the list item.The field you are trying to update may be read only
    so can anyone advice?

    i only changed lines bitween 
    web.AllowUnsafeUpdates = true;
    and
    web.AllowUnsafeUpdates = false;
    and other parts of code remains without change
    so it will updates all pages in current web
    yaşamak bir eylemdir

  • Invalid data has been used to update the list item. The field you are trying to update may be read only (Lookup Field).

    Hi.
    I am getting below error while adding value to look-up field.
    Invalid data has been used to update the list item. The field you are trying to update may be read only.
    I have tried many forums ans post but didn't come to know what's the root cause of issue. I am also posting Code for creating and adding lookup field.
    CAML to create lookup field (It works Fine)
    string lkproductNumber = "<Field Type='Lookup' DisplayName='Product Number' StaticName='ProductNumber' ReadOnly='FALSE' List='" + pNewMaster.Id + "' ShowField='Product_x0020_Number' />";
    Code to insert value to lookup field
    ClientContext client = new ClientContext(SiteUrl);
    client.Load(client.Web);
    client.Credentials = new NetworkCredential(this.UserName, this.Password, this.Domain);
    // Lookup Lists
    List pmList = client.Web.Lists.GetByTitle("Product_Master");
    //List Conatining Lookup Columns
    List piList = client.Web.Lists.GetByTitle("Product_Inventory");
    client.Load(piList);
    query.ViewXml = "<View/>";
    ListItemCollection collection = pmList.GetItems(query);
    client.Load(collection);
    client.ExecuteQuery();
    int prodid=0;
    foreach (ListItem item in collection)
    if (Convert.ToString(item["Product_x0020_Number"]) == ProductNumber)
    { prodid = Convert.ToInt32(item["ID"]); }
    ListItem piItem = piList.AddItem(new ListItemCreationInformation());
    piItem["Product_x0020_Number"] = new FieldLookupValue() { LookupId = prodid };
    piItem.Update();
    client.ExecuteQuery();
    Exception Detail
    Microsoft.SharePoint.Client.ServerException was caught
    Message=Invalid data has been used to update the list item. The field you are trying to update may be read only.
    Source=Microsoft.SharePoint.Client.Runtime
    ServerErrorCode=-2147352571
    ServerErrorTypeName=Microsoft.SharePoint.SPException
    ServerStackTrace=""
    StackTrace:
    at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream)
    at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse()
    at WebServiceProviders.ClientServices.NewProductInventory() in Z:\.............ClientServices.cs:line 889
    InnerException:
    Quick response is highly appreciated.
    Thanks
    Mehar

    Try some thing like below,
    your data value that needs to be update should be in this format "ID of the lookup";#"Title of the Lookup" 
    For example,
    listItem["Product_x0020_Number"]
    = "1;#iPhone";
    listItem["Product_x0020_Number"]
    = "2;#Mobile";
    Hope this helped you....

  • How to update the lists using the timer jobs?

    Hi,
    I'm new to sharepoint developing
    Using the timer jobs the items which are present in the one list must get updated in the another list and also should be overwritten.
    For example:
    If there 10 items present in a X list. After some time period the first five of X should get updated in Y  list . After some more time the next 5 items of X has to overwrite the items present in the Y list.
    Regards,
    Santto.

    Hi Santto,
    The following articles and code examples would be helpful.
    SharePoint 2010 Custom Timer Job
    https://code.msdn.microsoft.com/office/SharePoint-2010-Custom-416cd3a1
    SharePoint Add/Update/Delete List Item Programmatically to SharePoint List using C#
    http://www.sharepointblog.in/2013/04/add-new-list-item-to-sharepoint-list.html
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How do I update the list of applications in the help panel?

    When I hit F1, the help module comes up. It has a very outdated list of Adobe applications. For example, I've owned Lightroom 3, 4, and now 5. Only 3 shows up in the list of applications for which I can search. How do I add/delete applications for which I want to search or download help information?

    Hi,
    When you hit F1 in Lightroom 3, a special client opens up, and it displays help for supported Adobe software.
    However, Lightroom 4 and Lightroom 5 do not use this mechanism or client. Please use the links (below) to find offline help:
    PDF manual for Lightroom 4: http://help.adobe.com/en_US/lightroom/using/lightroom_4_help.pdf
    PDF manual for Lightroom 5: http://helpx.adobe.com/pdf/lightroom_reference.pdf
    Online docs for Lightroom 5: http://helpx.adobe.com/lightroom/topics.html
    Help Hub page for Lightroom 5: http://helpx.adobe.com/lightroom.html
    You can navigate to links 1, 2, and 3, from the Help Hub page (link 4), too.
    Cheers,
    David

  • SiteManager doesn't update the list of websites after creating a LiveCopy

    Hi,
    I am facing a strange issue with the SiteAdmin LiveCopy feature.
    I have created a LiveCopy website from a BluePrint site. The new livecopy site is created successfully with all the necessary rollout config changes. But for some reason the SiteAdmin refresh doesn't show the website list. The page is blank. I can only see the list of websites on the left side frame. The right side frame is empty. Please see the attached image and the firebug error log.
    Any suggestions to resolve this issue are most welcome. Appreciate for your time.
    Best,
    Suku.
    Header 1
    {"pages":[{"index":0,"path":"/content/geometrixx","label":"geometrixx","title":"Geometrixx Demo Site","title_xss":"Geometrixx Demo Site","title":"Geometrixx Demo Site","monthlyHits":0,"type":"cq:Page","dialogPath":"/libs/foundation/components/page/dia log","lastModifiedBy":null,"lastModifiedBy_xss":null,"lastModified":0,"timeUntilValid":0," onTime":0,"offTime":0,"replication":{"numQueued":0},"inWorkflow":false,"workflows":[],"sch eduledTasks":[],"msm:isLiveCopy":false,"msm:isInBlueprint":true,"msm:isSource":false},{"in dex":1,"path":"/content/geometrixx_mobile","label":"geometrixx_mobile","title":"Geometrixx Mobile Demo Site","title_xss":"Geometrixx Mobile Demo Site","title":"Geometrixx Mobile Demo Site","monthlyHits":0,"type":"cq:Page","dialogPath":"/libs/wcm/mobile/components/page/dia log","templateTitle":"Geometrixx Mobile Content Page","templateTitle_xss":"Geometrixx Mobile Content Page","templatePath":"/apps/geometrixx/templates/mobilecontentpage","templateShortTitle": "Mobile Content","templateShortTitle_xss":"Mobile Content","lastModifiedBy":"Administrator","lastModifiedBy_xss":"Administrator","lastModif ied":1268041912426,"timeUntilValid":0,"onTime":0,"offTime":0,"replication":{"numQueued":0} ,"inWorkflow":false,"workflows":[],"scheduledTasks":[],"msm:isLiveCopy":false,"msm:isInBlu eprint":false,"msm:isSource":false},{"index":2,"path":"/content/campaigns","label":"campai gns","title":"Campaigns","title_xss":"Campaigns","title":"Campaigns","monthlyHits":0,"type ":"sling:Folder","lastModifiedBy":null,"lastModifiedBy_xss":null,"lastModified":-1,"timeUn tilValid":0,"onTime":0,"offTime":0,"replication":{"numQueued":0},"inWorkflow":false,"workf lows":[],"scheduledTasks":[]},{"index":3,"path":"/content/dam","label":"dam","title":"Digi tal Assets","title_xss":"Digital Assets","title":"Digital Assets","monthlyHits":0,"type":"sling:OrderedFolder","lastModifiedBy":null,"lastModifiedB y_xss":null,"lastModified":-1,"timeUntilValid":0,"onTime":0,"offTime":0,"replication":{"nu mQueued":0},"inWorkflow":false,"workflows":[],"scheduledTasks":[]},{"index":4,"path":"/con tent/wiki","label":"wiki","title":"Wiki Content","title_xss":"Wiki Content","title":"Wiki Content","monthlyHits":0,"type":"wiki:Topic","lastModifiedBy":null,"lastModifiedBy_xss":n ull,"lastModified":-1,"timeUntilValid":0,"onTime":0,"offTime":0,"replication":{"numQueued" :0},"inWorkflow":false,"workflows":[],"scheduledTasks":[]},{"index":5,"path":"/content/blu eprintdemo","label":"blueprintdemo","title":"BluePrint demo","title_xss":"BluePrint demo","title":"BluePrint demo","monthlyHits":23,"type":"cq:Page","dialogPath":"/libs/foundation/components/page/di alog","lastModifiedBy":"Administrator","lastModifiedBy_xss":"Administrator","lastModified" :1333643319629,"timeUntilValid":0,"onTime":0,"offTime":0,"replication":{"numQueued":30,"pu blished":1333575432993,"publishedBy":"Administrator","publishedBy_xss":"Administrator","ac tion":"ACTIVATE"},"inWorkflow":false,"workflows":[],"scheduledTasks":[],"msm:isLiveCopy":f alse,"msm:isInBlueprint":true,"msm:isSource":true},{"index":6,"path":"/content/livecopydem o","label":"livecopydemo","title":"LiveCopy Demo","title_xss":"LiveCopy Demo","title":"LiveCopy Demo","monthlyHits":7,"type":"cq:Page","dialogPath":"/libs/foundation/components/page/dia log","lastModifiedBy":"Administrator","lastModifiedBy_xss":"Administrator","lastModified": 1333646845631,"timeUntilValid":0,"onTime":0,"offTime":0,"replication":{"numQueued":0},"inW orkflow":false,"workflows":[],"scheduledTasks":[]<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html>
    <head>
    <title>500 String index out of range: -1</title>
    </head>
    <body>
    <h1>String index out of range: -1 (500)</h1>
    <p>The requested URL /content.pages.json resulted in an error in com.day.cq.wcm.core.impl.servlets.PageListServlet.</p>
    <h3>Exception:</h3>
    <pre>
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at java.lang.String.substring(String.java:1937)
        at java.lang.String.substring(String.java:1904)
        at com.day.cq.wcm.msm.impl.LiveRelationshipManagerImpl.computeRolloutConfigs(LiveRelationshi pManagerImpl.java:1149)
        at com.day.cq.wcm.msm.impl.LiveRelationshipManagerImpl.buildRelationship(LiveRelationshipMan agerImpl.java:1085)
        at com.day.cq.wcm.msm.impl.LiveRelationshipManagerImpl.getLiveRelationship(LiveRelationshipM anagerImpl.java:936)
        at com.day.cq.wcm.core.impl.servlets.PageListServlet$PageListItem.writeLiveRelationshipState (PageListServlet.java:346)
        at com.day.cq.wcm.core.impl.servlets.PageListServlet$PageListItem.write(PageListServlet.java :270)
        at com.day.cq.commons.servlets.AbstractListServlet.write(AbstractListServlet.java:234)
        at com.day.cq.commons.servlets.AbstractListServlet.doGet(AbstractListServlet.java:108)
        at com.day.cq.commons.servlets.AbstractPredicateServlet.doGet(AbstractPredicateServlet.java: 75)
        at org.apache.sling.api.servlets.SlingSafeMethodsServlet.mayService(SlingSafeMethodsServlet. java:268)
        at org.apache.sling.api.servlets.SlingAllMethodsServlet.mayService(SlingAllMethodsServlet.ja va:139)
        at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.jav a:344)
        at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.jav a:375)
        at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:529)
        at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilter Chain.java:45)
        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:64)
        at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java:146)
        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
        at com.day.cq.wcm.core.impl.WCMComponentFilter.filterRootInclude(WCMComponentFilter.java:308 )
        at com.day.cq.wcm.core.impl.WCMComponentFilter.doFilter(WCMComponentFilter.java:141)
        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
        at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processComponent(SlingRequestProce ssorImpl.java:269)
        at org.apache.sling.engine.impl.filter.RequestSlingFilterChain.render(RequestSlingFilterChai n.java:49)
        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:64)
        at com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter.doFilter(RedirectFilter.java:185)
        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
        at org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.doFilter(RequestProgre ssTrackerLogFilter.java:59)
        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
        at com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet.doFilter(FormsHandlingServlet.j ava:220)
        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
        at com.day.cq.theme.impl.ThemeResolverFilter.doFilter(ThemeResolverFilter.java:67)
        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
        at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:96)
        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
        at com.day.cq.wcm.core.impl.WCMRequestFilter.doFilter(WCMRequestFilter.java:119)
        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
        at org.apache.sling.rewriter.impl.RewriterFilter.doFilter(RewriterFilter.java:84)
        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
        at org.apache.sling.portal.container.internal.request.PortalFilter.doFilter(PortalFilter.jav a:76)
        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
        at org.apache.sling.bgservlets.impl.BackgroundServletStarterFilter.doFilter(BackgroundServle tStarterFilter.java:135)
        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)
        at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processRequest(SlingRequestProcess orImpl.java:161)
        at org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java:183)
        at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:9 6)
        at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:79)
        at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java: 42)
        at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:49)
        at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)
        at org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java: 48)
        at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:39)
        at org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.felix.http.proxy.ProxyServlet.service(ProxyServlet.java:60)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.sling.launchpad.base.webapp.SlingServletDelegate.service(SlingServletDelegate. java:277)
        at org.apache.sling.launchpad.webapp.SlingServlet.service(SlingServlet.java:148)
        at com.day.j2ee.servletengine.ServletRuntimeEnvironment.service(ServletRuntimeEnvironment.ja va:228)
        at com.day.j2ee.servletengine.RequestDispatcherImpl.doFilter(RequestDispatcherImpl.java:315)
        at com.day.j2ee.servletengine.FilterChainImpl.doFilter(FilterChainImpl.java:74)
        at com.day.crx.launchpad.filters.CRXLaunchpadLicenseFilter.doFilter(CRXLaunchpadLicenseFilte r.java:96)
        at com.day.j2ee.servletengine.FilterChainImpl.doFilter(FilterChainImpl.java:72)
        at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:334)
        at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:378)
        at com.day.j2ee.servletengine.ServletHandlerImpl.execute(ServletHandlerImpl.java:315)
        at com.day.j2ee.servletengine.DefaultThreadPool$DequeueThread.run(DefaultThreadPool.java:134 )
        at java.lang.Thread.run(Thread.java:662)
    </pre>
    <h3>Request Progress:</h3>
    <pre>
          0 (2012-04-05 12:49:08) TIMER_START{Request Processing}
          0 (2012-04-05 12:49:08) COMMENT timer_end format is {&lt;elapsed msec&gt;,&lt;timer name&gt;} &lt;optional message&gt;
          0 (2012-04-05 12:49:08) LOG Method=GET, PathInfo=/content.pages.json
          0 (2012-04-05 12:49:08) TIMER_START{ResourceResolution}
          1 (2012-04-05 12:49:08) TIMER_END{1,ResourceResolution} URI=/content.pages.json resolves to Resource=JcrNodeResource, type=sling:redirect, superType=null, path=/content
          1 (2012-04-05 12:49:08) LOG Resource Path Info: SlingRequestPathInfo: path='/content', selectorString='pages', extension='json', suffix='null'
          1 (2012-04-05 12:49:08) TIMER_START{ServletResolution}
          1 (2012-04-05 12:49:08) TIMER_START{resolveServlet(JcrNodeResource, type=sling:redirect, superType=null, path=/content)}
          1 (2012-04-05 12:49:08) TIMER_END{0,resolveServlet(JcrNodeResource, type=sling:redirect, superType=null, path=/content)} Using servlet com.day.cq.wcm.core.impl.servlets.PageListServlet
          1 (2012-04-05 12:49:08) TIMER_END{0,ServletResolution} URI=/content.pages.json handled by Servlet=com.day.cq.wcm.core.impl.servlets.PageListServlet
          1 (2012-04-05 12:49:08) LOG Applying Requestfilters
          1 (2012-04-05 12:49:08) LOG Calling filter: org.apache.sling.bgservlets.impl.BackgroundServletStarterFilter
          1 (2012-04-05 12:49:08) LOG Calling filter: org.apache.sling.portal.container.internal.request.PortalFilter
          1 (2012-04-05 12:49:08) LOG Calling filter: org.apache.sling.rewriter.impl.RewriterFilter
          1 (2012-04-05 12:49:08) LOG Calling filter: com.day.cq.wcm.core.impl.WCMRequestFilter
          1 (2012-04-05 12:49:08) LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter
          1 (2012-04-05 12:49:08) LOG Calling filter: com.day.cq.theme.impl.ThemeResolverFilter
          1 (2012-04-05 12:49:08) LOG Calling filter: com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet
          1 (2012-04-05 12:49:08) LOG Calling filter: org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter
          1 (2012-04-05 12:49:08) LOG Calling filter: com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter
          1 (2012-04-05 12:49:08) LOG RedirectFilter did not redirect (MobileUtil.isMobileResource() returns false)
          1 (2012-04-05 12:49:08) LOG Applying Componentfilters
          1 (2012-04-05 12:49:08) LOG Calling filter: com.day.cq.wcm.core.impl.WCMComponentFilter
          2 (2012-04-05 12:49:08) LOG Calling filter: com.day.cq.wcm.core.impl.WCMDebugFilter
          2 (2012-04-05 12:49:08) TIMER_START{com.day.cq.wcm.core.impl.servlets.PageListServlet#0}
         55 (2012-04-05 12:49:08) TIMER_END{53,com.day.cq.wcm.core.impl.servlets.PageListServlet#0}
        100 (2012-04-05 12:49:08) TIMER_START{handleError:throwable=javax.servlet.ServletException}
        114 (2012-04-05 12:49:08) TIMER_END{14,handleError:throwable=javax.servlet.ServletException} Using handler org.apache.sling.servlets.resolver.internal.defaults.DefaultErrorHandlerServlet
        119 (2012-04-05 12:49:08) TIMER_END{119,Request Processing} Dumping SlingRequestProgressTracker Entries
    </pre>
    <hr>
    <address>ApacheSling/2.2 (Java HotSpot(TM) 64-Bit Server VM 1.6.0_30; Windows 7 6.1 amd64)</address>
    </body>
    </html>

    I ran into a similar issue when creating a new live site using the name of a previously deleted site. Are you reusing the name of a previously deleted site?

  • "SharePoint list itme update error : Invalid data has been used to update the list item. The field you are trying to update may be read only."

    Hi Everyone,
    i am facing one problem ...
    when i am updating an SharePoint List item, it is throwing above error....
    This is my code......
     try
                    tbl = getListDateTable("NCR");
                    DataTable dt = tbl;
                    oWebsite = mysite.OpenWeb();
                    oList = oWebsite.Lists["NCR"];
                    SPListItem itemToUpdate = null;
                    foreach (SPListItem listItem in oList.Items)
                        listItem.Update();
                        workOrderID = Convert.ToInt32(txtTitle.Text);
                        itemToUpdate = listItem;
                    //SPListItem itemToUpdate = oList.GetItemById(workOrderID);
                    //itemToUpdate.Fields["Title"].ReadOnlyField = false;
                    //string str = ddlStatus.SelectedValue;
                    itemToUpdate["Title"] = txtTitle.Text;
                    itemToUpdate["JobNumber"] = txtJobNumber.Text;
                    itemToUpdate["PartNumber"] = txtPartNumber.Text;
                    itemToUpdate["PartDescription"] = txtPartDescription.Text;
                    //itemToUpdate["RequiredBy"] = txtRequiredBy.Text;
                    itemToUpdate["ReportedBy"] = txtReportedBy.Text;
                    itemToUpdate["WrittenBy"] = txtWrittenBy.Text;
                    //itemToUpdate["DateOpened"] = txtDateOpened.SelectedDate;
                    //itemToUpdate["DateClosed"] = txtDateClosed.SelectedDate;
                    itemToUpdate.Update();
                    oList.Update();
                   // bind();
                catch (Exception ex)
                    throw ex;
    Thanks
    viswanath

    Hi Viswanath,
    If you are using People/User Type Field Column then use below code methord
    SPUser user = web.EnsureUser(loginName);
    item["UserTypeFieldName"] = user;
    Lookup Type Field Column then use below code methord
    public static SPFieldLookupValue GetLookupFieldFromValue(string lookupValue,string lookupSourceColumn, SPList lookupSourceList)
    SPFieldLookupValue value = null;
    SPQuery query = new SPQuery();
    query.Query = "<Where><Eq><FieldRef Name='" + lookupSourceColumn + "'/><Value Type='Text'>" + lookupValue + "</Value></Eq></Where>";
    SPListItemCollection listItems = lookupSourceList.GetItems(query);
    if(listItems.Count > 0 )
    value = new SPFieldLookupValue(listItems[0].ID,lookupValue);
    return value;
    item["LookupField"] = GetLookupFieldFromValue(lookupfieldValue, lookupSourceColumn, listName);
    Please mark the replies as answers if they help or unmark if not.

  • Where I can find examples with OLAP DML to update the cube cells?

    Hi,
    Where I can find examples with OLAP DML to update/calculate the cube measure/cells?
    I would like to insert data into the cube by OLAP DML.
    Regards,
    TomB

    Not sure about examples but this is how you should proceed
    1. Limit all your dimension to the leaf level values.
    lmt financialperiod to '200901'
    lmt geography to 'XYZ'
    lmt product to 'LAPTOP'
    2. Limit your measure variable to one measure(this is applicable if you have more than one stored measure in the cube).
    for 10g
    lmt <cube name>prtmeasdim to '<MEASURE NAME>'
    for 11g
    lmt <cube name>measuredim to '<MEASURE NAME>'
    3. Write into the variable.
    for 10g
    <cube name>prttopvar = 100 -- this variable is created for a compressed & partitioned cube. for uncompressed cube the variable name is <cube name>_stored.
    Thanks
    Brijesh

  • Update the list of person notified by a workflow

    Hi,
    Working with Oracle Applications R12.
    I have a workflow that notifiy the employee for the validation or not of his leave of absence when his manager validate it.
    I want now add other person to this workflow (for example : departement assistante).
    How can i do this ?
    Best regards,
    Saad.

    For Absences Oracle uses AME (Approvals Management Engine) to send notifications. You would have to write a new rule to send notification to new person for an absence

  • Will Cisco be updating the Approved Disk Drive List for firmware 1.5

    Hi
    I just saw that cisco released firmware 1.5 which has support for 3TB drives. I am wondering if Cisco will be updating the list of Approved hard drives or will it now be QNAP who will be doing that?
    Thanks

    An updated Cisco Hard Drive AVL has been posted. http://www.cisco.com/en/US/products/ps10817/prod_maintenance_guides_list.html
    http://www.cisco.com/en/US/products/ps10817/prod_technical_reference_list.html
    If you are planning on migrating to QNAP branded firmware or have already done so, please refer to the QNAP Hard Drive AVL.

  • SPD 2013 - Copy Document action - how do you update the copied list item's metadata?

    SharePoint 2013 Designer no longer has the Copy List Item Action, it only has a Copy Document action. It seems that this action provides no way of saving the copied documents list item ID. How do you update the list item after it has been copied??
    Any help is appreciated.
    Greg Pierson

    Hi,
    According to your post, my understanding is that you wanted to copy the list item in SharePoint 2013.
    The Copy List Item is
    available only on the SharePoint 2010 Workflow platform, you can create a SharePoint 2010 workflow using the SharePoint 2010 workflow platform to achieve it.
    You can also use the Content and Structure to copy the list items: Site Settings->Site Administration->Content and Structure.
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • The workflow could not update the item, possibly because one or more columns for the item require a different type of information.

    I started getting these errors on one of my lists that has several workflows running on it. The strange thing is it has been running pretty much error free for 1.5 years and we have not made any changes to the workflows and no updates have been applied prior
    to the errors staring.
    It is typically always the same workflow but it doesn't always happen, only some of the newly added list items will error. If I simply cancel the current instance and manually start it again it runs fine to completion and it only seems to error out
    at the start.
    Most of the other workflows pause/wait for a status change but I will be reviewing all the workflows to confirm there is no locking conflict. I have added a Wait to one other workflow that I know will update the list item on startup, it is populating
    the Title column but even after that I am still getting the error.
    I noticed in the TraceLogs, 2 errors that started on Feb 2 and I could not find them in any previous logs (went back many days with no occurrences).
    02/02/2015 07:15:55.93  w3wp.exe (0x1C50)                        0x18D4 SharePoint Foundation        
     Workflow Infrastructure        88xr Unexpected WinWF Internal Error, terminating workflow Id# 6cbf1da4-fbf9-4dfe-ae48-b6d765cc6d03 
    02/02/2015 07:15:56.37  w3wp.exe (0x1C50)                        0x2140 SharePoint Foundation        
     SPRequest                      8l3a Medium   Failed to cache field with id "{49af83c9-c5e3-47db-b055-bf18673bba67}", overwrite=0
    The "Field ID"{49af83c9...} listed is a Lookup column to a Clients list on the same site.
    Any suggestions on what could be causing the sudden errors. I will be reviewing all other workflows but as I mentioned previously, this system has been working great up until Feb 2 with no changes to the lists or workflows for 3-6+ months.
    Thanks in advance.
    Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.

    Thanks for the quick response Nikhil.
    Our SPF 2010 server is relatively small to many setups I am sure. The list with the issue only has 4456 items and there are a few associated lists, eg lookups, Tasks, etc see below for count.
    Site Lists
    Engagements = 4456 (Errors on this list, primary list for activity)
    Tasks = 7711  (All workflow tasks from all site lists)
    Clients = 4396  (Lookup from Engagements, Tslips, etc)
    Workflow History = 584930 (I periodically run a cleanup on this and try to keep it under 400k)
    Tslips = 3522 (Engagements list can create items here, but overall not much interaction between lists)
    A few other lists that are used by workflows to lookup associations that are fairly static and under 50 items, eg "Parters Admin" used to lookup a partners executive admin to assign a task.
    Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.

Maybe you are looking for

  • How can reach someone that can help me

    I am leaving feedback here because countless attempts to reach verizon by phone, chat, & email have  proven to be frustrating and impossible. If I had a few thousands extra dollars I would buy out my contracts today. On Friday 9/12/2014 I went to add

  • Multiple iPhoto Libraries - FB & Flickr syncing

    If I create mutliple iPhoto libraries (because my current library is getting big), using iPhoto Library Manager, will photos synced to Facebook and Flickr be maintained or be deleted if they're not in the "open" library?  In other words, how does hav

  • Dynamic domain-based entity creation and relation to base entity

    Hi everyone - My first post here...  I have a base entity (PROJECT) with an attribute called RecordType (a domain-based attribute).  Depending on the value of RecordType, the business wants to use that result set as input for another reference entity

  • Adding symbols to special characters

    Hi there! I was wondering is there any possibilities to edit the existing special characters? I have a logo what I want to use in text and the easiest way would be if I could add it to the special characters library. Thank You for your help! Laszlo

  • How to transfer the transactional dat a using ale

    hi to all abap gurus i heard that we can transfer the transactional data ( like so data , po data ) using message control technique by ale technology . . can u please give  all steps  in message control technique with one exapmle . i searched in the