[google-appengine] Re: /_ah/login returns status 500

2011-09-20 Thread Lior Harsat
Hi Gabriel,

fix, worked for me as well. Thanx :-)

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/8qyAE1m3qg0J.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] /_ah/login returns status 500

2011-09-12 Thread Lior Harsat
Hi,

I have an android application that authenticates to the app engine with the 
a google account.
I am experiencing a very annoying issue. 
Once in a while I start getting status 500 when posting /_ah/login?... to my 
app.
I just get the regular server error message : 

Error: Server Error
The server encountered an error and could not complete your request.

If the problem persists, please 
reporthttp://code.google.com/appengine/community.html your 
problem and mention this error message and the query that caused it.

currently I am unable to get non 500 status from app engine.
This is not the first time this has happened and it just goes away by itself 
after more than a few hours.
The app engine status page does not show there is any issue.
The last time this happened, I did see a few posts in this group and in app 
engine java group about this issue but there was no response by any Googler.

Is anyone using Google authentication on a production environment?
Is it flakey as it seems?
Any help will be appreciated (before I re write my authentication process).

Thanx,Lior

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/EvBFE-BCEYwJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[appengine-java] Re: 1.4.2: Can't make https call from dev server

2011-02-15 Thread Lior Harsat
JVM:
java version 1.6.0_23
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing)

On Feb 13, 12:27 pm, Lior Harsat lior.har...@gmail.com wrote:
 I am having a similar problem with https:

 I have been testing the SDK and I found one bug which seems critical.
 When I call the URLFetchService.fetch API  with a https URL I get a
 javax.net.ssl.SSLHandshakeException.
 for example when I fetch https://spreadsheets.google.com/feeds/
 list/ I get
 javax.net.ssl.SSLHandshakeException: Could not verify SSL certificate
 for:https://spreadsheets.google.com/feeds/list/...
 When I switch back to an older SDK this doesn't happen.
 Is there a Help us test Prerelease SDK 1.4.2 thread I can post this
 to?
 Can anyone confirm this bug reproduces?
 Thanx, Lior

 On Feb 12, 11:57 am, Peter Liu tinyee...@gmail.com wrote:







  We are using a custom remote delegate to route datastore rpc call to
  live production test site on appspot. We did this because sometimes we
  want to develop with live data.

  However after upgrading to 1.4.2, https outbound call starts failing
  (see below). If we change to http, then it works again.

  It seems like some class is marked as restricted in this release. Is
  it intentional? What's the reason behind not allowing outbound https
  call?

  Thanks.

  java.lang.NoClassDefFoundError: javax.net.ssl.SSLHandshakeException is
  a restricted class. Please see the Google  App Engine developer's
  guide for more details.
          at
  com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime 
  .java:
  51)
          at
  com.google.appengine.api.urlfetch.URLFetchServiceImpl.convertApplicationExc 
  eption(URLFetchServiceImpl.java:
  114)
          at com.google.appengine.api.urlfetch.URLFetchServiceImpl.access
  $100(URLFetchServiceImpl.java:22)
          at com.google.appengine.api.urlfetch.URLFetchServiceImpl
  $1.convertException(URLFetchServiceImpl.java:86)
          at
  com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:
  69)
          at com.pekca.main.delegate.RemoteDelegate$1.get(RemoteDelegate.java:
  163)

-- 
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: 1.4.2: Can't make https call from dev server

2011-02-15 Thread Lior Harsat
HI All,

I found a very dirty workaround but at least it works for me.
I was not aware of the doNotValidateCertificate() API that Fred
mentioned.
I made a very small change (one line of code) to the SDK appengine-
api.jar.
I have decompiled com.google.appengine.api.urlfetch.HTTPRequest and
added the call to doNotValidateCertificate() on the FetchOptions in
the constructor:

public HTTPRequest(URL url, HTTPMethod method, FetchOptions
fetchOptions) {
payload = null;
this.url = url;
this.method = method;
this.fetchOptions = fetchOptions;
this.fetchOptions.doNotValidateCertificate(); \\ADDED BY ME
headers = new LinkedHashMap();
}

Then I repackaged the jar with my change and that solved the issue for
me - No certificate validation by default (Only on Dev server).
This way I don't have to change every piece of code that uses
URLFetchService with https and more important the production env still
makes sure the validation occurs.
Note that this solution will fix only flows where the URLFetchService
is used.
I do hope a better fix is provided by the App Engine team soon.

Thanx, Lior



