Webutil_file_transfer url_to_client places objects in the Java Cache
Hi,
I'm using webutil_file_transfer url_to_client to download a PDF file.
Once I downloaded the PDF file, it is visible in the Client Java Cache Viewer. When I try to run the download again webutil takes the PDF from the Cache instead taking the newer PDF from the Server where the URL is pointing to.
So the URL I passing is each time the same, but the PDF file on the Server is getting updated very often.
I don't usethe WEBCACHE port!
My question now is. Can I avoid webutil to put does PDF file in the Java Cache on the Client. Or is there any utility to remove selected objects from the Java Cache.
Does anybody have a Idea how to avoid such a behaviour?
Fatih
Hi Craig,
with the help of Oracle Support, we found the reason and also a workaround for this issue.
The real cause:
By default the java applet parameter DefaultUseCaches is true an all files downloaded within an applet is going throug the Java Client Cache.
WEBUTIL does not touch this parameter, so it keeps staying default (true).
Solution/workaround:
With the methode setDefaultUseCaches it possible to disable/enable the default Cache setting.
So it's possible to disable the cache with a small Java Bean running in Forms, which disable the Cache before WEBUTIL_FILE_TRANSFER and enable it after the successfull download.
here is an extract of the bean code:
URL u = new URL( "http:" );
URLConnection uc = u.openConnection();
uc.setDefaultUseCaches(false);
thank you for your time!
regards,
Fatih
Similar Messages
-
How can I get a count of objects in the near cache? (Extend client)
Hi,
I'm trying to figure out how to get the count of objects in my near cache (from c++ client). Knowing the size of the near cache is a key factor when optimizing configurations for performance.
However if I call size() on the cache handle I get the count of objects in the cache (ie the cluster). How can I get a count of objects in the near cache?
Thanks
Rich CarlessH Rich,
It may not be ideal, but I think you may be able to infer the size by using the HeapAnalyzer (http://download.oracle.com/docs/cd/E15357_01/coh.360/e15728/classcoherence_1_1lang_1_1_heap_analyzer.html) facility, specifically the "class" based HeapAnalyzer. Its Snapshot representation http://download.oracle.com/docs/cd/E15357_01/coh.360/e15728/classcoherence_1_1lang_1_1_class_based_heap_analyzer_1_1_snapshot.html provides a mapping between class name and ClassStats (http://download.oracle.com/docs/cd/E15357_01/coh.360/e15728/classcoherence_1_1lang_1_1_class_based_heap_analyzer_1_1_class_stats.html) which provides information on how many instances of a given class type are in memory. Note the reported counts are process wide but if your key or value type are distinct you may be able to infer your answer. I realize this is rather complex, my only other suggestion would be to just make some guesses on size and see how they effect performance.
Mark
Oracle Coherence -
How can I change the java cache path - jre v. 1.6.0_03 ?
Hello,
Computer with OS Windows Vista Pro & JRE v. 1.6.0_03.
Standard path for the "java cache" is: c:\users\PCV\AppData\LocalLow\Sun\Deployement\cache
Is it possible change it?
Many thanks for your feedbackThe General tab, Temporary Internet Files, of the Java Control Panel allows this to be set.
I suspect that Vista's Security/ALC will be upset if you mode it to a different security zone, however. -
Putting a object on the coherence cache
Hi All,
Is there a better way of doing the following:
In a multi-threaded region of code I perform the following sequence of steps:
1. Use a filter to check if object foo already exists on the cache.
2. if the result set of the filter is null, I perform a lock Cache.lock(foo.getUniqueID);
3. I put the object foo on the cache Cache.put(foo);
Basically I am trying to avoid another thread from overwriting the existing cache object.
Is there a better way to achieve this ?
regards,
AnkitHi Ankit,
You can use a ConditionalPut EntryProcessor http://docs.oracle.com/cd/E24290_01/coh.371/e22843/toc.htm
Filter filter = new NotFilter(PresentFilter.INSTANCE);
cache.invoke(foo.getUniqueID(), new ConditionalPut(filter, foo));An EntryProcessor will take out an implicit lock on the key so no other EntryProcessor can execute on the same key at the same time. The ConditionalPut will apply the specified Filter to the entry (in this case to check that it is not present, and if this evaluates to true then will set the specified value.
JK -
Caching objects in the data cache as a result of an extent.
Patrick -
I wanted to post this since it's related to a question I posted about extents and the data cache on
11/8.
I discovered that the com.solarmetric.kodo.DefaultFetchBatchSize setting affects how many objects
get put into the data cache as a result of running an extent (in 2.3.2). If I have:
com.solarmetric.kodo.DefaultFetchBatchSize=20
then as soon as I execute the second line below:
Iterator anIterator = results.iterator();
Object anObject = anIterator.next();
I see 20 objects in my data cache. In a prior reply you indicated that you were going to check this
behavior in 2.4 so I wanted to send you this additional information. This behavior isn't a problem
for me.
LesLes,
This is expected behavior -- the DefaultBatchFetchSize instructs Kodo to
retrieve objects from the scrollable ResultSet in groups of 20. So,
getting the first item from the iterator will cause a page of 20 objects
to be pulled from the result set.
-Patrick
Les Selecky wrote:
Patrick -
I wanted to post this since it's related to a question I posted about
extents and the data cache on
11/8.
I discovered that the com.solarmetric.kodo.DefaultFetchBatchSize
setting affects how many objects
get put into the data cache as a result of running an extent (in
2.3.2). If I have:
com.solarmetric.kodo.DefaultFetchBatchSize=20
then as soon as I execute the second line below:
Iterator anIterator = results.iterator();
Object anObject = anIterator.next();
I see 20 objects in my data cache. In a prior reply you indicated that
you were going to check this
behavior in 2.4 so I wanted to send you this additional information.
This behavior isn't a problem
for me.
Les
Patrick Linskey [email protected]
SolarMetric Inc. http://www.solarmetric.com -
I want to automate two things. 1) reset Safari. 2) delete java files from java prefs. At the same time with one action.
Hello,
http://hints.macworld.com/comment.php?mode=view&cid=119028
http://pastebin.com/vr1AJhXF
https://discussions.apple.com/message/12590999?messageID=12590999#12590999?messa geID=12590999
The preferences files generated by the Preferences API are namedcom.apple.java.util.prefs. The user’s preferences file is stored in their home directory (~/Library/Preferences/). The system preferences are stored in /Library/Preferences/and are only persisted to disk if the user is an administrator.
http://stackoverflow.com/questions/675864/where-are-java-preferences-stored-on-m ac-os-x
http://developer.apple.com/library/mac/#qa/qa1170/_index.html -
Dead space showing up in print preview; can't place objects in it
hi -- Somehow, I've managed to get what I'll call a "dead space" in between my last page footer and my report footer. The design view looks completely normal: page footer A, page footer B, and report footer. None are suppressed.
However, when I go to the print preview, what I have is: page footer A, page footer B, a dead space, and then the report footer. The dead space looks like a section, in that the far left of the preview shows lines (like section dividers) both above and below the dead space. However, when I right click on the dead space, I don't get a Section Menu; I also don't get a section name when the mouse hovers over that dead space. I can't place objects in the dead space.
It wouldn't be a huge deal except for the fact that the report is long enough that the dead space causes it to overflow onto a second page, which isn't acceptable.
How can I get rid of this thing? I really don't want to recreate the report. It's quite complex.
Thanks,
Carol
This is Crystal 11.Hi Carol,
That's interesting. I've never heard of this rogue spacing issue.
Why don't you try insertting the following in the Page Footer B Suppress formula.
Not OnLastRecord
Maybe that will help.
Regards,
Zack H. -
1.5 How to globally set the System Cache location
FROM ANOTHER USER ON ANOTHER BOARD:
This one did not get answered completely.
************************* Question:
Hello,
I want to deploy JWS on a client PC with Microsoft XP OS. This client have multiple users. JWS put a file deployment.properties in the directory "documents and setting" for the current user.
How can I create a uniquely file deployment.properties for all users of this client (new and existing profiles) ?
Create a directory "documents and setting/all users/application data/sun/java/deployment/" with the file deployment.properties don't work.
Create a directory "documents and setting/default user/application data/sun/java/deployment/" with the file deployment.properties is working but is not good for the existing users. This is good uniquely for new users.
is there a solution ?
King regards,
funchung
************************* ANSWER:
For windows, the system config file is at:
{Windows Directory}\Sun\Java\Deployment\
The value of the {Windows Directory} is determined by using the Win32 API GetWindowsDirectory.
So for example, on XP, the system config file is:
c:\WINDOWS\Sun\Java\Deployment\deployment.properties
The settings in this system config file will be used by all users on the system.
***************************** HIS REPLY
I've tried this and it doesn't seem to work.
I've also tried createing a deployment.config file as per the http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/properties.html article and this doesn't work for me.
Has anyone done this successfully??
******************************** MY REPLY:
This is true.
I can get the system install to work if I add the parameter:
deployment.system.cachedir=C\:\\testcache
to the deployment.properties file found under:
C:\Documents and Settings\username\Application Data\Sun\Java\Deployment
but it will NOT work by adding it to the:
C:\WINDOWS\Sun\Java\Deployment
directory. It just creates a new default one in the user's folder.
What am I doing wrong?
If there is not a way to globally set the System Cache location, then this isn't much better than the user cache for being able to "install" the software once on the PC and let any user that signs in access that application.
We had high hopes for this, since this functionality was taken away from us once the java cache started being stored in the user's folders.
More details:
I just tried setting the mandatory=true setting and it tells me that it is not allowed to start because it can't find the
deployment.properties in the same folder (full path is displayed) but I know it is there, because it is the same folder. I even double checked the spelling.
Maybe there is a bug in the way it finds that properties file, or maybe I need to include something in that file that I didn't find in documentation?
All it has in it is the one line:
deployment.system.cachedir=C\:\\testcache
Can anybody help shed light on this?
It seems to be a bug that it can't find the deployment.properties file in the 'system' folder.
-ChrisI now found more on another thread:
http://forum.java.sun.com/thread.jspa?messageID=3500778�
You can close this one.
Sorry. -
Speed of animation fluctuates based on java cache..
Hi everyone,
It seems I am experiencing a rather weird problem.
In my app I am having a small animation on a BufferedImage using the swingx.Timer class.
The problem is that sometimes the animation runs very slow (I get a feeling of the computer struggling to keep up)
while some other times its running on full speed! (I have set the Timer constructor to 1ms)
What could be causing this "undeterministic" behaviour? I 've looked at the code a million times
and there seems to be nothing wrong with it...!
P.S I am having a CORE2DUO and running the latest JRE 1.6.024
UPDATE: I can replicate the problem if I clear the java cache from the control panel
in windows..!strange...isn't it?
Edited by: konos5 on Mar 14, 2011 4:10 PMkonos5 wrote:
UPDATE: I can replicate the problem if I clear the java cache from the control panel
in windows..!strange...isn't it?Depends. Are you perhaps loading the image in the same method you are drawing it? If so: that is horribly inefficient. -
Value mapping replication - java cache
i used value mapping replication and successfully loaded values to the java cache (i can see the in the cache monitoring but not in the configuration).
when i try to use a scenario with value mapping using the agencies and schemes which i loaded, the mapping doesn't work and i receive the same value that was entered.
what could be the problem?
P.S
i used the same groupid for each pair of source and target value when i loaded them. is that the right way?Tomer,
what is the context that u used. Did you give the correct context in mapping as in Runtime Cache.
Regards,
Sudharshan N A -
Hi friends,
I'm in PI 7.3 environment, my problem is - when I try to access ESB and IB, it says that it is Unable to download.
So, for that am clearing Java cache and trying to download to get into ESB and IB every time. Obviously am wasting hours of time to login ESB and IB. Just in case if the connection gets off, then If I want to get into ESB again I have to clear the Java cache completly(Java cache is not recognizing)
I came across all the links in sdn but not solves my issue. Kindly share exact to do things - to fix the issue.
Many thanks.
Swarnaalu.Hi Swarna,
There might be some problem with javawebstart you can try uninstalling java and try to reinstall so that it will work.
OR
I am not sure in PI &.3 but in earlier versions you can do the re-initialization which works.
follow the below:
1. Login to your XI/PI server
2. Go to Exchange Infrastructure Tools main web screen. You will see
Tools list and other options.
http://SERVER:PORT/rep/start/index.jsp
3. On the Upper right part of your screen you will see Tools
Administration Client Installation and Guidelines Documentation.
Click Administration
4. Login with user.
5. On the Exhange Infrastructure Administration , make sure you are in
the Correct tab. (Repository Directory Runtime). The tab will
determine the administration configuration that your will perform
5.1 When this problem occur with Integration Repository > make sure you
are in Integration REPOSITORY TAB. Proceed with step 6. Skip step 5.2.
5.2 When this problem occur with Integration Directory > make sure you
are in Integration DIRECTORY TAB. Proceed with step 6.
6. Click on Java web start administration.
7. Click on Re-initialization and force-signing. This will
re-authenticate all new JAR files deployed. This will also let the new
JAR files adapt to the current certificate deployed.
This function will cause the above re-collection and additionally a
re-signing of ALL resources with a dummy certificate. The original SAP
signatures of the jarfiles will be lost. To get back the original SAP signatures
the application has to be deployed again.
8. A Java(TM) Web start Application reset text will appear.
9. Wait for 5 to 15 minutes for re-initialization to complete
10. Start your "Integration Repository' or "Integration Directory"
again. It should work now.
This will solve the issue
Regards,
Naveen -
Java Cache Viewer shows duplicate URL with different versions
In doing some testing lately we have come across a couple of situations where the same URL is showing in the JAVA cache viewer with different versions to them. In the case of a 1.7 JRE this is not causing any adverse effects however when utilizing a 1.6 JRE we are getting messages about mixed mode for the JAR files.
The jar file is signed as below:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.8.2
Application-Library-Allowable-Codebase: *
Application-Name: named_applet
Built-By: relbuild
Permissions: all-permissions
Created-By: 1.6.0_17-b04 (Sun Microsystems Inc.)
Caller-Allowable-Codebase: *
Codebase: *
understanding the need to change the wildcard's to domains as we move forward. I am wondering why the jar file is being listed and called twice and why it is being recognized as signed one time and not the next.
The URL is identical in the cache viewer and the java console says it is not found in the cache when it is used the second time, even though previously in the session is finds it with the correct version.
Any advice would be helpfulthat i even know, but the problem is that i do not have that version of java re installed, but i found distribution 07 of the same java version, i'll try it out with that.
but when it still doesn't work, then i still would like to find the link where i can download java version 1.4.2_06. -
Java Cache Issue on SAP MII 12.1 SP09 (Build 116)
Hi All,
Has anybody experienced this issue before?
Problem Description
This installation is a central MII instance, which is HP hosted in Swindon, UK. On Login we are experiencing a delay in loading the Java Applets, i.e. iGrids, iCharts, iCommands etc. After the first screen load the performance improves. When we close the session and re-enter, the performance on the first screen is delayed.
Problem Investigation
We have compared this project to other MII instances and investigated the cache loading of each of the MII installations. What we have noticed is that the Java is not being cached on the client side for the MII server V12.1 SP09 (Build 116). We had three MII servers, with this version, and we are experiencing the same issue. We have other instances of version 12.1.7, 12.1.8, and 12.2.0 and the cache functionality is working fine.
To view the cache we are opening the Java Cache viewer on the Java Control Panel, and we are looking for the file u201Cillum8.zipu201D which is the MII Java library. This investigation was done using the same Client Java Runtime version and IE Version.
Software Versions used: JavaRuntime version: 1.0.6_22 & Internet Explorer 8.0
Any advice/help much appreciated.
Regards,
HenryHi Henry,
Not sure this has any bearing, but what NW version and SP is MII sitting on top of?
Thanks,
Mike -
Classcast exception while sending objects to the server
I'm getting classcast exception when i try to send objects from the java webstart application at the client side to a server. Its working fine if I do the same without using javaweb start. I'm using hessian client to send objects to the server.
I've a web app that gets outlook contacts from the client machine and send those to the server. I'm sending these contacts as custom objects(OutlookContact) to the server using hessian client. But these objects are being sent to the server as String objects but not as OutlookContact objects. I don't know whats happening. Can anyone please tell me is there any setting that I need to set in the jnlp file.
thanks,
JayaramI am also getting the same error. Please anybody can help
-
Where can i find the java-cache of the internet-explorer. What i mean is where does i-explorer store the class file loaded from a website. I need to delete a version of my software in order to load the latest version. Once loaded, it doesn't reload the new version if avaible...
tia...So instead of using IE to search the web, you just keep posting here and waiting for an answer?
This took me 1 second to find (at the bottom of the page):
http://homepage.eircom.net/~pugsleypaul/java/applets.htm
is there a way around this problem???Get up, turn off the computer and don't return to the chair - ever.
Maybe you are looking for
-
Can you still connect to iTunes Store with v.7?
Like numerous others who have posted here (most without receiving responses, it would appear), I'm getting the "iTunes Store is temporarily unavailable" message and have been for a long time. I've begun to suspect that the store may no longer allow a
-
Preview asking for user password on PDF file. There is no password. Anyone have any suggestions?
-
Need datetime in this format "Tue, 5 Feb 2008 15:31:20 +0100"
Hi, i have to export Date and Time to a string in this format: "Tue, 5 Feb 2008 15:31:20 +0100" DayByName, DayByNumber Month Year HH:MM:SS Timezone Thanks for help.
-
Approve Working in MSS as delegate/substitute
Hello, We are using MSS in the portla without UWL functionality. Standard the 31000007 workflow sends to the approver a workflow item based on the standard HR hierarchical structure shown in PPOME. The MSS data shown in the Worktime Approval screen i
-
Dreamweaver CS4 Design View Issues
Hi, I'm experiencing issues with the design view in DW CS4. It seems a little buggy to me. Sometimes I cannot seem to select any items at all, either using a single or double click. It's starting to drive me nuts. Is there an easy way to enter into t