Hi everyone,
I recently switched to this library after using the C library for a long time.
I'm trying to write a very basic code on sending and receiving a test message.
According to the documentation on RabbitMQ website a new queue should be declared like this:RMQQueue *q = [ch queue:@"hello"];
However, after execution of this line the app stops with this error:[RMQQueueDeclare initWithQueue:options:arguments:]: unrecognized selector sent to instance
This method is called in memoizedQueueDeclare:options:arguments: method inside RMQAllocationChannel.m where RMQMethods+Convenience.h is imported as is implemented inside the Convenience category on RMQQueueDeclare.
The selector is there, the right object is receiving the method, and above all nothing is changed and this code is a part of the pod I installed using Cocoapods. It seems that this problem is a part of the library and I haven't found any open issues or topics related to this.
As the case is too urgent for me, any attentions, ideas, quick fixes or anything is really really appreciated.
Thank you all in advanced.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
See server logs. Most likely your channel is closed, possibly due to a [protocol] channel exception. All of those are logged.Runnable tutorials [1] and Wireshark [2] can be helpful as well. Don't guess, collect data instead.
On Sat, May 26, 2018 at 2:48 PM, Amir Sepehrom <amir.s...@gmail.com> wrote:
Hi everyone,
I recently switched to this library after using the C library for a long time.
I'm trying to write a very basic code on sending and receiving a test message.
According to the documentation on RabbitMQ website a new queue should be declared like this:RMQQueue *q = [ch queue:@"hello"];However, after execution of this line the app stops with this error:
[RMQQueueDeclare initWithQueue:options:arguments:]: unrecognized selector sent to instanceThis method is called in
memoizedQueueDeclare:options:arguments:method insideRMQAllocationChannel.mwhereRMQMethods+Convenience.his imported as is implemented inside the Convenience category onRMQQueueDeclare.The selector is there, the right object is receiving the method, and above all nothing is changed and this code is a part of the pod I installed using Cocoapods. It seems that this problem is a part of the library and I haven't found any open issues or topics related to this.
As the case is too urgent for me, any attentions, ideas, quick fixes or anything is really really appreciated.
Thank you all in advanced.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--MKStaff Software Engineer, Pivotal/RabbitMQ
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
I guess the problem is in a syntax level. How can a channel cause an “Unrecognized Sector Sent to Instance” error by being open or close?
On Sat, May 26, 2018 at 7:45 PM Michael Klishin <mkli...@pivotal.io> wrote:
See server logs. Most likely your channel is closed, possibly due to a [protocol] channel exception. All of those are logged.Runnable tutorials [1] and Wireshark [2] can be helpful as well. Don't guess, collect data instead.
On Sat, May 26, 2018 at 2:48 PM, Amir Sepehrom <amir.s...@gmail.com> wrote:
Hi everyone,
I recently switched to this library after using the C library for a long time.
I'm trying to write a very basic code on sending and receiving a test message.
According to the documentation on RabbitMQ website a new queue should be declared like this:RMQQueue *q = [ch queue:@"hello"];However, after execution of this line the app stops with this error:
[RMQQueueDeclare initWithQueue:options:arguments:]: unrecognized selector sent to instanceThis method is called in
memoizedQueueDeclare:options:arguments:method insideRMQAllocationChannel.mwhereRMQMethods+Convenience.his imported as is implemented inside the Convenience category onRMQQueueDeclare.The selector is there, the right object is receiving the method, and above all nothing is changed and this code is a part of the pod I installed using Cocoapods. It seems that this problem is a part of the library and I haven't found any open issues or topics related to this.
As the case is too urgent for me, any attentions, ideas, quick fixes or anything is really really appreciated.
Thank you all in advanced.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
----MKStaff Software Engineer, Pivotal/RabbitMQ
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
RMQConnection *conn = [[RMQConnection alloc] initWithUri:@"amqp://myrabbitserver.com:1234"
delegate:[RMQConnectionDelegateLogger new]];
id<RMQChannel> ch = [conn createChannel];
RMQQueue *q = [ch queue:@"hello"];
@property (strong, nonatomic) RMQConnection *VBSRMQConnection;
@property (strong, nonatomic) id<RMQChannel> VBSRMQSendChannel;
@property (strong, nonatomic) id<RMQChannel> VBSRMQReceiveChannel;
@property (strong, nonatomic) RMQExchange *VBSRMQExchange;
@property (strong, nonatomic) RMQQueue *VBSRMQQueue;
self.VBSRMQConnection = [[RMQConnection alloc] initWithUri:[NSString stringWithFormat:@"amqp://%@:%@@%@:%d",
RMQ_SERVER_USERNAME, RMQ_SERVER_PASSWORD, RMQ_SERVER_ADDRESS, RMQ_SERVER_PORT]
delegate:[RMQConnectionDelegateLogger new]];
[self.VBSRMQConnection start];
self.VBSRMQSendChannel = [self.VBSRMQConnection createChannel];
self.VBSRMQReceiveChannel = [self.VBSRMQConnection createChannel];
self.VBSRMQQueue = [self.VBSRMQReceiveChannel queue:[DBManager getSettingForKey:VBSUserPhoneNumber]];
method = [method initWithQueue:declaredQueueName options:options arguments:arguments];
- (RMQQueue *)memoizedQueueDeclare:(NSString *)originalQueueName
options:(RMQQueueDeclareOptions)options
arguments:(RMQTable *)arguments {
NSString *declaredQueueName = [originalQueueName isEqualToString:@""]
? [self.nameGenerator generateWithPrefix:@"rmq-objc-client.gen-"]
: originalQueueName;
if (self.queues[declaredQueueName]) {
NSError *error = [NSError errorWithDomain:RMQErrorDomain
code:RMQErrorChannelQueueNameCollision
userInfo:@{NSLocalizedDescriptionKey: @"Name collision when generating unique name."}];
[self.delegate channel:self error:error];
return nil;
} else {
RMQQueue *q = [[RMQQueue alloc] initWithName:declaredQueueName
options:options
arguments:arguments
channel:(id<RMQChannel>)self];
RMQQueueDeclare *method = [RMQQueueDeclare alloc];
method = [method initWithQueue:declaredQueueName options:options arguments:arguments];
[self.dispatcher sendSyncMethod:method];
self.queues[q.name] = q;
self.queueBindings[q.name] = [NSMutableSet new];
return q;
}
}
-[RMQQueueDeclare initWithQueue:options:arguments:]: unrecognized selector sent to instance 0x1d0092160
0 ??? 0x00000001090ac908 0x0 + 4446669064,
1 RMQApp 0x0000000100fb2b14 main + 0,
2 CoreFoundation 0x000000018158c5c8 <redacted> + 1380,
3 CoreFoundation 0x000000018147241c _CF_forwarding_prep_0 + 92,
4 RMQApp 0x000000010110e280 -[RMQAllocatedChannel memoizedQueueDeclare:options:arguments:] + 876,
5 RMQApp 0x0000000101109c8c -[RMQAllocatedChannel queue:options:arguments:] + 328,
6 RMQApp 0x0000000101109d94 -[RMQAllocatedChannel queue:options:] + 180,
7 RMQApp 0x0000000101109e14 -[RMQAllocatedChannel queue:] + 76,
8 RMQApp 0x0000000100ffdcb0 -[ConnectionManager establishConnectionToRabbitMQServer] + 744,
9 RMQApp 0x0000000100fef414 -[AppDelegate application:didFinishLaunchingWithOptions:] + 924,
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
----MKStaff Software Engineer, Pivotal/RabbitMQ
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
[DBManager getSettingForKey:VBSUserPhoneNumber]Any ideas or suggestions?
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.