[appengine-java] Re: Unlimited Channel Quota

2012-02-21 Thread Heiko Roth
Hello Ikai,

On 17 Feb., 15:40, Heiko Roth r...@egotec.com wrote:
 We created a remote access solution with Java Appengine using
 channels.
 Before going live, we need unlimited channels (creations and api
 calls).

Perhaps you can get me some information where to address to.
If we're going online, we need more channels.
Thanks.
Regards,
Heiko.

-- 
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] scheduling 1000 emails

2012-02-21 Thread marco
Thanks for the reply. I'll probably stick with 5/s max rate. The use case 
can live with that.

-- 
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/-/a11RapVmCOYJ.
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: Unlimited Channel Quota

2012-02-21 Thread Simon Knott
Hi,

Have you tried filling out the quota 
formhttp://support.google.com/code/bin/request.py?contact_type=AppEngineCPURequest,
 
referenced from the Quotas 
documentationhttp://code.google.com/appengine/docs/quotas.html#Channel
?

Cheers,
Simon

-- 
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/-/5DHfhban8BcJ.
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: Conversion API - Adding Assets Example Wrongly Documented

2012-02-21 Thread Millisecond
Thanks for the code Raj, saved me.

If it's useful to anyone else, based on your sample I wrote a general
purpose URL-PDF function that will search the HTML for any dependent
images and insert them, only external dependency is commons.io

-Casey

String content = IOUtils.toString(new
URL(url).openStream());
Asset asset = new Asset(text/html, content.getBytes(),
in.html);

Matcher m = Pattern.compile(img[^]*src=\([^\]*),
Pattern.CASE_INSENSITIVE).matcher(content);

ListAsset assetsList = new ArrayListAsset();
assetsList.add(asset);

while (m.find()) {
String relative = m.group(1);
URL absolute = new URL(new URL(url), relative);
byte[] image_data =
IOUtils.toByteArray(absolute.openStream());

String guessedContentType = null;
if (relative.toLowerCase().endsWith(.png)) {
guessedContentType = image/png;
} else if (relative.toLowerCase().endsWith(.jpg)) {
guessedContentType = image/jpeg;
} else if (relative.toLowerCase().endsWith(.gif)) {
guessedContentType = image/gif;
}

Asset subAsset = new Asset(guessedContentType == null
|| response.getContentType() != null ? response.getContentType() :
guessedContentType, image_data, relative);
assetsList.add(subAsset);
}

Document document = new Document(assetsList);
Conversion conversion = new Conversion(document,
application/pdf);
ConversionService service =
ConversionServiceFactory.getConversionService();
ConversionResult result = service.convert(conversion);

if (result.success()) {
 
response.getOutputStream().write(result.getOutputDoc().getAssets().get(0).getData());
} else {
logger().severe(result.getErrorCode().name());
 
response.getOutputStream().write(result.getErrorCode().name().getBytes());
}

On Jan 5, 10:23 am, RAJ er.rajes...@gmail.com wrote:
 I have solved this issue now :) (Java Documentation must be updated
 with right example)

 code

 Asset asset = new Asset(
     text/html, bsome data/bimg src=static/icon.gif/

 .getBytes(), testfile.html);

 byte[] image_data =  // Read yourimageinto bytes[] array;

 Asset subAsset = new Asset(
     image/gif, image_data, static/icon.gif);

 ListAsset assetsList = new ArrayListAsset();
 assetsList.add(asset);
 assetsList.add(subAsset);

 Document document = new Document(assetsList);

 /code

 Cheers,
 Raj

 On Jan 4, 5:31 pm, RAJ er.rajes...@gmail.com wrote:







  Hi All,

  I am trying to producepdfreports out of my html String as mentioned
  in below tutorial:

 http://code.google.com/appengine/docs/java/conversion/overview.html

  code

  // Create a conversion request from HTML to PNG.
  Asset asset = new Asset(
      text/html, bsome data/b.getBytes(), testfile.html);
  Document document = new Document(asset);

  /code

  My HTML String has few pictures to be embedded. Thus, I am trying
  Additional Functions (Adding Assets) example to add images as sub
  asset.

  But, example mentioned in tutorial is wrong. I am not able to add
 imageas sub-asset in my main html string. There is no java api
  mentioned for the same!

  Has someone done this earlier using Java?  (Example in python is
  correctly described)

  Cheers,
  Raj

-- 
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] HTTP Error: 404

2012-02-21 Thread Phiến Khuất Văn
I am a newbie in Google App Engine
I download the sample project in google app engine site.
I imported in to Eclipse and compile success.
But when i click to the link, my brower (both firefox and chrome) have
a trouble.
It show the error message:


HTTP ERROR: 404

Problem accessing /Sticky.html. Reason:

NOT_FOUND
Powered by Jetty://


I have searched it but didn't get any solution for my trouble.
Please help me.

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] Re: Help, error from example - java.lang.NoClassDefFoundError: Could not initialize class guestbook.PMF

2012-02-21 Thread Vaso
1. what CLASSPATH variable must contain?  I know - path to *.class,
but i have them
C:\!Work\Java\GoogleAE\Guestbook\war\WEB-INF\classes\guestbook,
also for examle C:\Program Files (x86)\Google\google_appengine
\gwt-2.4.0\samples\Validation\war\WEB-INF\classes\com\google\gwt\sample
\validation\shared
and many others...
What i must put into CLASSPATH variable?
2. Where i must change permissions for which servises and how?


