yinqiwen / hyk-proxy

Automatically exported from code.google.com/p/hyk-proxy
0 stars 1 forks source link

无法使用自己的appid Failed to init fetch service #90

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
已经正确配置应用,打开网页可以看到:hyk-proxy 0.9.1 server is 
running
在客户端添加自己的应用后出现以下问题
Load plugin:GAE ...   Success
Active plugin:GAE ...   Success
2010-12-12 21:04:48,599 ERROR [com.hyk.proxy.client.application.gae.event.Google
AppEngineHttpProxyEventServiceFactory.initFetchService(GoogleAppEngineHttpProxyE
ventServiceFactory.java:244)] - Failed to init fetch service.
com.hyk.proxy.common.rpc.service.AuthRuntimeException: Invalid username/passwd.
        at com.hyk.proxy.server.gae.rpc.service.RemoteServiceManagerImpl.getFetc
hService(RemoteServiceManagerImpl.java:84)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:43)
        at com.hyk.rpc.core.session.Session.processRequest(Session.java:173)
        at com.hyk.rpc.core.session.SessionManager.onMessage(SessionManager.java
:150)
        at com.hyk.rpc.core.transport.RpcChannel.processIncomingData(RpcChannel.
java:236)
        at com.hyk.proxy.server.gae.rpc.channel.HttpServletRpcChannel.processHtt
pRequest(HttpServletRpcChannel.java:98)
        at com.hyk.proxy.server.gae.servlet.HttpInvokeServlet.doPost(HttpInvokeS
ervlet.java:40)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511
)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1166)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1157)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1157)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1157)
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:3
88)
        at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.jav
a:216)
        at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:1
82)
        at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:7
65)
        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)

        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:1
52)
        at org.mortbay.jetty.Server.handle(Server.java:326)
        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:54
2)
        at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpCo
nnection.java:923)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
        at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(Bloc
kingApplicationHandler.java:24)
        at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:435)

        at com.google.net.rpc.impl.Server$RpcTask.runInContext(Server.java:572)
        at com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceConte
xt.java:448)
        at com.google.tracing.TraceContext.runInContext(TraceContext.java:688)
        at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInh
eritedContextNoUnref(TraceContext.java:326)
        at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInh
eritedContext(TraceContext.java:318)
        at com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext
.java:446)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:603)
        at java.lang.Thread.run(Thread.java:636)
2010-12-12 21:04:48,599 ERROR [com.hyk.proxy.framework.Framework.restart(Framewo
rk.java)] - Failed to launch local proxy server.
java.lang.IllegalArgumentException: No fetch service found, please check you con
figuration.
        at com.hyk.proxy.client.application.gae.event.GoogleAppEngineHttpProxyEv
entServiceFactory.init(GoogleAppEngineHttpProxyEventServiceFactory.java:99)
        at com.hyk.proxy.framework.Framework.restart(Framework.java)
        at com.hyk.proxy.framework.Framework.start(Framework.java)
        at com.hyk.proxy.framework.shell.tui.StartProxyFramework.main(StartProxy
Framework.java)
        at com.hyk.proxy.framework.launch.Launcher.main(Launcher.java)
Press <Enter> to exit...

我的系统是win7,在局域网内

Original issue reported on code.google.com by jyokyou...@gmail.com on 12 Dec 2010 at 1:10

GoogleCodeExporter commented 9 years ago
配置文件中下面的user,pass配置的是什么?从GUI中也可以看到
,添加appid时的auth
注意这个不是填你的gmail帐户信息,是你的appspot服务上自己��
�建的用户,默认为空
<hyk-proxy-server appid=""  user="" passwd=""/>

Original comment by yinqiwen@gmail.com on 12 Dec 2010 at 1:50

