<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Can you try with the patch from next commit:<br>
<br>
-
<a class="moz-txt-link-freetext" href="http://git.sip-router.org/cgi-bin/gitweb.cgi?p=sip-router;a=commitdiff;h=a13e3b46dba4470deb748eec3b700386f453f6f9;hp=74f53b7d7f6ff00144152aff453e6b388447320c">http://git.sip-router.org/cgi-bin/gitweb.cgi?p=sip-router;a=commitdiff;h=a13e3b46dba4470deb748eec3b700386f453f6f9;hp=74f53b7d7f6ff00144152aff453e6b388447320c</a><br>
<br>
It has code indentation, as I needed to figure out the blocks there,
effectively you have to change the line:<br>
<br>
buf = (char **)pkg_realloc(buf, (i+1) * sizeof(char *));<br>
<br>
in: <br>
<br>
buf = (char **)pkg_realloc(buf, (i+2) * sizeof(char *));<br>
<br>
inside the file modules/app_java/utils.c <br>
<br>
I cc-ed Konstantin, the author of the module, to review the change.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 09/09/14 21:31, Tom Johnson wrote:<br>
</div>
<blockquote
cite="mid:cee66f6ce4604caa8035f2d0f2f574ca@CO1PR07MB221.namprd07.prod.outlook.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<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:11.0pt;
font-family:"Calibri","sans-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.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@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]-->
<div class="WordSection1">
<p class="MsoNormal">Per my previous message, I determined that
the module’s makefile was not properly finding the jdk/jre
directories needed to compile. So, I temporarily hardcoded
the paths in the makefile.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">However, now when I use the module,
Kamailio crashes. Below is the lines from /var/log/messages:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Sep 9 15:13:10 MAIFREEPBX kamailio: INFO:
<core> [tcp_main.c:4836]: init_tcp(): init_tcp: using
epoll_lt as the io watch method (auto detected)<o:p></o:p></p>
<p class="MsoNormal">Sep 9 15:13:10 MAIFREEPBX kamailio:
WARNING: <core> [daemonize.c:352]: daemonize(): pid file
contains old pid, replacing pid<o:p></o:p></p>
<p class="MsoNormal">Sep 9 15:13:10 MAIFREEPBX
/usr/local/sbin/kamailio[12268]: INFO: rr
[../outbound/api.h:54]: ob_load_api(): Failed to import
bind_ob<o:p></o:p></p>
<p class="MsoNormal">Sep 9 15:13:10 MAIFREEPBX
/usr/local/sbin/kamailio[12268]: INFO: rr [rr_mod.c:159]:
mod_init(): outbound module not available<o:p></o:p></p>
<p class="MsoNormal">Sep 9 15:13:10 MAIFREEPBX
/usr/local/sbin/kamailio[12268]: INFO: usrloc [hslot.c:53]:
ul_init_locks(): locks array size 512<o:p></o:p></p>
<p class="MsoNormal">Sep 9 15:13:10 MAIFREEPBX
/usr/local/sbin/kamailio[12268]: INFO: auth [auth_mod.c:350]:
mod_init(): auth: qop set, but nonce-count (nc_enabled)
support disabled<o:p></o:p></p>
<p class="MsoNormal">Sep 9 15:13:10 MAIFREEPBX
/usr/local/sbin/kamailio[12268]: INFO: app_java
[java_mod.c:125]: mod_init(): Initializing Java VM with
options: -Xdebug -verbose:gc,class,jni -Djava.compiler=NONE
-Djava.class.path=/opt/microautomation/i3/I3Notifier.jar:/opt/kamailio/java/kamailio.jar:/opt/microautomation/i3/lib/log4j-1.2.16.jar<o:p></o:p></p>
<p class="MsoNormal">Sep 9 15:13:10 MAIFREEPBX
/usr/local/sbin/kamailio[12268]: INFO: app_java
[java_mod.c:146]: mod_init(): app_java: Java VM initialization
OK<o:p></o:p></p>
<p class="MsoNormal">Sep 9 15:13:10 MAIFREEPBX
/usr/local/sbin/kamailio[12268]: INFO: app_java
[java_mod.c:198]: mod_init(): app_java: module initialization
OK<o:p></o:p></p>
<p class="MsoNormal">Sep 9 15:13:10 MAIFREEPBX
/usr/local/sbin/kamailio[12268]: : <core>
[mem/q_malloc.c:159]: qm_debug_frag(): BUG: qm_*: prev. fragm.
tail overwritten(0, abcdefed)[0x7f0941207190:0x7f09412071c0]!<o:p></o:p></p>
<p class="MsoNormal">Sep 9 15:13:11 MAIFREEPBX abrt[12282]:
Saved core dump of pid 12268 (/usr/local/sbin/kamailio) to
/var/spool/abrt/ccpp-2014-09-09-15:13:10-12268 (183721984
bytes)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The code dump mentioned does not exist.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If I do not load the app_java module,
Kamailio works.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:8.0pt"><a
moz-do-not-send="true"
href="mailto:tjohnson@microautomation.com"><span
style="color:blue">Tom Johnson</span></a> | Senior
Software Engineer<br>
O: 703-543-2118 | F: 703-543-2099 <br>
5870 Trinity Parkway, Suite 600, Centreville, VA 20120<br>
</span><a moz-do-not-send="true"
href="http://www.microautomation.com/"><span
style="color:windowtext;text-decoration:none"><img
id="Picture_x0020_1"
src="cid:part2.02070407.06040207@gmail.com"
alt="cid:image001.png@01CE18AF.8F231EB0" height="49"
border="0" width="319"></span></a><span
style="font-size:8.0pt;color:white"><br>
<br>
</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Next Kamailio Advanced Trainings 2014 - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
Sep 22-25, Berlin, Germany</pre>
</body>
</html>