On Feb 21, 8:13 am, datanucleus andy_jeffer...@yahoo.com wrote:
 So fix your file permissions. The following message cannot be more
 clear

 access denied (java.io.FilePermission C:\ read)

 Why C:\ is in the CLASSPATH only you would know

-- 
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] max keys for memcache

2012-02-21 Thread Kesava Neeli
Hi IKai,

Could you point me to the docs about the max memory for the app for 
MemoryCache? We have a mobile app with many user accounts and each account 
has a primary key. We expect to have 1-2million accounts in the datastore. 
We need to store many entries in mem cache to  find if account exists based 
on other fields in our user account data. i.e a map of 3 or 4 fields per 
account pointing to the primary key. So we will have 3-4 entries in mem 
cache for each user account. Each entry will be simple key/value string 
objects. Do you have any recommendations on how to use MemCache here? How 
do we need to handle the memory for 5 million entries in cache?  

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/-/HmjI7KSoAz4J.
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] max keys for memcache

2012-02-21 Thread Jeff Schnitzer
Are all of these 1-2 million users going to be active at the same time?  If
not, why do you care if it all fits in memcache?

On the other hand, if they *are* all going to be active at once, I would be
very curious to know what happens...

Jeff

On Tue, Feb 21, 2012 at 2:07 PM, Kesava Neeli nke...@gmail.com wrote:

 Hi IKai,

 Could you point me to the docs about the max memory for the app for
 MemoryCache? We have a mobile app with many user accounts and each account
 has a primary key. We expect to have 1-2million accounts in the datastore.
 We need to store many entries in mem cache to  find if account exists based
 on other fields in our user account data. i.e a map of 3 or 4 fields per
 account pointing to the primary key. So we will have 3-4 entries in mem
 cache for each user account. Each entry will be simple key/value string
 objects. Do you have any recommendations on how to use MemCache here? How
 do we need to handle the memory for 5 million entries in cache?

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

 To post to this group, send email to
 google-appengine-java@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.


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



[appengine-java] Re: SecurityException thrown by java.lang.reflect.AccessibleObject.setAccessible(boolean flag)

2012-02-21 Thread Mitch Rudominer
Emanuele,

The behavior you are seeing is actually not a bug in App Engine but rather 
an unexpected behavior in Java itself. If you try the experiment in Java 
code running outside of App Engine you will see the same behavior.

The source code for java.lang.reflect.AccessibleObject explains the 
situation:

// Indicates whether language-level access checks are overridden// by 
this object. Initializes to false. This field is used by// Field, Method, 
and Constructor.boolean override;
 public boolean isAccessible() {

return override;   }

The name isAccessible is misleading. The method actually returns whether 
accessibility has been overridden to true.

-Mitch

-- 
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/-/A7oWAKAhjxIJ.
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] how to beata open to certain country

2012-02-21 Thread Ikai Lan (Google)
App Engine provides a geolocation header. Check this out:

http://googleappengine.blogspot.com/2011/06/app-engine-151-release.html

It's a best effort geo-IP mapping. Give it a try.

--
Ikai Lan
Developer Programs Engineer, Google App Engine
plus.ikailan.com



On Mon, Feb 20, 2012 at 6:12 PM, Luke travalle...@gmail.com wrote:

 may i know what technique do you folks use to open the application to
 particular countries users only during beta stage?

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



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



[appengine-java] How to query the active version name

2012-02-21 Thread Emanuele Ziglioli
Hi,

I'd like to force refresh of static resources using a query string, as
explained here:
http://groups.google.com/group/google-appengine/msg/9707b4602e0154cc

But I need some global string that reflects the latest version. Is it
possible to query the veriable that is printed on the administrator
log?

Something like version=2.2012-02-21T23:18:43Z

All I could find was:
com.google.apphosting.api.ApiProxy.Environment env =
ApiProxy.getCurrentEnvironment();
version = (String)
env.getAttributes().get(com.google.appengine.runtime.default_version_hostname);

And that only returns the application id.

Is there the active version number stored anywhere we can query?

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] Re: How to query the active version name

2012-02-21 Thread Emanuele Ziglioli

Oh cool! just tried with:
 ApiProxy.getCurrentEnvironment().getVersionId();

And on GAE servers it does return the full version id:
2.356983990884235673;

While locally it returns: 2.1

Interesting, then I should be able to get the latest static resources
with any new version!


On Feb 22, 12:40 pm, Emanuele Ziglioli theb...@emanueleziglioli.it
wrote:
 Hi,

 I'd like to force refresh of static resources using a query string, as
 explained 
 here:http://groups.google.com/group/google-appengine/msg/9707b4602e0154cc

 But I need some global string that reflects the latest version. Is it
 possible to query the veriable that is printed on the administrator
 log?

 Something like version=2.2012-02-21T23:18:43Z

 All I could find was:
         com.google.apphosting.api.ApiProxy.Environment env =
 ApiProxy.getCurrentEnvironment();
         version = (String)
 env.getAttributes().get(com.google.appengine.runtime.default_version_hostn 
 ame);

 And that only returns the application id.

 Is there the active version number stored anywhere we can query?

 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.