On Feb 14, 11:22 pm, frew f...@google.com wrote:
 Hey everybody,

 In order to help me diagnose the problems, could you respond with what
 JDK (Platform, JDK manufacturer (e.g. Sun, OpenJDK), and version)
 you're running? As a temporary stopgap, if you're using URLFetch
 service, you can use the doNotValidateCertificate() method in
 FetchOptions (http://code.google.com/appengine/docs/java/javadoc/com/
 google/appengine/api/urlfetch/FetchOptions.html) to disable
 validation.

 -Fred

 On Feb 13, 5:02 am, harri mauria hmau...@googlemail.com wrote:







  I am having similar problems with the recently released version
  com.google.appengine.eclipse.sdkbundle.1.4.2_1.4.2.v201102111811
  Problems happen with the development server, not in production. I am
  performing Facebook login credentials authentication in the callback
  url. Interrupt stack is below:

  HTTP ERROR 500
  Problem accessing /loginfacebookcallback. Reason:

      Could not verify SSL certificate 
  for:https://graph.facebook.com/oauth/access_token?omitted

  Caused by:
  javax.net.ssl.SSLHandshakeException: Could not verify SSL certificate
  for:https://graph.facebook.com/oauth/access_token?omitted
          at
  com.google.appengine.api.urlfetch.URLFetchServiceImpl.convertApplicationExc 
  eption(URLFetchServiceImpl.java:
  114)
          at
  com.google.appengine.api.urlfetch.URLFetchServiceImpl.fetch(URLFetchService 
  Impl.java:
  41)
          at
  com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler
  $Connection.fetchResponse(URLFetchServiceStreamHandler.java:418)
          at
  com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler
  $Connection.getInputStream(URLFetchServiceStreamHandler.java:297)
          atwww.superpass.de.server.UrlFetcher.get(UrlFetcher.java:60)

  Following message is printed to the console:
  I/O exception (javax.net.ssl.SSLPeerUnverifiedException) caught when
  processing request: HTTPS hostname invalid: expected
  'graph.facebook.com', received '*.facebook.com'
  Retrying request

  Regards, Harri

  On Feb 13, 11:27 am, Lior Harsat lior.har...@gmail.com wrote:

   I am having a similar problem with https:

   I have been testing the SDK and I found one bug which seems critical.
   When I call the URLFetchService.fetch API  with a https URL I get a
   javax.net.ssl.SSLHandshakeException.
   for example when I fetch https://spreadsheets.google.com/feeds/
   list/ I get
   javax.net.ssl.SSLHandshakeException: Could not verify SSL certificate
   for:https://spreadsheets.google.com/feeds/list/...
   When I switch back to an older SDK this doesn't happen.
   Is there a Help us test Prerelease SDK 1.4.2 thread I can post this
   to?
   Can anyone confirm this bug reproduces?
   Thanx, Lior

   On Feb 12, 11:57 am, Peter Liu tinyee...@gmail.com wrote:

We are using a custom remote delegate to route datastore rpc call to
live production test site on appspot. We did this because sometimes we
want to develop with live data.

However after upgrading to 1.4.2, https outbound call starts failing
(see below). If we change to http, then it works again.

It seems like some class is marked as restricted in this release. Is
it intentional? What's the reason behind not allowing outbound https
call?

Thanks.

java.lang.NoClassDefFoundError: javax.net.ssl.SSLHandshakeException is
a restricted class. Please see the Google  App Engine developer's
guide for more details.
        at
com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime
 .java:
51)
        at
com.google.appengine.api.urlfetch.URLFetchServiceImpl.convertApplicationExc
 eption(URLFetchServiceImpl.java:
114

[appengine-java] Re: 1.4.2: Can't make https call from dev server

2011-02-13 Thread Lior Harsat
I am having a similar problem with https:

I have been testing the SDK and I found one bug which seems critical.
When I call the URLFetchService.fetch API  with a https URL I get a
javax.net.ssl.SSLHandshakeException.
for example when I fetch https://spreadsheets.google.com/feeds/
list/ I get
javax.net.ssl.SSLHandshakeException: Could not verify SSL certificate
for: https://spreadsheets.google.com/feeds/list/...
When I switch back to an older SDK this doesn't happen.
Is there a Help us test Prerelease SDK 1.4.2 thread I can post this
to?
Can anyone confirm this bug reproduces?
Thanx, Lior

On Feb 12, 11:57 am, Peter Liu tinyee...@gmail.com wrote:
 We are using a custom remote delegate to route datastore rpc call to
 live production test site on appspot. We did this because sometimes we
 want to develop with live data.

 However after upgrading to 1.4.2, https outbound call starts failing
 (see below). If we change to http, then it works again.

 It seems like some class is marked as restricted in this release. Is
 it intentional? What's the reason behind not allowing outbound https
 call?

 Thanks.

 java.lang.NoClassDefFoundError: javax.net.ssl.SSLHandshakeException is
 a restricted class. Please see the Google  App Engine developer's
 guide for more details.
         at
 com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime 
 .java:
 51)
         at
 com.google.appengine.api.urlfetch.URLFetchServiceImpl.convertApplicationExc 
 eption(URLFetchServiceImpl.java:
 114)
         at com.google.appengine.api.urlfetch.URLFetchServiceImpl.access
 $100(URLFetchServiceImpl.java:22)
         at com.google.appengine.api.urlfetch.URLFetchServiceImpl
 $1.convertException(URLFetchServiceImpl.java:86)
         at
 com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:
 69)
         at com.pekca.main.delegate.RemoteDelegate$1.get(RemoteDelegate.java:
 163)

