whenever i extend to the RedBoxExtension my server crashes

Post your questions and bug-reports about our audio/video streaming add-on based on Red5 Server.

Moderators: Lapo, Bax

fastboy619
Posts: 18
Joined: 31 Mar 2013, 04:16

whenever i extend to the RedBoxExtension my server crashes

Postby fastboy619 » 27 Oct 2013, 20:49

whenever i extend to RedBoxExtension my server crashes anyone know why?

sometimes when i put extends SFSExtension
and run the server
then reload to where the class says extends RedBoxExtension it gives me

Code: Select all

Exception: java.lang.NoClassDefFoundError
Message: com/smartfoxserver/v2/extensions/SFSExtension


Code: Select all

package co.sense;


import com.smartfoxserver.v2.core.SFSEventType;
import com.smartfoxserver.v2.redbox.RedBoxExtension;

public class myExtension extends RedBoxExtension {
    DBConnect database;
   @Override
   public void init() {
      database= new DBConnect();
      addRequestHandler("add",startStation.class);
      addRequestHandler("UploadReq",uploadClass.class);
      addRequestHandler("PlayReq",PlaySong.class);
      addRequestHandler("getList",GetList.class);
      addEventHandler(SFSEventType.ROOM_ADDED,onJoinRoom.class);
       addEventHandler(SFSEventType.USER_LOGIN,onLogIn.class);

   }

}


User avatar
Bax
Site Admin
Posts: 4409
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: whenever i extend to the RedBoxExtension my server crash

Postby Bax » 28 Oct 2013, 08:37

whenever i extend to RedBoxExtension my server crashes anyone know why?

Please provide the stack trace of the error when the crash occurs.
Paolo Bax
The SmartFoxServer Team
fastboy619
Posts: 18
Joined: 31 Mar 2013, 04:16

Re: whenever i extend to the RedBoxExtension my server crash

Postby fastboy619 » 28 Oct 2013, 21:17

thats the point it doesn't it just crashes away and when i go look into the logs it just shows smartfox trying to load the extension and quiting.

Code: Select all

28 Oct 2013 | 17:47:52,937 | INFO  | main | smartfoxserver.v2.SmartFoxServer |     | Boot sequence starts...
28 Oct 2013 | 17:47:53,031 | INFO  | main | smartfoxserver.v2.SmartFoxServer |     |
 _____ _____ _____    ___ __ __    _____ _____ _____ _____
|   __|   __|   __|  |_  |  |  |  | __  |     |     |_   _|
|__   |   __|__   |  |  _|-   -|  | __ -|  |  |  |  | | | 
|_____|__|  |_____|  |___|__|__|  |_____|_____|_____| |_|

28 Oct 2013 | 17:47:58,921 | INFO  | main | smartfoxserver.v2.SmartFoxServer |     | License code not found, starting Community Edition license
28 Oct 2013 | 17:47:58,921 | INFO  | main | v2.core.SFSEventManager |     | AnonymousService-1 initalized
28 Oct 2013 | 17:47:59,734 | INFO  | main | smartfoxserver.v2.SmartFoxServer |     | License loaded:

===================================
LICENSE DETAILS
-----------------------------------
Type            : Community Edition
Max users       : 100
===================================

28 Oct 2013 | 17:47:59,765 | INFO  | main | entities.managers.SFSBannedUserStorage |     | BanUserStorage initialized
28 Oct 2013 | 17:47:59,921 | INFO  | main | entities.managers.SFSBannedUserManager |     | BanUser data loaded: 0 records.
28 Oct 2013 | 17:47:59,984 | INFO  | main | smartfoxserver.v2.SmartFoxServer |     | Protocol Type is: BINARY
28 Oct 2013 | 17:48:00,000 | INFO  | main | v2.config.SFSConfigurator |     | Loading: zones\Radio.zone.xml
28 Oct 2013 | 17:48:00,203 | INFO  | main | v2.config.SFSConfigurator |     | Loading: zones\SignUpZone.zone.xml
28 Oct 2013 | 17:48:00,265 | INFO  | main | entities.managers.SFSZoneManager |     |

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
 >> Zone: Radio
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

28 Oct 2013 | 17:48:00,578 | INFO  | Thread-1 | entities.managers.SFSZoneManager |     | BuddyList saveAll...
28 Oct 2013 | 17:48:00,578 | WARN  | SFS2X ShutdownHook | v2.core.SFSShutdownHook |     | SFS2X is shutting down. The process may take a few seconds...
28 Oct 2013 | 17:48:00,609 | INFO  | Thread-2 | entities.managers.SFSBannedUserManager |     | BanUser data saved.


