PDA

View Full Version : Runescape (bad java method errors)


Smaskens
December 26th, 2005, 09:12 AM
I have been trying to play Runescape with Firefox + Java (www.runescape.com). However Firefox quits randomly (when all memory is used) and following errors are printed:


:~/.mozilla/plugins$ firefox

**************** SERVER ERROR **************
SecureCallStaticMethod: bad method
**************** ************ **************

**************** SERVER ERROR **************
SecureCallStaticMethod: bad method
**************** ************ **************

**************** SERVER ERROR **************
CSecureJNI2_CallMethod: Bad java method
**************** ************ **************

**************** SERVER ERROR **************
SecureCallStaticMethod: bad method
**************** ************ **************

**************** SERVER ERROR **************
SecureCallStaticMethod: bad method
**************** ************ **************

**************** SERVER ERROR **************
CSecureJNI2_CallMethod: Bad java method
**************** ************ **************

**************** SERVER ERROR **************
SecureCallStaticMethod: bad method
**************** ************ **************

**************** SERVER ERROR **************
SecureCallStaticMethod: bad method
**************** ************ **************

**************** SERVER ERROR **************
CSecureJNI2_CallMethod: Bad java method
**************** ************ **************

**************** SERVER ERROR **************
SecureCallStaticMethod: bad method
**************** ************ **************

**************** SERVER ERROR **************
SecureCallStaticMethod: bad method
**************** ************ **************

**************** SERVER ERROR **************
CSecureJNI2_CallMethod: Bad java method
**************** ************ **************

**************** SERVER ERROR **************
SecureCallStaticMethod: bad method
**************** ************ **************

**************** SERVER ERROR **************
SecureCallStaticMethod: bad method
**************** ************ **************

**************** SERVER ERROR **************
CSecureJNI2_CallMethod: Bad java method
**************** ************ **************

**************** SERVER ERROR **************
SecureCallStaticMethod: bad method
**************** ************ **************

**************** SERVER ERROR **************
SecureCallStaticMethod: bad method
**************** ************ **************

**************** SERVER ERROR **************
CSecureJNI2_CallMethod: Bad java method
**************** ************ **************

**************** SERVER ERROR **************
SecureCallStaticMethod: bad method
**************** ************ **************

**************** SERVER ERROR **************
SecureCallStaticMethod: bad method
**************** ************ **************

**************** SERVER ERROR **************
CSecureJNI2_CallMethod: Bad java method
**************** ************ **************

**************** SERVER ERROR **************
SecureCallStaticMethod: bad method
**************** ************ **************

**************** SERVER ERROR **************
SecureCallStaticMethod: bad method
**************** ************ **************

**************** SERVER ERROR **************
CSecureJNI2_CallMethod: Bad java method
**************** ************ **************

**************** SERVER ERROR **************
SecureCallStaticMethod: bad method
**************** ************ **************

**************** SERVER ERROR **************
SecureCallStaticMethod: bad method
**************** ************ **************

**************** SERVER ERROR **************
CSecureJNI2_CallMethod: Bad java method
**************** ************ **************

**************** SERVER ERROR **************
SecureCallStaticMethod: bad method
**************** ************ **************

**************** SERVER ERROR **************
SecureCallStaticMethod: bad method
**************** ************ **************

**************** SERVER ERROR **************
CSecureJNI2_CallMethod: Bad java method
**************** ************ **************

**************** SERVER ERROR **************
SecureCallStaticMethod: bad method
**************** ************ **************

**************** SERVER ERROR **************
SecureCallStaticMethod: bad method
**************** ************ **************

**************** SERVER ERROR **************
CSecureJNI2_CallMethod: Bad java method
**************** ************ **************

**************** SERVER ERROR **************
SecureCallStaticMethod: bad method
**************** ************ **************

**************** SERVER ERROR **************
SecureCallStaticMethod: bad method
**************** ************ **************

**************** SERVER ERROR **************
CSecureJNI2_CallMethod: Bad java method
**************** ************ **************

**************** SERVER ERROR **************
SecureCallStaticMethod: bad method
**************** ************ **************
Out of memory while attempting to throw JSException
Out of memory while attempting to throw JSException
Out of memory while attempting to throw JSException
Out of memory while attempting to throw JSException
Out of memory while attempting to throw JSException
Out of memory while attempting to throw JSException
Out of memory while attempting to throw JSException
Out of memory while attempting to throw JSException
Out of memory while attempting to throw JSException
Out of memory while attempting to throw JSException
Out of memory while attempting to throw JSException
Out of memory while attempting to throw JSException

**************** SERVER ERROR **************
SecureCallStaticMethod: bad method
**************** ************ **************

**************** SERVER ERROR **************
CSecureJNI2_CallMethod: Bad java method
**************** ************ **************

**************** SERVER ERROR **************
SecureCallStaticMethod: bad method
**************** ************ **************

**************** SERVER ERROR **************
CSecureJNI2_CallMethod: Bad java method
**************** ************ **************

**************** SERVER ERROR **************
SecureCallStaticMethod: bad method
**************** ************ **************