-- 
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.



[google-appengine] Re: Prerelease SDK 1.4.2 is available for download

2011-02-10 Thread Lior Harsat
Hi Ikai,

I have been testing the SDK and I found one bug which seems critical.
When I call the URLFetchService.fetch API  with a https URL I get a
javax.net.ssl.SSLHandshakeException.
for example when I fetch https://spreadsheets.google.com/feeds/
list/ I get
javax.net.ssl.SSLHandshakeException: Could not verify SSL certificate
for: https://spreadsheets.google.com/feeds/list/...
When I switch back to an older SDK this doesn't happen.

Is there a Help us test Prerelease SDK 1.4.2 thread I can post this
to?
Can anyone confirm this bug reproduces?

Thanx, Lior


On Feb 3, 9:31 pm, Ikai Lan (Google) ikai.l+gro...@google.com
wrote:
 Hey everyone, I just wanted to post that the prerelease SDKs for 1.4.2 are
 now available for early testing:

 http://code.google.com/p/googleappengine/downloads/list

 Highlights of this release:

 - Lots of XMPP improvements
 - Prospective Search API (formerly known as Matcher API) now available to
 everyone
 - Lots of improvements to task queues
 - vacuum_indexes in Java SDK

 Full release notes are below. As a reminder, the backend portions of 1.4.2
 have not been pushed yet, so they won't likely work (though vacuum_indexes
 for Java should be working). Download and enjoy!

 Python
 -
 - The XMPP API was updated to include presence and allow subscriptions.
 - The Task Queue now supports programmatic deleting of tasks.
    http://code.google.com/p/googleappengine/issues/detail?id=2588
 - The maximum rate per queue at which tasks are processed has been increased
 to
   100 tasks per second.
 - The maximum number of concurrent requests for a single queue can be
 specified
   in the application's queue.yaml. This provides an additional easy-to-use
 form
   of rate limiting. The current number of running tasks is also displayed in
   the Admin Console.
 - Metadata queries in the Datastore now support cursors.
 - Admin Console logs viewer now displays time as -MM-DD HH:MM:SS.mmm.
 - Added a warning when an admin tries to upload a queue.yaml where the
 number
   of new queues and the number of disabled queues exceeds 100.
 - Django 1.2.4 is available via use of the use_library() declaration. This
   version of Django has also been added to the Python SDK.
 - The Prospective Search API (formerly named the Matcher API) is available
 for
   use by all applications. Applications will be limited to a maximum of 1000
   subscriptions during the experimental release.
 - Added builtin support for the deferred library.
 - If Python Precompilation fails, an error will be printed but the app will
   still be uploaded.
 - Added a --disable_sdk_update_check command line flag to the dev_appserver.
 - The Mail API added KML and KMZ files as allowed attachments.
 - Fixed an issue where the datastore copy functionality did not work if
 writes
   were disabled on the source application.
 - Fixed an issue where mail from @appid.appspotmail.com did not work when
   sending mail to app admins.
 - Fixed an issue where the dev_appserver URLFetch API limit was 16MB. It is
 now
   32 MB to match production.
 - Fixed a zipimport issue on Windows which was not working due to path
   separators.
    http://code.google.com/p/googleappengine/issues/detail?id=2086
 - Fixed an issue where the SDK did not enforce the 100 task limit for the
 Task
   Queue.
    http://code.google.com/p/googleappengine/issues/detail?id=3296
 - Fixed an issue where Query.order() was broken for properties with the
 'name'
   attribute.
    http://code.google.com/p/googleappengine/issues/detail?id=3693
 - Fixed an unhelpful error message in the Python namespace_manager.
    http://code.google.com/p/googleappengine/issues/detail?id=3931

 Java
 -
 - You can now vacuum datastore indexes with the Java SDK.
 - The XMPP API was updated to include presence and allow subscriptions.
 - The Task Queue now supports programmatic deleting of tasks.
    http://code.google.com/p/googleappengine/issues/detail?id=2588
 - The maximum rate per queue at which tasks are processed has been increased
 to
   100 task per second.
 - The maximum number of concurrent requests for a single queue can be
 specified
   in the application's queue.xml. This provides an additional easy-to-use
 form
   of rate limiting. The current number of running tasks is also displayed in
   the Admin Console.
 - Metadata queries in the Datastore now support cursors.
 - Admin Console logs viewer now displays time as -MM-DD HH:MM:SS.mmm.
 - Added a warning when an admin tries to upload a queue.yaml where the
 number
   of new queues and the number of disabled queues exceeds 100.
 - Added a putIfUntouched() method to the Memcache API.
    http://code.google.com/p/googleappengine/issues/detail?id=2139
 - Added JAX-WS support for writing SOAP clients and SAAJ support for writing
   SOAP servers. JAX-WS for SOAP servers is not yet supported.
 - The Mail API added KML and KMZ files as allowed attachments.
 - Fixed an issue where mail from 

