Kev
11-10-2010, 06:05 PM
Hi Everyone,
Going through this example, and I'm having a problem when TestDatabasePlugin's init method is called. This is the error in the ES5 logs:
2010-Nov-10 08:20:50:457 [pool-1-thread-6] ERROR com.electrotank.electroserver5.entities.BaseBridge - Error occured calling extension code - Extension: DatabaseWithJDBC - Name: TestDatabaseJDBCPlugin - Handle: TestDatabaseJDBCPlugin
java.lang.RuntimeException: Unable to find a server level plugin named 'DatabaseJDBCPlugin' from extension 'DatabaseWithJDBC'
at com.electrotank.electroserver5.extensions.api.Elec troServerApiImpl.getServerPlugin(ElectroServerApiI mpl.java:1080
The Extension loads OK when the server starts - it shows up in ESAdmin, and I'm using the Extensions.xml that came with the sample - just changed the mysql connection string. I also just compiled the source and copied the classes folder over. So, it's looking for the other plugins in the Extension, but can't find them.
Here is the AS3 code that creates the plugin:
var ple:PluginListEntry = new PluginListEntry();
var ple1:PluginListEntry = new PluginListEntry();
ple.extensionName = "HelloWorldExtension";
ple.pluginHandle = "HelloWorldExtension";
ple.pluginName = "HelloWorldExtension";
ple1.extensionName = "DatabaseWithJDBC";
ple1.pluginHandle = "TestDatabaseJDBCPlugin";
ple1.pluginName = "TestDatabaseJDBCPlugin";
crr.plugins = [ple, ple1];
es.engine.send(crr);
I've tried it without the HelloWorldExtension, and tried to create a plugin for DatabaseJDBCPlugin, with no success. I know the docs say this has to be server level, so does this mean I don't create a room level extension? I don't see how I'd send to it otherwise, but I'm still on the learning curve.
Thanks for help/advice,
Kevin
Going through this example, and I'm having a problem when TestDatabasePlugin's init method is called. This is the error in the ES5 logs:
2010-Nov-10 08:20:50:457 [pool-1-thread-6] ERROR com.electrotank.electroserver5.entities.BaseBridge - Error occured calling extension code - Extension: DatabaseWithJDBC - Name: TestDatabaseJDBCPlugin - Handle: TestDatabaseJDBCPlugin
java.lang.RuntimeException: Unable to find a server level plugin named 'DatabaseJDBCPlugin' from extension 'DatabaseWithJDBC'
at com.electrotank.electroserver5.extensions.api.Elec troServerApiImpl.getServerPlugin(ElectroServerApiI mpl.java:1080
The Extension loads OK when the server starts - it shows up in ESAdmin, and I'm using the Extensions.xml that came with the sample - just changed the mysql connection string. I also just compiled the source and copied the classes folder over. So, it's looking for the other plugins in the Extension, but can't find them.
Here is the AS3 code that creates the plugin:
var ple:PluginListEntry = new PluginListEntry();
var ple1:PluginListEntry = new PluginListEntry();
ple.extensionName = "HelloWorldExtension";
ple.pluginHandle = "HelloWorldExtension";
ple.pluginName = "HelloWorldExtension";
ple1.extensionName = "DatabaseWithJDBC";
ple1.pluginHandle = "TestDatabaseJDBCPlugin";
ple1.pluginName = "TestDatabaseJDBCPlugin";
crr.plugins = [ple, ple1];
es.engine.send(crr);
I've tried it without the HelloWorldExtension, and tried to create a plugin for DatabaseJDBCPlugin, with no success. I know the docs say this has to be server level, so does this mean I don't create a room level extension? I don't see how I'd send to it otherwise, but I'm still on the learning curve.
Thanks for help/advice,
Kevin