User avatar
Bax
Site Admin
Posts: 4409
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: whenever i extend to the RedBoxExtension my server crash

Postby Bax » 29 Oct 2013, 11:01

I think you should start with a empty Extension which just extends RedBoxExtension; nothing else in the init method.
If this works, then you can move on adding your handlers one by one to find out what is causing that odd behavior.
Of course make sure your setup is correct. In particular make sure that the RedBoxExtension.jar and the redbox.properties files are in the same folder of your custom Extension.
Paolo Bax
The SmartFoxServer Team
fastboy619
Posts: 18
Joined: 31 Mar 2013, 04:16

Re: whenever i extend to the RedBoxExtension my server crash

Postby fastboy619 » 29 Oct 2013, 17:44

Thanks i got SFS to run with the redboxExtension but now i get this in the red5 server:

Code: Select all

[WARN] [Red5_Scheduler_Worker-2] org.red5.server.net.rtmp.RTMPConnection - Closi
ng RTMPMinaConnection from 127.0.0.1 : 5510 to null (in: 1537 out 0 ), with id 1
 due to long handshake


I really don't know what is causing this.
is it maybe that i am running too many servers on a not so powerful pc?(3 servers)
User avatar
Bax
Site Admin
Posts: 4409
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: whenever i extend to the RedBoxExtension my server crash

Postby Bax » 30 Oct 2013, 08:39

Could you describe what was wrong before, preventing the server from starting?

About the other issue, unfortunately I'm not a Red5 expert, so I'm not able to help. You should look for help in forums dedicated to Red5.
Paolo Bax
The SmartFoxServer Team
fastboy619
Posts: 18
Joined: 31 Mar 2013, 04:16

Re: whenever i extend to the RedBoxExtension my server crash

Postby fastboy619 » 31 Oct 2013, 02:10

Bax wrote: unfortunately I'm not a Red5 expert, so I'm not able to help. You should look for help in forums dedicated to Red5.


but the examples also don't run same error.
and i used the exact same redbox folder that comes in the zip file, it used to work tho i had the examples running then i went into coding the database and when returning to sending microphone sound this error shows up and at clientside it shows

Code: Select all

[RedBox] NetStatusEvent response received
[RedBox] Level: error | Code:NetConnection.Connect.Failed
[RedBox] NetConnection error, dispatching event...

absolutely no good info anywhere on the web, looks like everyone with this error quits
i probably gonna die trying to fix this if you guys can't help D:
red5's community is non existent i would prefer wowza
User avatar
Bax
Site Admin
Posts: 4409
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: whenever i extend to the RedBoxExtension my server crash

Postby Bax » 31 Oct 2013, 07:59

The error just reports that the connection to Red5 failed.
If the examples work fine, and your code not, I believe you should better review your code.
Helping you would require a full code review, which is something we don't do, I'm sorry (even paid).

We chose Red5 because it is open-source. Wowza is a great commercial solution and in theory it should be possible to substitute Red5 with Wowza in our RedBox seamlessly, as they use the same API. Maybe you can give it a try.
Paolo Bax
The SmartFoxServer Team
fastboy619
Posts: 18
Joined: 31 Mar 2013, 04:16

Re: whenever i extend to the RedBoxExtension my server crash

Postby fastboy619 » 31 Oct 2013, 11:56

hmm i mean the examples where running like 1 week ago but now they don't run just like how my code doesn't run.
and i am sure my code is bug/error free since i had it working 1 week ago just like i had the examples work.
User avatar
Bax
Site Admin
Posts: 4409
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: whenever i extend to the RedBoxExtension my server crash

Postby Bax » 31 Oct 2013, 13:54

Maybe you can try reinstalling Red5?
Paolo Bax
The SmartFoxServer Team
fastboy619
Posts: 18
Joined: 31 Mar 2013, 04:16

Re: whenever i extend to the RedBoxExtension my server crash

Postby fastboy619 » 31 Oct 2013, 22:32

Bax wrote:Maybe you can try reinstalling Red5?

lost count of how many times i reinstallled redbox and smartfoxserver.
with reinstall you mean remving and replacing the red5 folder in sfs right?
User avatar
Bax
Site Admin
Posts: 4409
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: whenever i extend to the RedBoxExtension my server crash

Postby Bax » 02 Nov 2013, 12:08

Yes.
Paolo Bax
The SmartFoxServer Team

Return to “RedBox 2X”

Who is online

Users browsing this forum: No registered users and 1 guest