[appengine-java] InvalidValueException: Non-incrementable value for key ...

2010-12-05 Thread Lior Harsat
Hi,


I've been getting an InvalidValueException: Non-incrementable value
for key... In my logs from time to time.
This exception is thrown by a call to MemcacheService.increment(Object
key, long delta, Long initialValue).
The value I am incrementing is an integer.
The documentation states that this exceptiob is Thrown when a cache
entry has content, but it cannot be read. For example:
- An attempt to MemcacheService.increment(java.lang.Object, long) a
non-integral value
- Version skew between your application and the data in the cache,
causing a serialization error.
I dont think my scenario fits the above examples.
Can anyone shed some light on this exception and its causes/meaning?


Thanx, Lior

-- 
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-j...@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] javax.mail.Transport.send() API throws ApiDeadlineExceededException but emails are sent

2010-10-16 Thread Lior Harsat
Hi Ikai,


Sure, I can follow the other thread. can you please send me a link to
it?


Thanx, Lior

-- 
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-j...@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] Urgent: Getting only Server Error (500) since ~12:30 am (September 28th)

2010-09-28 Thread Lior Harsat
Hi ,

Our production server (application id = farmigo-csa) is experiencing
an alarming error rate (close to 100%) for any request processed by
App Engine.
The log shows a couple of repeating messages:
1. A serious problem was encountered with the process that handled
this request, causing it to exit. This is likely to cause a new
process to be used for the next request to your application. If you
see this message frequently, you should contact the App Engine team.
2. Request was aborted after waiting too long to attempt to service
your request. This may happen sporadically when the App Engine serving
cluster is under unexpectedly high or uneven load. If you see this
message frequently, please contact the App Engine team.

Our server is not under high load.
Our customers are already reporting this issue.
Please help as soon as possible.

-- 
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-j...@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.



[google-appengine] recommendation for offline log viewer

2010-09-01 Thread Lior Harsat
Hi,

I was wondering if anyone can recommend an offline log viewer for for
the log files downloaded by calling appcfg request_logs
I am looking for basic search functionality like we have in the log
viewer.

Thanx, Lior

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



[appengine-java] Re: Best performance for deleting and inserting entities

2010-07-11 Thread Lior Harsat
I am doing the exact same think you are mentioning, only I use google
spreadsheet to fetch the data.

some pointers:
use low level.
make sure you don't make many writes to the same entity group.
make parallel writes for different entity groups to speed things up.
have a retry mechanism for failed writes


On Jul 11, 12:30 am, jd jdpatter...@gmail.com wrote:
 On Jul 11, 4:23 am, John Patterson jdpatter...@gmail.com wrote:

  It is about the same speed.  I've just uploaded 500,000 entities in  
  The new Mapping API sounds like the ideal solution but it is python  
  only at the moment.  

 Oops no it is also available for Java now!

 http://code.google.com/p/appengine-mapreduce/

-- 
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-j...@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.



[google-appengine] Re: Access from Israel

2010-07-06 Thread Lior Harsat
Hi Everyone,

I've had the same problem you are experiencing (I am a bezeq
international subscriber) and I was able to fix it with bezeq (at
least for now).
If you are a bezeq International subscriber you need to call them and
ask them to remove the netex service from your account.
This will help you access appspot.com yourselves. not sure what you
should instruct you customers to do .

