Java_ESL_Client - unhandled exception caught
hello, i've found a bug in Java_ESL_Client and the info on the website (http://wiki.freeswitch.org/wiki/Java_ESL_Client#Issues) said it should be reported here so i'm sending it. It looks like sometimes FS sends malformed URL encoded values through Event Socket, probably because value is not properly terminated (probably on my version of FS only - FreeSWITCH Version 1.0.6 (hacked-20100420T130612Z) - official version). exception trace follows: #### TRACE / LOG info 14.10.2010. 11:16:29 org.jboss.netty.channel.SimpleChannelUpstreamHandler WARNING: EXCEPTION, please implement org.freeswitch.esl.client.inbound.InboundClientHandler.exceptionCaught() for proper handling. java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: "\5" at java.net.URLDecoder.decode(URLDecoder.java:173) at org.freeswitch.esl.client.transport.event.EslEvent.parsePlainBody(EslEvent.java:187) at org.freeswitch.esl.client.transport.event.EslEvent.<init>(EslEvent.java:73) at org.freeswitch.esl.client.transport.event.EslEvent.<init>(EslEvent.java:62) at org.freeswitch.esl.client.internal.AbstractEslClientHandler.messageReceived(AbstractEslClientHandler.java:80) at org.freeswitch.esl.client.internal.debug.ChannelEventRunnable.run(ChannelEventRunnable.java:76) at org.jboss.netty.handler.execution.MemoryAwareThreadPoolExecutor$MemoryAwareRunnable.run(MemoryAwareThreadPoolExecutor.java:541) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) #### TRACE / LOG info --- Vedran Zeljeznak
On Thu, Oct 14, 2010 at 11:28 AM, Vedran Zeljeznak < vedran.zeljeznak@gmail.com> wrote:
hello,
i've found a bug in Java_ESL_Client and the info on the website (http://wiki.freeswitch.org/wiki/Java_ESL_Client#Issues) said it should be reported here so i'm sending it.
It looks like sometimes FS sends malformed URL encoded values through Event Socket, probably because value is not properly terminated (probably on my version of FS only - FreeSWITCH Version 1.0.6 (hacked-20100420T130612Z) - official version).
ya, quite old... can you try to reproduce it on the latest git ? im not having this issues at all.
Hi, Is there a way to configure the DTMF duration with gentones. Specifically is there a way to have the off time to be set as the on time per DTMF. Thanks, Holger ________________________________ This e-mail transmission may contain information that is proprietary, privileged and/or confidential and is intended exclusively for the person(s) to whom it is addressed. Any use, copying, retention or disclosure by any person other than the intended recipient or the intended recipient's designees is strictly prohibited. If you are the intended recipient, you must treat the information in confidence and in accordance with all laws related to the privacy and confidentiality of such information. If you are not the intended recipient or their designee, please notify the sender immediately by return e-mail and delete all copies of this email, including all attachments. Intervoice, Inc. 17811 Waterview Parkway Dallas, TX 75252 USA Intervoice Limited, Registered in England and Wales with number 2601740, 50 Park Road, Gatley, Cheshire, SK8 4HZ. VAT Number: 560421375 Intervoice GmbH, Hagenauer Stra?e 55, 65203 Wiesbaden, Sitz der Gesellschaft: Wiesbaden, Handelsregister: HRB 8186 (Amtsgericht Wiesbaden), Gesch?ftsf?hrer: Wayne Barclay, Steffen Selbmann
d=250;w=250;1234 that would use on time of 250 and off time of 250 and play 1234 On Thu, Oct 14, 2010 at 2:39 PM, Esser, Holger <Holger.Esser@convergys.com> wrote:
Hi,
Is there a way to configure the DTMF duration with gentones. Specifically is there a way to have the off time to be set as the on time per DTMF.
Thanks,
Holger
________________________________ This e-mail transmission may contain information that is proprietary, privileged and/or confidential and is intended exclusively for the person(s) to whom it is addressed. Any use, copying, retention or disclosure by any person other than the intended recipient or the intended recipient's designees is strictly prohibited. If you are the intended recipient, you must treat the information in confidence and in accordance with all laws related to the privacy and confidentiality of such information. If you are not the intended recipient or their designee, please notify the sender immediately by return e-mail and delete all copies of this email, including all attachments.
Intervoice, Inc. 17811 Waterview Parkway Dallas, TX 75252 USA
Intervoice Limited, Registered in England and Wales with number 2601740, 50 Park Road, Gatley, Cheshire, SK8 4HZ. VAT Number: 560421375
Intervoice GmbH, Hagenauer Straße 55, 65203 Wiesbaden, Sitz der Gesellschaft: Wiesbaden, Handelsregister: HRB 8186 (Amtsgericht Wiesbaden), Geschäftsführer: Wayne Barclay, Steffen Selbmann
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
Cool, thank you very much. -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Anthony Minessale Sent: Thursday, October 14, 2010 3:37 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] DTMF off time d=250;w=250;1234 that would use on time of 250 and off time of 250 and play 1234 On Thu, Oct 14, 2010 at 2:39 PM, Esser, Holger <Holger.Esser@convergys.com> wrote:
Hi,
Is there a way to configure the DTMF duration with gentones. Specifically is there a way to have the off time to be set as the on time per DTMF.
Thanks,
Holger
________________________________ This e-mail transmission may contain information that is proprietary, privileged and/or confidential and is intended exclusively for the person(s) to whom it is addressed. Any use, copying, retention or disclosure by any person other than the intended recipient or the intended recipient's designees is strictly prohibited. If you are the intended recipient, you must treat the information in confidence and in accordance with all laws related to the privacy and confidentiality of such information. If you are not the intended recipient or their designee, please notify the sender immediately by return e-mail and delete all copies of this email, including all attachments.
Intervoice, Inc. 17811 Waterview Parkway Dallas, TX 75252 USA
Intervoice Limited, Registered in England and Wales with number 2601740, 50 Park Road, Gatley, Cheshire, SK8 4HZ. VAT Number: 560421375
Intervoice GmbH, Hagenauer Straße 55, 65203 Wiesbaden, Sitz der Gesellschaft: Wiesbaden, Handelsregister: HRB 8186 (Amtsgericht Wiesbaden), Geschäftsführer: Wayne Barclay, Steffen Selbmann
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900 _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.862 / Virus Database: 271.1.1/3192 - Release Date: 10/14/10 01:34:00 No virus found in this outgoing message. Checked by AVG - www.avg.com Version: 9.0.862 / Virus Database: 271.1.1/3192 - Release Date: 10/14/10 01:34:00
Vedran, Thanks for reporting the issue. As you can see from the stack trace this is just a call to the regular java URL decoder. Can you capture the content of the event or message that is causing this to fail ? Or at the least what the cause event is so that I can determine if it is still a problem on trunk ? thanks davidv On 14 October 2010 20:28, Vedran Zeljeznak <vedran.zeljeznak@gmail.com> wrote:
hello,
i've found a bug in Java_ESL_Client and the info on the website (http://wiki.freeswitch.org/wiki/Java_ESL_Client#Issues) said it should be reported here so i'm sending it.
It looks like sometimes FS sends malformed URL encoded values through Event Socket, probably because value is not properly terminated (probably on my version of FS only - FreeSWITCH Version 1.0.6 (hacked-20100420T130612Z) - official version).
exception trace follows:
#### TRACE / LOG info 14.10.2010. 11:16:29 org.jboss.netty.channel.SimpleChannelUpstreamHandler WARNING: EXCEPTION, please implement org.freeswitch.esl.client.inbound.InboundClientHandler.exceptionCaught() for proper handling. java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: "\5" at java.net.URLDecoder.decode(URLDecoder.java:173) at org.freeswitch.esl.client.transport.event.EslEvent.parsePlainBody(EslEvent.java:187) at org.freeswitch.esl.client.transport.event.EslEvent.<init>(EslEvent.java:73) at org.freeswitch.esl.client.transport.event.EslEvent.<init>(EslEvent.java:62) at org.freeswitch.esl.client.internal.AbstractEslClientHandler.messageReceived(AbstractEslClientHandler.java:80) at org.freeswitch.esl.client.internal.debug.ChannelEventRunnable.run(ChannelEventRunnable.java:76) at org.jboss.netty.handler.execution.MemoryAwareThreadPoolExecutor$MemoryAwareRunnable.run(MemoryAwareThreadPoolExecutor.java:541) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) #### TRACE / LOG info
--- Vedran Zeljeznak
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- david varnes e: david.varnes@gmail.com p: +61 404 925 633
On Fri, Oct 15, 2010 at 1:17 AM, david varnes <david.varnes@gmail.com> wrote:
Vedran, Thanks for reporting the issue. As you can see from the stack trace this is just a call to the regular java URL decoder.
Yes i've seen that. I've reported the issue so you can add that exception to the try/catch block and "bulletproof it" some more... :-).
Can you capture the content of the event or message that is causing this to fail ?
Or at the least what the cause event is so that I can determine if it is still a problem on trunk ?
If it happens again i'll send it. I've also noticed that in some cases thread or threads from executors (set from NioClientSocketChannelFactory constructor) hang when i use Java_ESL_Client to connect to FS event socket. This behavior happened to me once before when i didn't call close() method on client channel, sometimes bootstrap.releaseExternalResources() helped with this issue. regards, --- Vedran Zeljeznak
participants (6)
-
Anthony Minessale
-
david varnes
-
Esser, Holger
-
Tihomir Culjaga
-
Vedran Zeljeznak
-
Vedran Zeljeznak