AOChatProxy 2.0 Exception

Questions, comments, suggestions, and bug reports
budguy
Member
Posts: 7
Joined: Wed May 11, 2011 9:03 pm

AOChatProxy 2.0 Exception

Postby budguy » Sat Jan 06, 2018 5:49 pm

Please have a look at screenshot and advise. Haven't seen you pop in game so figured I'd post it here for you to have a look at. See attached screenshot.

Trev





...3 more

missed in screenshot at end
Attachments
excep.jpg
excep.jpg (87.61 KiB) Viewed 161 times
Tyrence
Posts: 2007
Joined: Sat Jan 09, 2010 1:32 am

Re: AOChatProxy 2.0 Exception

Postby Tyrence » Sun Jan 07, 2018 1:33 am

Thanks for posting the error, that is very helpful. Did you notice a message in your client around this same time? It would have been a System Message.
"Those who expect to reap the blessings of freedom, must, like men, undergo the fatigues of supporting it." — Thomas Paine
"Nearly all men stand adversity, but if you want to test a man's character, give him power." — Abraham Lincoln
Budabot Releases and Downloads: https://github.com/Budabot/Budabot/releases
budguy
Member
Posts: 7
Joined: Wed May 11, 2011 9:03 pm

Re: AOChatProxy 2.0 Exception

Postby budguy » Sun Jan 07, 2018 6:17 pm

nah I didn't, meant to post this earlier but been rl busy...

Trev
mcpala
Member
Posts: 6
Joined: Sun Apr 14, 2013 8:03 am

Re: AOChatProxy 2.0 Exception

Postby mcpala » Wed Jan 17, 2018 3:02 pm

aochatproxy

Code: Select all

2018-01-17 15:05:49,639  INFO [main] (Program.scala:31) - Ready to accept a master bot on port 9993
2018-01-17 15:07:49,985  INFO [clientHandler] (ClientHandler.scala:103) - starting proxy bot slave1
2018-01-17 15:07:50,569 ERROR [chatPacketListener] (ChatPacketListener.java:45) - Bot Character: 'Babelfish' packet id: '37'
java.lang.RuntimeException: java.lang.RuntimeException: CategoryId: '20000' InstanceId: '172363154'
        at com.jkbff.ao.tyrlib.packets.ExtendedMessage.<init>(ExtendedMessage.java:30)
        at com.jkbff.ao.tyrlib.packets.server.SystemMessage.<init>(SystemMessage.java:30)
        at com.jkbff.ao.tyrlib.packets.BaseServerPacket.createInstance(BaseServerPacket.java:45)
        at com.jkbff.ao.tyrlib.chat.ChatPacketListener.run(ChatPacketListener.java:38)
Caused by: java.lang.RuntimeException: CategoryId: '20000' InstanceId: '172363154'
        at com.jkbff.ao.tyrlib.chat.MMDBParser.getMessage(MMDBParser.java:32)
        at com.jkbff.ao.tyrlib.packets.ExtendedMessage.<init>(ExtendedMessage.java:27)
        ... 3 more
Caused by: java.lang.RuntimeException: Unknown Reference Type -- Could not find category. categoryId: '20000' instanceId: '172363154'
        at com.jkbff.ao.tyrlib.chat.MMDBParser.getMessage(MMDBParser.java:19)
        ... 4 more

budabot in UTC and not GMT+1 so just add 1 hour

Code: Select all

Wed Jan 17 14:07:48 2018 INFO Budabot - Authenticate login data...
Wed Jan 17 14:07:49 2018 INFO Budabot - Logging in Babelfisch...
Wed Jan 17 14:07:50 2018 INFO Budabot - All Systems ready!
Wed Jan 17 14:07:50 2018 INFO Budabot - Babelfish logged on
Wed Jan 17 14:07:50 2018 INFO Budabot - Roseppin logged on
Wed Jan 17 14:07:50 2018 INFO Budabot - Enfo73 logged on
Wed Jan 17 14:07:52 2018 INFO Budabot - Emian logged on
Wed Jan 17 14:07:53 2018 INFO Budabot - Babelfish logged on
Wed Jan 17 14:07:54 2018 INFO Budabot - Talamuli logged on
Wed Jan 17 14:07:56 2018 INFO Budabot - Lister logged on
Wed Jan 17 14:07:59 2018 INFO Budabot - Dennimedic logged on


