[appengine-java] using https with my domain

2011-08-25 Thread Aswath Satrasala
Hello,
I want to use https with my domain www.AccountingGuru.in
Any ideas on how to do this?

Regards
-Aswath
www.AccountingGuru.in

-- 
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: how to port application from the AppEngine to other webcontainers, e.g.Jboss or tomcat?

2011-08-25 Thread Liang Ding
Here  is a Servlet fwk project (dev in
progress) wraps the most of GAE APIs for application that based on the
framework could deploy to a standard Servlet container and GAE environment.

And, here  is a real-world blogging
program based on the fwk.

On Fri, Aug 26, 2011 at 2:04 PM, Simon Knott  wrote:

> Is this a serious question?
>
> Your web app's WAR can just be installed into JBoss or Tomcat - then all
> you'll have to do is rewrite all of your code which uses the datastore,
> memcache, and any of the other GAE SDK APIs...
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine-java/-/WCl48Ev6zVQJ.
>
> 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.
>



-- 
My Blog: http://88250.b3log.org

Open Source, Open Mind, Open Sight, Open Future!

-- 
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: java.lang.LinkageError encountered loading Google Checkout classes

2011-08-25 Thread Nichole
I started seeing errors due to changes in appengine security manager
and a new appengine
defined user-class loader on about July 21st for classes that I was
constructing on
the fly dynamically in the code using Constructor.  In addition to
ExceptionInInitializerErrors there were logs statements about not
being to resolve
some of the members within the dynamically constructed class.  Some of
those members
were in other jars.  I added code to catch a few exceptions related to
that and
use the classes constructor instead.

Your log statement java.lang.reflect.InvocationTargetException
suggests that you may
be seeing something similar.

On Aug 24, 4:08 pm, Eddie C  wrote:
> Hello.
>
> Our app integrates with Google Checkout.
> As part of the checkout process, Google Checkout makes an HTTP
> callback request to our App to calculate taxes; it is at this point
> that we are failing. It appears that the error occurs when our App
> attempts to process XML content in the Google Checkout callback.
>
> Here's the error that we see in the AppEngine console:
> --
> 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. (Error code 202)
> --
>
> Not very helpful.
>
> We turned up the logging level and got some more detailed logs.
> Here's an excerpt from that log:
> --
> Caused by: java.lang.LinkageError: loader (instance of  com/google/
> apphosting/runtime/security/UserClassLoader): attempted  duplicate
> class definition for name: "com/google/checkout/schema/_2/
> ShippingRestrictions$ExcludedAreas
> $JaxbAccessorF_usStateAreaOrUsZipAreaOrUsCountryArea"
>         at
> com.google.appengine.runtime.Request.process-5e6d2d1250669cff(Request.java)
>         at java.lang.ClassLoader.defineClass1(Native Method)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
>         ... 152 more
> D 2011-08-21 12:19:28.208
> com.sun.xml.bind.v2.runtime.reflect.opt.Injector inject: Unable to
> inject com/google/checkout/schema/_2/MerchantCalculatedShipping
> $JaxbAccessorF_name
> java.lang.reflect.InvocationTargetException
>         at
> com.google.appengine.runtime.Request.process-5e6d2d1250669cff(Request.java)
>         at sun.reflect.GeneratedMethodAccessor191.invoke(Unknown Source)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
> l.java:
> 43)
>         at java.lang.reflect.Method.invoke(Method.java:43)
>         at
> com.sun.xml.bind.v2.runtime.reflect.opt.Injector.inject(Injector.java:
> 181)
>         at
> com.sun.xml.bind.v2.runtime.reflect.opt.Injector.inject(Injector.java:
> 85)
>         at
> com.sun.xml.bind.v2.runtime.reflect.opt.AccessorInjector.prepare(AccessorIn 
> jector.java:
> 87)
>         at
> com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.get(Optimi 
> zedAccessorFactory.java:
> 164)
>         at com.sun.xml.bind.v2.runtime.reflect.Accessor
> $FieldReflection.optimize(Accessor.java:252)
>         at com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor
> $CompositeTransducedAccessorImpl.(TransducedAccessor.java:231)
>         at
> com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor.get(TransducedAccess 
> or.java:
> 173)
>         at
> com.sun.xml.bind.v2.runtime.property.AttributeProperty.(AttributeProp 
> erty.java:
> 87)
>         at
> com.sun.xml.bind.v2.runtime.property.PropertyFactory.create(PropertyFactory 
> .java:
> 104)
>         at
> com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.(ClassBeanInfoImpl.java :
> 171)
>         at
> com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextImpl.jav a:
> 481)
>         at
> com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:
> 315)
>         at
> com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:
> 139)
>         at
> com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:
> 117)
>         at
> com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:
> 188)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 57)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
> l.java:
> 43)
>         at java.lang.reflect.Method.invoke(Method.java:616)
>         at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:159)
>         at javax.xml.bind.ContextFinder.find(ContextFinder.java:311)
>         at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:392)
>         at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:357)
>         at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:264)
>         at
> com.google.checkout.protocol.AbstractProtocolBuilder.createXmlUnMashaller(A 
> bstractProtocolBuilder.java:
> 86)
>    

[appengine-java] Re: how to port application from the AppEngine to other webcontainers, e.g.Jboss or tomcat?

2011-08-25 Thread Simon Knott
Is this a serious question?

Your web app's WAR can just be installed into JBoss or Tomcat - then all 
you'll have to do is rewrite all of your code which uses the datastore, 
memcache, and any of the other GAE SDK APIs...

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/WCl48Ev6zVQJ.
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: Always On not working properly

2011-08-25 Thread Anders
Also, if I remember correctly, in the new pricing model there will not be 
possible to reserve instances other than to cut down the cost; there is no 
guarantee that the instances will always be loaded. So for an application 
with low traffic, even with operational support and several reserved 
frontend instances, there will still be a lot of instance swapping and 
sluggish page loads, because in the new pricing model a reserved frontend 
only means a cheaper price, not that the reserved instances will be kept 
warm (loaded in physical memory and running). If Google keeps having too few 
physical servers for the number of applications (as I estimated in a 
previous post), then there will always be a lot of instance swapping even 
with the best of instance swapping algorithms, leading to poor performance 
and an amateurish/low-end cloud computing platform.


-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/ro2HG8VBLzYJ.
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] Exporting and Importing data from Java application

2011-08-25 Thread Kesava Neeli
Hi IKai,

I haven't written anything concrete yet. I was playing around with the low 
level datastore API to retrieve and create new entities and following the 
steps in your blog. We are close to launching our mobile application with 
appengine serving as backend. We would like to have the capability of 
importing the data to CSV/XML and exporting too. The python command line 
tools seems to have the capability. Since our object schema is fluid, we 
would need to change the data frequently and we hope the import/export 
capability might help us. 

I also have a production deployment question. Say I have a app running on 
appengine and it's serving as abckend to my mobile application. It has lot 
of data from the customers. Say 6 months later, I have a major upgrade to my 
backend and create a completely new application. What's the easiest way to 
migrate all the data in the old app to new app? I guess we should use 
import/export capability or any other better way to handle data transfer 
between 2 apps in production scenario?

Thanks
Neeli 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/SL4fM9QiJ2EJ.
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] Twitter real time notification using backends

2011-08-25 Thread Ikai Lan (Google)
No, it won't work in backends. It'll work up to the request deadline and
stop.

--
Ikai Lan
Developer Programs Engineer, Google App Engine
plus.ikailan.com | twitter.com/ikai



On Wed, Aug 24, 2011 at 12:56 PM, Efi Merdler-Kravitz  wrote:

> Hello everybody,
>
> Did any of you tried to register to the Streaming API that twitter
> uses using backends ? The streaming API requires to keep the
> connection open, I was wondering if any of you tried to implement it
> on GAE ?
>
> 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.
>
>

-- 
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] Exporting and Importing data from Java application

2011-08-25 Thread Ikai Lan (Google)
Yes, this can be done all in Java. You may have to write your own handlers,
though. What have you written so far? The bulkloader is completely written
in Python,

--
Ikai Lan
Developer Programs Engineer, Google App Engine
plus.ikailan.com | twitter.com/ikai



On Thu, Aug 25, 2011 at 9:38 AM, Kesava Neeli  wrote:

