TransportHttpStatusException: Not Found (code=404)

11 views
Skip to first unread message

Maxim Kopeyka

unread,
Sep 29, 2014, 6:23:13 AM9/29/14
to gran...@googlegroups.com
Hi Guys,

I have this problem during subscription to some topic.

Java Server #1 has a producer:
> ChannelFactory channelFactory = new AMFChannelFactory();
> channelFactory.start();
> MessagingChannel channel = channelFactory.newMessagingChannel(ChannelType.LONG_POLLING, "longPollingChannel", new URI("http://127.0.0.1:55550/gravityamf/amf"));
> producer = new Producer(channel, "destination", "statusUpdate");
> ResponseListener[] listners = {};
> producer.publish(msg, listners);

Java Server #2 has a consumer:
> AMFChannelFactory channelFactory = new AMFChannelFactory();
> channelFactory.start();
> MessagingChannel channel = channelFactory.newMessagingChannel(ChannelType.LONG_POLLING, "longPollingChannel", new URI("http://127.0.0.1:55550/gravityamf/amf"));
> Consumer consumer = new Consumer(channel, "destination", "statusUpdate");
> consumer.addMessageListener(new TopicMessageListener() {
>     @Override
>     public void onMessage(TopicMessageEvent event) {
>         System.out.println("=========== onMessage ===========");
>     }
> });
> try {
>     consumer.subscribe().get();
> } catch (InterruptedException | ExecutionException | TimeoutException e) {
>     System.out.println(e.getMessage());
>}

Java Server #2 has error "TransportHttpStatusException: Not Found (code=404)" in try/catch block. How to solve this problem? (v.3.2.0-SNAPSHOT)

Reply all
Reply to author
Forward
0 new messages