windows azure:为订阅设置过滤器时出现异常

时间:2012-06-15 13:59:52

标签: azure azureservicebus

我尝试创建订阅并为该订阅设置过滤器,但createRule方法引发异常。有关如何解决它的任何想法?感谢。

SubscriptionInfo subInfo1 = new SubscriptionInfo("High_Ages"); 
CreateSubscriptionResult result1 = serviceBusContract.createSubscription(topicName, subInfo1); 
ruleInfo1 = ruleInfo1.withSqlExpressionFilter("user_age >= 50"); 
CreateRuleResult ruleResult = serviceBusContract.createRule(topicName, "High_Ages", ruleInfo1);

方法createRule(topicName,“High_Ages”,ruleInfo1)引发以下异常

java.lang.IllegalArgumentException: Path segment is null com.sun.jersey.api.uri.UriBuilderImpl.appendPath(UriBuilderImpl.java:499) com.sun.jersey.api.uri.UriBuilderImpl.appendPath(UriBuilderImpl.java:494) com.sun.jersey.api.uri.UriBuilderImpl.path(UriBuilderImpl.java:254) com.sun.jersey.api.client.WebResource.path(WebResource.java:390) com.microsoft.windowsazure.services.serviceBus.implementation.ServiceBusRestProxy.createRule(ServiceBusRestProxy.java:361) com.microsoft.windowsazure.services.serviceBus.implementation.ServiceBusExceptionProcessor.createRule(ServiceBusExceptionProcessor.java:346)

0 个答案:

没有答案