> Hi,
>
> I am exploring how to import/export data from appengine datastore. In
> Pyhton section of docs, there is good explanation on how to do this
> http://code.google.com/appengine/docs/python/tools/uploadingdata.html. I
> also found nice blog at
> http://ikaisays.com/2010/06/10/using-the-bulkloader-with-java-app-engine/.
> I hope this article would be included somewhere on google appengine docs.
>
> My question may be lame. I am wondering whether all the import/export
> functionality could be done entirely within a java application. The docs say
> that you can set up the RemoteApi part in java servlets and after that it's
> invoking 3-4 python commands to build the config file, download & upload
> data with various parameters. Can we do all those steps with some google
> java API?
>
> Thanks
> Neeli
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine-java/-/PpPYugrjnwAJ.
> 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.



Re: [appengine-java] Set a header of text/cache-manifest when a .manifest file is downloaded.

2011-08-25 Thread Shawn Brown
Hi,
> It is possible to have the iPhone remember a web page to make it look like
> an App.  To do this you need to specify a manifest file to tell the iPhone
> what to cache.

I think you are talking about html5 offline support -no?
Works with 'droid too right?

> The .manifest file must have a header specifying it is of type
> text/cache-manifest.  Normally I'd simply edit the .htaccess file and add a
> AddType text/cache manifest .manifest to add the header when any .manifest
> file is downloaded.
> The question - how can I do this with the Google App Engine for Java?

google servlet filter

set up your filter

add the following

response.setContentType("text/cache-manifest");

-- 
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: Always On not working properly

2011-08-25 Thread Anders
Isn't it possible to treat instances similar to pages in a virtual memory 
page swapping algorithm? And if too many page swaps are made too frequently 
then either the page swapping algorithm sucks or there is too little 
physical memory (or both :D). I doubt that the Google engineers are using a 
crappy instance swapping algorithm which indicates that maybe they are 
trying to cram too many instances into the available physical servers and 
that this is the reason why there is so much instance swapping going on in 
GAE.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/_HGZWMcIY4oJ.
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] how to port application from the AppEngine to other webcontainers, e.g.Jboss or tomcat?

2011-08-25 Thread nick
how to port application from the AppEngine to other webcontainers,
e.g.Jboss or tomcat?

please tell the necessary steps


thanks in advance!

-- 
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] java.lang.LinkageError encountered loading Google Checkout classes

2011-08-25 Thread Eddie C
Hello.

Our app integrates with Google Checkout.
As part of the checkout process, Google Checkout makes an HTTP
callback request to our App to calculate taxes; it is at this point
that we are failing. It appears that the error occurs when our App
attempts to process XML content in the Google Checkout callback.

Here's the error that we see in the AppEngine console:
--
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. (Error code 202)
--

Not very helpful.

We turned up the logging level and got some more detailed logs.
Here's an excerpt from that log:
--
Caused by: java.lang.LinkageError: loader (instance of  com/google/
apphosting/runtime/security/UserClassLoader): attempted  duplicate
class definition for name: "com/google/checkout/schema/_2/
ShippingRestrictions$ExcludedAreas
$JaxbAccessorF_usStateAreaOrUsZipAreaOrUsCountryArea"
at
com.google.appengine.runtime.Request.process-5e6d2d1250669cff(Request.java)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
... 152 more
D 2011-08-21 12:19:28.208
com.sun.xml.bind.v2.runtime.reflect.opt.Injector inject: Unable to
inject com/google/checkout/schema/_2/MerchantCalculatedShipping
$JaxbAccessorF_name
java.lang.reflect.InvocationTargetException
at
com.google.appengine.runtime.Request.process-5e6d2d1250669cff(Request.java)
at sun.reflect.GeneratedMethodAccessor191.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
43)
at java.lang.reflect.Method.invoke(Method.java:43)
at
com.sun.xml.bind.v2.runtime.reflect.opt.Injector.inject(Injector.java:
181)
at
com.sun.xml.bind.v2.runtime.reflect.opt.Injector.inject(Injector.java:
85)
at
com.sun.xml.bind.v2.runtime.reflect.opt.AccessorInjector.prepare(AccessorInjector.java:
87)
at
com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.get(OptimizedAccessorFactory.java:
164)
at com.sun.xml.bind.v2.runtime.reflect.Accessor
$FieldReflection.optimize(Accessor.java:252)
at com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor
$CompositeTransducedAccessorImpl.(TransducedAccessor.java:231)
at
com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor.get(TransducedAccessor.java:
173)
at
com.sun.xml.bind.v2.runtime.property.AttributeProperty.(AttributeProperty.java:
87)
at
com.sun.xml.bind.v2.runtime.property.PropertyFactory.create(PropertyFactory.java:
104)
at
com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.(ClassBeanInfoImpl.java:
171)
at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextImpl.java:
481)
at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:
315)
at
com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:
139)
at
com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:
117)
at
com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:
188)
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:616)
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:159)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:311)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:392)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:357)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:264)
at
com.google.checkout.protocol.AbstractProtocolBuilder.createXmlUnMashaller(AbstractProtocolBuilder.java:
86)
at
com.google.checkout.protocol.AbstractProtocolBuilder.(AbstractProtocolBuilder.java:
76)
at
com.google.checkout.protocol.MerchantCalculationResultBuilder.(MerchantCalculationResultBuilder.java:
44)
at
com.google.checkout.protocol.MerchantCalculationResultBuilder.getInstance(MerchantCalculationResultBuilder.java:
55)
at
com.company.service.shoppingcart.impl.GoogleCallbackServiceImpl.calculateShippingAndTax(GoogleCallbackServiceImpl.java:
212)
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
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:
310)
at
org.sp