Hope this helps.



On Jun 7, 8:47 am, rainmaker a.thesilent...@gmail.com wrote:
 This is becoming a major inconvenience...any thoughts?

 On May 15, 12:46 pm, Alon Carmel a...@aloncarmel.me wrote:



  im fromisraelwith bezeq international and i can access all the domains
  mentioned with no problem.
  -
  Cheers,
  public static function AlonCarmel() {
  //Contact me
  var email = '@aloncarmel.me';
  var twitter = '@aloncarmel';
  var web = 'http://aloncarmel.me';
  var phone = '+972-54-4860380';

  }

  * If you received an unsolicited email from by mistake that wasn't of your
  matter please delete immediately. All E-mail sent from Alon Carmel is
  copyrighted to Alon Carmel 2008. Any details revealed in e-mails sent by
  Alon Carmel are owned by the Author only. Any attempt to duplicate or
  imitate any of the Content is prohibited under copyright law 2008.

  On Fri, May 14, 2010 at 11:10 AM, ori ori.re...@gmail.com wrote:
   I'm having the same problem

   My ISP is Bezeq International too.

   On May 14, 9:16 am, rainmaker a.thesilent...@gmail.com wrote:
Switching to Google's DNS didn't work for me.
ISP is Bezeq International

On May 12, 6:11 pm, Ikai L (Google) ika...@google.com wrote:

 Have we narrowed down the cause yet? Is this a DNS issue? Does using
   8.8.8.8
 resolve this (http://code.google.com/speed/public-dns/)?

 If it is a DNS issue, what ISP are you using?

 On Wed, May 12, 2010 at 10:08 AM, rainmaker a.thesilent...@gmail.com
   wrote:

  I can confirm the same behavior.

  On Apr 26, 9:36 pm, Ikai L (Google) ika...@google.com wrote:
   Can anyone else having problems switch their DNS to 8.8.8.8 and
   8.8.4.4?
   It's starting to seem like this may be an ISP DNS resolution
   problem.

   On Mon, Apr 26, 2010 at 2:03 AM, Zarko eladza...@gmail.com
   wrote:
There seems to be a problem with the SSL certificate on
*.appspot.com. The browser think it's a redirect to another
   site and
block it, but you can revoke it like you mentioned.

If you use secure connections try https directly, it will
give you a redirect warning, but will work.

Zarko

On Apr 26, 10:06 am, Lior Harsat lior.har...@gmail.com wrote:
 I have the same issue.
 I did notice that if I switch to https I can access my 
 servers.
 I can also verify that after I started using google DNS the
   problem
 was gone.
 this is good for me but I cant tell my customers to change
   their dns
 settings.
 please resolve this issue promptly

 --
 You received this message because you are subscribed to the
   Google
  Groups
Google App Engine group.
 To post to this group, send email to
  google-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2Bunsubscrib
 e...@googlegroups.com
   google-appengine%2bunsubscr...@googlegroups.comgoogle-appengine%252Bunsub
scr...@googlegroups.com

  google-appengine%2bunsubscr...@googlegroups.comgoogle-appengine%252Bunsub
   scr...@googlegroups.com
   google-appengine%252bunsubscr...@googlegroups.comgoogle-appengine%25252Bu
nsubscr...@googlegroups.com

.
 For more options, visit this group athttp://
groups.google.com/group/google-appengine?hl=en.

--
You received this message because you are subscribed to the
   Google
  Groups
Google App Engine group.
To post to this group, send email to
   google-appengine@googlegroups.com
  .
To unsubscribe from this group, send email to
google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2Bunsubscrib
 e...@googlegroups.com
   google-appengine%2bunsubscr...@googlegroups.comgoogle-appengine%252Bunsub
scr...@googlegroups.com

  google-appengine%2bunsubscr...@googlegroups.comgoogle-appengine%252Bunsub
   scr...@googlegroups.com
   google-appengine%252bunsubscr...@googlegroups.comgoogle-appengine%25252Bu
nsubscr...@googlegroups.com

.
For more options, visit this group at
   http://groups.google.com/group/google-appengine?hl=en.

   --
   Ikai Lan
   Developer Relations, Google App Engine
   Twitter:http://twitter.com/ikai
   Delicious:http://delicious.com/ikailan

   
   Google App Engine links:
   Blog:http://googleappengine.blogspot.com
   Twitter:http://twitter.com

[appengine-java] Re: Spreadsheets and GAE

2010-02-28 Thread Lior Harsat
Hi Praseed,

my application uses the google spreadsheet api for importing data. I
have learned the following lessons from it:
1. performance is not great. the api runs over http and is limited to
GAE request timeout (5 to 10) seconds. on some cases a single request
exceed this time and you are required to handle these timeout (retry)
2. API inconsistencies. The API is not that stable. some of the
examples posted on Google simply do not work. it could be very
frustrating.
3. google spreadsheets are nice for low volume data. Handling masses
of data is difficult. copy paste is limited. limited formulas
(comparing to Excel) . very basic scripting support. you should really
play with it and verify that your end user won't get frustrated with
it.
4. accessing the spreadsheet requires authentication. it may be an
overhead for your end users unless you handle it for them.

Having said all of the above I still recommend it as it is free,
doesn't require leaving the google API realm, and will probably mature
over time.
you need to make a deep analysis of your requirement to make sure the
above limitation won't become showstoppers.

Thanx, Lior

On Feb 28, 6:41 pm, praseed prase...@gmail.com wrote:
 Hi all,

  New here.

  My app requires users to upload spreadsheets. The server has to make
 the data available on a grid (GWT)..the user then makes changes if any
 and press import.. This is when the data is stored in the data store
 in appropriate entities.

 Questions .

  If this is not GAE, i would have stored the uploaded file in the
 filesystem; used Apache POI to parse the file from a GWT-RPC service
 and return it to a GWT grid. Then, upon user selection, commit the
 data to persistence. Are there better (read: easier) ways to do this
 under GAE? Can I make use of the Spreadsheet Data API to do this
 instead? Do I need to store the file at all in that case?
 Is there something in the Google Docs Upload API I should be using?

 Since I am already committed to GAE and GWT, I wanted to make things
 as simpler as it can be. If I can avoid other external
 libraries..great.

 Thoughts?

 Cheers
 praseed

-- 
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-j...@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] OutOfMemoryError

