Hurray, problem solved.
A copy of the LocalizedException referring jar was in the extensions/__lib__/ directory and was the one actually being loaded, not the one in my extension directory. The jar with the actual LocalizedException definition was also in my directory and there for was in the ...
Search found 10 matches
- 06 Apr 2016, 20:45
- Forum: SFS2X Questions
- Topic: Trouble loading extension libraries
- Replies: 8
- Views: 9614
- 06 Apr 2016, 20:17
- Forum: SFS2X Questions
- Topic: Trouble loading extension libraries
- Replies: 8
- Views: 9614
Re: Trouble loading extension libraries
Truly bizarre. I put this straight in line in my code:
flex.messaging.io.SerializationContext context = flex.messaging.io.SerializationContext.getSerializationContext(); // Get Serialization Context
flex.messaging.LocalizedException f = new flex.messaging.LocalizedException(); // Create a ...
flex.messaging.io.SerializationContext context = flex.messaging.io.SerializationContext.getSerializationContext(); // Get Serialization Context
flex.messaging.LocalizedException f = new flex.messaging.LocalizedException(); // Create a ...
- 06 Apr 2016, 19:46
- Forum: SFS2X Questions
- Topic: Trouble loading extension libraries
- Replies: 8
- Views: 9614
Re: Trouble loading extension libraries
Unfortunately adding the missing jar containing the offending class did not solve the problem.
$ pwd
/root/SmartFoxServer_2X/SFS2X/extensions/notificationExtension
$ ls -l
total 908
-rw-r--r-- 1 root root 184 Mar 29 16:15 APIServer.xml
-rw-r--r-- 1 root root 110 Mar 29 16:34 config.properties
-rw-r ...
$ pwd
/root/SmartFoxServer_2X/SFS2X/extensions/notificationExtension
$ ls -l
total 908
-rw-r--r-- 1 root root 184 Mar 29 16:15 APIServer.xml
-rw-r--r-- 1 root root 110 Mar 29 16:34 config.properties
-rw-r ...
- 06 Apr 2016, 17:18
- Forum: SFS2X Questions
- Topic: Trouble loading extension libraries
- Replies: 8
- Views: 9614
Re: Trouble loading extension libraries
Good catch Lapo. Thanks!
- 06 Apr 2016, 14:00
- Forum: SFS2X Questions
- Topic: Trouble loading extension libraries
- Replies: 8
- Views: 9614
Re: Trouble loading extension libraries
Also, in case it helps:
$ pwd
/root/SmartFoxServer_2X/SFS2X/extensions/notificationExtension
$ ls -l
total 884
-rw-r--r-- 1 root root 184 Mar 29 16:15 APIServer.xml
-rw-r--r-- 1 root root 110 Mar 29 16:34 config.properties
-rw-r--r-- 1 root root 703233 Apr 5 14:13 flex-messaging-core-4.7.0.jar
-rw ...
$ pwd
/root/SmartFoxServer_2X/SFS2X/extensions/notificationExtension
$ ls -l
total 884
-rw-r--r-- 1 root root 184 Mar 29 16:15 APIServer.xml
-rw-r--r-- 1 root root 110 Mar 29 16:34 config.properties
-rw-r--r-- 1 root root 703233 Apr 5 14:13 flex-messaging-core-4.7.0.jar
-rw ...
- 06 Apr 2016, 13:52
- Forum: SFS2X Questions
- Topic: Trouble loading extension libraries
- Replies: 8
- Views: 9614
Re: Trouble loading extension libraries
Thanks, Lapo
When I attempt to use a class from the jar library (specifically flex.messaging.io.amf.Amf3Output), I get a no class found error. For the purposes of simplicity of testing this I have put the flex jar in the same folder as one of my extensions and tried to use it from there:
java.lang ...
When I attempt to use a class from the jar library (specifically flex.messaging.io.amf.Amf3Output), I get a no class found error. For the purposes of simplicity of testing this I have put the flex jar in the same folder as one of my extensions and tried to use it from there:
java.lang ...
- 05 Apr 2016, 19:08
- Forum: SFS2X Questions
- Topic: Trouble loading extension libraries
- Replies: 8
- Views: 9614
Trouble loading extension libraries
So, I'm writing mutliple extensions. I need to share the Adobe flex library (flex-messaging-core-4.7.0.jar). So I put it in the extensions/__lib__ directory. It didn't load even if with a server restart. So I also put it in one of my extensions directories, and it didn't load when the extension was ...
- 24 Mar 2016, 21:07
- Forum: SFS2X Questions
- Topic: properties for a lib
- Replies: 1
- Views: 3572
properties for a lib
I am writing several extensions and they are going to be sharing a database class which I will put in the extensions/lib folder. What is the best place to put a dot properties file for the library and how do I specify the path to it?
Thanks
Thanks
- 18 Mar 2016, 19:15
- Forum: SFS2X HTML5 / JavaScript API
- Topic: Callbacks not removed from queue?
- Replies: 2
- Views: 6473
Re: Callbacks not removed from queue?
Never mind. I figured it out. Listeners are added as a list even when they are duplicate. I add a listener every time I click the listen button.
- 18 Mar 2016, 18:53
- Forum: SFS2X HTML5 / JavaScript API
- Topic: Callbacks not removed from queue?
- Replies: 2
- Views: 6473
Callbacks not removed from queue?
I have written a server side extension and when I send an ExtensionRequest to it with javascript my callback is called once. But when I send to it a single time again, my callback is called twice. If I send to it again, my callback is called three times, and so on. Am I supposed to flush the ...