Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dubbo admin reports an error after config a route rule #33

Closed
hhfdna opened this issue May 30, 2018 · 1 comment
Closed

dubbo admin reports an error after config a route rule #33

hhfdna opened this issue May 30, 2018 · 1 comment

Comments

@hhfdna
Copy link

hhfdna commented May 30, 2018

after i config a route rule in governance-->routes, click the consumers menu, dubbo-admin reports an error:

Caused by: java.lang.IllegalStateException: Illegal query string "anyhost=true&application=caseProcess&buffer=4096&charset=UTF-8&client=netty&contextpath=&default.cluster=failfast&default.delay=-1&default.payload=5000000&default.threadpool=fixed&default.threads=1000&default.timeout=15000&default.token=false&delay=-1&dispatcher=message&dubbo=2.5.6-SNAPSHOT&generic=false&heartbeat=100000&interface=com.bocsoft.caseInterface.service.CaseService&loadbalance=random&logger=slf4j&methods=acceptOneCase,loadCaseInfoById,queryCaseDetail,queryCaseByDoubleId,queryCaseLogCountList,updateCaseTransInfo,updateCase,insertCaseLog,acceptCaseList,createCase,countCaseList,queryCaseLogList,getCurrentTime,allotCaseList,deleteCase,queryCaseList,allotSingleCase&optimizer=com.bocsoft.caseInterface.common.serial.SerializationOptimizerImpl&owner=hongxiaofeng&payload=5000000&pid=12809&revision=1.0.0&serialization=kryo&server=netty&side=provider&threadpool=fixed&threads=1000&timestamp=1527579353945&validation=true&version=1.0", The error char '&' at index 88 before "default.cluster".
at com.alibaba.dubbo.registry.common.route.ParseUtils.parseQuery(ParseUtils.java:244)
at com.alibaba.dubbo.registry.common.route.RouteUtils.route(RouteUtils.java:142)
at com.alibaba.dubbo.registry.common.route.RouteUtils.route(RouteUtils.java:91)
at com.alibaba.dubbo.governance.web.governance.module.screen.Consumers.index(Consumers.java:100)
at sun.reflect.GeneratedMethodAccessor78.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.alibaba.dubbo.governance.web.common.module.screen.Restful.execute(Restful.java:194)
at com.alibaba.dubbo.governance.web.governance.module.screen.Consumers$$FastClassByCGLIB$$1764a0c8.invoke()
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
at com.alibaba.citrus.service.moduleloader.impl.adapter.MethodInvoker.invoke(MethodInvoker.java:70)

according to the stacktrace,i modified the class:com.alibaba.dubbo.registry.common.route.ParseUtils.parseQuery method:
changing the line 243 from
if (key != null)
to
if (key != null && !key.equals("contextpath"))

then problem solved!

my question is: is this problem a bug? is my modify right?

@KeRan213539
Copy link
Contributor

Sorry, because this issue was raised very early, we have closed it temporarily. You can verify whether this problem still exists in the latest code of the develop branch. If this problem still exists, please reopen it at any time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants