activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nguyen Kien Trung <trung....@gmail.com>
Subject Re[4]: ActiveMQ and Lingo
Date Sun, 16 Jul 2006 14:33:38 GMT
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title></title>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
body {
  margin: 5px 5px 5px 5px;
  background-color: #ffffff;
}
/* ---------- Text Styles ---------- */
hr { color: #000000}
body, table /* Normal text */
{
 font-size: 9pt;
 font-family: 'Courier New';
 font-style: normal;
 font-weight: normal;
 color: #000000;
 text-decoration: none;
}
span.rvts1 /* Heading */
{
 font-size: 10pt;
 font-family: 'Arial';
 font-weight: bold;
 color: #0000ff;
}
span.rvts2 /* Subheading */
{
 font-size: 10pt;
 font-family: 'Arial';
 font-weight: bold;
 color: #000080;
}
span.rvts3 /* Keywords */
{
 font-size: 10pt;
 font-family: 'Arial';
 font-style: italic;
 color: #800000;
}
a.rvts4, span.rvts4 /* Jump 1 */
{
 font-size: 10pt;
 font-family: 'Arial';
 color: #008000;
 text-decoration: underline;
}
a.rvts5, span.rvts5 /* Jump 2 */
{
 font-size: 10pt;
 font-family: 'Arial';
 color: #008000;
 text-decoration: underline;
}
span.rvts6
{
 font-size: 11pt;
 font-family: 'tahoma';
 font-weight: bold;
 color: #ffffff;
}
span.rvts7
{
 font-size: 11pt;
 font-family: 'tahoma';
}
span.rvts8
{
 font-size: 11pt;
 font-family: 'tahoma';
 font-weight: bold;
}
a.rvts9, span.rvts9
{
 font-size: 11pt;
 font-family: 'tahoma';
 color: #0000ff;
 text-decoration: underline;
}
span.rvts10
{
 font-size: 8pt;
 font-family: 'arial';
 font-style: italic;
 color: #c0c0c0;
}
a.rvts11, span.rvts11
{
 font-size: 8pt;
 font-family: 'arial';
 color: #0000ff;
 text-decoration: underline;
}
/* ---------- Para Styles ---------- */
p,ul,ol /* Paragraph Style */
{
 text-align: left;
 text-indent: 0px;
 padding: 0px 0px 0px 0px;
 margin: 0px 0px 0px 0px;
}
.rvps1 /* Centered */
{
 text-align: center;
}
--></style>
</head>
<body>

<p>Hi Shanjiv,</p>
<p><br></p>
<p>Yes, "body" is not null, cos' I am able to print out all of its parent classes.&nbsp;</p>
<p><br></p>
<p>Breakpoint would be good suggestion</p>
<p><br></p>
<p>I'll keep you guys updated with the process</p>
<p><br></p>
<p>Trung</p>
<p><br></p>
<p>Saturday, July 15, 2006, 9:55:33 PM, you wrote:</p>
<p><br></p>
<div><table border=0 cellpadding=1 cellspacing=2 style="border-color: #000000; border-style:
solid;">
<tr valign=top>
<td width=12 style="background-color: #0000ff;">
<p><span class=rvts6>&gt;</span></p>
</td>
<td width=783 style="background-color: #f4f4f4;">
<p><span class=rvts7>Are you sure that the "body" of the ObjectMessage is not
null? instanceof returns false if object is null.</span></p>
<p><span class=rvts7>Other than that, I would suggest you debug the app with a
breakpoint on this line and then run a few quick eval expressions to see why this check is
returning false.</span></p>
<p><span class=rvts7>&nbsp;</span></p>
<p><span class=rvts7>Sanjiv</span></p>
<p><br></p>
<p><span class=rvts7>&nbsp;</span></p>
<p><span class=rvts7>On 7/15/06,&nbsp;</span><span class=rvts8>Nguyen
Kien Trung</span><span class=rvts7>&nbsp;&lt;</span><a class=rvts9
href="mailto:trung.n.k@gmail.com">trung.n.k@gmail.com</a><span class=rvts7>&gt;
wrote:&nbsp;</span></p>
<p><br></p>
<p><span class=rvts7>Thanks James,</span></p>
<p><br></p>
<p><span class=rvts7>I've printed out the classloader of the body object, classloader
of each and every parent classes, classloader of the current RemoteInvocation itself...&nbsp;</span></p>
<p><span class=rvts7>It resulted the same classloader.</span></p>
<p><br></p>
<p><span class=rvts7>Any other suggestion? Could it be of configuration problems?</span></p>
<p><br></p>
<p><span class=rvts7>Cheers,</span></p>
<p><br></p>
<p><span class=rvts7>Trung</span></p>
<p><br></p>
<p><span class=rvts7>Friday, July 14, 2006, 5:57:55 PM, you wrote:</span></p>
<p><br></p>
<p><span class=rvts7>&gt; It sounds like a classloader issue to me - I think
you might have&nbsp;</span></p>
<p><span class=rvts7>&gt; multiple instances of the RemoteInvocation on the
classloader maybe?</span></p>
<p><br></p>
<p><span class=rvts7>&gt; On 7/14/06, Nguyen Kien Trung &lt;</span><a
class=rvts9 href="mailto:trung.n.k@gmail.com">trung.n.k@gmail.com</a><span class=rvts7>&gt;
wrote:</span></p>
<p><span class=rvts7>&gt;&gt; Hi all,</span></p>
<p><br></p>
<p><span class=rvts7>&gt;&gt; I'm trying to use ActiveMQ in Lingo and
have encountered a problem:</span></p>
<p><br></p>
<p><span class=rvts7>&gt;&gt; [DefaultMashaller] Invalid message will
be discarded:</span></p>
<p><span class=rvts7>&gt;&gt; ActiveMQObjectMessage {.....}</span></p>
<p><br></p>
<p><span class=rvts7>&gt;&gt; I've gone through the flow and found that
the exception is thrown in&nbsp;</span></p>
<p><span class=rvts7>&gt;&gt; DefaultMashaller.readRemoteInvocation()
when a body of the message is</span></p>
<p><span class=rvts7>&gt;&gt; not of type org.springframework.remoting.support.RemoteInvocation</span></p>
<p><br></p>
<p><span class=rvts7>&gt;&gt; However, I logged the body object of the
message and recursively printed&nbsp;</span></p>
<p><span class=rvts7>&gt;&gt; out the parent classes. Ooops, RemoteInvocation
is one of body's</span></p>
<p><span class=rvts7>&gt;&gt; parents. It's obivous since the message
body is of type LingoMessage,</span></p>
<p><span class=rvts7>&gt;&gt; and LingoMessage extends RemoteInvocation...</span></p>
<p><br></p>
<p><span class=rvts7>&gt;&gt; How does the IF not work?</span></p>
<p><span class=rvts7>&gt;&gt; -------------------------------</span></p>
<p><span class=rvts7>&gt;&gt; if (body instanceof RemoteInvocation) {</span></p>
<p><span class=rvts7>&gt;&gt; &nbsp; &nbsp; return (RemoteInvocation)
body;</span></p>
<p><span class=rvts7>&gt;&gt; }</span></p>
<p><span class=rvts7>&gt;&gt; -------------------------------&nbsp;</span></p>
<p><br></p>
<p><span class=rvts7>&gt;&gt; I'm using Spring 2.0RC1 in the application
whereas Lingo uses Spring</span></p>
<p><span class=rvts7>&gt;&gt; 1.2.6 in its implementation. Not sure if
it's the root cause? - I've</span></p>
<p><span class=rvts7>&gt;&gt; looked at the REMOTING package source code
in both Spring versions and&nbsp;</span></p>
<p><span class=rvts7>&gt;&gt; found few changes but not critical. RemoteInvocation
classes are identical.</span></p>
<p><br></p>
<p><span class=rvts7>&gt;&gt; I appreciate any help...</span></p>
<p><br></p>
<p><span class=rvts7>&gt;&gt; Trung</span></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><span class=rvts7>--</span></p>
<p><span class=rvts7>Best regards,</span></p>
<p><span class=rvts7>Nguyen &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mailto:&nbsp;</span><a
class=rvts9 href="mailto:trung.n.k@gmail.com">trung.n.k@gmail.com</a></p>
</td>
</tr>
</table>
</div>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><span class=rvts10>--&nbsp;</span></p>
<p><span class=rvts10>Best regards,</span></p>
<p><span class=rvts10>&nbsp;Nguyen &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;</span><a class=rvts11 href="mailto:trung.n.k@gmail.com">mailto:trung.n.k@gmail.com</a></p>

</body></html>


Mime
View raw message