1

我尝试创建订阅并为该订阅设置过滤器,但 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)

4

0 回答 0