[appengine-java] Twitter real time notification using backends

2011-08-25 Thread Efi Merdler-Kravitz
Hello everybody,

Did any of you tried to register to the Streaming API that twitter
uses using backends ? The streaming API requires to keep the
connection open, I was wondering if any of you tried to implement it
on GAE ?

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.



[appengine-java] Set a header of text/cache-manifest when a .manifest file is downloaded.

2011-08-25 Thread Larry Strickland
Hi,

I've been using the Google App Engine for Java to create a few interesting 
apps.

I'd like to further develop one of these for the iPhone.

It is possible to have the iPhone remember a web page to make it look like 
an App.  To do this you need to specify a manifest file to tell the iPhone 
what to cache.

The .manifest file must have a header specifying it is of type 
text/cache-manifest.  Normally I'd simply edit the .htaccess file and add a 
AddType text/cache manifest .manifest to add the header when any .manifest 
file is downloaded.  

The question - how can I do this with the Google App Engine for Java?

Thanks to anyone who can help.

Larry

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/yF8aCSExh-YJ.
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: Always On not working properly

2011-08-25 Thread Anders
I'm not sure if it's worse with Always On activated or inactivated. I 
activated that option because new instances were starting all the time, like 
every second when it was really bad. So Always On is perhaps better than 
that, but it's really horrible either way! I'm surprised that Google hasn't 
fixed the problem if it has been known for some time.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/ZrRxmkx2B4MJ.
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: Always On not working properly

2011-08-25 Thread Francois Masurel
Yep same here, lots of warmup requests and slow responses to users.  Quite 
costly CPU wise too.

Really annoying.

Francois

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/dZHHrNMWGx8J.
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] Exporting and Importing data from Java application

2011-08-25 Thread Kesava Neeli
Hi,

I am exploring how to import/export data from appengine datastore. In Pyhton 
section of docs, there is good explanation on how to do this 
http://code.google.com/appengine/docs/python/tools/uploadingdata.html. I 
also found nice blog at 
http://ikaisays.com/2010/06/10/using-the-bulkloader-with-java-app-engine/. I 
hope this article would be included somewhere on google appengine docs. 

My question may be lame. I am wondering whether all the import/export 
functionality could be done entirely within a java application. The docs say 
that you can set up the RemoteApi part in java servlets and after that it's 
invoking 3-4 python commands to build the config file, download & upload 
data with various parameters. Can we do all those steps with some google 
java API? 

Thanks
Neeli 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/PpPYugrjnwAJ.
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: Always On not working properly

2011-08-25 Thread Anders
Ok, but as Always On is working now is totally unacceptable. Google needs to 
fix this immediately imo.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/v4njtRVeZYUJ.
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: Always On not working properly

2011-08-25 Thread Anders



Now it's starting to get even worse than before Always On was activated! See 
above picture (with a lot of red in it, lol).

