[appengine-java] Re: Guice Errors while trying to integrate the sample google app marketplace

2011-02-14 Thread Jaspal Sawhney
I was able to resolve this bug. Was a library issue only.

On Feb 14, 10:54 am, Jaspal Sawhney  wrote:
> I'm trying to run the sample google marketplace app and my application is
> throwing guice errors in the logs.
> *
> *
> *Setup:*
> 1. Java Application deployed Google App Engine
> 2. Google Marketplace listing pointing to the app.
>
> *Issue*
> 1. Accessing the application from both directly the appspot.com as well as
> from the universal navigation from within google app results in the
> following error
>
> *Uncaught exception from servlet
> com.google.inject.internal.ComputationException: java.lang.SecurityException: 
> Unable to get members for class 
> com.google.step2.discovery.DefaultHostMetaFetcher*
>         at 
> com.google.inject.internal.MapMaker$StrategyImpl.compute(MapMaker.java:553)
>         at 
> com.google.inject.internal.MapMaker$StrategyImpl.compute(MapMaker.java:419)
>         at 
> com.google.inject.internal.CustomConcurrentHashMap$ComputingImpl.get(Custom 
> ConcurrentHashMap.java:2041)
>         at com.google.inject.internal.FailableCache.get(FailableCache.java:46)
>         at 
> com.google.inject.ConstructorInjectorStore.get(ConstructorInjectorStore.jav 
> a:52)
>         at 
> com.google.inject.ConstructorBindingImpl.initialize(ConstructorBindingImpl. 
> java:57)
>         at 
> com.google.inject.InjectorImpl.initializeBinding(InjectorImpl.java:377)
>         at 
> com.google.inject.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:64 5)
>         at 
> com.google.inject.InjectorImpl.createJustInTimeBindingRecursive(InjectorImp 
> l.java:581)
>         at 
> com.google.inject.InjectorImpl.getJustInTimeBinding(InjectorImpl.java:172)
>         at 
> com.google.inject.InjectorImpl.getBindingOrThrow(InjectorImpl.java:132)
>         at 
> com.google.inject.InjectorImpl.getInternalFactory(InjectorImpl.java:651)
>         at 
> com.google.inject.InjectorImpl.getProviderOrThrow(InjectorImpl.java:747)
>         at com.google.inject.LookupProcessor.visit(LookupProcessor.java:51)
>         at com.google.inject.LookupProcessor.visit(LookupProcessor.java:30)
>         at 
> com.google.inject.spi.ProviderLookup.acceptVisitor(ProviderLookup.java:54)
>         at 
> com.google.inject.AbstractProcessor.process(AbstractProcessor.java:65)
>         at 
> com.google.inject.AbstractProcessor.process(AbstractProcessor.java:54)
>         at 
> com.google.inject.InjectorBuilder.initializeStatically(InjectorBuilder.java 
> :140)
>         at com.google.inject.InjectorBuilder.build(InjectorBuilder.java:105)
>         at com.google.inject.Guice.createInjector(Guice.java:92)
>         at com.google.inject.Guice.createInjector(Guice.java:69)
>         at com.google.inject.Guice.createInjector(Guice.java:59)
>         at com.jbb.gamproject.ConsumerFactory.(ConsumerFactory.java:39)
>         at com.jbb.gamproject.OpenIdServlet.init(OpenIdServlet.java:71)
>         at 
> org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440)
>         at 
> org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:339)
>         at 
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
>         at 
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandle 
> r.java:1166)
>         at 
> com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlo 
> bUploadFilter.java:97)
>         at 
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandle 
> r.java:1157)
>         at 
> com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionF 
> ilter.java:35)
>         at 
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandle 
> r.java:1157)
>         at 
> com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(Trans 
> actionCleanupFilter.java:43)
>         at 
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandle 
> r.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 
> com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionH 
> andlerMap.java:238)
>         at 
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>         at org.mortbay.jetty.Server.handle(Server.java:326)

[appengine-java] Guice Errors while trying to integrate the sample google app marketplace

2011-02-14 Thread Jaspal Sawhney
I'm trying to run the sample google marketplace app and my application is 
throwing guice errors in the logs.
*
*
*Setup:* 
1. Java Application deployed Google App Engine
2. Google Marketplace listing pointing to the app.

