ViewStateLog: Failed to write to the velocity cache

Hello,
I am not able to Attach a Documents to the SharePoint site.When i check the log file it says"ViewStateLog: Failed to write to the velocity cache".Can any say What may the problem?
Regards
Ravi.

Reply:
Hi,
Do you mean that you are unable to attach a file to the item in a SharePoint list?
Please have a try in other lists and in other sites and test whether this issue occurs.
Please use the Clear-SPDistributedCacheItems cmdlet to clear cached items from the distributed cache server.
Here is an article about how to clear cached items:
https://technet.microsoft.com/en-us/library/jj219715.aspx?f=255&MSPPError=-2147217396
Best Regards,
Dean Wang
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]

Similar Messages

  • Credential Roaming failed to write to the Active Directory. Error code 5 (Access is denied.)

    Hi All,
    I could see following error event in all client computers , Could you please some one help me on this ?
    Log Name:      Application
    Source:
    Microsoft-Windows-CertificateServicesClient-CredentialRoaming
    Event ID:      1005
    Level:         Error
    Description: Certificate Services Client: Credential Roaming failed to  write to the Active Directory. Error code 5 (Access is denied.)
    Regards, Srinivasu.Muchcherla

    If you are not using certificates and Credential Roaming for clients then simply ignore the error message.
    If you are using certificates then you are getting access denied message when Credential Roaming is trying to write to your AD. More details about Credential Roaming here: http://blogs.technet.com/b/askds/archive/2009/01/06/certs-on-wheels-understanding-credential-roaming.aspx
    http://blogs.technet.com/b/instan/archive/2009/05/26/considerations-for-implementing-credential-roaming.aspx
    This is probably related to the fact that your schema version not 44 or higher: https://social.technet.microsoft.com/Forums/windowsserver/en-US/5b3a6e61-68c4-47d3-ae79-8296cb3be315/certificateservicesclientcredentialroaming-errors?forum=winserverGP 
    Active Directory
    ObjectVersion
    Windows 2000
    13
    Windows 2003
    30
    Windows 2003 R2
    31
    Windows 2008
    44
    Windows 2008 R2
    47
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

  • When douwnloading adobe premier pro fails. Writes that the installation is complete, some optional components are not installed correctly. What to do?

    When downloading Adobe Premier pro fails, write that the installation is complete, some optional components are not installed correctly. What to do?

    check your install logs for the problem, http://helpx.adobe.com/creative-suite/kb/troubleshoot-install-logs-cs5-cs5.html

  • %APF-4-CREATE_PMK_CACHE_FAILED: apf_pmkcache.c:561 Attempt to insert PMK to the key cache failed. unable to insert a new entry in PMK cache list.Length: 32. Station:

    I received this error using apple IPAD version 7.1.2 connecting to cisco WiSM controller version 7.0.250. access point wireless setup using local-hreap.
    below are the syslog messages.
    : *mmListen: Aug 25 10:38:35.962: %APF-4-CREATE_PMK_CACHE_FAILED: apf_pmkcache.c:561 Attempt to insert PMK to the key cache failed. unable to insert a new entry in PMK cache list.Length: 32. Station:98:fe:94:90:70:ef
    : *mmListen: Aug 25 10:38:35.962: %MM-4-PMKCACHE_ADD_FAILED: mm_listen.c:6479 Failed to create PMK/CCKM cache entry for station 98:fe:94:90:70:ef with update from controller
    : *dot1xMsgTask: Aug 25 12:09:27.883: %DOT1X-3-MAX_EAP_RETRIES: 1x_auth_pae.c:3092 Max EAP identity request retries (3) exceeded for client 98:fe:94:90:70:ef
    : *dot1xMsgTask: Aug 25 12:57:32.503: %DOT1X-3-MAX_EAP_RETRIES: 1x_auth_pae.c:3092 Max EAP identity request retries (3) exceeded for client 98:fe:94:90:70:ef

    Hi Ravi Rai,
    I'm sorry to hear about the issue you are having with your Mac. If you are having hard freezes or restart issue that don't appear to be drive related, even after reinstalling Mavericks, you may want to try the troubleshooting steps outlined in the following article:
    OS X: When your computer spontaneously restarts or displays "Your computer restarted because of a problem."
    Regards,
    - Brenden

  • Newsfeed error - The operation failed because the server could not access the distributed cache.

    Recently installed SharePoint 2013 RTM, on the newsfeed page an error is displayed, and no entries display in the following or everyone tabs.
    "The operation failed because the server could not access the distributed cache."
    Reading through various posts, I've checked:
    - Activity feeds and mentions tabs are working as expected.
    - User Profile Service is operational and syncing as expected
    - Search is operational and indexing as expected
    - The farm was installed based on the autospinstaller scripts.
    - Don't believe this to be a permissions issue, during testing added accounts to the admin group to verify
    Any suggestions are welcomed, thanks.
    The full error message and trace logs is as follows.
    SharePoint returned the following error: The operation failed because the server could not access the distributed cache. Internal type name: Microsoft.Office.Server.Microfeed.MicrofeedException. Internal error code: 55. Contact your system administrator
    for help in resolving this problem.
    From the trace logs there's several messages which are triggered around the same time:
    http://msdn.microsoft.com/en-AU/library/System.ServiceModel.Diagnostics.TraceHandledException.aspxHandling an exception. Exception details: System.ServiceModel.FaultException`1[Microsoft.Office.Server.UserProfiles.FeedCacheFault]: Unexpected exception in
    FeedCacheService.GetPublishedFeed: Object reference not set to an instance of an object.. (Fault Detail is equal to Microsoft.Office.Server.UserProfiles.FeedCacheFault)./LM/W3SVC/2/ROOT/d71732192b0d4afdad17084e8214321e-1-129962393079894191System.ServiceModel.FaultException`1[[Microsoft.Office.Server.UserProfiles.FeedCacheFault,
    Microsoft.Office.Server.UserProfiles, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c]], System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089Unexpected exception in FeedCacheService.GetPublishedFeed: Object
    reference not set to an instance of an object..  
     at Microsoft.Office.Server.UserProfiles.FeedCacheService.Microsoft.Office.Server.UserProfiles.IFeedCacheService.GetPublishedFeed(FeedCacheRetrievalEntity fcTargetEntity, FeedCacheRetrievalEntity fcViewingEntity, FeedCacheRetrievalOptions fcRetOptions)
     at SyncInvokeGetPublishedFeed(Object , Object[] , Object[] )    
     at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)    
     at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)    
     at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)    
     at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)    
     at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)System.ServiceModel.FaultException`1[Microsoft.Office.Server.UserProfiles.FeedCacheFault]: Unexpected exception in FeedCacheService.GetPublishedFeed: Object reference not
    set to an instance of an object.. (Fault Detail is equal to Microsoft.Office.Server.UserProfiles.FeedCacheFault).
    SPSocialFeedManager.GetFeed: Exception: Microsoft.Office.Server.Microfeed.MicrofeedException: ServerErrorFetchingConsolidatedFeed : ( Unexpected exception in FeedCacheService.GetPublishedFeed: Object reference not set to an instance of an object.. ) : Correlation
    ID:db6ddc9b-8d2e-906e-db86-77e4c9fab08f : Date and Time : 31/10/2012 1:40:20 PM    
     at Microsoft.Office.Server.Microfeed.SPMicrofeedThreadCollection.PopulateConsolidated(SPMicrofeedRetrievalOptions retOptions, SPMicrofeedContext context)    
     at Microsoft.Office.Server.Microfeed.SPMicrofeedThreadCollection.Populate(SPMicrofeedRetrievalOptions retrievalOptions, SPMicrofeedContext context)    
     at Microsoft.Office.Server.Microfeed.SPMicrofeedManager.CommonGetFeedFor(SPMicrofeedRetrievalOptions retrievalOptions)    
     at Microsoft.Office.Server.Microfeed.SPMicrofeedManager.CommonPubFeedGetter(SPMicrofeedRetrievalOptions feedOptions, MicrofeedPublishedFeedType feedType, Boolean publicView)    
     at Microsoft.Office.Server.Microfeed.SPMicrofeedManager.GetPublishedFeed(String feedOwner, SPMicrofeedRetrievalOptions feedOptions, MicrofeedPublishedFeedType typeOfPubFeed)    
     at Microsoft.Office.Server.Social.SPSocialFeedManager.Microsoft.Office.Server.Social.ISocialFeedManagerProxy.ProxyGetFeed(SPSocialFeedType type, SPSocialFeedOptions options)    
     at Microsoft.Office.Server.Social.SPSocialFeedManager.<>c__DisplayClass4b`1.<S2SInvoke>b__4a()
    Microsoft.Office.Server.Social.SPSocialFeedManager.GetFeed: Microsoft.Office.Server.Microfeed.MicrofeedException: ServerErrorFetchingConsolidatedFeed : ( Unexpected exception in FeedCacheService.GetPublishedFeed: Object reference not set to an instance of
    an object.. ) : Correlation ID:db6ddc9b-8d2e-906e-db86-77e4c9fab08f : Date and Time : 31/10/2012 1:40:20 PM    
     at Microsoft.Office.Server.Microfeed.SPMicrofeedThreadCollection.PopulateConsolidated(SPMicrofeedRetrievalOptions retOptions, SPMicrofeedContext context)    
     at Microsoft.Office.Server.Microfeed.SPMicrofeedThreadCollection.Populate(SPMicrofeedRetrievalOptions retrievalOptions, SPMicrofeedContext context)    
     at Microsoft.Office.Server.Microfeed.SPMicrofeedManager.CommonGetFeedFor(SPMicrofeedRetrievalOptions retrievalOptions)    
     at Microsoft.Office.Server.Microfeed.SPMicrofeedManager.CommonPubFeedGetter(SPMicrofeedRetrievalOptions feedOptions, MicrofeedPublishedFeedType feedType, Boolean publicView)    
     at Microsoft.Office.Server.Microfeed.SPMicrofeedManager.GetPublishedFeed(String feedOwner, SPMicrofeedRetrievalOptions feedOptions, MicrofeedPublishedFeedType typeOfPubFeed)    
     at Microsoft.Office.Server.Social.SPSocialFeedManager.Microsoft.Office.Server.Social.ISocialFeedManagerProxy.ProxyGetFeed(SPSocialFeedType type, SPSocialFeedOptions options)    
     at Microsoft.Office.Server.Social.SPSocialFeedManager.<>c__DisplayClass4b`1.<S2SInvoke>b__4a()    
     at Microsoft.Office.Server.Social.SPSocialUtil.InvokeWithExceptionTranslation[T](ISocialOperationManager target, String name, Func`1 func)
    Microsoft.Office.Server.Social.SPSocialFeedManager.GetFeed: Microsoft.Office.Server.Social.SPSocialException: The operation failed because the server could not access the distributed cache. Internal type name: Microsoft.Office.Server.Microfeed.MicrofeedException.
    Internal error code: 55.    
     at Microsoft.Office.Server.Social.SPSocialUtil.TryTranslateExceptionAndThrow(Exception exception)    
     at Microsoft.Office.Server.Social.SPSocialUtil.InvokeWithExceptionTranslation[T](ISocialOperationManager target, String name, Func`1 func)    
     at Microsoft.Office.Server.Social.SPSocialFeedManager.<>c__DisplayClass48`1.<S2SInvoke>b__47()    
     at Microsoft.Office.Server.Social.SPSocialUtil.InvokeWithExceptionTranslation[T](ISocialOperationManager target, String name, Func`1 func)

    Thanks Thuan,
    I've restarted to the Distrubiton Cache servicem and the error is still occuring.
    The AppFabric Caching Service is running under the service apps account, and does appear operational based on:
    > use-cachecluster
    > get-cache
    CacheName            [Host]
                         Regions
    default
    DistributedAccessCache_1e9f4999-0187-40e8-aa92-f8308d47d6e9
    DistributedActivityFeedCache_1e9f4999-0187-40e8-aa92-f8308d47d6e9
    DistributedActivityF [SERVER:22233]
    eedLMTCache_1e9f4999 LMT(Primary)
    -0187-40e8-aa92-f830
    8d47d6e9
    DistributedBouncerCache_1e9f4999-0187-40e8-aa92-f8308d47d6e9
    DistributedDefaultCache_1e9f4999-0187-40e8-aa92-f8308d47d6e9
    DistributedLogonToke [SERVER:22233]
    nCache_1e9f4999-0187 Default_Region_0538(Primary)
    -40e8-aa92-f8308d47d Default_Region_0004(Primary)
    6e9                  Default_Region_0451(Primary)
    DistributedSearchCache_1e9f4999-0187-40e8-aa92-f8308d47d6e9
    DistributedSecurityTrimmingCache_1e9f4999-0187-40e8-aa92-f8308d47d6e9
    DistributedServerToAppServerAccessTokenCache_1e9f4999-0187-40e8-aa92-f8308d47d6e9

  • Has anybody had this problem and if so what the fix natd problem failed to write packet back (No route to host)

    this problem is eating my sys log up, all my services seem to be working it would seem that this problem has happened to others i have seen no real
    good answers to the question it would seem like a configuration problem here are the services i am running
    address book
    afp
    dhcp
    dns
    firewall
    ical
    ichat
    nat
    open directory
    print
    push notification
    smb
    web
    software just installed and the system was just setup as a gate way
    net config :
    Automatic:
      Active Location:          Yes
      Services:
    Ethernet 1:
      Type:          Ethernet
      BSD Device Name:          en0
      Hardware (MAC) Address:          00:17:f2:02:75:22
      IPv4:
      Addresses:          173.11.2*0.***
      Configuration Method:          Manual
      Router:          173.11.210.210
      Subnet Masks:          255.255.255.252
      IPv6:
      Configuration Method:          Automatic
      DNS:
      Server Addresses:          68.87.**.98, 68.**.69.**
      Proxies:
      Exceptions List:          *.local, 169.254/16
      FTP Passive Mode:          Yes
      SMB:
      NetBIOSName:          extremenet
      WINSAddresses:
      Workgroup:          WORKGROUP
    Ethernet 2:
      Type:          Ethernet
      BSD Device Name:          en1
      Hardware (MAC) Address:          00:17:f2:02:75:23
      IPv4:
      Addresses:          192.168.1.1
      Configuration Method:          Manual
      Subnet Masks:          255.255.255.0
      IPv6:
      Configuration Method:          Automatic
      DNS:
      Server Addresses:          192.168.1.1
      Proxies:
      Exceptions List:          *.local, 169.254/16
      FTP Passive Mode:          Yes
      SMB:
      NetBIOSName:          extremenet
      WINSAddresses:
      Workgroup:          WORKGROUP
    AirPort:
      Type:          IEEE80211
      BSD Device Name:          en2
      Hardware (MAC) Address:          00:17:f2:96:76:60
      IPv4:
      Configuration Method:          DHCP
      IPv6:
      Configuration Method:          Automatic
      Proxies:
      Exceptions List:          *.local, 169.254/16
      FTP Passive Mode:          Yes
      IEEE80211:
      Join Mode:          Automatic
      PowerEnabled:          0
      PreferredNetworks:
      SecurityType:          WPA2 Personal
      SSID_STR:          Airport Extreme
      Unique Network ID:          F3922B59-58B2-4E25-8BFA-8924012125FD
      Unique Password ID:          A2F3E2B9-DE2F-4B1F-960E-9F740F30F392
      SMB:
      NetBIOSName:          extremenet
      WINSAddresses:
      Workgroup:          WORKGROUP
    Bluetooth DUN:
      Type:          PPP
      IPv4:
      Configuration Method:          PPP
      IPv6:
      Configuration Method:          Automatic
      Proxies:
      FTP Passive Mode:          Yes
      PPP:
      ACSP Enabled:          No
      Display Terminal Window:          No
      Redial Count:          1
      Redial Enabled:          Yes
      Redial Interval:          5
      Use Terminal Script:          No
      Dial on Demand:          No
      Disconnect on Fast User Switch:          Yes
      Disconnect on Idle:          Yes
      Disconnect on Idle Timer:          600
      Disconnect on Logout:          Yes
      Disconnect on Sleep:          Yes
      Idle Reminder:          No
      Idle Reminder Time:          1800
      IPCP Compression VJ:          Yes
      LCP Echo Enabled:          No
      LCP Echo Failure:          4
      LCP Echo Interval:          10
      Log File:          /var/log/ppp.log
      Verbose Logging:          No
      SMB:
      NetBIOSName:          extremenet
      WINSAddresses:
      Workgroup:          WORKGROUP
    FireWire:
      Type:          FireWire
      BSD Device Name:          fw0
      Hardware (MAC) Address:          00:16:cb:ff:fe:6e:28:18
      IPv4:
      Configuration Method:          DHCP
      IPv6:
      Configuration Method:          Automatic
      Proxies:
      Exceptions List:          *.local, 169.254/16
      FTP Passive Mode:          Yes
      SMB:
      NetBIOSName:          extremenet
      WINSAddresses:
      Workgroup:          WORKGROUP
    syslog:
    Jul  4 17:18:49 extremenet natd[38056]: failed to write packet back (No route to host)
    Jul  4 17:18:54 extremenet natd[38056]: failed to write packet back (Host is down)
    Jul  4 17:19:25: --- last message repeated 5 times ---
    Jul  4 17:19:25 extremenet natd[38056]: failed to write packet back (No route to host)
    Jul  4 17:19:30 extremenet natd[38056]: failed to write packet back (Host is down)
    Jul  4 17:20:01: --- last message repeated 5 times ---
    Jul  4 17:20:01 extremenet natd[38056]: failed to write packet back (No route to host)
    Jul  4 17:20:06 extremenet natd[38056]: failed to write packet back (Host is down)
    Jul  4 17:20:38: --- last message repeated 5 times ---
    Jul  4 17:20:49 extremenet natd[38056]: failed to write packet back (No route to host)
    Jul  4 17:20:52 extremenet com.apple.wikid.mailinglists[41461]: mail:status = "list-updated"
    Jul  4 17:20:54 extremenet natd[38056]: failed to write packet back (Host is down)
    Jul  4 17:21:25: --- last message repeated 5 times ---
    Jul  4 17:21:25 extremenet natd[38056]: failed to write packet back (No route to host)
    Jul  4 17:21:30 extremenet natd[38056]: failed to write packet back (Host is down)
    Jul  4 17:22:01: --- last message repeated 5 times ---
    Jul  4 17:22:01 extremenet natd[38056]: failed to write packet back (No route to host)
    Jul  4 17:22:06 extremenet natd[38056]: failed to write packet back (Host is down)
    Jul  4 17:22:37: --- last message repeated 5 times ---
    Jul  4 17:22:37 extremenet natd[38056]: failed to write packet back (No route to host)
    Jul  4 17:22:42 extremenet natd[38056]: failed to write packet back (Host is down)
    Jul  4 17:23:12: --- last message repeated 5 times ---
    Jul  4 17:23:13 extremenet natd[38056]: failed to write packet back (No route to host)
    Jul  4 17:23:18 extremenet natd[38056]: failed to write packet back (Host is down)
    Jul  4 17:23:49: --- last message repeated 5 times ---
    Jul  4 17:23:49 extremenet natd[38056]: failed to write packet back (No route to host)
    Jul  4 17:23:54 extremenet natd[38056]: failed to write packet back (Host is down)
    Jul  4 17:24:25: --- last message repeated 5 times ---
    Jul  4 17:24:25 extremenet natd[38056]: failed to write packet back (No route to host)
    Jul  4 17:24:30 extremenet natd[38056]: failed to write packet back (Host is down)
    Jul  4 17:25:01: --- last message repeated 5 times ---
    Jul  4 17:25:01 extremenet natd[38056]: failed to write packet back (No route to host)
    Jul  4 17:25:06 extremenet natd[38056]: failed to write packet back (Host is down)
    Jul  4 17:25:38: --- last message repeated 5 times ---
    Jul  4 17:25:49 extremenet natd[38056]: failed to write packet back (No route to host)
    Jul  4 17:25:54 extremenet natd[38056]: failed to write packet back (Host is down)

    See "error -3259" here.

  • Remote desktop failure. Have bought the app, but connection failed. Have bought the disable adds, but still getting them. What do I write:

    Remote desktop failure. Have bought the app, but connection failed. Have bought the disable adds, but still getting them. What do I write:
    in the username field, in the port field and in the password fiels and in the domain field and in the field where 3389 is. Have tried my computer username, my Computer password and the name of the network name (domain). Have also tried the network password.

    Are you referring to Apple Remote Desktop, Apple's software for managing networked Macs? It sounds to me like you're referring to a remote connect app you purchased for use on your iPhone to connect to a Windows system, and if so you should start by contacting the support resources for the app you purchased, and if you can't get help there try asking in the iPhone forum.
    Regards.

  • Write in the access manager cache

    Hi,
    I use AM 2004Q2 with the portal server. I also use IDM to manage portal identites. From IDM, I want to change portal LDAP attributes. Precisely, I want to change the value of the attribute of sunPortalDesktopDpDocumentUser.
    So from IDM, I make a call to a java class that does the change of the sunPortalDesktopDpDocumentUser attribute which is stored in the portal LDAP.
    At first I used jndi to make my changes directly in the ldap. My change was stored in the ldap but since access manager uses a cache, the change I had made in the ldap was, in some cases, overwritten by the cache.
    So I was advised not to make my change to the ldap but directly to the cache.
    here is the piece of code that does the job.
              AMStoreConnection conn = new AMStoreConnection(adminToken);
              AMUser user = conn.getUser(userdn);
              String attribXML = user.getStringAttribute("sunPortalDesktopDpDocumentUser");
              ModifyDP mdp = new ModifyDP();
              String newAttribXML = mdp.changeDP(attribXML);   // here I make the change I need on the attribute
              user.setStringAttribute("sunPortalDesktopDpDocumentUser", newAttribXML);
              user.store();  // valide les changementsWith this code I still have a cache problem. In some case the new value is overwritten by the old one.
    Does anyone have any idea how I should proceed to make permanent changes to the ldap/cache?
    any help appreciated :)

    Actually Access Manager has an Event Mechism which is used to udpate the caches if data is changed in the directory server. This is used in multinode deployments. It�s also used by Portal (which relies on amSDK).
    Unfortunately i�m not sure if this is perfectly working in AM 2004Q1 (AKA AM6.1). At least you need the latest patch.
    Unfortunately i can not remember if AM6.1 already had an amEventService debug log.
    Is there some FW/LB between AM and DS?
    -Bernhard

  • Why can't I write to the VFS?

    Hi
    I'm trying to sequence a Java application Using App-V 5 and banging my head against the wall as I can't get it to work for non-admin users. To give some more info about the environment, we're running App-V 5 SP2 Hotfix 5 RDS client in shared content
    mode which is installed on a XenApp PVS image. Apps are published globally at boot time by means of a PowerShell script.
    I'm sequencing using the latest version of the sequencer (SP2 Hotfix 4). The Java app in question has a requirement for Java 6u25 so I've sequenced this using the excellent guide here:
    http://packageology.com/2014/02/sequencing-java-the-definitive-guide-part-1/.
    To launch the java app I'm calling the javaws.exe inside the bubble and directing it to the applications .jnlp file which I've also copied into the bubble. Now when I run the app as an admin it works perfectly, but for non-admin users, using procmon I can
    see that javaw is trying to copy files into the java cache in %userprofile%\AppData\Local\Microsoft\AppV\Client\VFS\<guid>\LocalAppDataLow\Sun\Java\Deployment\cache\6.0 but failing with access denied.
    What I can't understand is that I get the same issue even if I tick the box to enable full write permissions to the VFS in the sequencer. I've tried various connotations of different PVAD/VFS settings but nothing seems to work.
    Any ideas?
     

    The list of write-protected file extensions can be found at  http://blogs.technet.com/b/technetsto_sup/archive/2014/04/01/cow-and-its-exclusions-in-app-v-5-0.aspx
    It might be an obvious question, but are you also using the latest version of the client?
    Is Appdata\local on a local disk (not redirected)?
    Falko
    Twitter
    @kirk_tn   |   Blog
    kirxblog   |   Web
    kirx.org   |   Fireside
    appvbook.com

  • Injecting a bug in the working of the L2 cache of Opensparc T1

    As a part of my research work, I need to inject a bug in the operation of the L2 cache of Opensparc and then do some analysis of the RTL code based on the outcome of that bug. I have been working on Opensparc T1. I decided to target the writeback operation of the L2 cache.
    I did the following to achieve my end:
    1) I have written a SPARC assembly language program that accesses the L2 cache again and again. Specifically, I change the page size to 4 MB, I do 16 write accesses (sth) operations to addresses 262144 bytes apart (64 * 4 * 1024) to hit the set 0 of bank 0 of L2 cache, then again 16 such accesses to set 1 and 16 such accesses to set 2. This ensures that after 12 accesses there are 4 writebacks on average, for the last 4 accesses to each set. Now I also do a load access (lduh) on one of these addresses which are being written back previously. I check in my program whether I am reading the correct value that I had written for that address.
    2) Normally, what happens is, when my LOAD PCX packet arrives, it undegoes a miss at L2 cache, but it hits in the writeback buffer (that is, the address that I am trying to load is in the writeback buffer at that time). So this LOAD waits in the miss buffer. When the writeback buffer receives the DRAM write ack corresponding to this address, it wakes the correponding miss buffer entry and then this load executes through the L2 cache pipeline to get the correct value and my assembly program execution succeeds.
    3) Right now, I inject a simple bug to make the wbctl_hit_unqual_c2 signal in file "sctag_wbctl.v" stuck at 0, that is the signal that goes from writeback buffer to miss buffer to tell miss buffer that this particular access is a hit in the writeback buffer. Since this signal is stuck-at-0, what I expect is that the miss buffer will insert this particular LOAD as a true miss (one that doesn't depend on any miss buffer/fill buffer/writeback buffer value) and so the miss will be issued to L2 cache pipeline independently and will receive the old value of this address from the DRAM. So my assembly program will fail. That is my expectation.
    4) What actually happens in this case, is that the miss buffer treats the LOAD as a true miss and does issue the READ independently to the DRAM, but the read request goes to the DRAM just after the write request to DRAM for the same address goes to the DRAM from the writeback buffer. As a result, the manifestation I see is that my assembly program terminates with the following error:
    "ERROR : In dram channel 0
    At time 13116747 rd entry 0 which is address = 800086000, has a match with incoming write entry at WR Q location 4
    13116747 ERROR: DRAM Channel 0 RD/WR Sequencing violation
    ERROR: cmp_top.cmp_dram.cmp_dram_mon.dram_mon0: DRAM monitor exited"
    I do not see the RAW hazard error that I was expecting (I was expecting a clean exit of my program with fail, that is inside program the value read will be compared with value expected by CMP and that will result in fail), but instead I see the above from the DRAM monitor code. Is this what I should be seeing? Is this read/write sequencing error equivalent to the RAW hazard that I am trying to create?
    5) I tried to delay the write request to DRAM for this address a little, so that my read request will end up reaching the DRAM first and get serviced with the old value, so that my bug manifestation will be as I wanted. I tried assigning a delay to the continuous assignment of signal "can_req_dram" in file "sctag_wbctl.v" so that the write request issued from writeback buffer to DRAM will be delayed till after the read request issued for true miss on that address from miss buffer. But that is not happening. This rd/wr sequencing is all that I can get.
    Could anyone throw some light on this? Also maybe it can be that the actual RAW hazard is happening in this case, but the program is getting terminated before giving the expected result because the DRAM monitor is written to catch such sequencing errors and terminate early? Also if anyone can suggest a way of delaying writeback for this particular address so that the write request reaches DRAM after the read. Please help.

    Hi Avi,
    Because you didn't grant access permission to other users on the NESTED_TABLE_TYPE_NAME (maybe?)Of course, I remember to grant (EXECUTE) privilege on the nested table type to other users. The reason are not synonyms also, for Oracle doesn't allow to access these types through synonyms, unfortunately.
    And the applications can be tons ;-), I use it to implement regular expression functionality in the databases prior to 9i.
    Regards,
    Roman

  • Clear the Browser cache while Outputting PDFs

    Hi,
    I am using Servlet to output a PDF (Streams), i am facing Browser cache problem in IE
    since i am setting Content type to PDF as follows...
    response.setContentType("application/pdf")
    i could not able to use follwoing Clear the Browser Cache
    response.setHeader("pragma", "no-cache");
    response.setHeader("Cache-Control", "no-cache");
    response.setHeader("Cache-Control", "no-store");
    response.setDateHeader("Expires", 0);
    the above code is not working fine in Netscape but not in IE.
    Can any one help me out in this.
    Regards
    SAM

    Hi,
    I have a problem with pdf file also, everything working fine in IE and
    netscape, but when I tried the streaming of pDF document from my
    servlet in response to a request from Opera browser it failed.
    the url may give some idea,
    http://localhost:8080/pdf/pdfdownload?PDF_FILE=abc.pdf
    here pdfdownload is my servlet, and code I used to stream like following
    public service(HttpServletRequest req,HttpServletResponse)
    ServletContext sc=getServletContext();
    String mimeType=sc.getMimeType((String)
    req.getParameter("PDF_FILE"));
    res.setContentType(mimeType);
    File pdf=new File((String)req.getParameter("PDF_FILE"));
    res.setContentLength((int)pdf.length());
    InputStream in=new FileInputStream(pdf);
    OutputStream os=res.getoutputStream();
    byte[] buf=new byte[1024];
    int count=0;
    while(in.available>0)
    count=in.read(buf);
    os.write(buf,0,count);
    the detailed code kept out for simplicity, but the idea is pretty
    much is this.
    Now, opera opening the stream for a file name pdfdownload and
    storing locally and then opening my acrobat reader, the second
    time if called it trying to create another file by name
    pdfdownload (1)? xxxx where ? is an unknown character, this is
    where it's failing, unable to create the file so failing to open
    the pdf file. what best process would be to follow in servlet so
    the streaming works in all browser, I have seen many link in sun
    sites, opening up pdf but it seems they all are stream, and my
    opera can identify their size and file name distinctly and saving
    them accordingly, any solution ???
    thanks
    Jishu

  • Help with writing to the JWS cache directory?

    We have a java application named "foo" that we would like to deploy via Webstart. The original version of foo is packaged into a single foo.jar archive. Foo creates a textfile "info.txt" outside of foo.jar. "Info.txt" stores information that we would like to remain constant for each client machine, which is why we are not wrapping this info inside foo.jar b/c "foo.jar" is overwritten each time a new version is available on the server.
    When running "java -jar foo.jar" outside of Webstart, foo works correctly and generates "info.txt" in the same directory where foo.jar is located. The current directory is determined by this code snippet--
    File infoFile = new File ( "info.txt");
    However, when we deploy "foo.jar" through Webstart, foo fails to work properly on the client machine b/c it is unable to write "info.txt" in the directory where "foo.jar" has been downloaded and cached. Note that we have signed foo.jar properly and it is allowed to write to the local filesystem. But instead of generating "info.txt" in the same location as "foo.jar", it creates "info.txt" on the client desktop causing problems with the running application.
    Can anyone tell us how to capture the client's cache directory location during Webstart download so that "info.txt" can be created and placed in that directory?

    you can find the path to the cache directory by getting a jar url to one of your resources in the cache:
    URL jarURL = this.getClass().getClassLoader().getResource("MyClass.class");
    String jarFileStr = jarURL.getFile();
    1.) first remove the "!/MyClass.class":
    jarFileStr = jarFileStr.substring(0, jarFileStr.length() - "!/MyClass.class".length());
    2.) then remove the jar://file: in front:
    if (jarFileStr.startsWith("jar://file:") { jarFileStr = jarFileStr.substr(11); }
    3.) may need to transform %20 to spaces, and forward slashes to File.seperator
    jarFileStr.replace("%20", " ");
    This gives me a string value of:
    file:C:/Documents%20and%20Settings/glyn/.javaws/cache/http/Dgwwinxp/P80/DMlive/DMjava/RMBBClient.jar
    When I try to do:
    File jarFile = new File(jarFileStr);
    JarFile jar = new JarFile(jarFile);
    I get java.util.zip.ZipException: The filename, directory name, or volume label syntax is incorrect.
    Has anyone got this method of getting the jar file to work?
    Thanks
    Glyn
    Re: Java Web Start getResource() issue
    Author: dietz333
    In Reply To: Re: Java Web Start getResource() issue      Sep 29, 2003 10:18 AM
    Reply 5 of 8
    Glenn:
    the string - file:C:/Documents%20and%20Settings/glyn/... is not legal path.
    1.) first you need to strip off the "file:"
    2.) you need to change the '/' to '\' (on windows).
    use str.replaceAll("/", File.separator)
    /dietz
    Re: Java Web Start getResource() issue
    Author: gdub
    In Reply To: Re: Java Web Start getResource() issue      Sep 30, 2003 9:29 AM
    Reply 6 of 8
    Thanks for the reply.
    I changed the line to
    jarFileStr = jarFileStr.substring("file:".length(), jarFileStr.length() - "!/com/xxxx".length());
    File file = new File(jarFileStr);
    The System.out of file is
    C:\Documents%20and%20Settings\glyn\.javaws\cache\http\Dgwwinxp\P80\DMlive\DMjava\RMMyApp.jar but isExists() returns false on the file.
    I guess it doesn't like the %20 etc. because that it the path to the file alright..
    Re: Java Web Start getResource() issue
    Author: gdub
    In Reply To: Re: Java Web Start getResource() issue      Sep 30, 2003 9:33 AM
    Reply 7 of 8
    This works:
    jarFileStr = jarFileStr.substring("file:".length(), jarFileStr.length() - "!/com/xxxx".length());
    jarFileStr.replaceAll("%20", " ");
    File file = new File(jarFileStr);
    Not very pretty. But it will do me for now.
    Thanks for your help.
    Re: Java Web Start getResource() issue
    Author: josephconder
    In Reply To: Re: Java Web Start getResource() issue      Oct 3, 2003 1:43 PM
    Reply 8 of 8
    I ran into this problem as well. The string is URL encoded (hence the %20=space).
    You could use URLDecoder.decode(jarFileStr) to get the same result (and not worry about any other encoded characters).

  • Dmesg error.... Test WP failed, assume Write Enabled

    Hi all....
    there seems to be some kind of error going on. When I type
    $dmesg | tail -3
    [ 1398.681274] sd 4:0:0:0: [sdb] Test WP failed, assume Write Enabled
    [ 1398.683528] sd 4:0:0:0: [sdb] Asking for cache data failed
    [ 1398.683542] sd 4:0:0:0: [sdb] Assuming drive cache: write through
    This is repeated throughout the log files. And the funny thing is I don't have anything connected i.e. no usb drives, no secondary hdds. Also,
    $df -h /dev/sdb
    Filesystem      Size  Used Avail Use% Mounted on
    /dev            493M     0  493M   0% /dev
    What am I missing here?
    Update:
    Found a similar thread : https://bbs.archlinux.org/viewtopic.php?pid=1059099
    Seems like its the card reader afterall.....
    Last edited by whzee (2012-02-17 10:06:28)

    Looks like the firmware update solved it.

  • How can I force the Disk Cache on with Apple Raid Card?

    I have an apple raid card in my mac pro that has now had it's battery fail twice. I don't really want to keep putting money into this and would rather just force the disk cache on and hope my UPS works, I don't use this box for real work anymore anyway and it's all backed up.
    There used to be a force on button next to the Write Cahce Status section, but that seems to have gone away. Does anyone know how to force the cache on? Permanently if possible.

    OK, Command Line fun, use at your own risk:
    sudo raidutil modify controller -E

  • Requeue Failed cachestore write operation.

    I am trying to requeue failed cachestore write operation , for this I add <write-requeue-threshold> property in coherence-config file,but I am not sure about its behaviour
    1) what will happen if number of cachestore failed operation are greater than threshold specified, means will the extra objects also be requeued of simply dropped off?
    2) is the sequence of write operation maintained, let say
    i) DB is down at time T1
    ii)Object A is requeued at time T2
    iii)DB is up again at time T3 and at the same time another object B is also placed in queue
    then will object A be written first or Object B.
    Gaurav

    user8157603 wrote:
    I am trying to requeue failed cachestore write operation , for this I add <write-requeue-threshold> property in coherence-config file,but I am not sure about its behaviour
    1) what will happen if number of cachestore failed operation are greater than threshold specified, means will the extra objects also be requeued of simply dropped off?
    AFAIK, if the number of entries which failed to be written grows above the write-requeue-threshold, then the surplus entries will just not be queued for retries. Coherence would just not have the information that it should write it out that entry because it is still dirty.
    2) is the sequence of write operation maintained, let say
    i) DB is down at time T1
    ii)Object A is requeued at time T2
    iii)DB is up again at time T3 and at the same time another object B is also placed in queue
    then will object A be written first or Object B.
    If you mean object A and B are put in the cache for the same key, then, one of the following two scenarios can happen:
    As there is no such thing as two events happening at the same time when race conditions are guarded against, let's say that the cache processes the placement of Object B into the cache at time T4 which is very close to T3. The question is how does T4 compare to the time when the write-behind thread starts collecting entries to write and pass it to the cache-store (T5) .
    If T5 < T3 and T5 < T4 then the database is still down and the write does not succeed, and afterwards Object B will be enqueued for its first write, so the entry is not retried yet. Object A will not be written to the DB at all.
    If T3 < T5 < T4 then Object A will be written and Object B will be enqueued for writing in the next batch write.
    If T5 > T4 then Object A will not be found by the write-behind thread at all, and Object B will be written out.
    Best regards,
    Robert

Maybe you are looking for