Skip to main content

ERROR:Unhandled error in event router

8 replies [Last post]
andmus82
Offline
Joined: 2009-06-01
Points: 0

Hi, my SBB uses a class wihich i created in the same package. I'm using the HTTP Servlet RA. On post event the corresponding method is invoked but at the end of the execution i can see in the command prompt the following errror:

ERROR [EventRouterImpl] Unhandled Error in event router:
java.lang.NoClassDefFoundError

What is the problem?
Thanks
Andrea

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
alexandrem
Offline
Joined: 2005-10-19
Points: 0

Hi Andrea,

It's some class you're missing in your project/DU, and since you aren't catching it at your event handler method, it ends up in the EventRouter.

Make sure that all the needed classes are made available. Library jars can go in the DU in a folder named "library".

Regards,
Alexandre Mendonca
JBoss R&D

andmus82
Offline
Joined: 2009-06-01
Points: 0

I need to use a single java class i wrote. How can i add it to my SLEE project?
Thanks,
Andrea

alexandrem
Offline
Joined: 2005-10-19
Points: 0

Either add it to your SLEE project so that it is packed together with your DU or add it to a jar and put it on a "library" folder on your DU root.

Alexandre Mendonca
JBoss R&D

andmus82
Offline
Joined: 2009-06-01
Points: 0

I'm sorry Alexandre, i can't add my class to my SLEE Project. I created a new java class in the same SBB's package. I can build the DU but i have the error which i said before. Do i need to modify any of the xml files?
Thanks,
Andrea

alexandrem
Offline
Joined: 2005-10-19
Points: 0

It should be included in the DU if it is in the same package as the SBB. Maybe that class is not the problem.

It should say in the stacktrace which class is missing, post the full stacktrace if you can't figure it out.

You can also look inside the DU jar (it's a regular zip file) and see if the missing class is present.

Alexandre Mendonca
JBoss R&D

andmus82
Offline
Joined: 2009-06-01
Points: 0

I checked the DU. My class is not included. I have not compilation problems but it gives me a runtime error. Have you any suggestion?
Thanks,
Andrea

alexandrem
Offline
Joined: 2005-10-19
Points: 0

I can't help you much as I don't know how you are packaging your DU, but you should make sure the class is included on it.

If you are familiar with maven, that should be the best option, to use it together with our Maven DU plugin.

You can follow this guide: http://groups.google.com/group/mobicents-public/web/jainslee-maven-arche...

Regards,
Alexandre Mendonca
JBoss R&D

andmus82
Offline
Joined: 2009-06-01
Points: 0

I solved it creating a jar file and copying it to /server/default/lib folder.
Thanks,
Andrea