David Cuesta

Greenhorn
+ Follow
since Nov 07, 2001
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 David Cuesta

Hi everybody,

I've an application installed in production that uses EHCache as cache manager and is working fine, but sometimes the cache is down and shows a message about that the cache is invalidated, any idea about or similar behaviour?

Thanks in advance,

Best regards,
15 years ago
ok, i'm trying to use hashCode as parameter in an URL, but i think that the best way is to convert it in a hexadecimal String, hidding the parameters
Example:
Hello -> A2B2 ...

Thanks for all
20 years ago
Hi all,
Somebody knows how can i create a String if i have his hashCode?, the api says that hashCode method of String class uses the folowing code:
s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1]
but, i havn't got time to make experiments,
Thanks,
20 years ago
Hi all,
I have a problem when i try to write a byte array to the browser as an attachment, i use the method response.getOutputStream to get the binary stream for write in client but when it's writing the file corrupts when find a byte '00' and the file don't download well, i hope that someone there was have the same problem and can help me.
Thanks to all,
PD: the verion of Weblogic is 5.1 with service pack 10, and i use the method response.setContentType() and response.setHeader() to establish the proper file type
21 years ago
Hi all,
Do Somebody knows how make internacionalization with ResourceBundle class and a database?, i explain, How can obtain descriptions from database and use with ResourceBoundle class?
thanks,
21 years ago
Hi all,
Somebody can explain me how that work?:
interface List extends Collection
...
public abstract class AbstractList
extends AbstractCollection
implements List
...
public class ArrayList
extends AbstractList
implements List, Cloneable, Serializable
...
why ArrayList class declare the implements keyword, don't inherit from AbstractList?

Thanks for all
Somebody know something about HttpClusterServlet, how it works?
Thanks
21 years ago
why?, there aren�t something trick to achieve this?, or duplicate the session, the problem is that i need to mantain a session variable that indicate the login of the user in the system, but between two webapps, a bad solution will be save the sessionid in a database and set/get the value when i need, but must to be other way
21 years ago
I suppose that the next step is UML but i don�t know what certification, IBM or the other published in jcert.org
Hi to all, my problem is that i need to share a client session between two webapps that is running in the same JVM,
Thanks to all,
N: the version of WL is 5.1
21 years ago
The code:
public class prDouble{
public static void main(String []arg){
double dYLDAux = Double.parseDouble("+0.0466");
double dHSTAux = Double.parseDouble("+4.9842");
double dAux;
dAux = dYLDAux/dHSTAux;
System.out.println(dAux); //0.009349544560812165
dAux=(double)Math.round(dAux*1000)/1000;
System.out.println(dAux); //0.0090
}
}
do Somebody know why the last zero appears?
I try with others decimal places and this problem don't occurs.
Thanks for all,
public class Test1{
int test(boolean b){
int i;
try{
if(b) return 1;
i=2;
}finally{if(b) i=3;}
return i;
}
public static void main(String h[]){
new Test1().test(true);
}
}
compile fine, but runtime error:
Exception in thread "main" java.lang.VerifyError: (class: Test1, method: test signature: (Z)I) Register 2 contains wrong type
can somebody explain me?
Thanks
Thanks to all!!
David Cuesta
Sun Certified Programmer for Java 2 Platform
22 years ago