Alastair Rae

Greenhorn
+ Follow
since Nov 14, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Alastair Rae

I don't have an answer but I do have the same problem in JSF2 + ui:repeat
12 years ago
JSF
I have an app that reads and writes data to zip files. When opening one, I use a JFileChooser with a file filter for zips and directories.
This works fine except except on XP. If the zip file is on a remote (Novell) file server, the JFileChooser treats the zip file as a directory. You can't open the zip file itself.
If the client is W2k, there is no problem.
I'm using JRE 1.4.1.
Anyone know if there's a tweak to XP to fix this?
20 years ago
I think you will have to use JNI to get the permissions in C.
Why Sun couldn't have come up with some generic model of permissions is beyond me. Or even just a *nix version.
20 years ago
update mytable set x = EMPTY_BLOB() where ...
select x from mytable where ...
update mytable set x = ? where ...
This last one is a prepared statement and you do:
((oracle.sql.BLOB)b).putBytes(1, ...)
Ugly!
20 years ago

Originally posted by Ernest Friedman-Hill:

This was a problem in 1.1-era JVMs, long since rectified. Here's an article From January, 2001 that discusses the problem in the past tense, and links to a 1999 Alan Holub article that shows a workaround.


I guess I must be remembering it from back then. You carry on working around a problem long after it's been fixed. Thanks for the update.
20 years ago

Originally posted by Ernest Friedman-Hill:
As long as any loaded class knows about the class in which the Singleton is located, it won't be unloaded. This is more of a theoretical problem than a real problem.


Sorry to disagree, but I have seen this cause a bug more than once. A singleton held in a static variable can be garbage collected when there are no other references to its class. The whole class gets gc-ed. I presume that's why there's the -Xnoclassgc option.
20 years ago
To quote the API:
"Normally, this error is caught by the compiler; this error can only occur at run time if the definition of some class has incompatibly changed since the currently executing method was last compiled"
20 years ago