GoogleCodeExporter commented 9 years ago
我也遇到这个问题了,无论是gui里设置,还是gae-conf.xml里改��
�不行,都是用户名密码错误
<hyk-proxy-server passwd="gmail密码" user="gmail用户名" 
appid="申请的应用名"/>
难道我哪里操作错了吗?
还有 <localProxy>
        这里的代理用默认的或者自己找的其它代理都试过了
        <user></user>
        <passwd></passwd>
    </localProxy>
好像也不能用
不过如果把用户名和自己的应用id删除好像就可以用了

Original comment by zxhath...@gmail.com on 26 Jan 2011 at 11:39

GoogleCodeExporter commented 9 years ago
2011-01-26 19:34:13,527 ERROR 
[com.hyk.proxy.framework.plugin.PluginManager.resolvePlugin(PluginManager.java:2
63)] - Can not resolve plugin with duplicate name:GAE
2011-01-26 19:34:28,642 ERROR 
[com.hyk.proxy.framework.plugin.PluginManager.activatePlugin(PluginManager.java:
411)] - Failed to active plugin:GAE
java.lang.IllegalArgumentException: Duplicate compressor name:lzf
    at com.hyk.compress.CompressorFactory.addCompressor(CompressorFactory.java:65)
    at com.hyk.compress.CompressorFactory.addCompressor(CompressorFactory.java:53)
    at com.hyk.compress.CompressorFactory.init(CompressorFactory.java:91)
    at com.hyk.proxy.common.ExtensionsLauncher.loadLZFCompressExtension(ExtensionsLauncher.java:27)
    at com.hyk.proxy.common.ExtensionsLauncher.init(ExtensionsLauncher.java:37)
    at com.hyk.proxy.client.GAEPlugin.onActive(GAEPlugin.java:55)
    at com.hyk.proxy.framework.plugin.PluginManager.activatePlugin(PluginManager.java:404)
    at com.hyk.proxy.framework.shell.gui.InstalledPluginPanel$6.run(InstalledPluginPanel.java:184)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at org.jboss.netty.handler.execution.MemoryAwareThreadPoolExecutor$MemoryAwareRunnable.run(MemoryAwareThreadPoolExecutor.java:495)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
2011-01-26 19:51:03,423 ERROR 
[com.hyk.proxy.framework.plugin.PluginManager.resolvePlugin(PluginManager.java:2
63)] - Can not resolve plugin with duplicate name:GAE
2011-01-26 19:52:45,551 ERROR 
[com.hyk.proxy.client.application.gae.rpc.HttpClientRpcChannel$HttpResponseHandl
er.exceptionCaught(HttpClientRpcChannel.java:476)] - exceptionCaught in 
HttpResponseHandler
java.io.IOException: 远程主机强迫关闭了一个现有的连接。
    at sun.nio.ch.SocketDispatcher.read0(Native Method)
    at sun.nio.ch.SocketDispatcher.read(Unknown Source)
    at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)
    at sun.nio.ch.IOUtil.read(Unknown Source)
    at sun.nio.ch.SocketChannelImpl.read(Unknown Source)
    at org.jboss.netty.buffer.HeapChannelBuffer.setBytes(HeapChannelBuffer.java:156)
    at org.jboss.netty.buffer.AbstractChannelBuffer.writeBytes(AbstractChannelBuffer.java:425)
    at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:305)
    at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:275)
    at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:196)
    at org.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerRunnable.java:46)
    at org.jboss.netty.handler.execution.MemoryAwareThreadPoolExecutor$MemoryAwareRunnable.run(MemoryAwareThreadPoolExecutor.java:495)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
