I had this working on my last PC, but when i installed the local proxy on my new install, it isn't working.
The user is "active" and can proxy vía the
supertweet.net website just fine, using both 1.0 and 1.1 APIs. The proxy installed normally. I updated the app.properties file and I
can run the proxy, and browse to the setup page. i get the link, it
recognizes my app and gives me a PIN. I enter the PIN, get a "credentials for xxxxx saved" page and the 3 subdirs
get created in the jos. Examining their contents, they match the previous install. Looking at my secrets at
twitter.com, they match what's in the jos's files.
But when attempting to use the proxy, I get the following error:
>>>
<?xml version="1.0"?>
<hash>
<request>/1/statuses/mentions.xml</request>
<error>user 'xxxxx' unknown</error>
</hash>
>>>
or
>>>
{"request":"/1.1/statuses/mentions_timeline.json","error":"user 'xxxxx' unknown"}
>>>
Console screen logging looks like:
>>>
2012-09-28 22:38:47.114::INFO: Logging to STDERR via org.mortbay.log.StdErrLog
2012-09-28 22:38:47.240::INFO: jetty-6.1.20
2012-09-28 22:38:47.291::INFO: Deploy C:\Program Filez\supertweet\jetty-6.1.20\contexts\test.xml -> org.mortbay.jetty.webapp.WebAppContext@2aaec8{/jettytest,C:\Program Filez\supertweet\jetty-6.1.20/webapps/test}
2012-09-28 22:38:47.298::INFO: Deploy C:\Program Filez\supertweet\jetty-6.1.20\contexts\supertweet-local.xml -> org.mortbay.jetty.webapp.WebAppContext@c042ab{/,./webapps/supertweet-local}
2012-09-28 22:38:47.636:/jettytest:INFO: Transparent AsyncProxyServlet @ /google to
http://www.google.com2012-09-28 22:38:47.757::INFO: Opened C:\Program Filez\supertweet\jetty-6.1.20\logs\2012_09_29.request.log
2012-09-28 22:38:47.813::INFO: Started
SelectChann...@0.0.0.0:8080Sep 28, 2012 10:39:24 PM neoauthlo.NeoAuthApplication start
INFO: neoauth Restlet startup
Sep 28, 2012 10:39:24 PM neoauthlo.util.oAuthConfig loadCreds
INFO: Retrieving App creds from C:\Users\Spiff/.supertweet/App.properties
2012-09-28 22:39:24.134:/:INFO: RestletServlet: [Restlet] Attaching application: neoauthlo.NeoAuthApplication@e6a73d to URI:
com.thoughtworks.xstream.converters.ConversionException: Cannot construct neoauth.model.ScreennameMap as it does not have a no-args constructor : Cannot construct neoauth.model.ScreennameMap as it does not have a no-args constructor
---- Debugging information ----
message : Cannot construct neoauth.model.ScreennameMap as it does not have a no-args constructor
cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
cause-message : Cannot construct neoauth.model.ScreennameMap as it does not have a no-args constructor
class : neoauth.model.ScreennameMap
required-type : neoauth.model.ScreennameMap
path : /neoauth.model.ScreennameMap
line number : 2
-------------------------------
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:899)
at com.thoughtworks.xstream.XStream$3.readFromStream(XStream.java:1503)
at com.thoughtworks.xstream.core.util.CustomObjectInputStream.readObjectOverride(CustomObjectInputStream.java:86)
at java.io.ObjectInputStream.readObject(Unknown Source)
at neoauthlo.model.DataAccessManager.getIdByScreenname(DataAccessManager.java:336)
at neoauthlo.model.DataAccessManager.getUserInfoByScreenname(DataAccessManager.java:171)
at neoauthlo.resource.ProxyResource.isAuthOk(ProxyResource.java:216)
at neoauthlo.resource.ProxyResource.doRequest(ProxyResource.java:316)
at neoauthlo.resource.ProxyResource.doGetRequest(ProxyResource.java:306)
at neoauthlo.resource.GeneralAPIProxyResource.represent(GeneralAPIProxyResource.java:35)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.restlet.resource.ServerResource.doHandle(ServerResource.java:466)
at org.restlet.resource.ServerResource.doNegotiatedHandle(ServerResource.java:573)
at org.restlet.resource.ServerResource.doConditionalHandle(ServerResource.java:254)
at org.restlet.resource.ServerResource.handle(ServerResource.java:923)
at org.restlet.resource.Finder.handle(Finder.java:510)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.routing.Filter.handle(Filter.java:201)
at org.restlet.routing.Router.doHandle(Router.java:321)
at org.restlet.routing.Router.handle(Router.java:520)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.routing.Filter.handle(Filter.java:201)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.routing.Filter.handle(Filter.java:201)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.engine.application.StatusFilter.doHandle(StatusFilter.java:152)
at org.restlet.routing.Filter.handle(Filter.java:201)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.routing.Filter.handle(Filter.java:201)
at org.restlet.engine.ChainHelper.handle(ChainHelper.java:111)
at org.restlet.engine.application.ApplicationHelper.handle(ApplicationHelper.java:72)
at org.restlet.Application.handle(Application.java:344)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.routing.Filter.handle(Filter.java:201)
at org.restlet.routing.Router.doHandle(Router.java:321)
at org.restlet.routing.Router.handle(Router.java:520)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.routing.Filter.handle(Filter.java:201)
at org.restlet.routing.Router.doHandle(Router.java:321)
at org.restlet.routing.Router.handle(Router.java:520)
at org.restlet.routing.Filter.doHandle(Filter.java:156)
at org.restlet.routing.Filter.handle(Filter.java:201)
at org.restlet.engine.ChainHelper.handle(ChainHelper.java:111)
at org.restlet.Component.handle(Component.java:403)
at org.restlet.Server.handle(Server.java:350)
at org.restlet.engine.ServerHelper.handle(ServerHelper.java:71)
at org.restlet.engine.http.HttpServerHelper.handle(HttpServerHelper.java:149)
at org.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:967)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
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.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
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:536)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:913)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Cannot construct neoauth.model.ScreennameMap as it does not have a no-args constructor
at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.newInstance(PureJavaReflectionProvider.java:71)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.instantiateNewInstance(AbstractReflectionConverter.java:308)
at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:161)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
... 75 more
Sep 28, 2012 10:39:24 PM neoauthlo.resource.ProxyResource isAuthOk
WARNING: no such user: xxxxx
Sep 28, 2012 10:39:24 PM org.restlet.engine.log.LogFilter afterHandle
INFO: 2012-09-28 22:39:24 127.0.0.1 127.0.0.1 8080 GET /1/statuses/mentions.xml
- 401 120 - 334
http://localhost:8080 curl/7.27.0 -
Sep 28, 2012 10:39:25 PM net.sf.ehcache.util.UpdateChecker doCheck
INFO: New update(s) found: 2.4.7 [
http://www.terracotta.org/confluence/display/release/Release+Notes+Ehcache+Core+2.4]. Please check
http://ehcache.org for the latest version.
>>>
I just added another user and get pretty much the same console output as above when doing the access setup while (appearing to) work.
Also, I 've tried this with the 6/0 and 6/29 .war files. It was working before with both as well. No console logs from before to compare though... :-(