I think there is something wrong with the URL, so it basically dos not find the data it needs and aborts.
Can you try enablibg agent rewriting in the configuration, so that instead of local/#1234@context QM will see agent/#1234 ?
Also, if you could send over a piece of queue_log, we'd love to test it in our labs.