I noticed the error only during the 1st start of the chatporxy. I restarted it several times but didn't get the error once more.

java version "1.7.0_151"
OpenJDK Runtime Environment (IcedTea 2.6.11) (7u151-2.6.11-2~deb8u1)
OpenJDK 64-Bit Server VM (build 24.151-b01, mixed mode)
Tyrence
Posts: 2007
Joined: Sat Jan 09, 2010 1:32 am

Re: AOChatProxy 2.0 Exception

Postby Tyrence » Wed Jan 17, 2018 4:19 pm

Thanks for posting this. I just barely posted AOChatProxy 2.2 which I believe will fix this problem. Can you try it and see if you still get that error? viewtopic.php?f=8&p=5769#p5769
"Those who expect to reap the blessings of freedom, must, like men, undergo the fatigues of supporting it." — Thomas Paine
"Nearly all men stand adversity, but if you want to test a man's character, give him power." — Abraham Lincoln
Budabot Releases and Downloads: https://github.com/Budabot/Budabot/releases
mcpala
Member
Posts: 6
Joined: Sun Apr 14, 2013 8:03 am

Re: AOChatProxy 2.0 Exception

Postby mcpala » Sat Jan 20, 2018 1:13 pm

Code: Select all

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/jkbff/ao/tyrlib/chat/socket/Closeable : Unsupported major.minor version 52.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:803)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:442)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:64)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:354)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:348)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:347)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:312)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:803)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:442)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:64)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:354)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:348)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:347)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:312)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2625)
        at java.lang.Class.getMethod0(Class.java:2866)
        at java.lang.Class.getMethod(Class.java:1676)
        at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
        at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)

Am I missing some dependencies?
Tyrence
Posts: 2007
Joined: Sat Jan 09, 2010 1:32 am

Re: AOChatProxy 2.0 Exception

Postby Tyrence » Sat Jan 20, 2018 2:35 pm

No, it means you need to upgrade to Java 8. Are you able to do that?
"Those who expect to reap the blessings of freedom, must, like men, undergo the fatigues of supporting it." — Thomas Paine
"Nearly all men stand adversity, but if you want to test a man's character, give him power." — Abraham Lincoln
Budabot Releases and Downloads: https://github.com/Budabot/Budabot/releases
mcpala
Member
Posts: 6
Joined: Sun Apr 14, 2013 8:03 am

Re: AOChatProxy 2.0 Exception

Postby mcpala » Sun Jan 21, 2018 12:32 pm

ah that's evil. changing the required java version in a minor release.
switched to java 8 started the proxy and didn't get any error messages.

would be a good idea to note the required java version in viewtopic.php?f=8&p=5769#p5769 as 8 is still not the default everywhere. ;-)
Tyrence
Posts: 2007
Joined: Sat Jan 09, 2010 1:32 am

Re: AOChatProxy 2.0 Exception

Postby Tyrence » Sun Jan 21, 2018 4:38 pm

heh you're right, it's bad form. It was somewhat unintentional--I didn't realize that had happened.

In any case, I'm glad it's working now for you. I will update the post about Java 8.
"Those who expect to reap the blessings of freedom, must, like men, undergo the fatigues of supporting it." — Thomas Paine
"Nearly all men stand adversity, but if you want to test a man's character, give him power." — Abraham Lincoln
Budabot Releases and Downloads: https://github.com/Budabot/Budabot/releases

Return to “General”

Who is online

Users browsing this forum: No registered users and 1 guest