From: Bobby N. <bwn...@fe...> - 2002-11-09 05:48:53
|
Endre, I faced something just as screwy here at work. =20 We had some code that worked on every development machine in our shop; intel/windows NT, intel/windows 2000, intel/RH Linux 7.2, intel/RH Linux 7.3, Sun Ultra I/Solaris 8, and 2 Sun Ultra II/Solaris 8s. When we moved that code into our staging/production environment, which is also Sun Solaris 8 (unsure of the hardware model), it would bomb on us. We finally tracked the problem down to a call to a String objects' getBytes() method. =20 The problem was in the JVM/Class library's implementation on that particular combination of hardware/software. Who knows if the os needs patching or the JVM, but in the end we put a work around into our code to avoid the call to getBytes. =20 I guess that's why Java's unofficial mantra is "write once, test everywhere". Bobby Nations On Fri, 08 Nov 2002 09:22:20 +0100 (CET) Endre St=F8lsvik <web...@st...> wrote: > On Thu, 7 Nov 2002, Eric B.Ridge wrote: >=20 > | <snip> > | > | this isn't WebMacro's fault. :) >=20 > Well, that's OK, but it's still -my- problem! ;) >=20 > | > | > The secondary stack trace: > | > > | > -- secondary stack trace -- > | > java.lang.IllegalAccessError: tried to access method > | > java.lang.Object.clone()Ljava/lang/Object; from class > | > com.corelets.statistics.SamplerHolder > | > at > | > com.corelets.statistics.SamplerHolder.getValues(SamplerHolder.jav > | > a:208) > | <snip> > | > HERE =3D=3D>> ret.lastSample =3D (double[]) _lastSample.clone= (); > | > | You found the line. I'm willing to bet that whatever object this > | _lastSample variable is, at one point didn't "implements Cloneable" > | (but now it does), and somehow your compiled .class files got out of > | sync. >=20 > It's a double-array (as the lines before were trying to suggest). They > are cloneable, right?? And it's an IllegalAccessError..? >=20 > Sources are all rebuilt. The deal is that all files are actually > _copied_ from the devel to the prod environment (it works on the > devel), so I just can't figure out what is the problem. Same VM, same > Tomcat, same everything (at least to the point I've managed to > research so far). Thus, I'm more asking for ideas for where to hunt > for this, in my view, psycho-problem..! >=20 >=20 > --=20 > Mvh, > Endre St=F8lsvik M[+47 93054050] F[+47 51625182] > Developer @ CoreTrek AS - http://www.coretrek.com/ > CoreTrek corporate portal / EIP - http://www.corelets.com/ >=20 >=20 >=20 > ------------------------------------------------------- > This sf.net email is sponsored by: See the NEW Palm=20 > Tungsten T handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en > _______________________________________________ > Webmacro-user mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webmacro-user >=20 --=20 Sr. Programmer / Analyst FedEx Services 20 FedEx Parkway Collierville, TN 38017 (901) 263-6517 |