The app engine id is: tweetvote2

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/0Erv8xtMzj4J.
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: Always On not working properly

2011-08-25 Thread Simon Knott
There have been a few threads discussing this recently.  It appears that 
they are bringing in the new instance scheduler in the background, which 
will eventually replace the "Always On" concept.  Unfortunately this has the 
side effect that the current Always On instances aren't being used in the 
way they were before.

There's a very good explanation by a Googler in this 
thread: 
https://groups.google.com/d/msg/google-appengine/nRtzGtG9790/d0hB-q9__S8J

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/x0bcMO7McZkJ.
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: 500 error updating index definitions

2011-08-25 Thread James Cooper
Yeah, at around 9pm Pacific this error went away.  So presumably there was 
an operational issue at GAE.

-- James

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/PmhvWuQ-puQJ.
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: Failing to deploy my webapp to appengine

2011-08-25 Thread Kesava Neeli
Hi,

My app deployment worked from 9pm last night. I no longer have 500 error on 
index uploads. I wish google posts something to the news board if there are 
 known issues on appengine side. 

Thanks
Neeli 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/i2Z9vi3xC80J.
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] Always On not working properly

2011-08-25 Thread Anders
I switched on the Always On option and it works inasmuch as the dashboard 
shows three resident instances but new instances are started sometimes with 
only a few seconds between page accesses with very low overall traffic. In 
the log the message "This request caused a new process to be started for 
your application, and thus caused your application code to be loaded for the 
first time." pops every 10 log lines or so.

Surely, with Always On activated, new instances should not be started 
several times every minute?! The reason I switched it on was to prevent 
exactly that from happening.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/zVryoH1Q_6QJ.
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: Appsstats for cronjob