2010-02-09 Thread Lior Harsat
Hi ,

I am getting OutOfMemoryErrors. The stack trace always points to the
exact same place at the Jetty runtime. see stack trace below
has anyone experienced this?
These errors occur for the same flow in my code (sometime it succeeds
and sometime it get the OutOfMemoryError). this particular flow does
not return too much content (around 5KB).
If my app had a memory problem I would expect to get the
OutOfMemoryErrors all over the place, but, it only happens in one
flow.
please help.

java.lang.OutOfMemoryError: Java heap space
at java.nio.HeapByteBuffer.init(Unknown Source)
at java.nio.ByteBuffer.allocate(Unknown Source)
at
com.google.apphosting.runtime.jetty.RpcResponseGenerator.newBufferFromPool(RpcResponseGenerator.java:
213)
at
com.google.apphosting.runtime.jetty.RpcResponseGenerator.init(RpcResponseGenerator.java:
39)
at
com.google.apphosting.runtime.jetty.RpcConnection.init(RpcConnection.java:
41)
at
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:
99)
at
com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:
235)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:5235)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:5233)
at
com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java:
24)
at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
363)
at com.google.net.rpc.impl.Server$2.run(Server.java:838)
at
com.google.tracing.LocalTraceSpanRunnable.run(LocalTraceSpanRunnable.java:
56)
at
com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan(LocalTraceSpanBuilder.java:
536)
at com.google.net.rpc.impl.Server.startRpc(Server.java:793)
at com.google.net.rpc.impl.Server.processRequest(Server.java:368)
at
com.google.net.rpc.impl.ServerConnection.messageReceived(ServerConnection.java:
448)
at
com.google.net.rpc.impl.RpcConnection.parseMessages(RpcConnection.java:
319)
at
com.google.net.rpc.impl.RpcConnection.dataReceived(RpcConnection.java:
290)
at com.google.net.async.Connection.handleReadEvent(Connection.java:
466)
at
com.google.net.async.EventDispatcher.processNetworkEvents(EventDispatcher.java:
759)
at
com.google.net.async.EventDispatcher.internalLoop(EventDispatcher.java:
205)
at com.google.net.async.EventDispatcher.loop(EventDispatcher.java:
101)
at
com.google.net.rpc.RpcService.runUntilServerShutdown(RpcService.java:
251)
at com.google.apphosting.runtime.JavaRuntime
$RpcRunnable.run(JavaRuntime.java:394)
at java.lang.Thread.run(Unknown Source)

-- 
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-j...@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] a single entity write takes ~10 seconds with a tx and ~4 without a tx

2010-01-31 Thread Lior Harsat
Hi,