2011-01-26 19:52:45,603 ERROR 
[com.hyk.proxy.client.application.gae.rpc.HttpClientRpcChannel$HttpResponseHandl
er.exceptionCaught(HttpClientRpcChannel.java:476)] - exceptionCaught in 
HttpResponseHandler
java.io.IOException: 远程主机强迫关闭了一个现有的连接。
    at sun.nio.ch.SocketDispatcher.read0(Native Method)
    at sun.nio.ch.SocketDispatcher.read(Unknown Source)
    at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)
    at sun.nio.ch.IOUtil.read(Unknown Source)
    at sun.nio.ch.SocketChannelImpl.read(Unknown Source)
    at org.jboss.netty.buffer.HeapChannelBuffer.setBytes(HeapChannelBuffer.java:156)
    at org.jboss.netty.buffer.AbstractChannelBuffer.writeBytes(AbstractChannelBuffer.java:425)
    at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:305)
    at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:275)
    at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:196)
    at org.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerRunnable.java:46)
    at org.jboss.netty.handler.execution.MemoryAwareThreadPoolExecutor$MemoryAwareRunnable.run(MemoryAwareThreadPoolExecutor.java:495)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

2011-01-26 19:56:26,248 ERROR 
[com.hyk.proxy.framework.plugin.PluginManager.resolvePlugin(PluginManager.java:2
63)] - Can not resolve plugin with duplicate name:GAE
2011-01-26 19:56:27,332 ERROR 
[com.hyk.proxy.client.application.gae.event.GoogleAppEngineHttpProxyEventService
Factory.initFetchService(GoogleAppEngineHttpProxyEventServiceFactory.java:244)] 
- Failed to init fetch service.
com.hyk.proxy.common.rpc.service.AuthRuntimeException: Invalid username/passwd.
    at com.hyk.proxy.server.gae.rpc.service.RemoteServiceManagerImpl.getFetchService(RemoteServiceManagerImpl.java:84)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:43)
    at com.hyk.rpc.core.session.Session.processRequest(Session.java:173)
    at com.hyk.rpc.core.session.SessionManager.onMessage(SessionManager.java:150)
    at com.hyk.rpc.core.transport.RpcChannel.processIncomingData(RpcChannel.java:236)
    at com.hyk.proxy.server.gae.rpc.channel.HttpServletRpcChannel.processHttpRequest(HttpServletRpcChannel.java:98)
    at com.hyk.proxy.server.gae.servlet.HttpInvokeServlet.doPost(HttpInvokeServlet.java:40)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.Server.handle(Server.java:326)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
    at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
    at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java:24)
    at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:435)
    at com.google.net.rpc.impl.Server$RpcTask.runInContext(Server.java:572)
    at com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:448)
    at com.google.tracing.TraceContext.runInContext(TraceContext.java:688)
    at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:326)
    at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:318)
    at com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:446)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:636)
2011-01-26 19:56:27,340 ERROR 
[com.hyk.proxy.framework.Framework.restart(Framework.java:132)] - Failed to 
launch local proxy server.
java.lang.IllegalArgumentException: No fetch service found, please check you 
configuration.
    at com.hyk.proxy.client.application.gae.event.GoogleAppEngineHttpProxyEventServiceFactory.init(GoogleAppEngineHttpProxyEventServiceFactory.java:99)
    at com.hyk.proxy.framework.Framework.restart(Framework.java:115)
    at com.hyk.proxy.framework.Framework.start(Framework.java:97)
    at com.hyk.proxy.framework.shell.tui.StartProxyFramework.main(StartProxyFramework.java:23)
    at com.hyk.proxy.framework.launch.Launcher.main(Launcher.java:36)
重新下载服务端上传,重新下载客户端gui设置个人appid和用户
名密码,还是不行。

Original comment by zxhath...@gmail.com on 26 Jan 2011 at 11:59

GoogleCodeExporter commented 9 years ago
把用户名设置成root密码到http://申请的id.appspot.com/admin复制那�
��密码,然后把gui里的代理设置google:80那个好像稀里糊涂的可
以用了。

Original comment by zxhath...@gmail.com on 27 Jan 2011 at 1:06

GoogleCodeExporter commented 9 years ago
http://code.google.com/p/hyk-proxy/wiki/Authorization

Original comment by yinqiwen@gmail.com on 2 Apr 2011 at 3:22