**************** SERVER ERROR **************
SecureCallStaticMethod: bad method
**************** ************ **************

**************** SERVER ERROR **************
CSecureJNI2_CallMethod: Bad java method
**************** ************ **************

**************** SERVER ERROR **************
SecureCallStaticMethod: bad method
**************** ************ **************

**************** SERVER ERROR **************
SecureCallStaticMethod: bad method
**************** ************ **************

**************** SERVER ERROR **************
CSecureJNI2_CallMethod: Bad java method
**************** ************ **************

**************** SERVER ERROR **************
SecureCallStaticMethod: bad method
**************** ************ **************
Out of memory while attempting to throw JSException
Out of memory while attempting to throw JSException

**************** SERVER ERROR **************
SecureCallStaticMethod: bad method
**************** ************ **************
Segmentation fault

Smaskens
December 29th, 2005, 01:34 PM
I updated Java and made the new link to the plugins directory, but still firefox crashes. Darn, this drives me crazy ](*,)

minisori
January 1st, 2006, 05:12 PM
u have to add the option to java -mx256x so it would not crash in sun java 1.5 or sun java 1.4.2.

Smaskens
January 2nd, 2006, 11:43 AM
u have to add the option to java -mx256x so it would not crash in sun java 1.5 or sun java 1.4.2.

Where I should add it? Command prompt just informs me about invalid heap size :rolleyes:


x@x:/usr/share$ java -mx256x
Invalid maximum heap size: -Xmx256x
Could not create the Java virtual machine.
x@x:/usr/share$

ysse
January 2nd, 2006, 12:53 PM
You would use the Java Plugin Control Panel (System/Settings/Java Plugin Control Panel), the "Advanced" tab, Java Run Time parameters.

And it's -Xmx256M for 256 Mb maximum heap size, not 256x.

Good Luck

minisori
January 2nd, 2006, 07:22 PM
Oopss right misspelled it ](*,) but i think its -mx256m.

Nvm both parameters work.

Mustard
January 3rd, 2006, 11:15 AM
Just as an aside.

This won't help you with your Firefox problem, but Runescape runs very well in epiphany-browser. I had someone on my computer trying to get it working in firefox for quite a while. I eventually suggested they try it in epiphany-browser and it worked very well. Firefox and java don't seem to like each other too much. I find Firefox will often start using 100% of the cpu when some type of java thing exists on the webpage.

Epiphany-browser is able to be installed via synaptic or apt-get.

Smaskens
January 3rd, 2006, 04:09 PM
You would use the Java Plugin Control Panel (System/Settings/Java Plugin Control Panel), the "Advanced" tab, Java Run Time parameters.

And it's -Xmx256M for 256 Mb maximum heap size, not 256x.

Good Luck

I dont have such Java Plugin Control Panel at the menu but that control panel was at following location:


x@x:/usr/java/jre1.5.0_06/bin$ ls -la
-rwxr-xr-x 1 root root 4153 2005-11-10 23:47 ControlPanel


Then I selected Java tab, "Java Applet Runtime Settings" and added to the "Java Runtime Parameters" a value "-Xmx256x".

Now Runescape seems to work without problems.

And thanks for the hint, maybe I'll try Epiphany. However so far Firefox has been good enough for me.

Crazywhiteboy_760
June 4th, 2006, 03:20 PM
i want to be able to play runescape yet after i clixk what world i play in then it says that i need a plugin - java runtime environment. when i try to install this plugin it says its not availible... i was ganna try to use Epiphany-browser but i dont know how to use synaptic to install it or apt-get ... im a beginer at linux so i dont know how to really do anything if someone could help me i would greatly appreciate it

Qstosh
July 24th, 2006, 07:53 AM
i have the same problem

involutaryhaxor
August 12th, 2006, 07:36 PM
when i do manage to get my jre working (such a pain) it always works out of the box so to speak

DougZ
August 18th, 2006, 10:19 PM
Interesting the comment about Firefox and Java not liking each other.

I have experienced the CPU spiking to 100% when Java loads under both Windows and Linux versions of Firefox. Really drives me nuts.

DougZ
August 18th, 2006, 10:21 PM
Oh and I am experiencing the same issue with Runescape right now (I think). It loads fine, I can login, and when I click the large button (click to continue) Firefox just "goes away". Grrrr.

Toxicity999
August 24th, 2006, 09:29 PM
Linux Is Alergic to crappy games... No okay I'll be fair... For me as well Firefox doesn't too much enjoy any Java usage... (I have a few friends that insist on geocitying up their myspaces, and NO I don't use myspace they just make me look at their 'page' for some reason.)

madking
August 18th, 2007, 06:39 PM
open up terminle, konsole, or what ever console you use and type:
"sudo apt-get install Epiphany-browser"
:KS

r3ymysterio9
September 28th, 2007, 10:44 AM
too complicated for me, i give up :\

r3ymysterio9
September 28th, 2007, 10:45 AM
too complicated for me, i give up \\:D/

pboxinator
April 29th, 2009, 06:55 PM
try

sudo apt-get epiphany-browser

it should work this time but i havnt tried