I am experiencing a strange performance issue.
a write of a single entity takes ~10 seconds with a transaction and ~4
seconds without a transaction.
needless to say this kind of performance is bad.
I experience this kind of performance only for a specific entity kind.
other kinds work as expected (sub second)
initially I though this could be because I had 4 indexes for this
entity, so I've removed them just for testing.
surprisingly enough the performance has not changed.
it doesn't seem that this entity kind is different than other entities
I have. the entity is a child entity in a 1-N relationship.
Please help, Lior

this is the entity definition (obscured for privacy purpose):

public class Payment
{
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key key;

@Persistent
private Key account;

@Persistent
private Company company;

@Persistent
private Key order;

@Persistent
private String type;

@Persistent
private String txnDate;

@Persistent
private Date date;

@Persistent
private float amount;

@Persistent
private Float credit;

@Persistent
private String status;

@Persistent
private String number;

@Persistent
private Text note;

@Persistent
private Text txDetails;

}

-- 
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-j...@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: a single entity write takes ~10 seconds with a tx and ~4 without a tx

2010-01-31 Thread Lior Harsat
I am not sure which logs I should enable. currently when I set .level-
All my log shows a whole lot of data (and not all of it) . there are
too many logging messages for the single request cycle.
Can you please direct me which logs I need to enable and in which
severity?

Thanx, Lior

On Jan 31, 8:01 pm, datanucleus andy_jeffer...@yahoo.com wrote:
 Would have thought that the log (DEBUG level) would tell you all you
 need to know about what is happening

-- 
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-j...@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: google docs error when trying to retrieve docs in GAE/J

2009-12-26 Thread Lior Harsat
Hi Zack,

I has some (bad) experience with the google docs api.
there are two options that I know of that might cause the error you
see.
1. you have a missing jar in your bin folder.
2. GAE strange behavior I've noticed (not sure If i should call it a
bug).

I assume you have explorer option one and it is not the case.
regarding option 2. I have witnessed the following:
a. many times a call to the DocsService.get*** will fail with no
apparent reason. subsequent calls may succeed. What I did is , I've
set a retry counter and simply caught the exceptions and retried
calling them. for most api setting the counter to 5 did the trick. for
others I needed 10.
b. the code examples in google docs code simply didn't work. In order
to work around this issue I played around with the API until I was
able to hack something. (use the local GAE for these games).

I know my answer may not be a solution for you but at least its nice
to know that I wasn't the only one having issues with Google Docs
APIs.

Thanx. Lior

On Dec 27, 3:03 am, zackmac zack.macom...@gmail.com wrote:
 I'm just trying to do an initial google docs example but am getting an
 error at the DocumentListFeed call (DocumentListFeed feed =
 service.getFeed(documentListFeedUrl, DocumentListFeed.class)):

 com.google.gdata.util.ResourceNotFoundException: Not Found

 This is my full code listing (with user and pwd changed):

 DocsService service = new DocsService(TEST);
 service.setUserCredentials(my_u...@gmail.com,my_pwd);
 URL documentListFeedUrl = new URL(http://docs.google.com/feeds/
 documents/private/full);
 DocumentListFeed feed = service.getFeed(documentListFeedUrl,
 DocumentListFeed.class);

 I've read some forums on this but it seems like I have everything in
 place that's needed...

--

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-j...@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: Data Nucleus Enhancer Exception

2009-12-26 Thread Lior Harsat
Hi,

This happens from time to time on the google app engine eclipse
plugin. so If you are using eclipse,clean and build your project. open
the enhancer console ( in eclipse)  and verify that it ran correctly.

Thanx, Lior