*Issue*
1. Accessing the application from both directly the appspot.com as well as 
from the universal navigation from within google app results in the 
following error

*Uncaught exception from servlet
com.google.inject.internal.ComputationException: java.lang.SecurityException: 
Unable to get members for class 
com.google.step2.discovery.DefaultHostMetaFetcher*
at 
com.google.inject.internal.MapMaker$StrategyImpl.compute(MapMaker.java:553)
at 
com.google.inject.internal.MapMaker$StrategyImpl.compute(MapMaker.java:419)
at 
com.google.inject.internal.CustomConcurrentHashMap$ComputingImpl.get(CustomConcurrentHashMap.java:2041)
at com.google.inject.internal.FailableCache.get(FailableCache.java:46)
at 
com.google.inject.ConstructorInjectorStore.get(ConstructorInjectorStore.java:52)
at 
com.google.inject.ConstructorBindingImpl.initialize(ConstructorBindingImpl.java:57)
at 
com.google.inject.InjectorImpl.initializeBinding(InjectorImpl.java:377)
at 
com.google.inject.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:645)
at 
com.google.inject.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:581)
at 
com.google.inject.InjectorImpl.getJustInTimeBinding(InjectorImpl.java:172)
at 
com.google.inject.InjectorImpl.getBindingOrThrow(InjectorImpl.java:132)
at 
com.google.inject.InjectorImpl.getInternalFactory(InjectorImpl.java:651)
at 
com.google.inject.InjectorImpl.getProviderOrThrow(InjectorImpl.java:747)
at com.google.inject.LookupProcessor.visit(LookupProcessor.java:51)
at com.google.inject.LookupProcessor.visit(LookupProcessor.java:30)
at 
com.google.inject.spi.ProviderLookup.acceptVisitor(ProviderLookup.java:54)
at 
com.google.inject.AbstractProcessor.process(AbstractProcessor.java:65)
at 
com.google.inject.AbstractProcessor.process(AbstractProcessor.java:54)
at 
com.google.inject.InjectorBuilder.initializeStatically(InjectorBuilder.java:140)
at com.google.inject.InjectorBuilder.build(InjectorBuilder.java:105)
at com.google.inject.Guice.createInjector(Guice.java:92)
at com.google.inject.Guice.createInjector(Guice.java:69)
at com.google.inject.Guice.createInjector(Guice.java:59)
at com.jbb.gamproject.ConsumerFactory.(ConsumerFactory.java:39)
at com.jbb.gamproject.OpenIdServlet.init(OpenIdServlet.java:71)
at 
org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:440)
at 
org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:339)
at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
at 
com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:97)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:35)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
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 
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:238)
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 
com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:76)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at 
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:135)
at 
com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:261)
at 
com.google.apphosting.base.RuntimePb$EvaluationRuntime$2.handleRequ

[appengine-java] Re: oauth_token_secret does not exist - Accessing Google Calendar using Open Id + OAuth

2011-02-08 Thread Jaspal Sawhney
Any Pointers?
Thanks

On Feb 7, 10:24 pm, Jaspal Sawhney  wrote:
>  Steps to reproduce issue:
> 1. Trying to implement a 3 - legged Oauth to access google calendar using
> OpenIdfilter library (which internally uses Step2 and OpenId4Java).
>
> 2. Code snippet being used is as follows
> *GoogleOAuthHelper oauthHelper = new GoogleOAuthHelper(new
> OAuthHmacSha1Signer());
> OAuthParameters oauthParameters = new OAuthParameters();
> oauthParameters.setOAuthConsumerKey("jbbssopoc.appspot.com");
> oauthParameters.setOAuthConsumerSecret("PcVxBDDTZ9mfnzbVvUe68rCp");
> oauthParameters.setOAuthToken((String)req.getAttribute("openid.oauth.token"));
> oauthParameters.setOAuthTokenSecret("");
> String accessToken = oauthHelper.getAccessToken(oauthParameters);*
>
> 3. As per the oauth spec and other posts online setting the token secret as
> "" should not throw an error however I'm getting a
> "*com.google.gdata.client.authn.oauth.OAuthException: oauth_token_secret
> does not exist*" error.
>
> 4. If I however make the OauthTokenSecret to " " then I do not get an error
> but do not get the access token.
>
> Expected output:
> 1. Expecting the call to return an access token
>
> Actual results:
> Error or Empty Access Token
>
> Thanks
>
> Jaspal./

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] oauth_token_secret does not exist - Accessing Google Calendar using Open Id + OAuth

