JMS receive tutorial in 4.0.2

Poster Content
nk4um Moderator
Posts: 755
January 4, 2010 18:08
Glad you got this sorted - the clue was in <id>Request Resolution Failure</id>. The message was arriving from the JMS transport but not resolving to an endpoint to handle it.

Thanks for the positive comments on NK4!

Peter
nk4um User
Posts: 8
January 4, 2010 03:46Fixed
My fault, not a close enough reading of the tutorial.
Second <endpoint> was outside the <mapper>,
once inside the "Message Sent" shows up, albeit with some Groovy exceptions.
nk4um User
Posts: 8
January 4, 2010 00:15<endpoint>
Peter,

I REALLY like the self-awareness in NK4. Very nice (along with the prototyping for Documentation and Unit Tests). Love IT!

In the case of this problem, the Space Explorer shows a nice red indicator on the jms tutorial and colors the <endpoint> </endpoint> entry as red saying it requires a <class> or <prototype> tag. Which, of course, it lacks.
Should the groovy script be referred to in the <class> tag?

Thanks,
Mark
nk4um User
Posts: 8
January 2, 2010 09:03JMS receive tutorial in 4.0.2
I tried running the JMS tutorial in 4.0.2 with a vanilla ActiveMQ 5.3.Running on localhost with the default ports.

The send portion works fine and I can see the messages queue into the queue named "MyQueue". However, the Groovy receiver produces this error message:

I 20:08:55 JMSTransport  JMS Consumer for MyQueue started
W 20:08:55 JMSTransport  Failed to process message from jms-queue-transport:MyQueue: <ex>
<ex>
  <id>org.netkernel.layer0.nkf.NKFException</id>
</ex>
<ex>
  <id>RequestFrameException</id>
  <request>SOURCE jms-queue-transport:MyQueue+body@var%3Abody+header@var%3Aheader+properties@var%3Aproperties as Object</request>
</ex>
<ex>
  <id>Request Resolution Failure</id>
  <message>SOURCE jms-queue-transport:MyQueue+body@var%3Abody+header@var%3Aheader+properties@var%3Aproperties as Object</message>
  <trace>
   <n>Starting search in [ValueSpace(var:body, var:properties, var:header)]</n>
   <n>Descoping to [JMS Tutorial ]
    <n>No Match on [Fileset res:/etc/.*]</n>
    <n>Entering import [Transport / JMS  (public)]
     <n>Private Filter denies request</n>
     <n>No Match on [PrivateFilterEndpoint]</n>
    </n>
    <n>No Match on [import[urn:org:netkernel:tpt:jms]]</n>
    <n>No Match on [MapperOverlay]</n>
    <n>No Match on [JMSTransport]</n>
   </n>
   <n>Descoping to [JMS Tutorial  (public)]
    <n>Private Filter denies request</n>
    <n>No Match on [PrivateFilterEndpoint]</n>
   </n>
   <n>Scope exhausted. No match found</n>
  </trace>
</ex>
</ex>

The XML seems straightforward, is a jar missing?
Thanks,
Mark