Nobound exception on cache invalidation
Hi All,
I was trying to invalidate the catalog cache from program using following code and i am getting following error from the server
Caused by: java.rmi.NotBoundException: /atg/dynamo/service/GSAInvalidatorService
at sun.rmi.registry.RegistryImpl.lookup(RegistryImpl.java:106)
at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at java.rmi.Naming.lookup(Naming.java:84)
the code which is doing the cache invalidation is as follows
GSAInvalidator invalidator = (GSAInvalidator)Naming.lookup(serviceName);
String itemDescName = getItemDescName();
if(StringUtils.isBlank(itemDescName) || "all".equalsIgnoreCase(itemDescName)){
itemDescName = null;
logInfo("service name to clear "+serviceName+" repo path "+getProductCatalogPath()+" item desc name "+itemDescName);
invalidator.invalidate(getProductCatalogPath(),itemDescName, null);
can you please help on this
gsaInvalidatorEnabled is true in /atg/dynamo/Configuration
and /atg/dynamo/server/RmiServer has following service registered rmi://servername.com:10360/atg/dynamo/service/GSAInvalidatorService
when i wrote a shell script and called the invalidator it worked fine
[GSAInvalidatorClient] Looking up rmi://ipaddress:20260/atg/dynamo/service/GSAInvalidatorService
[GSAInvalidatorClient] Calling invalidate(/atg/commerce/catalog/ProductCatalog, null, null)
[GSAInvalidatorClient] Done.
Thanks,
Tijomon Mathew
Edited by: 946140 on Dec 2, 2012 6:39 AM
Similar Messages
-
How to install the metadata cache invalidation tool
Hi,
I have a problem in using JCO destinations for Adaptive RFC models.
I went through the below pdf and they mentioned metadata cahce invalidation tool and it is not installed in the portal
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10465350-b4f5-2910-61ba-a58282b3b6df
please let me know how to install metadata cache invalidation tool
points will be rewarded for sure for the helpful answersI installed the Meta data cache invalidation tool using SDM and when i am trying to run that application from Content administrator it is throwing an exception
The currently executed application, or one of the components it depends on, has been compiled against class file versions that are different from the ones that are available at runtime.
If the exception message indicates, that the modified class is part of the Web Dynpro Runtime (package com.sap.tc.webdynpro.) then the running Web Dynpro Runtime is of a version that is not compatible with the Web Dynpro Designtime (Developer Studio or Component Build Server) which has been used to build + compile the application.*
Note: the above hints are only a guess. They are automatically derived from the exception that occurred and therefore can't be guaranteed to address the original problem in all cases.
please let me know how to resolve this issue
Points will be awarded for sure
Bala -
Deployment: Metadata Cache Invalidation for Adaptive RFC Models
Dear SDN Member,
I have deployed the new "Cache Invalidation" Tool at our portal NW04s SPS12.
We have deployed the tool by using the sdm.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10465350-b4f5-2910-61ba-a58282b3b6df
The entrypoint is not visible in the webdynpro console navigation.
What have I done wrong?
Best regards,
Olaf ReissHello,
we also deployed it to our NW04s SPS12 Portal (since it was NOT included in SPS12)
We deplyoed the correct version. For us it is also not visible in the NWA.
However, it can be called from the Webdynpro console. Then you see it has this direct link.
http://<server>:<port>/webdynpro/dispatcher/local/InvalidationTool/Invalidation
However, the thing still has bugs.
Clicking the button "Get JCO destinations" just crashes with a 500 error (see below). Our developer said
<i>The initial exception that caused the request to fail, was:
java.lang.NoSuchFieldError: flush_cache
at com.sap.invalidation.InvalidationView.onActionGetSLDJCOs(InvalidationView.java:215)
at com.sap.invalidation.wdp.InternalInvalidationView.wdInvokeEventHandler(InternalInvalidationView.java:236)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
... 26 more</i>
Using the lower part and option 2.
("Dictionaries Cache Invalidation" and "Enter Dictionary") is said to be working, if you exactly know the naming.
But how can we invalidate the RFC caches used by Visual Composer?
In Visual Admin/services/Connector Container/../SapFactory/Managed conenction factory/ConnectionDefintion I have already set the Connectionlifetime to 60 and ticked "expiraation" ?
Best regards
Ulf -
Hi Web Cache Team,
We are currently using Webcache 9.0.3.1 cluster in our production environment with Oracle 9iAS as the app server. Now there is some critical content which is served (for better performance) through the Web Cache. We have implemented the invalidation mechnism using the invalidation APIs. But the problem is if for some reason the invalidation mechanism fails then what is the alternate route to invalidate the cached contents as they will be otherwise serving wrong data. Let me give an example:
Case 1: Web cache is down
Solution: Well in this case we are safe as even the users of the system will not be able to get the Stale data from cache.
Case 2: The webcache is up but the link from n/w link from App Server to the webcache (via Load Balancers) is down. In this case our application will NOT be able to invalidate the cache if the underlying data changes. Moreover the users will continue to be served old content.
Solution: How can we invalidate or notify cache in this case? Use DMS APIs ???
Case 3: Both the Webcache & Network links are fine but in invalidation code (written in Java) throws an exception.
Solution: POssibly we can trap all the exceptions in the invalidation logic and do something..... what???
Any ideas will be highly appreciated.Hello,
Thats one mechanism we are trying to explore at our end. The only thing is that we are not send the invalidation requests from EJB but from the classes provided by the Web framework we are using. What we are trying to achoeve is that if we make the invalidation as the first step of any Business Process transaction, and if it fails the entire transaction is rolled-back and we donot change the data. That way atleast web-cache is uptodate but the flip side is that Business Processes suffer..... -
WD Java RFC metadata cache invalidation without recycle JAVA
Since we are in a high availability production system, we cannot recycle or CE instance. There are times were the RFC metdata invalidation does not work and the only things that forces it is a recycle of the CE system.
This is contrary to what SAP has publicized, so is there a process in NWA or a single process (and NOT the server0 process) that we can refresh without stopping and starting the java engine.
Much like Visual Administration is there a single service we can stop and start to ensure the engine stays up and running and available?
Thanks
Weyland YutaniHi Weyland ,
did you check the guide ?
Metadata Cache Invalidation for Adaptive RFC Models
http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10465350-b4f5-2910-61ba-a58282b3b6df
There's a solution in this guide which explains how to proceed to avoid engine restart in case of ARFC.
(I don't know your engine release, but if it is >= 711, then you may welcome this guide as well:
Using an Adaptive RFC 2 Model in Web Dynpro Java
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50f7192d-2808-2d10-189b-df3fa5f71abf )
I hope this helps.
Best Regards,
Ervin -
Getting exception in cache server while inserting around 80,000 values
Hi I am trying to insert 80,000 values in the cache in distributed mode(2 nodes) from .NET client then getting below error in .net client side.
TcpConnection(Id=0x00000132F5B02F87AC190D2F6F41225F9F53C4584B06C624C3DCB23A6B005B41, Open=True, Member(Location=machine:machineName,process:Test.OC.vshost, Role=.NET RTC client), LocalAddress=10.2.11.17:56409, RemoteAddress=172.25.11.44:9099): channel closed
*, but i am getting the below exception in cache browser window*
com.tangosol.net.RequestPolicyException: No storage-enabled nodes exist for service DistributedCache
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Binar
yMap.onMissingStorage(PartitionedCache.CDB:27)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Binar
yMap.ensureRequestTarget(PartitionedCache.CDB:42)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Binar
yMap.sendPartitionedRequest(PartitionedCache.CDB:31)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Binar
yMap.size(PartitionedCache.CDB:15)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Binar
yMap$EntrySet.size(PartitionedCache.CDB:1)
at com.tangosol.util.ConverterCollections$ConverterEntrySet.size(ConverterCollections.java:2906)
at com.tangosol.coherence.component.application.console.Coherence.processCommand(Coherence.CDB:741)
at com.tangosol.coherence.component.application.console.Coherence.run(Coherence.CDB:37)
at com.tangosol.coherence.component.application.console.Coherence.main(Coherence.CDB:3)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.tangosol.net.CacheFactory.main(CacheFactory.java:827)
and the below error in cache server window
2011-10-11 12:03:45.056/1052.657 Oracle Coherence GE 3.7.0.0 <Error> (thread=DistributedCache, member=3): Terminating Partiti
onedCache due to unhandled exception: java.lang.OutOfMemoryError
2011-10-11 12:03:45.056/1052.657 Oracle Coherence GE 3.7.0.0 <Error> (thread=DistributedCache, member=3):
java.lang.OutOfMemoryError: GC overhead limit exceeded
at com.tangosol.io.AbstractByteArrayReadBuffer.instantiateBufferInput(AbstractByteArrayReadBuffer.java:182)
at com.tangosol.io.AbstractReadBuffer.getBufferInput(AbstractReadBuffer.java:32)
at com.tangosol.util.ExternalizableHelper.extractIntDecoration(ExternalizableHelper.java:4575)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.getKeyPartition(Partit
ionedService.CDB:10)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Stora
ge.onBackingMapEvent(PartitionedCache.CDB:6)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Stora
ge$PrimaryListener.entryInserted(PartitionedCache.CDB:1)
at com.tangosol.util.MapEvent.dispatch(MapEvent.java:266)
at com.tangosol.util.MapEvent.dispatch(MapEvent.java:226)
at com.tangosol.util.MapListenerSupport.fireEvent(MapListenerSupport.java:556)
at com.tangosol.net.cache.OldCache.dispatchEvent(OldCache.java:1938)
at com.tangosol.net.cache.OldCache$Entry.onAdd(OldCache.java:2007)
at com.tangosol.util.SafeHashMap.put(SafeHashMap.java:244)
at com.tangosol.net.cache.OldCache.put(OldCache.java:262)
at com.tangosol.net.cache.OldCache.put(OldCache.java:230)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Stora
ge.putPrimaryResource(PartitionedCache.CDB:27)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Stora
ge.moveResourcesToPrimary(PartitionedCache.CDB:37)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Stora
ge.movePartition(PartitionedCache.CDB:9)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.moveP
artition(PartitionedCache.CDB:14)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.assignPrimaryPartition
(PartitionedService.CDB:41)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.restoreOrphans(Partiti
onedService.CDB:38)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onOwnershipRequest(Par
titionedService.CDB:11)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService$OwnershipRequest.onRec
eived(PartitionedService.CDB:3)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.CDB:33)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:33)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onNotify(PartitionedSe
rvice.CDB:3)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onNot
ify(PartitionedCache.CDB:3)
at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
at java.lang.Thread.run(Thread.java:662)
2011-10-11 12:03:45.056/1052.657 Oracle Coherence GE 3.7.0.0 <D5> (thread=DistributedCache, member=3): Service DistributedCac
he left the cluster
2011-10-11 12:03:47.524/1055.125 Oracle Coherence GE 3.7.0.0 <Info> (thread=main, member=3): Restarting Service: DistributedC
ache
2011-10-11 12:03:47.524/1055.125 Oracle Coherence GE 3.7.0.0 <D5> (thread=DistributedCache, member=3): Service DistributedCac
he joined the cluster with senior service member 2
2011-10-11 12:07:35.850/1283.451 Oracle Coherence GE 3.7.0.0 <Info> (thread=Proxy:ExtendTcpProxyService:TcpAcceptorWorker:1,
member=3): Restarting NamedCache: Index
2011-10-11 12:07:36.616/1284.217 Oracle Coherence GE 3.7.0.0 <Info> (thread=Proxy:ExtendTcpProxyService:TcpAcceptorWorker:3,
member=3): Restarting NamedCache: Security
2011-10-11 12:58:26.732/4334.333 Oracle Coherence GE 3.7.0.0 <Error> (thread=Proxy:ExtendTcpProxyService:TcpAcceptor, member=
3): Terminating TcpAcceptor due to unhandled exception: java.lang.OutOfMemoryError
Exception in thread "Proxy:ExtendTcpProxyService:TcpAcceptor" java.lang.OutOfMemoryError: GC overhead limit exceeded
Logger: java.lang.OutOfMemoryError: GC overhead limit exceeded
java.lang.OutOfMemoryError: GC overhead limit exceeded
Logger: java.lang.OutOfMemoryError: GC overhead limit exceeded
Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded
java.lang.OutOfMemoryError: GC overhead limit exceeded
2011-10-11 12:58:31.419/4339.020 Oracle Coherence GE 3.7.0.0 <Error> (thread=Proxy:ExtendTcpProxyService:TcpAcceptor:TcpProce
ssor, member=3): Terminating TcpAcceptor due to unhandled exception: java.lang.OutOfMemoryError
Exception in thread "DistributedCache:AspNetSessionCache|SERVICE_STOPPED" java.lang.OutOfMemoryError: GC overhead limit excee
ded
Logger: java.lang.OutOfMemoryError: GC overhead limit exceeded
pls.... help me
Thanks in Advance.Jonathan.Knight wrote:
Hi,
Yes, with two nodes you should be able to put more data into your Coherence cluster - the capacity scales with the number of storage nodes in the cluster.
Actually, this is not true. :-)
By default configuration, and not using indexes, you are able to store the same amount of data in one node as in two nodes in case of a distributed cache.
This is because if you have one node, Coherence does not create backups. If you have two nodes, it creates one backup (if you configured a backup, which default configuration did).
It starts to increase total capacity only with the third node (assuming backup count is 1).
All of this assuming that all nodes are storage-enabled and are running the service.
Best regards,
Robert -
How to install metadata cache invalidation tool
Hi,
I have a problem in using JCO destinations for Adaptive RFC models.
I went through the below pdf and they mentioned metadata cahce invalidation tool and it is not installed in the portal
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10465350-b4f5-2910-61ba-a58282b3b6df
please let me know how to install metadata cache invalidation tool
points will be rewarded for sure for the helpful answersThis tool is already installed on your system.
1) navigate to http://<hostname>:<port>/index.html
2) Click on "Webdynpro"
3) Click on "Web Dynpro Console"
3) Login as an Administrator (any user with admin priv's is ok).
4) Notice the last entry in the list -
Metadata Cache Invalidation for Adaptive RFC Models
Hi,
Im trying the tutorial of the document: Metadata Cache Invalidation for Adaptive RFC Models.
Ive downloaded and deployed the EAR for NW7.0 on my server, but when I try to list the JCO destinations I have the following error:
java.lang.NoSuchFieldError: flush_cache
at com.sap.invalidation.InvalidationView.onActionGetSLDJCOs(InvalidationView.java:215)
When I try to invalidate a dictionary, I have the message:
Cache for Dictionary com.unilog.product.search.model.types.SearchProductModel invalidated
But the tooltip value is not updated in my application...
Can anyone give me some tips to use this component?
Thanks in advance.
Regards,
Clairehi friends
u see this weblogs&pdf,this is helpful for u
/people/bertram.ganz/blog/2007/01/08/the-top-12-hottest-sap-notes-every-web-dynpro-java-developer-must-know
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f3f93ee7-0c01-0010-2593-d7c28b5377c2
Regards'
vino -
Is ServerSession Cache invalidated when we use raw SQL thru a UnitOfWork()
Is ServerSession Cache invalidated (for the relevant objects that are mapped to any of the tables used in raw sql) when we use raw update/insert/delete SQL thru executeQuery() on UnitofWork acquired from a clientSession ?
Or we need to do this ourselves by some procedure ?
If there is any documentation about this, could you please refer me towards it.
Thanks,
KrishnaSorry, don't know how that question was missed.
If you update data with SQL or stored procedures, then it's as if another application has updated the database and you must have a solid locking and refreshing policy in place. TopLink updates the cache after a UOW commit based on how you've manipulated the business model, not any adhoc updating SQL.
- Don -
Sax parser returned an exception. Message: Invalid character (Unicode: 0x12
Hi,
I'm getting the error 'Sax parser returned an exception. Message: Invalid character (Unicode: 0x12), Entity publicId: , Entity systemId: , Line number: 47, Column number: 75'
when I try and run a report in BI Answers 10g.
Apparently it's to do with a Java applet (or piece of Java code anyway) not being sent to an exception so it can't handle it. The problem is that I can't
run the report to get at some of the views that seem only available at run time. eg. charts.
Does anyone know how I can see behind the scenes of views without running the report?
Or does anyone know how to get rid of this error anyway?
Many thanks,
- JennyHi Satya,
I am facing the same issue. but I am facing this issue with Mozilla Firefox browser only. If I modify same reports in internet explorer I don't get this error. It seems this issue is with OBIEE 10g version only and Oracle has provided some patches on this in OBIEE 11g .
You have posted this question long back. If you have got any solution for this then please let me know also.
Thanks -
Java exception on "cache document" post to CRM from UCCX
We recently implemented a CRM which supports a method of 'call pop', where information is POST'ed from our UCCX application to an inbound point. It works perfectly. The problem we're seeing is that if that inbound point is unavailable, our application throws an exception. Normally this doesn't matter, because the race condition that is triggered between the exception and the call being connected to an agent is almost always connected.
However we may use other purposes for passing data, and that could cause our script to fail. Is there a way to elegantly handle this exception, or avoid it entirely?
The error message reads: "Task: 38000352451 I/O exception from caching document; nested exception is: java.io.IOException: Server returned HTTP response code: 500 for URL: (redacted, our CRM's inbound URL)"
Please let me know if there's any other information I can provide. Thanks!
UCCX 8.5.1 : 8.5.1.11002-22I like your idea to use the try block in the Java block. Saves on scripting steps!
Gergely Szabo wrote:...you can perhaps try the On Exception step - select er... (no much information on exceptions in the docs) so just try to choose the ones containing the term Document. Good luck with that.
Actually this is easier than you might think. Just pull the MIVR logs after an exception occurs and it tells you the exception thrown in the log file.
Additionally, if you didn't want to do that, you could just be lazy and use "WFExcutionException" which catches all exceptions in the Work Flow. -
Logical ports - SRT Framework exception: Preconfiguration is invalid
Hi all,
I'm recreating logical ports in a test system which has been refreshed from live. We have 10 web services which are consumer proxies in SOAMANAGER. I'm clicking the create logical port button and providing the WSDL file details in the popup.
For 5 of them it worked ok; for the other 5 I got the error "SRT Framework exception: Preconfiguration is invalid".
I've searched but I can't find much useful help on this error. These are all services which were using in our live environment so I wouldn't expect any fundamental errors. Maybe there is some issue with those 5 WSDLs. We applied some service packs a couple of months ago so there may have been some changes since we last had to do this. I don't see anything useful on OSS.
Any ideas anyone?
Best regards,
PaulSrinivas,
Thanks for the response. The consumer proxies (services we consume from other providers) don't seem to be listed in SICF. Just the web services which we expose. The same with the note you found, it's about publishing web services, not consuming them.
The URI's in the WDSLs are correct, and the fact that 5 have worked shows I have the right authorisations.
My investigations over the last few hours have suggested that it may be related to support packs. I created a very similar client proxy in SE80 in our development system and the configuration tab detail has changed a lot from one we did over a year ago. The old one had an operation profile node with 5 features. The new one created under SP20 also has an interface profile and a security profile with 2 features each.
I could delete the proxy and re-transport but this takes a lot of admin. I wonder if there's a way of refreshing these proxy configurations in the other test systems without a transport.
Best regards,
Paul -
How to trigger DSP cache invalidation and reload?
We have a scheduled job to update the database nightly. I used DSP caching to increase performance since the data only changes during the nightly updates.
Does anyone know how can I trigger the DSP cache invalidation and reload the updated data to DSP cache once the data loading is completed on the database server? (The database is hosted on a different server than DSP.)
Thanks in advance!
NavOn this page
http://e-docs.bea.com/aldsp/docs25/appdev/ejbclt.html
Bypassing the Data Cache When Using the Mediator API
Data retrieved by data service functions can be cached for quick access. This is known as a data caching. (See Configuring the Query Results Cache, in the DSP Administration Guide for details.) Assuming the data changes infrequently, it's likely that you'll want to use the cache capability.
You can bypass the data cache by passing the GET_CURRENT_DATA attribute within a function call, as shown in Listing 3-7. GET_CURRENT_DATA returns a Boolean value. As a by-product, the cache is also refreshed.
Listing 3-7 Cache Bypass Example When Using Mediator API
dataServices.customermanagement.CustomerProfile customerProfileDS =
customerDS=dataServices.customermanagement.CustomerProfile.getInstance(ctx,appName);RequestConfig
config = new
RequestConfig();attr.enableFeature(RequestConfig.GET_CURRENT_DATA);CustomerProfileDocument
customerProfileDoc customerPlofileDS.CustomerProfile(params,config); -
Cache Invalidation using Invalidation Rule -not working
Hi,
I am caching a JSP using servlet caching by specifying it in the cachespec.xml. I am setting a dependency id for the cache entry and have also set an invalidation rule saying if the dependency id comes as a parameter for "xyz" then invalidate the cache. The jsp is getting cached, and the value that I specify as dependency id is also appearing. But when i try to invalidate it by passing the parameter say "http://localhost/wps/myportal/dynacache?xyz=1234", the cache doesnt get invalidated.
Please suggest as what is the issue with this approach? Why is the cache invalidation not happening as per the rule set? Is there any other approach to invalidate it other than TTL? I understand invalidation-generator can only be used for web-service client cache.
Please reply ASAP..
This is my cache entry
<cache>
<cache-entry>
<class>servlet</class>
<name>/_caching/jsp/html/CachingPortletView.jsp</name>
<cache-id>
<component id="Cached" type="attribute">
<required>true</required>
</component>
<component id="locale" type="locale">
<required>false</required>
</component>
<component id="" ignore-value="true" type="pathinfo">
<required>false</required>
</component>
</cache-id>
<dependency-id>test
<component id="Cached" type="attribute">
<required>true</required>
</component>
</dependency-id>
<invalidation>test
<component id="Cached" type="parameter">
<required>true</required>
</component>
</invalidation>
</cache-entry>
</cache>
Regards,
SaribaThis sounds like an application server specific configuration, which is off-topic here. Try a forum devoted to your application server.
-
Database Change Notification and TopLink Cache Invalidation
Has someone succeeed in implementing the How-to Database Change Notification and TopLink Cache Invalidation.
I have corrected some document errata about the pl/sql content and I manage to have messages in the 'notify_queue'.
I obtain the Topic in Java from this queue.
But the TopicSuscriber instances do not receive any message. Is there something to have in mind to make it work ?
Regards.Reviving this thread again...
I am using DCN feature to build a middle-tier cache. I know oracle has problem sending physical rowid in case of 'Index Organized Table', however, in normal table also its not able to send proper rowid.
e.g, I have 2 records in Table A with rowid AAARIUAAGAAAV/uABw and AAARIUAAGAAAV/pAAX.
I have updated both the records. Strangely for the first record, oracle is sending INVALID rowid, although for the second record its sending the valid one.
Following is the output:
Row 1: (Wrong rowid being sent, AAARIUAAGAAAV/uABw is replaced with AAARIUAAGAAAXDCAAr)
Connection information : local=localhost.localdomain/127.0.0.1:47633, remote=localhost.localdomain/127.0.0.1:2278
Registration ID : 2102
Notification version : 1
Event type : OBJCHANGE
Database name : <sid>
Table Change Description (length=1)
operation=[UPDATE], tableName=<table_name>, objectNumber=70164
Row Change Description (length=1):
ROW: operation=UPDATE, ROWID=AAARIUAAGAAAXDCAAr
Row 2: (Right rowid being sent, AAARIUAAGAAAV/pAAX)
Connection information : local=localhost.localdomain/127.0.0.1:47633, remote=localhost.localdomain/127.0.0.1:2278
Registration ID : 2102
Notification version : 1
Event type : OBJCHANGE
Database name : <sid>
Table Change Description (length=1)
operation=[UPDATE], tableName=<table_name>, objectNumber=70164
Row Change Description (length=1):
ROW: operation=UPDATE, ROWID=AAARIUAAGAAAV/pAAX
Any idea ?
Maybe you are looking for
-
Notes not syncing with Outlook & not automatically backing up
When I upgraded to the latest version of iTunes the syncing behavior changed with my 4G. I sync music, photo's, everything but the "Info" category with my home PC's iTunes. Then at work I let Contacts, Calendars, Mail & Reminders sync via Exchange.
-
Length of component (DC) name
Hi, What is the allowed length of a component (DC) name? A DC Project name includes the following details: JDI track, SC, CompName, vendor name. While creating a DC project, if the name exceeds 8 char it shows a warning. What is allowed length here?
-
LabVIEW Crashes while closing the VI
Hi all, I am experiencing a labVIEW crash everytime I close my VI after running it. what the VI is doing is, it communicates with an opal kelly board through the okFrontPanel.dll and reads some data from it and displays it in the front panel. The vi
-
Set classpath in Window 95, 98, ME
Hi, Would anybody please show me how to set the class path in windows 95, 98, ME. I used: set classpath=c:\ but it did not work Thanks
-
Changing email software for Quickbooks 2009
I previously used Eudora as my email software. I have now changed to Mail 3.5 that came with my Mac G5. In Quickbooks when I wanted to email an invoice, it automatically brought up Eudora. How do I change it to bring up Mail 3.5 instead of Eudora? Th