On Dec 25, 11:33 am, Vik vik@gmail.com wrote:
 Hie

 While trying to do executeQuery  i get the follow exception:

 SEVERE: Exception is :Persistent class Class
 vik.sakshum.sakshumweb.server.model.jdo.Subscribe does not seem to have been
 enhanced.  You may want to rerun the enhancer and check for errors in the
 output. has no table in the database, but the operation requires it. Please
 check the specification of the MetaData for this class.
 javax.jdo.JDOUserException: Persistent class Class
 vik.sakshum.sakshumweb.server.model.jdo.Subscribe does not seem to have been
 enhanced.  You may want to rerun the enhancer and check for errors in the
 output. has no table in the database, but the operation requires it. Please
 check the specification of the MetaData for this class.
  at
 org.datanucleus.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(Nuc 
 leusJDOHelper.java:375)
 at org.datanucleus.jdo.JDOQuery.execute(JDOQuery.java:230)
  at
 vik.sakshum.sakshumweb.server.model.DoSubscribe.execute(DoSubscribe.java:35 )
 at
 vik.sakshum.sakshumweb.server.SubscribeModule$1$2.buttonClick(SubscribeModu 
 le.java:119)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3 9)
  at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
 l.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
  at
 com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime 
 .java:100)
 at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:487)
  at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:161)
 at com.vaadin.ui.AbstractComponent.fireEvent(AbstractComponent.java:1105)
  at com.vaadin.ui.Button.fireClick(Button.java:341)
 at com.vaadin.ui.Button.changeVariables(Button.java:177)
  at
 com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleVariables 
 (AbstractCommunicationManager.java:1058)
 at
 com.vaadin.terminal.gwt.server.AbstractCommunicationManager.doHandleUidlReq 
 uest(AbstractCommunicationManager.java:559)
  at
 com.vaadin.terminal.gwt.server.CommunicationManager.handleUidlRequest(Commu 
 nicationManager.java:260)
 at
 com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractA 
 pplicationServlet.java:438)
  at
 com.vaadin.terminal.gwt.server.GAEApplicationServlet.service(GAEApplication 
 Servlet.java:231)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
  at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
 at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandle 
 r.java:1093)
  at
 com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFi 
 lter.java:51)
 at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandle 
 r.java:1084)
  at
 com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(Trans 
 actionCleanupFilter.java:43)
 at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandle 
 r.java:1084)
  at
 com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFile 
 Filter.java:121)
 at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandle 
 r.java:1084)
  at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
 at
 org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
  at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
 at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
  at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
 at
 com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEn 
 gineWebAppContext.java:70)
  at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
 at
 com.google.appengine.tools.development.JettyContainerService$ApiProxyHandle 
 r.handle(JettyContainerService.java:352)
  at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
 at org.mortbay.jetty.Server.handle(Server.java:313)
  at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
 at
 org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java 
 :844)
  at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
 at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
  at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
 at
 org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396 )
  at
 org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java: 
 442)
 NestedThrowablesStackTrace:
 Persistent class Class vik.sakshum.sakshumweb.server.model.jdo.Subscribe
 does not seem to have been 

[appengine-java] Handling HardDeadlineExceededError

2009-12-23 Thread Lior Harsat
Hi,

I am trying to build some mechanism for handling
HardDeadlineExceededError (and other timeouts as well).
I wish to catch this Error and wrap up my work so I can send my own
response instead of the default error (500) message that GAE produces.
Here's the problem. I cant catch this Error for some reason.I've made
sure my catch clause is in the right place (from the error provided
stack trace). I even catch a Throwable to make sure I don't miss the
Error.
Sadly I don't reach the catch clause.

Has anyone had some experience with this?
Do you have some other innovative ideas on how to handle such
timeouts ?

B.T.W
I would have expected that a DeadlineExceededException would be thrown
instead , dont you?

Thanx, Lior

--

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-j...@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: Handling HardDeadlineExceededError

2009-12-23 Thread Lior Harsat
Hi Don,

thanx for your quick reply.
I am pretty sure I am not catching DeadlineExceededException anywhere
in the code (but I'll check again...).
I've seen some posts in the past and some bugs submitted to google
code that there is an inconsistent behavior with regard to the
deadline error/exception.

Thanx,Lior


On Dec 23, 10:36 pm, Don Schwarz schwa...@google.com wrote:
 You cannot catch HardDeadlineExceededError.  DeadlineExceededException
 should be thrown first.

 Perhaps some code you are using is silently catching and ignoring it?



 On Wed, Dec 23, 2009 at 4:08 AM, Lior Harsat lior.har...@gmail.com wrote:
  Hi,

  I am trying to build some mechanism for handling
  HardDeadlineExceededError (and other timeouts as well).
  I wish to catch this Error and wrap up my work so I can send my own
  response instead of the default error (500) message that GAE produces.
  Here's the problem. I cant catch this Error for some reason.I've made
  sure my catch clause is in the right place (from the error provided
  stack trace). I even catch a Throwable to make sure I don't miss the
  Error.
  Sadly I don't reach the catch clause.

  Has anyone had some experience with this?
  Do you have some other innovative ideas on how to handle such
  timeouts ?

  B.T.W
  I would have expected that a DeadlineExceededException would be thrown
  instead , dont you?

  Thanx, Lior

  --

  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-j...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2B 
  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-j...@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: [google-appengine] Has anyone done a source code control system hosted on App Engine?

2009-12-03 Thread lior harsat
you can try unfuddle.

On Thu, Dec 3, 2009 at 1:51 AM, samwyse samw...@gmail.com wrote:

 I'd like to host Hg or something someplace with better uptime than my
 home server.

 --

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




--

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