RE:SOLUTION FOUND [Asterisk-java-users] Is this a bug?
Brought to you by:
srt
From: Jason W. <jas...@be...> - 2006-03-17 11:53:06
|
I finally found the problem listed below and wanted to communicate it because perhaps it will be a help to others. I had reset the classpath on the machine, and it was not correct(typo). I was able to run all types of simple java programs so I thought that this couldn't be the problem. However, I was not able to concatenate strings. Someone on the groups told me that the chance of the program failing on that line (where the concatenation was) was 0%. Saying the chance of anything failing is 0% is probably never appropriate, as there is always a possibility, and in this case, was the direct key to the problem. The class needed to perform string concatenation couldn't be found at runtime and therefore the DefaultAGIServer just hung, and then gave a severe error on subsequent requests. Is there a way to simply change the way this server works so that it would give detailed error information to the screen when this type of thing happens? would this be a worthwhile change? I had the code in the agi in try-catch blocks, with a system.out of the exception, but didn't see this on the screen. running the program in main I was able to see the problem, so I'll do this quicker next time. perhaps this was more about honing my debugging technique than anything else! :) Thanks again Stefan for your hard work on Asterisk-Java. -----Original Message----- From: ast...@li... [mailto:ast...@li...]On Behalf Of Stefan Reuter Sent: Wednesday, March 08, 2006 5:26 PM To: ast...@li... Subject: Re: [Asterisk-java-users] Is this a bug? Jason Wolfe wrote: > as it turns out... I can't concatenate String variables in java on this > machine!? (weird I know) This thing in a main runs on my test and > devolepment machines fine, then get's to the production machine as a service > and fails... even in a main) what JDK are you running on that machine? a sun one or some of the "free" ones like kaffee that sometimes come shipped with linux distros? try a java -version You probably want to make sure you are actually running a recent sun (or bea jrockit) jdk there. =Stefan -- reuter network consulting Neusser Str. 110 50760 Köln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: sr...@re... Jabber: sr...@ja... |