Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Bug AgentInitializationException Help Thread

Joined
Jan 17, 2016
Messages
31
There's nothing else I'd like you guys to try at this point, expect an update in the next 24 hours with my next attempt.

I reinstalled Runemate following the release of 2.05 and if I don't manually open the client, I still get the AgentInitializationException, and if I do open the client manually and try to start an instance, I get the same error with the library missing the target VM.
Want me to post the log?

@Cloud
 
Last edited:
Joined
Sep 22, 2015
Messages
58
Not sure if its the same error but similar, My error is "Failed to bind to virtual machine because of a Exception"

Log is below

"
[Debug] RuneMate Version: 2.0.4
[Debug] Java Version: 8u77 x86 (Oracle Corporation)
[Debug] Operating System: Windows 8.1 x64
Apr 22, 2016 2:18:28 AM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
Failed to bind to virtual machine because of a Exception
java.lang.Exception: Failed to bind to the virtual machine.
at nul.IiIIiIiIiiIi.false(yfc:167)
at nul.IiiiiIiiIiIi.run(wcc:261)
Caused by: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
java.net.SocketTimeoutException: Read timed out
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.newCall(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at nul.IIiIIIiIiIII.false(lac:273)
at nul.IiIIiIiIiiIi.false(yfc:112)
... 1 more
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at java.io.DataInputStream.readByte(Unknown Source)
... 7 more

"
 
Mod Automation
Joined
Jul 26, 2013
Messages
3,048
Not sure if its the same error but similar, My error is "Failed to bind to virtual machine because of a Exception"

Log is below

"
[Debug] RuneMate Version: 2.0.4
[Debug] Java Version: 8u77 x86 (Oracle Corporation)
[Debug] Operating System: Windows 8.1 x64
Apr 22, 2016 2:18:28 AM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
Failed to bind to virtual machine because of a Exception
java.lang.Exception: Failed to bind to the virtual machine.
at nul.IiIIiIiIiiIi.false(yfc:167)
at nul.IiiiiIiiIiIi.run(wcc:261)
Caused by: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
java.net.SocketTimeoutException: Read timed out
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.newCall(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at nul.IIiIIIiIiIII.false(lac:273)
at nul.IiIIiIiIiiIi.false(yfc:112)
... 1 more
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at java.io.DataInputStream.readByte(Unknown Source)
... 7 more

"
Not the same. If this is only happened once then don't worry about it. If it's happening everytime then report it in its own thread.
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
@Cloud

Still have the same issue, even with v2.0.5

Is there anything else I could try?
1. Try with the latest build
2. Send me a pm with the contents of the folder "user.home\jagexcache\jagexlauncher\bin\", by user.home I'm referring to C:\Users\YOUR_PC_USERNAME\
 
Joined
Jan 17, 2016
Messages
31
1. Try with the latest build
2. Send me a pm with the contents of the folder "user.home\jagexcache\jagexlauncher\bin\", by user.home I'm referring to C:\Users\YOUR_PC_USERNAME\

The latest update did not change anything, sadly
I have no 'jagexlauncher' folder, only a folder named 'oldschool'
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
The latest update did not change anything, sadly
I have no 'jagexlauncher' folder, only a folder named 'oldschool'
It sounds like you never installed the official game launcher (it's now the "legacy" launcher), either that or it's storing it's data in another folder that I'm not aware of existing.
 
Just to clarify, that would explain your issue...
 
Joined
Jan 17, 2016
Messages
31
It sounds like you never installed the official game launcher (it's now the "legacy" launcher), either that or it's storing it's data in another folder that I'm not aware of existing.
 
Just to clarify, that would explain your issue...

I've worked out what the issue is.
For some reason, my jagexcache folder is located on my second hard drive, whereas (I assume) runnemate is searching for it on my first. The issue is now that I can't workout how to get the jagexcache folder to be created on my first hard drive.
Any ideas?

EDIT: Got it working, I think, thanks for all your help, and sorry about all of that!
 
Last edited:
Mod Automation
Joined
Jul 26, 2013
Messages
3,048
I've worked out what the issue is.
For some reason, my jagexcache folder is located on my second hard drive, whereas (I assume) runnemate is searching for it on my first. The issue is now that I can't workout how to get the jagexcache folder to be created on my first hard drive.
Any ideas?

EDIT: Got it working, I think, thanks for all your help, and sorry about all of that!
Where was it located and do you have any idea why it was there?
 
We would like to know so that if it is a configurable path we can add it as a directory to search.
 
Joined
Jan 17, 2016
Messages
31
Where was it located and do you have any idea why it was there?
 
We would like to know so that if it is a configurable path we can add it as a directory to search.

It was just located under E:, there was jagexcache and the associated random.dat etc
All my programs were installed on my SSD, but for some reason, you can't specify the isntall location (and thus the cache location) of RS3 without using the NXT client.
I just set up a symlink to point the cache to my C\Users\(username)\ folder, and runemate was able to detect it and start a bot
 
Mod Automation
Joined
Jul 26, 2013
Messages
3,048
On my second hard drive
All my programs were installed on my SSD, but for some reason, you can't specify the isntall location (and thus the cache location) of RS3 without using the NXT client.
I just set up a symlink to point the cache to my C\Users\(username)\ folder, and runemate was able to detect it and start a bot
Can you provide the full absolute path for us?
 
Joined
Dec 17, 2014
Messages
351
Yes please.
Im having the same problem on my laptop. I have a windows 7 installation on my 1st drive (ssd) and a HDD for storage. I changed it so my documents and user folder etc are on my HDD, not my primary drive (SSD). So when i install the runescape client it puts the cache in the user folder on my hdd. The user folder on the ssd still exists, but has a lock icon trough it, and doesnt accept any files written there.
 
Joined
Jan 17, 2016
Messages
31
Im having the same problem on my laptop. I have a windows 7 installation on my 1st drive (ssd) and a HDD for storage. I changed it so my documents and user folder etc are on my HDD, not my primary drive (SSD). So when i install the runescape client it puts the cache in the user folder on my hdd. The user folder on the ssd still exists, but has a lock icon trough it, and doesnt accept any files written there.

This was the issue that I had
 
Joined
Dec 5, 2016
Messages
2
Ran into this issue today. Tried to start an OSRS script and kept getting a AgentInitializationException. Checked error logs and saw following

Code:
Failed to bind to the game client because of a AgentInitializationException
com.sun.tools.attach.AgentInitializationException: Agent JAR loaded but agent failed to initialize
    at sun.tools.attach.HotSpotVirtualMachine.loadAgent(it:114)
    at nul.IIIIIIiIIiII.int(jkb:168)
    at nul.IIIiIIiiIiiI.run(xnb:180)
Attempting to start official client. If it does not open shortly please do so manually.
Checking for a new game client every second for two minutes or until one is found.
Failed to bind to the game client because of a AgentInitializationException
com.sun.tools.attach.AgentInitializationException: Agent JAR loaded but agent failed to initialize
    at sun.tools.attach.HotSpotVirtualMachine.loadAgent(it:114)
    at nul.IIIIIIiIIiII.int(jkb:168)
    at nul.IIIiIIiiIiiI.run(xnb:180)

I resolved it by

1) installing the official osrs client from the website
2) deleting the entire jagexcache folder
3) still didnt work, so I restarted Runemate

and that fixed it.
 
Joined
Jul 15, 2016
Messages
58
[Debug] RuneMate Version: 2.4.4
[Debug] Java Version: 8u92 x86 (Oracle Corporation)
[Debug] Operating System: Windows 10 x64
Downloading 2 missing or outdated cloud resources.
Attempting to start official client. If it does not open shortly please do so manually.
Checking for a new game client every second for two minutes or until one is found.
Found a new game instance after 3 seconds.
Failed to bind to the game client because of a AgentInitializationException
com.sun.tools.attach.AgentInitializationException: Agent JAR loaded but agent failed to initialize
at sun.tools.attach.HotSpotVirtualMachine.loadAgent(oq:112)
at nul.IiIiIIiiiIiI.float(ilb:193)
at nul.iiiiIIiIIiiI.run(brb:108)


hi i have tried all of the different methods - restarting/ reinstalling etc
it doesn't work and i even got teamspeak with auxi but it didn't work (and he tried everything)
please helps lol

guys when i say i tried everything - i mean everything... and then auxi tried everything and now i reaaaallly mean everrryyytttiiiinnn. plz heleps meeehhhh
 
Last edited:
Learning Java
Joined
Dec 24, 2016
Messages
24
Why did you guys change from the way it used to be? This new system is more complicated and this bug still isn't fixed somehow.
 
Joined
Jul 15, 2016
Messages
58
so is this just never gna get a reply or what?
 
@Cloud
Hi i'm having issues, i don't know if it's the same as the people in this thread but i tried everything.
and since im a nooby Auxi was kind enough to help me out to and tried lots of stuff aswell with no luck
can you please advise me on what to do??
 
Top