he estado investigando y me encontre con lo siguiente:
I've found a solution to the following error: "java.lang.ClassFormatError: Incompatible magic value ... in class ...".
This problem (at least in my case) appears when the applet tries to get an inexistent remote resource and the server reply with a custom 404 HTML page instead of "HTTP/1.0 404 Not Found" error header. In this case the applet do not recognize the alternative 404 page as valid class and generates the error.
I suggest two alternatives to solve this problem:
1) remove the 404 redirection from server (drastic solution);
2) generate the 404 redirection using a server-side script (JSP, PHP, ASP,...) that analize the HTTP_USER_AGENT environment variable and returns an "HTTP/1.0 404 Not Found" header if contains the "Java" word.
In PHP this script looks like the following:
if ( isset($_SERVER['HTTP_USER_AGENT']) AND (!(strpos($_SERVER['HTTP_USER_AGENT'],"Java")===false))) {
// returns 404 error because a Java user agent were recognized
header("HTTP/1.0 404 Not Found");
} else {
// put here your alternative code ...
}
ahora mi pregunta es... como elimino la redireccion 404 del servidor???
y el codigo que aparece... debo decir que mi aplicacion en standalone eso tendra que ver???