2011-08-25 Thread Sydney
The only difference between my web.xml and the one on the documentation page 
is the url-pattern element. Mine is set to /cron/*, so can you confirm that 
the appstats filter is applied to all the URLs starting by /cron/* (e.g. 
/cron/myjob).

Is there something else to configure so appstats events will be recorded?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/vaG0XcdrY0YJ.
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] Problem deploying to GAE

2011-08-25 Thread GeorgeS
Same here for the past 45 minutes. 5 attempts to deploy all ending in the 
same generic '500' message.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/peu-aU9mHOQJ.
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] Problem deploying to GAE

2011-08-25 Thread Erlend Hamnaberg
I can confirm this issue today.



Reading application configuration data...
Aug 25, 2011 3:25:51 PM
com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
INFO: Successfully processed
/home/maedhros/Projects/git/bouvet/sykle-til-jobben/mobs-gae/target/mobs-gae-1.0-SNAPSHOT/WEB-INF/appengine-web.xml
Aug 25, 2011 3:25:51 PM
com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed
/home/maedhros/Projects/git/bouvet/sykle-til-jobben/mobs-gae/target/mobs-gae-1.0-SNAPSHOT/WEB-INF/web.xml
Aug 25, 2011 3:25:51 PM com.google.apphosting.utils.config.IndexesXmlReader
readConfigXml
INFO: Successfully processed
/home/maedhros/Projects/git/bouvet/sykle-til-jobben/mobs-gae/target/mobs-gae-1.0-SNAPSHOT/WEB-INF/appengine-generated/datastore-indexes-auto.xml
Beginning server interaction for sykle-til-jobben...
0% Created staging directory at: '/tmp/appcfg3308293971759719456.tmp'
5% Scanning for jsp files.
20% Scanning files on local disk.
25% Scanned 250 files.
28% Initiating update.
31% Cloning 3 static files.
33% Cloning 295 application files.
^[[B34%  on backend null.

java.io.IOException: Error posting to URL:
https://appengine.google.com/api/appversion/clonefiles?app_id=sykle-til-jobben&version=test&;
500 Internal Server Error



500 Server Error


Error: Server Error
The server encountered an error and could not complete your
request.If the problem persists, please http://code.google.com/appengine/community.html";>report your problem and
mention this error message and the query that caused it.



Unable to update app: Error posting to URL:
https://appengine.google.com/api/appversion/clonefiles?app_id=sykle-til-jobben&version=test&;
500 Internal Server Error



500 Server Error


Error: Server Error
The server encountered an error and could not complete your
request.If the problem persists, please http://code.google.com/appengine/community.html";>report your problem and
mention this error message and the query that caused it.




-Erlend


On Tue, Aug 23, 2011 at 10:40 PM, Ikai Lan (Google) wrote:

> There was a period of deploy issues; hopefully this has been resolved.
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
> plus.ikailan.com | twitter.com/ikai
>
>
>
> On Fri, Aug 19, 2011 at 8:41 PM, Sarah  wrote:
>
>> Unable to update:
>> java.io.IOException: Error posting to URL:
>> https://appengine.google.com/api/appversion/clonefiles?app_id=salam-world&version=1&;
>> 500 Internal Server Error
>>
>> 
>> 
>> 500 Server Error
>> 
>> 
>> Error: Server Error
>> The server encountered an error and could not complete your
>> request.If the problem persists, please http://code.google.com/appengine/community.html";>report your problem
>> and mention this error message and the query that caused it.
>> 
>> 
>>
>> at
>> com.google.appengine.tools.admin.AbstractServerConnection.send1(AbstractServerConnection.java:277)
>> at
>> com.google.appengine.tools.admin.AbstractServerConnection.send(AbstractServerConnection.java:238)
>> at
>> com.google.appengine.tools.admin.AbstractServerConnection.post(AbstractServerConnection.java:213)
>> at
>> com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java:605)
>> at
>> com.google.appengine.tools.admin.AppVersionUpload.cloneFiles(AppVersionUpload.java:468)
>> at
>> com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java:428)
>> at
>> com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java:121)
>> at
>> com.google.appengine.tools.admin.AppAdminImpl.doUpdate(AppAdminImpl.java:300)
>> at
>> com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:52)
>> at
>> com.google.appengine.tools.admin.AppCfg$UpdateAction.execute(AppCfg.java:617)
>> at com.google.appengine.tools.admin.AppCfg.(AppCfg.java:160)
>> at com.google.appengine.tools.admin.AppCfg.(AppCfg.java:67)
>> at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:63)
>> com.google.appengine.tools.admin.AdminException: Unable to update app:
>> Error posting to URL:
>> https://appengine.google.com/api/appversion/clonefiles?app_id=salam-world&version=1&;
>> 500 Internal Server Error
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine for Java" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/google-appengine-java/-/niAQHTWW1TUJ.
>> 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 emai

[appengine-java] Re: MemcacheServiceExceptions during 9:30AM IST thru 11:45AM IST.

2011-08-25 Thread Miroslav Genov
I'm encountering the same problem. Status page shows that spike in memcache, 
and I think that it will be fixed soon, cause the team is investigating it.



-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/JyDxEaO7yjIJ.
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: Advice for looping through 100K records and updating multiple entities on each iteration

2011-08-25 Thread Didier Durand
Hi,

Yes, for such a task you will have to go via the Task Queue: an
interactive task of this size would for sure reach the allowed limits.

The way it works is : read an entity, do the updates, check the
duration since start, if far from limit process another entity, if
close to limit, reschedule a new task with next entity to be processed
as starting point.

Via the task queue, you will gain another advantage: parallelism, you
can scan your data with more than 1 task and then complete the job
much faster. Be careful about contention on the datastore though! (to
avoid, you should split your key range in N chunks and affect a task
to each chunk)

regards

didier

On Aug 25, 7:31 am, Baz  wrote:
> Hello,
>
> I have a non-user triggered process that queries the datastore for a dataset
> of about 100k records, then loops through each record to update two other
> entities in the datastore. What would be a good way to go about doing this?
> I'm concerned about timing out and/or consuming more resources than I need
> to. Task queue?
>
> Cheers.

-- 
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] MemcacheServiceExceptions during 9:30AM IST thru 11:45AM IST.

2011-08-25 Thread Aswath Satrasala
Hello Google Team,
I am noticing few MemcacheServiceExceptions in my logs today.  Anyone
noticing the same?
The exceptions occured during 9:30AM IST thru 11:45AM IST.

Memcache errors in the logs:

com.google.appengine.api.memcache.LogAndContinueErrorHandler
handleServiceError: Service error in memcache
com.google.appengine.api.memcache.MemcacheServiceException: Memcache
increment of key
'monotonic-Party-Softsolutions:kavyashre...@gmail.com-2001': exception
at 
com.google.appengine.api.memcache.MemcacheServiceImpl.increment(MemcacheServiceImpl.java:745)
at 
com.google.appengine.api.memcache.MemcacheServiceImpl.increment(MemcacheServiceImpl.java:709)
..
Caused by: com.google.apphosting.api.ApiProxy$CapabilityDisabledException:
The API call memcache.Increment() is temporarily unavailable: Memcache
is temporarily unavailable. Please see
http://code.google.com/status/appengine for more information.
at 
com.google.apphosting.runtime.ApiProxyImpl$AsyncApiFuture.rpcFinished(ApiProxyImpl.java:415)
at 
com.google.net.rpc.RpcStub$RpcCallbackDispatcher$1.runInContext(RpcStub.java:1050)


com.google.appengine.api.memcache.LogAndContinueErrorHandler
handleServiceError: Service error in memcache
com.google.appengine.api.memcache.MemcacheServiceException: Memcache
increment of key 'monotonic-AcctgTransaction-ASTRIX
TECHNOLOGIES:nitheeshshett...@gmail.com-2189096': exception
at 
com.google.appengine.api.memcache.MemcacheServiceImpl.increment(MemcacheServiceImpl.java:745)
at 
com.google.appengine.api.memcache.MemcacheServiceImpl.increment(MemcacheServiceImpl.java:709)
at com.veersoft.objectify.VsMonotonic.next(VsMonotonic.java:124)
...
Caused by: com.google.apphosting.api.ApiProxy$CapabilityDisabledException:
The API call memcache.Increment() is temporarily unavailable: Memcache
is temporarily unavailable. Please see
http://code.google.com/status/appengine for more information.
at 
com.google.apphosting.runtime.ApiProxyImpl$AsyncApiFuture.rpcFinished(ApiProxyImpl.java:415)
at 
com.google.net.rpc.RpcStub$RpcCallbackDispatcher$1.runInContext(RpcStub.java:1050)
at 
com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:454)
at com.google.tracing.TraceContext.runInContext(TraceContext.java:694)


-Aswath
www.AccountingGuru.in

-- 
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] dev-server HRD emulation

2011-08-25 Thread MarkH
I have a question regarding the HRD emulation in the java dev app
server.

I perform the following operations from a web app, so they're within
requests:

request 1.
- 'get' entity
- (modify entity)
- 'put' entity
* 'get' entity

request 2.
- query entity


I expect to see inconsistent data in the request 2 query, but don't.
- It doesn't matter what the 'high rep job policy unassigned pct'
value is set to the data is always consistent.

The 'expected' behaviour, occasional inconsistency data in the query,
occurs when the 'get' marked with the * is removed.
- Without the preceding 'get' I immediately see inconsistent data in
the query.


I'm wondering if this is an issue with the dev-app servers emulation
of eventual consistency?

- In the example, once query 2 does return inconsistent data, it's
inconsistent for roughly 20 seconds - is this normal for the dev-app
server? (I assume it's worst case).

- Checking the datastore's admin console during this ~20 second period
will immediately cause the query to return consistent data.

To conclude:
It seems that issuing at 'get' operation, whilst data is inconsistent,
forces the dev-app server to return consistent data for any subsequent
queries, (masking the HR behaviour).

Is this an issue or my flawed understanding of the HR behaviour?
- Does a 'get' really cause a queries containing a recently 'put'
entities to return consistently.

GAE 1.5.3 (OSX 10.7.1,Java 1.6.0_26)

-- 
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] Dates not being stored as UTC on dev server

2011-08-25 Thread doright
hi folks,

I've recently noticed a problem that I only see on my DEV server (GAEJ - SDK 
1.5.2).  I store many dates in my LIVE PRODUCTION application, and recently 
I've started to notice, that after a *restart* of my DEV server, these dates 
are retrieved with a different timezone to UTC.  i.e. EST and CEST.  As you 
can imagine this would cause me enormous problems it it manifested itself in 
the production environment.  If I stop the DEV server and start it again, I 
don't see the problem, but using the restart button gives the problem.

Do you know why the dates are suddenly transferred to a different timezone? 
 Do I need to worry about this happening in production?  

many thanks,
doright

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/q5GCo-NqGYQJ.
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.