2011-02-07 Thread Jaspal Sawhney
 Steps to reproduce issue:
1. Trying to implement a 3 - legged Oauth to access google calendar using 
OpenIdfilter library (which internally uses Step2 and OpenId4Java).

2. Code snippet being used is as follows
*GoogleOAuthHelper oauthHelper = new GoogleOAuthHelper(new 
OAuthHmacSha1Signer());
OAuthParameters oauthParameters = new OAuthParameters();
oauthParameters.setOAuthConsumerKey("jbbssopoc.appspot.com");
oauthParameters.setOAuthConsumerSecret("PcVxBDDTZ9mfnzbVvUe68rCp");
oauthParameters.setOAuthToken((String)req.getAttribute("openid.oauth.token"));
oauthParameters.setOAuthTokenSecret("");
String accessToken = oauthHelper.getAccessToken(oauthParameters);*

3. As per the oauth spec and other posts online setting the token secret as 
"" should not throw an error however I'm getting a 
"*com.google.gdata.client.authn.oauth.OAuthException: oauth_token_secret 
does not exist*" error.

4. If I however make the OauthTokenSecret to " " then I do not get an error 
but do not get the access token. 


Expected output:
1. Expecting the call to return an access token

Actual results:
Error or Empty Access Token

Thanks

Jaspal./
   

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Weird but Why is my code not getting deployed to the app engine?

2011-02-07 Thread Jaspal Sawhney
Ok this got resolved. I was doing 1 thing wrong 
I had the logs set to show incase of errors but my app was not throwing any 
errors so had to change the filters.
However I was not able to see the dashboard record any hits at that time - 
however that is working too now.

Thanks for the help.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Weird but Why is my code not getting deployed to the app engine?

2011-02-07 Thread Jaspal Sawhney
The version was the same on the appengine console too.
I created a new version. Removed the last one and now I'm not getting
any logs or hits in the dashboard.



On Feb 7, 5:49 pm, Simon Knott  wrote:
> You can see how many times you've deployed in the day by going to your quota
> page, in the admin of your app.  Also, if you click on the "Versions" link
> on the left-hand side, you can see when each version was last updated.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Weird but Why is my code not getting deployed to the app engine?

2011-02-07 Thread Jaspal Sawhney
Version is 1.0 like it was all the time so far. Also I'm sure that I
have not deployed 1000 times for sure.
Would it make sense for me to change the version # and try?

On Feb 7, 5:21 pm, Dick Larsson  wrote:
> Have you double-checked your "version"?
>
> On 7 February 2011 23:19, Simon Knott  wrote:
>
> > I believe you can deploy 1000 times a day
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine for Java" group.
> > To post to this group, send email to
> > google-appengine-java@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine-java+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine-java?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Weird but Why is my code not getting deployed to the app engine?

2011-02-07 Thread Jaspal Sawhney
So it sounds weird but I'm seeing the app engine logs shows errors on code 
snippets which do even exist in my code now?
When I deploy my code to the app engine its not giving me any error.

Is there a limit to how many times can one deploy code to the appengine in a 
day or something?
Any pointers?

Jaspal./

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] SSL Issues while integrating step2 library to GAE

2011-02-03 Thread Jaspal Sawhney
I'm trying to use 'openId-Filter' 
which uses 
'Step2'  lib for OpenId and Oauth 
Integration in a demo app using eclipse (I'm not using Maven)
While trying to integrate the code I'm getting the following error in 
eclipse
1. javax.net.ssl.TrustManager is not supported by Google App Engine's Java 
runtime environment
2. javax.net.ssl.X509TrustManager is not supported by Google App Engine's 
Java runtime environment

Anyone has any idea on how to resolve these errors? also as to why are these 
errors coming - considering that step2 would have been used extensively in 
GAE apps.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.