<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Sounds to me like multiple calls to client.addEventListener.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Can you try to make it work by modifying the ClientTest.java class (org.freeswitch.esl.client.inbound.ClientTest)? Please note also that you can pass all events you want to filter while setting the subscriptions, in the form:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal style='text-indent:.5in'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>client.setEventSubscriptions("plain", "CHANNEL_ANSWER DTMF CHANNEL_HANGUP");<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>It’s recommended to set the filter to exactly the number of events you want to be notified for, no more, no less, so probably you should skip adding events like HEARTBEAT, BACKGROUND_JOB, to your filters.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] <b>On Behalf Of </b>shaik bawajan<br><b>Sent:</b> Saturday, July 21, 2012 2:45 AM<br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> Re: [Freeswitch-users] A fatal error has been detected by the Java Runtime Environment:<o:p></o:p></span></p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>Thanks a lot,<br><br>It is very helpful to me.<br><br>But, the each event are receiving multiple times ( each event coming 3 or 4 times ).<br><br>It will happen like this or is there any way to stop this.<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>here am attaching my java class, where am creating a single thread and making outbound, playing a file.<br><br>The class itself is a Event Listener and am adding below event listeners from other initiate Class.<br><br>client.setEventSubscriptions("plain", "all");<br> client.addEventFilter("Event-Name", "CHANNEL_CREATE");<br> client.addEventFilter("Event-Name","BACKGROUND_JOB");<br> client.addEventFilter("Event-Name","CHANNEL_STATE");<br> client.addEventFilter("Event-Name","CHANNEL_EXECUTE_COMPLETE");<br> client.addEventFilter("Event-Name","CHANNEL_HANGUP");<br> client.addEventFilter("Event-Name","CHANNEL_HANGUP_COMPLETE");<br> client.addEventFilter("Event-Name","DTMF");<br> client.addEventFilter("Event-Name","HEARTBEAT");<br> <br><br>Thanks in advance,<o:p></o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p><div><p class=MsoNormal>On Wed, Jul 18, 2012 at 7:30 PM, Hector Geraldino <<a href="mailto:Hector.Geraldino@ipsoft.com" target="_blank">Hector.Geraldino@ipsoft.com</a>> wrote:<o:p></o:p></p><p class=MsoNormal>Hello,<br><br>Trying to help you to solve a crash in the jvm for a multithreaded application is damn hard. Doing it using a mailing list is even harder, and without looking at your source code is almost impossible.<br><br>However I want to recommend you to drop the use of this library (which is a java wrapper of the FS core lib written in C) and use the pure Java ESL Client (<a href="http://wiki.freeswitch.org/wiki/Java_ESL_Client" target="_blank">http://wiki.freeswitch.org/wiki/Java_ESL_Client</a>). You will have full access to the source code for debug, no dependencies on native libraries, and a good set of examples.<br><br>Good luck!<o:p></o:p></p><div><div><p class=MsoNormal><br>-----Original Message-----<br>From: <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>] On Behalf Of bawajan<br>Sent: Tuesday, July 17, 2012 8:55 AM<br>To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>Subject: [Freeswitch-users] A fatal error has been detected by the Java Runtime Environment:<br><br>Hi,<br><br>Am using ESL inbound connection to make calls and have a below flow (written in java)<br><br>a) originating 15 calls simultaneously with park function<br>b) play audio file<br>c) creating new thread and passing eslconnection and playing a IVR in originate call.<br><br>Here while handling events getting the below error :<br><br><br> # A fatal error has been detected by the Java Runtime Environment:<br><br>INFO | jvm 3 | 2012/07/17 17:54:36 | #<br>INFO | jvm 3 | 2012/07/17 17:54:36 | # SIGSEGV (0xb) at<br>pc=0x00007fc01f1d3943, pid=14759, tid=140463084390144<br>INFO | jvm 3 | 2012/07/17 17:54:36 | #<br>INFO | jvm 3 | 2012/07/17 17:54:36 | # JRE version: 6.0_25-b06<br>INFO | jvm 3 | 2012/07/17 17:54:36 | # Java VM: Java HotSpot(TM) 64-Bit<br>Server VM (20.0-b11 mixed mode linux-amd64 compressed oops)<br>INFO | jvm 3 | 2012/07/17 17:54:36 | # Problematic frame:<br>INFO | jvm 3 | 2012/07/17 17:54:36 | # C [libesljni.so+0xd943] long<br>double+0x183<br>INFO | jvm 3 | 2012/07/17 17:54:36 | #<br>INFO | jvm 3 | 2012/07/17 17:54:36 | # An error report file with more<br>information is saved as:<br>INFO | jvm 3 | 2012/07/17 17:54:36 | #<br>/usr/local/freeswitch/hs_err_pid14759.log<br>INFO | jvm 3 | 2012/07/17 17:54:36 | #<br>INFO | jvm 3 | 2012/07/17 17:54:36 | # If you would like to submit a<br>bug report, please visit:<br>INFO | jvm 3 | 2012/07/17 17:54:36 | #<br><a href="http://java.sun.com/webapps/bugreport/crash.jsp" target="_blank">http://java.sun.com/webapps/bugreport/crash.jsp</a><br>INFO | jvm 3 | 2012/07/17 17:54:36 | # The crash happened outside the<br>Java Virtual Machine in native code.<br>INFO | jvm 3 | 2012/07/17 17:54:36 | # See problematic frame for where<br>to report the bug.<br><br><br><br>plz let me know, where am doing mistake and how to resolve it.<br><br>Thanks in advance.<br><br><br>--<br>View this message in context: <a href="http://freeswitch-users.2379917.n2.nabble.com/A-fatal-error-has-been-detected-by-the-Java-Runtime-Environment-tp7580878.html" target="_blank">http://freeswitch-users.2379917.n2.nabble.com/A-fatal-error-has-been-detected-by-the-Java-Runtime-Environment-tp7580878.html</a><br>Sent from the freeswitch-users mailing list archive at Nabble.com.<br><br>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br><br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br><a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br><br>Join Us At ClueCon - Aug 7-9, 2012<br><br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br><br>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br><a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br><br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br><a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br><br>Join Us At ClueCon - Aug 7-9, 2012<br><br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><o:p></o:p></p></div></div></div><p class=MsoNormal><o:p> </o:p></p></div></body></html>