[appengine-java] app-engine + gwt + JDO

2012-03-16 Thread andrew
Sounds like you may need a Log4j configuration file in your file structure 
(under war) and tell appengine where to find it - via a config file

Don't have the details at hand here right now, so try looking at gae docs on 
configuring logging and if no luck then let us know and we can try to help.

-- 
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/-/Yxiwnvqqh68J.
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 handle class version issues in DataStore

2012-03-12 Thread andrew
Nulls (Java), if the object can have null as a value. E.g. Integer can be null, 
int cannot.

I think this is explained in GAE/JDO documentation.

-- 
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/-/GBfSKyvTztcJ.
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: Slow cold starts

2012-03-10 Thread andrew
Yes. More votes for a Google response on this.

Anyone with a premium account and better support want to take up the cause on 
all our behalf?

Submit a defect report we can all star?
Please post link to it here

-- 
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/-/kfFauAy3z08J.
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: backup for data in namespaces

2012-02-24 Thread andrew
Good question!

For us, the feature is useless without this

All datastore admin tools and utilities need to be data space aware by
default.

On Feb 24, 3:50 am, Aswath Satrasala 
wrote:
> Hello,
> In the Datastore Admin console, there is no UI to backup for the data
> containing in namespaces.   It shows only the entities in no namespace.
> When will this feature rollout?
>
> -Aswathwww.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] Re: backup for data in namespaces

2012-02-24 Thread andrew
Also, I think there is a feature request for this in issue tracker.
I'd find it and star it.

On Feb 24, 3:50 am, Aswath Satrasala 
wrote:
> Hello,
> In the Datastore Admin console, there is no UI to backup for the data
> containing in namespaces.   It shows only the entities in no namespace.
> When will this feature rollout?
>
> -Aswathwww.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] Re: backup for data in namespaces

2012-02-24 Thread andrew
Good question!

For us, the feature is useless without this

All datastore admin tools and utilities need to be data space aware by
default.

On Feb 24, 3:50 am, Aswath Satrasala 
wrote:
> Hello,
> In the Datastore Admin console, there is no UI to backup for the data
> containing in namespaces.   It shows only the entities in no namespace.
> When will this feature rollout?
>
> -Aswathwww.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] GAE High Replication datastore (HRD) with transaction

2012-02-18 Thread Andrew Myers
If you set a parent on the entity, and then query using the that parent as the 
ancestor in the query, the data is sure to be returned.

There's more info here:

http://code.google.com/appengine/docs/java/datastore/queries.html#Ancestor_Queries

Sent from my mobile

On 19/02/2012, at 1:27 PM, sj  wrote:

> I'm using HRD because I want make changes to multiple entities within a 
> single transaction using entity groups.
> 
> Understand that Non transactional (non ancestor) queries may see all, some, 
> or none of the results of a previously committed transaction.
> 
> The problem I facing now is: 
> 
> After commit an transaction for adding new record to db
>   Transaction tx = pm.currentTransaction();
>   tx.begin();
>   pm.makePersistent(object);
>   tx.commit();
> Follow by query the record committed, sometime it will return result and some 
> time just return as null
> 
> Query q = pm.newQuery(queryStatement);
> CompanyProfile result = (CompanyProfile) q.execute();
> 
> p/s: When turn off HRD, it work perfectly.
> 
> Any workaround?
> 
> Thanks 
> 
> Rgds SJ
> 
> -- 
> 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/-/j3l4DzNjDsgJ.
> 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: Setting headers to static files / resources

2012-02-16 Thread andrew
Thanks. I was at the Issues page about to open it, when I saw your
update.

I have starred and added a comment regarding my need.

-- 
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: Setting headers to static files / resources

2012-02-14 Thread andrew
Does a feature request exist that we can star?

If not, let's create one?

-- 
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: Request for best practice ideas for deployment of GWT JARs in AppEngine project

2012-02-13 Thread andrew
Hi Daniel.

That makes sense when internally you create Jars for modules to use in
multiple projects.

We are not using doing that. We inherit sub-modules in different ("top-
level") modules that we GWT compile.
So the Javac/GWT compile takes care of all that putting the .class
files into /war/WEB-INF and the JavaScript files into /war/module
name.

The problem is the third-party GWT library jars we are using. I'm
looking at them now, and many of them (gwt-maps, gwt-visualizations,
etc) will be client side only, others may have server code in them
(need to be very generic server side code to be included in a GWT
library jar)

So, I guess I'll have to split into three types of jars
- server side only jar  -> normal case, nothing to do with
GWT. Just copy to /war and deploy
- GWT client side only   -> I could not include these in /war at
all
- GWT server+client code  -> Need to split them up somehow (if any
exist)

-- 
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: Setting headers to static files / resources

2012-02-12 Thread andrew
We had a similar need for serving font files cross-site,
 as some versions of IE need the header, and didn't find anyway to do
it for a static file.

We need something like the mechanism for mapping file extensions to
mime types in web.XML

-- 
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] Request for best practice ideas for deployment of GWT JARs in AppEngine project

2012-02-11 Thread andrew
We use GWT in our GAE project for UI stuff, plus RPC to back-end.

In GWT you can use third party packages/modules that are packaged
into .jar files, and can include Java source for server side, client
side Java source (which is used during the GWT compile cycle to
produce javascript), native javascripts, image files, css, etc..

We have these GWT jar files in our /lib directory and reference them
from our class path, and our external ant build and Eclipse (with GWT
plugin) are quite happy with all that.

The GWT modules get compile, which generates the compiled javascript
and files in the module's 'public' directory (images, css, etc) in /
war.
So far, so good.

If a module has server side code (such as server side of an RPC the
client code does, etc), then these .class files must be deployed to
the server.

Until now we were copying these .jar to our /war/WEB-INF/lib/ for
deployment.

But I have just realized a few problems with unecessary deployment of
files due to that approach:
- if a gwt jar (say, gwt-maps.jar) comes with source files (even
Javadoc could be in there!) then we will also be deploying that
- the client-side java .class files in a library .jar (used to
generate javascript) will also be deployed, but never used on the
server.

I am not sure if that will make our app start-up slowed in AppEngine,
or not. Either way, not too nice.

What are other people doing in their build/deploy of GAE apps using
GWT to avoid such things?

-- 
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] Batch puts

2012-02-07 Thread Andrew Myers
Thanks Ikai.  Appreciate the clarification!

All the best,
Andrew.

On 8 February 2012 11:42, Ikai Lan (Google)  wrote:
> Andrew, multiple writes of entities in a single batch put to the same entity
> group count as 1 entity group write (but many more datastore write ops -
> this might be confusing), so you won't run into contention issues.
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
> plus.ikailan.com
>
>
>
> On Tue, Feb 7, 2012 at 2:48 PM, Andrew Myers  wrote:
>>
>> Thanks Jeff.  Much appreciated.  I'm using Objectify too ;-)
>>
>> On 8 February 2012 09:28, Jeff Schnitzer  wrote:
>> > From my experiments, writing large #s of entities to a single EG in a
>> > batch put is quite fast and does not cause the throughput problem.
>> >
>> > Jeff
>> >
>> > On Tue, Feb 7, 2012 at 4:43 PM, Andrew Myers  wrote:
>> >> I'm sure this is a FAQ but I haven't been able to find the answer so
>> >> far.
>> >>
>> >> I have read there's a limit of 2-3 writes per second per entry group.
>> >>  If you batch out multiple entities that all have the same parent is this
>> >> ok?  Or does it count as multiple writes?  I understand it is multiple
>> >> writes in terms of write quotas but am not sure if it's a problem in terms
>> >> of the writes per group per second?
>> >>
>> >> Many thanks,
>> >> Andrew
>> >>
>> >> --
>> >> 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.
>> >
>>
>> --
>> 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.

-- 
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] Batch puts

2012-02-07 Thread Andrew Myers
Thanks Jeff.  Much appreciated.  I'm using Objectify too ;-)

On 8 February 2012 09:28, Jeff Schnitzer  wrote:
> From my experiments, writing large #s of entities to a single EG in a
> batch put is quite fast and does not cause the throughput problem.
>
> Jeff
>
> On Tue, Feb 7, 2012 at 4:43 PM, Andrew Myers  wrote:
>> I'm sure this is a FAQ but I haven't been able to find the answer so far.
>>
>> I have read there's a limit of 2-3 writes per second per entry group.  If 
>> you batch out multiple entities that all have the same parent is this ok?  
>> Or does it count as multiple writes?  I understand it is multiple writes in 
>> terms of write quotas but am not sure if it's a problem in terms of the 
>> writes per group per second?
>>
>> Many thanks,
>> Andrew
>>
>> --
>> 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.
>

-- 
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] Batch puts

2012-02-07 Thread Andrew Myers
I'm sure this is a FAQ but I haven't been able to find the answer so far.  

I have read there's a limit of 2-3 writes per second per entry group.  If you 
batch out multiple entities that all have the same parent is this ok?  Or does 
it count as multiple writes?  I understand it is multiple writes in terms of 
write quotas but am not sure if it's a problem in terms of the writes per group 
per second?

Many thanks,
Andrew

-- 
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: Creating and Retrieving a blobstore file

2012-02-04 Thread Andrew Myers
Just an update on this.  I've got it working by using the BlobStoreInputStream.

Regards,
Andrew.

On 4 February 2012 13:38, Andrew  wrote:
> Hi,
>
> I'm trying to save a file to the blobstore similar to what is
> described in docs at this page:
>
> http://code.google.com/appengine/docs/java/blobstore/overview.html#Writing_Files_to_the_Blobstore
>
> My code to write the file is:
>
>
>                        // Create a new Blob file with mime-type "text/html"
>                        AppEngineFile file = 
> fileService.createNewBlobFile("text/html");
>
>                        // Open a channel to write to it
>                        boolean lock = true;
>                        writeChannel = fileService.openWriteChannel(file, 
> lock);
>
>                        PrintWriter out = new 
> PrintWriter(Channels.newWriter(writeChannel,
>                                        "UTF8"));
>                        out.print(htmlText);
>
>                        // Close without finalizing and save the file path for 
> writing
> later
>                        out.close();
>                        filePath = file.getFullPath();
>                        writeChannel.closeFinally();
>
> I then save the filePath as a field on one of my Datastore entities.
>
> However when I try and read it back, the following code falls into the
> catch for FileNotFound exception:
>
>        public String fetchHtml(String remoteUrl) {
>                StringBuilder sb = new StringBuilder();
>                String returnString = null;
>                FileService fileService = FileServiceFactory.getFileService();
>
>                FixtureEntity fixture = getRecordByRemoteUrl(remoteUrl);
>                String fileName = fixture.getFileName();
>                AppEngineFile file = new AppEngineFile(fileName);
>
>                FileReadChannel readChannel;
>                try {
>                        readChannel = fileService.openReadChannel(file, false);
>
>                        BufferedReader reader = new 
> BufferedReader(Channels.newReader(
>                                        readChannel, "UTF8"));
>                        String inputLine;
>
>                        while ((inputLine = reader.readLine()) != null) {
>                                sb.append(inputLine);
>                        }
>                        // line = "The woods are lovely dark and deep."
>
>                        readChannel.close();
>                        returnString = sb.toString();
>                } catch (FileNotFoundException e) {
>                        logger.warning(e.getMessage());
>                } catch (LockException e) {
>                        logger.warning(e.getMessage());
>                } catch (IOException e) {
>                        logger.warning(e.getMessage());
>                }
>
>                return returnString;
>        }
>
> I'm working on the dev server, with SDK v1.6.1.  If I look in the
> Datastore Viewer, the fileName is set on my entity to /blobstore/
> writable:4IoqzMo2yJHJ7336lvNABg.  There are __BlobInfo__ entities, but
> all their "filename" properties are null.
>
> If I do this:
>
>
>                FileService fileService = FileServiceFactory.getFileService();
>                BlobKey key = fileService.getBlobKey(file);
>                if (key == null) {
>                        Thread.sleep(2000);
>                        key = fileService.getBlobKey(file);
>                }
>
> Key definitely gets populated.  So I'm not sure why
>
> readChannel = fileService.openReadChannel(file, false);
>
> isn't working.
>
> Can anyone see anything obviously wrong with my code?  Or have any
> suggestions as to how to get things  working?
>
> Many thanks in advance,
> Andrew.
>

-- 
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] Creating and Retrieving a blobstore file

2012-02-03 Thread Andrew
Hi,

I'm trying to save a file to the blobstore similar to what is
described in docs at this page:

http://code.google.com/appengine/docs/java/blobstore/overview.html#Writing_Files_to_the_Blobstore

My code to write the file is:


// Create a new Blob file with mime-type "text/html"
AppEngineFile file = 
fileService.createNewBlobFile("text/html");

// Open a channel to write to it
boolean lock = true;
writeChannel = fileService.openWriteChannel(file, lock);

PrintWriter out = new 
PrintWriter(Channels.newWriter(writeChannel,
"UTF8"));
out.print(htmlText);

// Close without finalizing and save the file path for 
writing
later
out.close();
filePath = file.getFullPath();
writeChannel.closeFinally();

I then save the filePath as a field on one of my Datastore entities.

However when I try and read it back, the following code falls into the
catch for FileNotFound exception:

public String fetchHtml(String remoteUrl) {
StringBuilder sb = new StringBuilder();
String returnString = null;
FileService fileService = FileServiceFactory.getFileService();

FixtureEntity fixture = getRecordByRemoteUrl(remoteUrl);
String fileName = fixture.getFileName();
AppEngineFile file = new AppEngineFile(fileName);

FileReadChannel readChannel;
try {
readChannel = fileService.openReadChannel(file, false);

BufferedReader reader = new 
BufferedReader(Channels.newReader(
readChannel, "UTF8"));
String inputLine;

while ((inputLine = reader.readLine()) != null) {
sb.append(inputLine);
}
// line = "The woods are lovely dark and deep."

readChannel.close();
returnString = sb.toString();
} catch (FileNotFoundException e) {
logger.warning(e.getMessage());
} catch (LockException e) {
logger.warning(e.getMessage());
} catch (IOException e) {
logger.warning(e.getMessage());
}

return returnString;
}

I'm working on the dev server, with SDK v1.6.1.  If I look in the
Datastore Viewer, the fileName is set on my entity to /blobstore/
writable:4IoqzMo2yJHJ7336lvNABg.  There are __BlobInfo__ entities, but
all their "filename" properties are null.

If I do this:


FileService fileService = FileServiceFactory.getFileService();
BlobKey key = fileService.getBlobKey(file);
if (key == null) {
Thread.sleep(2000);
key = fileService.getBlobKey(file);
}

Key definitely gets populated.  So I'm not sure why

readChannel = fileService.openReadChannel(file, false);

isn't working.

Can anyone see anything obviously wrong with my code?  Or have any
suggestions as to how to get things  working?

Many thanks in advance,
Andrew.

-- 
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: problem with Content-type: null with css files

2012-01-14 Thread andrew
A FYI about alternating versions for deployment to production...

Our build script names the version according data from SVN (GIT would
be similar), as a working copy (name = data and time), revision
(name=r123), or tag (name = tag name = our release version number).

Then the uploaded versions in appengine Dashboard all show either with
their release number (or revision, or date).
You can have up to 10 of them uploaded in production, working against
production data - but just one as the 'default'...

On doing a new release/deploy to production (after previously testing
on another appid in integration and qa), we test the basics via the
specific version urlif everything looks fine we then make the new
version the default.

If something goes wrong, you can quickly sqitch back to any of the
previous 9 releases you have made, usually the penultimate one off
course.

-- 
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 Limit/Slow Down Task Queue Execution

2012-01-06 Thread andrew
You might want to look into the algorithm for scheduling workers, as
mentioned here 
http://code.google.com/appengine/docs/java/config/queue.html#Queue_Definitions

 (push queues only)
Task queues use a "token bucket" algorithm for dequeueing tasks. The
bucket size limits how fast the queue is processed when many tasks are
in the queue and the rate is high. This allows you to have a high rate
so processing starts shortly after a task is enqueued, but still limit
resource usage when many tasks are enqueued in a short period of time.
If no  is specified for a queue, the default value is 5.
For more information on the algorithm, see the Wikipedia article on
token buckets.

which links to this Wikipedia article  http://en.wikipedia.org/wiki/Token_Bucket

Haven't studied it yet, but your 100 bucket size might be influencing
things.

-- 
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 Limit/Slow Down Task Queue Execution

2012-01-06 Thread andrew
The problem with a cron every 30 seconds is that it will fire, and
start up instances if you have none running - or extra instances if
you have one busy - even where there is no "work" to  be done.

Maybe you have this non-time-critical work to be done once a day (as
is my case also) and you don't care if it takes an hour or more, just
want to crunch away at it in the background until it's done and then
stop.

I haven't debugged my code to see how many workers are spawned...but
as I have the same goals as Casy I'll take a look and post back
results.

-- 
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: Securing cron urls / task urls using UserService and not using web.xml

2011-12-14 Thread andrew
And we can submit an enhancement request and all star it.

Seems silly that isUserAdmin() works sometimes and others not.

Existing issue reported is fixed as "use the header".

-- 
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: Master/Slave -> High Replication migration experience

2011-12-13 Thread andrew
Ikai,

Any additional information available on the features of this new tool?

Specifically,  support for copying all/multiple namespaces from one
datastore to another...

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: Securing cron urls / task urls using UserService and not using web.xml

2011-12-12 Thread andrew
Well, if Google guarantee to us that that header can never be set in
any other external request to your app - it is a rudimentary form of
security

-- 
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: Setting the timeout for fetching when not using URL.Fetch directly

2011-12-03 Thread Andrew Ducker
On Nov 30, 8:46 pm, Andrew Ducker  wrote:
> I'm using the Apache XML-RPC modules to make calls to update a
> Wordpress blog.  It's timing out after about 5 seconds with the
> following:


Never mind.  It would have helped significantly if I'd set the timeout
in milliseconds rather than seconds.

D'oh!

Andy

-- 
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] Setting the timeout for fetching when not using URL.Fetch directly

2011-11-30 Thread Andrew Ducker
I'm using the Apache XML-RPC modules to make calls to update a
Wordpress blog.  It's timing out after about 5 seconds with the
following:

Something unexpected has occurred. org.apache.xmlrpc.XmlRpcException:
Failed to create input stream: Timeout while fetching:
http://andrewducker.wordpress.com/xmlrpc.php at
org.apache.xmlrpc.client.XmlRpcSunHttpTransport.getInputStream(XmlRpcSunHttpTransport.java:
99) at
org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:
152)

Now, it works sometimes, but it times out a lot.  I'd like to increase
the timeout - but I'm not sure how to do this.  I was under the
impression that the timeout was already higher than 5 seconds.

Any ideas?

Thanks!

Andy

-- 
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: Best Implementation of Singleton in GAE.

2011-11-27 Thread andrew
If it's once a day, then have (one) crontask start and perform your
operation.

Another method would be to request the operation of a task queue that
would only handle one at a time, or one per day. But multiple wouldn't
coincideas the queue will handle them in order.

-- 
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.6.0 Prerelease SDKs are out

2011-11-02 Thread andrew
Does the HRD migration tool migrate all namespaces from the old appid
to the new one (and off-course the data in each one)?

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.



Re: [appengine-java] Re: Can't get log4j working

2011-10-16 Thread Andrew Ducker

On 16/10/2011 09:01, Martin Newstead wrote:

make sure your log4j.properties gets copied to your classes directory
when you build the application.


Yup, it's there.

Says:
# A default log4j configuration for log4j users.
#
# To use this configuration, deploy it into your application's 
WEB-INF/classes

# directory.  You are also encouraged to edit it as you like.

# Configure the console as our one appender
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d{HH:mm:ss,SSS} %-5p [%c] - %m%n

Any ideas why I'd be getting an error?

Andy

--
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] Can't get log4j working

2011-10-15 Thread Andrew Ducker
I have the default log4j.properties in the root of my src folder
(which is then copied to the war/WEB-INF/classes folder
automatically).

I have this in my appengine-web.xml:





If I do this:
Logger logger = Logger.getRootLogger();
logger.warn("Testing!");

then I get this:
log4j:WARN No appenders could be found for logger (root).
log4j:WARN Please initialize the log4j system properly.

Any suggestions?

Thanks,

Andy

-- 
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] Anyone using Velocity and Google App Engine?

2011-09-26 Thread Andrew Ducker
I've been trying to get it working in my GAE workspace, and I've got
it picking up my files and processing them, but it doesn't seem to be
picking up the tools.xml file from my WEB-INF folder.

(i.e. variables from the tools.xml file just appear as $whatever).

Is this something other people have encountered?  And if so, what
should I be doing to allow it to work?

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] Servlet Mapping not working as expected

2011-09-26 Thread Andrew Ducker
I'm trying to get Velocity up and running with GAE, and the first
problem I'm bumping into is that servlet mapping doesn't seem to be
working as I'd expect.

I've cut down the Web.xml to its bare minimum:

velocity
org.apache.velocity.tools.view.VelocityViewServlet


velocity
*.vm


index.vm


Now, when I access http://localhost:/ it presents with me with a
page that looks as I'd expect (give or take).  But when I access
http://localhost:/index.vm it shows me the source of the page,
rather than the processed version.

With "*.vm" in the url-pattern, I'd have expected it to work exactly
the same in both cases.

I did a bit of further testing, rerouting things to my own servlet to
see when it got called and when it didn't.  If I use a uri to a file
that exists then I get the source of it.  If I use a uri for a file
that doesn't exist (i.e. http://localhost:/DoesntExist.vm) then my
servlet is called.

Any suggestions as to why it would be getting the file directly rather
than calling the servlet?  Is there a setting I need to configure to
tell it to call the servlet even if the file exists?

Cheers,

Andy

-- 
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] download detailed loga

2011-07-14 Thread andrew
Is there anyway to download logs that include the full log entry and
not just the summary line?

I'd like to every night down load warnings and exceptions from the
previous day, and send detail by email.

If there is not already an enhancement request, do others have this
need also? I would post one.

-- 
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: Image Upload From Android Phone

2011-06-29 Thread andrew
Write a servlet that accepts a multi-part mime post with image as one
part. Parse out and save file part to blobstore.

In Android app, add Apache HTTP multi-part JAR to project and use
FileBody to add image file as a part and post to server.

-- 
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] Lots ob DB errors today

2011-05-26 Thread Andrew G
I am having a lot of errors like this today

com.google.apphosting.runtime.HardDeadlineExceededError: This request
(876d44de5bdde8dc) started at 2011/05/26 11:23:35.574 UTC and was
still executing at 2011/05/26 11:24:05.651 UTC.

Is the datastore is placed on maintenance ?

I have not seen any notifications about it.


Have anybody also see the same errors

Thanks,
Andrew

-- 
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: JPA/JDO vs low level API

2011-04-05 Thread Andrew
I couldn't agree more with Jeff. JDO/JPA on GAE is pants for any real
project.

I am part of a 4 person development team that recently completed a
fairly hefty 6 month GAE project built using GAE, GWT and Guice. We
used JDO/Datanucleus for the persistence technology which caused
significant problems across the project.

As well as the issues that Jeff points out, simple things like IDE
integration (predominantly Eclipse) with Datanucleus never seemed to
work very well. Getting transaction demarcation to work with how the
store 'actually' works is also practically impossible. We burnt a lot
of days getting around a mass of silly little issues for no real
benefit.

To be clear, in standard relational environments we'll use Hibernate
(et al) almost exclusively as an ORM, but, in my view, trying to use
JDO/JPA on GAE is at this point in time a frivolous exercise that
ultimately will heavily limit what you can do on the platform (not
discounting the great work done be those that did port the standard
over). It also lures you into this familiar relational way of looking
at persistence problems which really does not, in any way, translate
to how the datastore actually works.

I'd be very interested to know how Google's internal projects work
with the store -- as presumably, it's going to be a fairly similar
interface -- but, if we were starting from scratch, I'd lobby very
hard for using the low-level API on its lonesome (it's already a
pretty clean service).

On Apr 5, 6:22 pm, SkYlEsS  wrote:
> Thanks you so much for all this responses everybody !

-- 
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: Request-URI Too Large

2011-03-02 Thread andrew
We tried to debug and failed to understand it.

I discovered that if I Sign out from all my (various) Google accounts
and then retried, it worked as before.

We will try and post some more information to explain what was
happening, if not why.

-- 
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: Request-URI Too Large

2011-03-02 Thread andrew
Same here. First occurance was today March 2nd now stuck and can't
login to my app.

-- 
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: Store transformed image to datastore

2011-01-31 Thread Andrew Osipenko
Thank you Michael,

you are right this approach is too complex. I'll better copy uploaded image
to Blob completely.


On Tue, Feb 1, 2011 at 6:29 AM, Michael Weinberg wrote:

> I achieved this, but it's not trivial. I don't have a post about my
> solution, but this blog post was helpful
>
>
> http://jeremyblythe.blogspot.com/2010/10/manipulating-images-in-blobstore.html
>
> I look forward for App Engine to provide an easy to use API to
> manipulate images in blobstore.
>
> Hope this helps,
> Michael
>
>
> On Jan 29, 10:27 am, "andrew.osipenko"  wrote:
> > Hi,
> >
> > I have the following persistent entity:
> >
> > class MyImage {
> >   BlobKey image;
> >
> > }
> >
> > I can easily upload image with blobstoreService, otain BlobKey and
> > save it to MyImage entity.
> > Now I want to transform uploaded image before saving.
> >
> > Could you suggest me how to do this?
>
> --
> 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] Servlet Filter on non-Servlet resource

2011-01-28 Thread andrew
We are using servlet filters without any problem on app-engine for
logging and authentication of servlet.

The servlet filter spec states they can be applied to "any resource",
i.e. including html pages etc.

I have tried this on app engine without success, and when looking at
the app engine docs (here 
http://code.google.com/intl/en/appengine/docs/java/config/webxml.html#Filters)
it just mentions and shows examples of servlets.

Is this just an omission of the text, and no example for that?

In appengine, can I apply servlet filters to a url (single or with a
pattern).



-- 
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: Custom location for local_db.bin?

2011-01-16 Thread andrew
I added steps to my build to copy it.

If you want an evolving datastore, copy it out before clean. If you
have fixed contents you want, then copy out manually once when in the
state you want.

After clean, copy it back in to WEB-INF etc

I use eclipse, but netbeans builds I have seen provide pre and post
target hooks in build_implemented.XML that you can use in build.XML to
customize the build without touching the netbesns generated build file
(build_implemented.XML). That was for J2ME, not sure how build looks
for GAE in NetBeans.

-- 
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: Persist child - Problem

2010-12-21 Thread andrew
can you show the parent class, with the field for for the Equipo
child?

It will no doubt have @Persistence annotations too...

-- 
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: Persist child - Problem

2010-12-19 Thread andrew
Is the child annotated as @persistence capable?
Is it serializable?
It also depends on the type of keys used and key generator strategy.

Show us the code defining each class and we'll let you know.

Quizas asi te ayudamos a poner tu equipo en primera división! :-)

-- 
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: UserService functionality when run via cron

2010-12-16 Thread andrew
You can find the bug reported in googleappengine Google Code Project
with Issue number 4230:

http://code.google.com/p/googleappengine/issues/detail?id=4230&q=isUserAdmin&colspec=ID%20Type%20Component%20Status%20Stars%20Summary%20Language%20Priority%20Owner%20Log

Votes in favor of fixing it are encourages (by me) :-)

-- 
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: UserService functionality when run via cron

2010-12-14 Thread andrew
I submitted a bug on the subject, and it was accepted.

If you want the bug reference I can find it.

Andrew

-- 
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] Can you add Handlers to the root logger?

2010-12-12 Thread Andrew
Hello,

We're trying to add a handler to the root logger, which seems to work
in dev, but, doesn't work in live. Our specific use case is that we
are trying to add a Handler to facilitate sending log messages of a
particular level to a remote log aggregation service.

Has anyone had success in adding a handler to the root logger? If so,
could you please detail your experience.

We have tried things like:
* Adding directly to the root logger through static initialization in
Guice. This works in dev but gets a security exception
(LoggingPermission) in live.
* Various combinations of AOP.
* Using logging.properties to explicitly define the logger. This was
the most promising lead and actually seemed to be working, but,
ultimately suffered the same problematic fate.

We're currently exploring mitigation options like a logging facade
(SLF4J or possibly just subclassing Logger), but, this has a host of
obvious problems (no support for 3rd party libraries etc). Another
option is to potentially try and use the admin logging console.

If pertinent our app stack is GWT on Guice.

Also, if we're lucky enough to have someone from the Google GAE team
look at this it would be terrific to understand a little bit about the
technical detail of logging for java in GAE. There is a reasonable
amount of conflicting information around the web which has resulted in
a lot of burnt time. An authoritative view would be very helpful and
of obvious benefit when trying to design these types of solutions.

Regards,

- Andrew.

-- 
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: Checking admin priviledges using UserService in a cron/task-queue task execution

2010-12-09 Thread andrew

Ikai / Google ??

Any official word on the expected/desired behavior of the UserService
for a cron task or task queue task, w.r.t. checking of the user
"isAdmin()" ??

thanks

Andrew

-- 
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: Checking admin priviledges using UserService in a cron/task-queue task execution

2010-12-05 Thread andrew
Thanks Didier.

I will look into it while waiting to see if Google can respond on what
the UserService returns in this case and if it can be used.

My first thought was that it would be pretty easy for someone to
construct a request with those headers present and valid values
(especially for the "default" queue), especially to pass the "generic"
security filter I'd like to write.

regards

-- 
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] Checking admin priviledges using UserService in a cron/task-queue task execution

2010-12-04 Thread andrew
I am trying to debug some issues with task execution and have a
question.

Background
==
Documentation states that tasks (cron and task queue) are executed by
a system process with admin priviledges.

To protect task execution from unauthorized execution I originally
protected them with a security constraint in the web.xml file. That
seemed to work OK.

Now, for other reasons, I'd like to protect them with code of my own
in a filter.

I have been trying to confirm admin priviledges in the filter, using
code like this:

public boolean isAdmin() {
UserService user = UserServiceFactory.getUserService();

if ( user.isUserLoggedIn() ) {
return user.isUserAdmin();
}
else {
return false;
}
 }

and I also tried directly:
 return user.isUserAdmin();

without checking for login first.

Problem
===
In both cases this seems to return false, even when when the request
comes from the system to run a task-queue task.
Despite the statement that these requests are run as admin.

Question:
===
Can I use the UserService to check admin permissions when the code is
being run in a request started by the system to serve a cron or task-
queue task?

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-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] UnicodeDecodeError: 'utf8' codec can't decode byte 0xe1 in position 0: inval continuation byte

2010-11-21 Thread Andrew Bailey
Hi,

A quote from
http://ikaisays.com/2010/06/10/using-the-bulkloader-with-java-app-engine/

* The CSV import adaptor is very sensitive to character encoding. As
such it’s worth making sure that the data in your CSV conforms exactly
to the encoding it is supposed to, and that the adaptor is looking at
the right encoding.

For help in configuring the yaml file
http://code.google.com/intl/en/appengine/docs/python/tools/uploadingdata.html

The connector options are as follows:

csv connector
encodingAny Python standard encoding format, such as utf-8 (the
default) or windows-1252.


You are using utf-8 but you need to use the content encoding of the
file, you could try latin_1 or windows-1252



Andrew Bailey


http://www.apps4u.co

Twitter @apps4uco

-- 
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: ImageService from dev server

2010-11-20 Thread andrew
Just to re-iterate:

the question is related to images stored in the BLOBSTORE (not the
datastore) and served via the ImageService using the

url = imagesService.getServingUrl(blobKey);

call.

-- 
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: ImageService from dev server

2010-11-20 Thread andrew
Didier:

Forgot to clarify this in the previous post.

I have no problems to upload (and even delete) files to the blobstore
in local dev_server.

The problem is the URL returned by the call:

url = imagesService.getServingUrl(blobKey);

from the ImageService code when running in dev_server

it returns

http://0.0.0.0:80/_ah/img/{key}

which is then NOT served.

-- 
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: ImageService from dev server

2010-11-20 Thread andrew
Starman:

Unfortunately that solution won't work for the deployed code working
with the *real* blobstore/image service, as the serving URL returned
is a real URL for the ImageService on a different server to your
application, so you need to store the host and port.

I'd rather not have specific code for dev_server and production if I
can avoid it

Couldn't the dev_server code for Blobstore/ImageService just return
the correct hostname in the serving URL?

=> If "experts" consider that a bug in dev_server then I'd be happy to
submit it.

Didier:

Thanks for the pointer!

-- 
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: Is programmatic access to cron jobs possible?

2010-11-20 Thread andrew
thanks for the replies.

BTW: Didier, your code helps me fix the path differences for JUnit
inside Eclipse which also bugged me! :-)

For what I want to do I need to be able to delete a scheduled cron
task

Why?
The idea was for a workaround for the "Can I detect a new deployment?"
question I asked a few months back

The idea was that the app would have a cron.xml that schedules a task
every (say) one minute.

After app deployment, the task would run almost immediately (which in
itself implies a new deployment), do my "new deployment" activity, and
then delete itself so it would not run again until the next
deployment.

On any subsequent deployment, the task would still be in the cron.xml
and so would be rescheduled and it would all happen again.

But it avoids a task running every minute checking a file or
something.

IKAI: I'm not sure I get your proposal if it could be done with that?

The original request: "I want to be able to programmatically detect a
new deployment" still stands if anyone has ideas.

thanks for the suggestions.

Andrew

-- 
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] Is programmatic access to cron jobs possible?

2010-11-19 Thread andrew
Is it possible to access cron job scheduling programmatically from the
app engine Java API?

I wanted to have a servlet/task/cron be able to read the list of
scheduled cron jobs and to disable/delete one so that it is no longer
run in the 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-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] ImageService from dev server

2010-11-18 Thread andrew
I am having issues getting a url for an image to be served from the
ImageService when running locally on the dev server.

The code (which works fine when deployed) is this:

ImagesService imagesService =
ImagesServiceFactory.getImagesService();
String imageLocation = imagesService.getServingUrl(blobKey);

When running on the dev server locally (with a server URL of http://127.0.0.1)
the ImageService returns a URL of:

http://0.0.0.0:80/_ah/img/{key}

I also see that in the local dashboard there is no blobviewer.

Should I take this to mean that there is no image serving of blobs
when running on the dev server?

If so, it makes debugging more painful...

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-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] No Billing -> No Blobstore

2010-11-16 Thread andrew
I am developing an app and have been working WELL within all
development quotas for a while now (almost all of them show 0%).

I recently coded image upload and use of blobstore for image storage,
only to find that when attempting to deploy to production I get the
following run-time exception:

com.google.apphosting.api.ApiProxy$FeatureNotEnabledException: The
Blobstore API will be enabled for this application once billing has
been enabled in the admin console.
at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
378)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
581)
...

So, I understand that there is NO Blobstore for free within
development quotas?

If I enable billing, will I be charged for Blobstore API use ONLY with
other in-quote usage remaining free, or will billing be switched on
for everything?

The message seems clear, but it's a major hurdle for us, and so I just
want to make sure I've got it right.

This might be the trigger for me to investigate S3 and EC2....

Andrew

-- 
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] Bulk uploader not working reliably

2010-11-15 Thread Andrew Winter
Hi all,

I've been struggling to get the Python bulk uploader working reliably
with my Java GAE app.

My bulkuploader.yaml is correct (I think) yet sometimes when I'm
partway through uploading a CSV file the uploader barfs with the error
shown at the bottom of this post. The log viewer in GAE shows the
warning "com.google.apphosting.api.DeadlineExceededException: This
request (a5a74b909963ecc7) started at 2010/11/15 16:28:41.971 UTC and
was still executing at 2010/11/15 16:29:11.422 UTC." - I'm not sure
this is relevant though.

My CSV file is 500,000 lines. I split it up into 15,000-line files but
it's hit and miss as to whether those smaller files upload. I reduced
the number of worker threads, bandwidth limit, batch size, etc, but
that didn't seem to make the uploader more reliable.

I guess I could change my app to use app-assigned IDs for keys so I
don't get duplicate entities when I re-upload a file that's failed
partway through, but it'd be great to know why the bulk uploader
doesn't work out of the box.

Is anyone else having this problem and is there a simple solution or
workaround?

Thanks in advance

Andrew.


[ERROR   ] [WorkerThread-1] WorkerThread:
Traceback (most recent call last):
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/adaptive_thread_pool.py", line 150, in
WorkOnItems
status, instruction = item.PerformWork(self.__thread_pool)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/bulkloader.py", line 691, in PerformWork
transfer_time = self._TransferItem(thread_pool)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/bulkloader.py", line 848, in _TransferItem
self.request_manager.PostEntities(self.content)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/tools/bulkloader.py", line 1300, in PostEntities
datastore.Put(entities)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/api/datastore.py", line 291, in Put
'datastore_v3', 'Put', req, datastore_pb.PutResponse(), rpc)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/api/datastore.py", line 195, in _MakeSyncCall
rpc.check_success()
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/api/apiproxy_stub_map.py", line 499, in check_success
self.__rpc.CheckSuccess()
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/api/apiproxy_rpc.py", line 149, in _WaitImpl
self.request, self.response)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/ext/remote_api/remote_api_stub.py", line 224, in
MakeSyncCall
handler(request, response)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/ext/remote_api/remote_api_stub.py", line 350, in
_Dynamic_Put
'datastore_v3', 'Put', put_request, put_response)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/ext/remote_api/remote_api_stub.py", line 156, in
MakeSyncCall
self._MakeRealSyncCall(service, call, request, response)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/
GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
google/appengine/ext/remote_api/remote_api_stub.py", line 178, in
_MakeRealSyncCall
raise UnknownJavaServerError("An unknown error has occured in the
"
UnknownJavaServerError: An unknown error has occured in the Java
remote_api handler for this call.

-- 
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: GAE or EC2

2010-11-15 Thread andrew
Hi Muhammad,

here is a quick response:

- read the datanucleus documentation on JDO for a general background
- read the Datastore, Queries, Indexes and Relationships documentation
from App Engine (we use Java API) for the set of restrictions they
place on using JDO with the GAE datastore.
- avoid using GAE specific types and APIs (e.g. Don't use "Key", use
"Long", etc). That is what leads to most of the restrictions on what
you can and can't do with JDO on datastore. such as having both
Parent and child persistent objects with Long keys...etc
- I expect that JDO on MySql has some restrictions also. I am not
familiar with them, but our developer ran into a few of them.

- we are looking at using namespaces for the datastore, and might
create an emulation of it on MySql to keep our application code
portable...

>From that you get a kind of sub-set of what can and can´t be done with
JDO on GAE/MySql, and leads to you having to manage child object
storage via keys manually.

Then off course, set up your project to be able to be built and ran on
Tomcat/MySQL with little extra effort, and test on that other platform
regularly and as part of your test and release process.

It IS extra work, no doubt about that, even after the initial learning
and experimenting. More coding, and more testing

If there was a common place to share experiences in these attempts at
portability (e.g. a wiki?) then we'd be happy to contribute to it, and
learn from it...  not sure to what extend Google (with it´s cloud
portability goals) would be willing to host/contrinbute to that

-- 
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: GAE or EC2

2010-11-14 Thread andrew
Just to reply to the point about persistence:

> 1, GAE
> The benefits are obvious. However, it is also locking you inyou
> don't have much control over it. If you are unhappy later, you will
> have to redo the persistence layer and migrate data etc.

If you are careful, and set it as a design objective from the start
then you can create a portable persistence layer.

We do this using JDO and develope and test on GAE and Tomcat/MySql,
which I think will also allow us to cover EC2/S3 when we can get
around to it.

-- 
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] XMLSerializer for appengine Java

2010-11-09 Thread andrew
Is there a supported/included XMLSerializer that I can use on GAE-JAVA
for generating XML responses, without doing it all by hand in our own
code.

It's for XML output from Java objects, which are NOT dom documents or
likewise.

If it performs XML entity encoding, then even better.

I have searched and just found other posts on the net asking for the
same, or complaining, and org.xmlpull... doesn't seem to work.

If there are any tricks, then sample code to instantiate/call is very
appreciated.

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-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: Task Queue on other App Servers

2010-11-07 Thread andrew
We use JDO on top of datastore and also on MySQL (for Tomcat for
example).

Had to work through a few limitations for complete JDO portability
across both, but it works and we release and test same cide on mysql/
Tomcat also.

Have to work on JMail setup on Linux when we get time for email
sending portability, but don't expect problems.

TaskQueue and XMPP are only services we don't have a portable solution
to yet.

-- 
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: Newly deployed app doesn’t se em always reflected on the server.

2010-10-30 Thread andrew
As mentioned, IF you are changing version number you will need to set
latest as default. Check "versions" page in dashboard.

I have seen some slight delays after default is changed for switchover
to new version to occur. A minute maybe.

Also, on browser, while on your app page, hit Control F5 to force
refresh.

-- 
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] Task Queue on other App Servers

2010-10-26 Thread andrew
Anyone out there got an implementation of the TaskQueue working on
other app servers (jetty, tomcat)?

We would like this as an option to ensure portability of our
application between app engine and other options.

Either the same Google TaskQueue code configured to run on another
server, or a compatible implementation.

If not, anyone else looking for the same - who is interested in
sharing the effort of getting that running?

-- 
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: 1.3.8 Console Logging Issue

2010-10-24 Thread andrew

Similar here.

Now only logs WARNING and ERROR.

Logging properties set to INFO and prior to 1.3.8 upgrade INFO logged
fine.

Have configuration procedures been changed or something?

Window 7 32bit
Eclipse 3.5 and 3.6

-- 
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: Logging permitted from a TaskQueue worker servlet

2010-10-21 Thread andrew
Solved, and my (obvious) error

The task worker was being invoked with the (default it seems) POST
method, but I had only implemented GET.

The Dashboard log showed the servlet being invoked with no error and
no output, but in fact it was trying to do the POST with no post
doPost() method implemented.

Although an obvious error on my part, maybe some error logging on the
Dashboard for dummies like me in this case might be a good idea - when
the required method needed to invoke doesn't exist.

BTW: As expected the Log output does appear correctly.

-- 
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] Logging permitted from a TaskQueue worker servlet

2010-10-21 Thread andrew
I am trying to debug an issue with a worker url (servlet) of a
TaskQueue.

I seem to be able to enqueue tasks to it fine, and it get's invoked.

The logs show the invokation:

10-21 08:03AM 34.074 /inspections/processor 405 19ms 38cpu_ms 0kb
AppEngine-Google; (+http://code.google.com/appengine)
0.1.0.2 - - [21/Oct/2010:08:03:34 -0700] "POST /inspections/processor
HTTP/1.1" 405 306 "http://dev.ta.bcntouch.com/inspections"; "AppEngine-
Google; (+http://code.google.com/appengine)" "dev.ta.bcntouch.com"
ms=19 cpu_ms=38 api_cpu_ms=0 cpm_usd=0.001143 queue_name=inspection-
queue task_name=7494582390242709532

(sorry for formatting of that!)

But:
 - no exceptions or errors or warning reported (the above is
everything)

- lo logging output from log statements I have in the servlet.

it doesn´t seem to be working (producing output to the datastore as I
expect) and it gets invoked repeatedly...

Any ideas?

Is logging permitted in Task Queue worker servlets?
Should I be seeing my log outputs?

-- 
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: Include appengine-api-labs-1.3.8.jar in application deploy for TaskQueue?

2010-10-20 Thread andrew
VERY prompt reply Don.

Thanks.

I see another post here on a related subject.

Maybe for future releases the JARs in the SDK that ARE present in the
cloud could be separated from the JARs that must be uploaded with the
app (separate folders under lib?)?

Just an idea. Would help make our build scripts clearer, using a
classpath for the included ones and a copy to war for the non-included
ones, and we wouldn´t need to "exclude" explicitly from our war the
ones that are included in the production environment.

regards

-- 
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] Include appengine-api-labs-1.3.8.jar in application deploy for TaskQueue?

2010-10-20 Thread andrew
In my application I have started to experiment with TaskQueue.

After deploying, on execution "in the cloud" I get the following
exception:

java.lang.NoClassDefFoundError: com/google/appengine/api/labs/
taskqueue/QueueFactory

I assume this is because TaskQueue is still in labs, and so is in the
appengine-api-labs-1.3.8.jar in the eclipse/plugins folder.

So, my question is:

Should include "appengine-api-labs-1.3.8.jar" in my project, copy it
to my /war/ folder and deploy it with my application into the cloud?

If so, I assume it's recommended to always upload the same version of
this jar (1.3.8) as the version of the production environment (1.3.8).

thanks

Andrew

-- 
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] ManyToMany with list properties - IllegalArgumentException: name: String properties must be 500 characters or less.

2010-10-19 Thread Andrew Bailey
Hi,
I have a problem that I have a model where there are two hierarchys
A---*B---*C
D---*E---*F
(---*  = one to many relationships)

B has a Key with A as its parent etc So the keys grow to be fairly
large

Everything was working fine until I added the extra condition (a
unidirectional many to many relationship)
F*>*C The only way that worked for me was to store it as a
Set however I believe I have hit a problem in that it seems that
the maximum size for the persisted ListProperties is 500 characters.
( I am using JPA.)

Is that correct?

Has anyone a suggestion to get around this problem.

The exception is as follows:

java.lang.IllegalArgumentException: name: String properties must be
500 characters or less.  Instead, use
com.google.appengine.api.datastore.Text, which can store strings of
any length.
at
com.google.appengine.api.datastore.DataTypeUtils.checkSupportedSingleValue(DataTypeUtils.java:
192)
at
com.google.appengine.api.datastore.DataTypeUtils.checkSupportedValue(DataTypeUtils.java:
157)
at
com.google.appengine.api.datastore.DataTypeUtils.checkSupportedValue(DataTypeUtils.java:
123)
at com.google.appengine.api.datastore.Entity.setProperty(Entity.java:
280)

I cant tell what the property is but my guess is that it is the
ListProperty. however as it says "name" it could be the name attribute
from the MappedSuperclass that all the classes A-F inherit from. It
would be helpful for the error message to say what class and or object
generates the problem!

The name property should not be more than 500 characters. more like 50
at most.

Any suggestions?

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-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] Using multiple PersistenceManagerFactorys for multiple concurrent Transactions.

2010-10-15 Thread Andrew
Hello,

Can someone from the GAE team please confirm whether this would be
possible?

My specific use-case is that I have meta data in one entity group and
instance data in another. Services, using nested transactions and
different PersistenceManagerFactorys, could hopefully access both (as
they would be different 'Transactions' and never refer to the same
entity groups).

I've run various tests that seem to indicate that this should be
possible, but I'm now getting IllegalStateExceptions as it seems I
have: "Attempted to deregister a transaction that is not currently
registered". The only way I could really see that this would be
possible is if there was some type of thread-local stack that
explicitly prohibits this from happening (as the nested tx would close
the parent).

It's no big deal if it can't happen, but would certainly be great if
it could.

Your thoughts would be appreciated.

- Andrew.

-- 
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] Enhancement: Mail traffic and management in Dashboard

2010-08-24 Thread andrew
While debugging e-mail reception and sending in a deployed application
on GAE I thought it might be an interesting enhancment to have some
visibility of emails received and/or sent from the application in the
dashboard?

Off course I can log all reception and sending myself and then inspect
in the logs, but I thought a direct method could be interesting.

Maybe for privacy reasons the *content* of (at least received) emails
should be hidden.

Similar to task queues, another option would be to allow app admin to
disable/pause email reception or sending, without having to perform a
new upload with modified appengine-web.xml.

-- 
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: Determine in runtime (Java) who deployed app

2010-08-23 Thread andrew
Our use case in general is:
We plan to allow users to openly login (which creates their initial
account) to our app using google account, google apps domain account
or openid.

We plan to allow some users to be given "super-user" permissions for
the application instance. They in turn will be able to give other
users super-user permissions for a given area of the app.

How to start the process of allowing super-user permissions?
i.e. who is the first super-user, or the root user who starts that
process, but in a secure and controlled fashion (not just the first
person to log-in!).

Our idea was to have the application deployer be detected on first
login to the application (via google account, open id or other) via
their e-mail address and be give "first super-user" or "root"
permissions. They can then convert other users to super-users and
everything if off and running.

Just becase a Google Apps Domain user is the admin for the domain
doesn't necessarily mean they should be able to admin any/all deployed
instances of the application in that domain
Conversely, to allow someone to admin the app we'd prefer to NOT give
them admin permissions for the whole Google Apps Domain
This made us look for alternatives to just checking if the user is an
admin using the Users API.

We want to have the app deployed on multiple different application
IDs, and on different Google App Domains, and to have control over who
is the "root" user on each independently, without hard-coding user
names and passwords into the code or config files, so that the same
"war" could be deployed to multiple appID/domains without change.

If there is another recommended way of doing this, or similar, then
we'd be interested to hear more about ir (and especially see sample
code in Java :-) ).

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-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] Determine in runtime (Java) who deployed app

2010-08-20 Thread andrew
I would like to be able to determine in run time (I am using Java) the
username of the admin who deployed the running instance of the
application.

I have looked at programmatic access to admin logs (no?),
SystemProperty (no), and ServletContext (no) to see if this property
is accessible at run time, without success.

Any suggestions anyone?

thanks

Andrew

-- 
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] Re: JDO - Deleted data reappears

2010-06-11 Thread Andrew Myers

Hi Ian,

Thanks for your reply.  I expect I only had the server running for a  
minute or so at the time so that could well explain it.


I have not seen it happen again today so I will assume this is the  
case and keep pushing ahead with what i'm doing.


Regards,
Andrew

On 11/06/2010, at 6:30 PM, Ian Marshall   
wrote:



Hi Andrew,

Without looking at your code, how long elapses between deleting your
items using your web application and stopping your development server?

I have found that writes to my local GAE/J datastore can take up to 1
minute to be written to the relevant file on my local file system
(which the dev app server uses as its persistent datastore). I always
wait around two minutes after the last update to this file before
stopping my dev app server.

Regards,

Ian



On Jun 10, 7:38 am, Andrew  wrote:

Hi,

I'm in the very early stages of building an app with GAE and am  
trying

to do my first "CRUD" process.

Unfortunately I've run into a problem where when I delete items they
seem to disappear during the current session in development, but when
I stop and restart the development server they reappear.

I've pasted my DAO code here if anyone is able to give me some advice
on what I may have done wrong:

http://java.pastebin.com/Jr23cMTc

Best regards,
Andrew.


--
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-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] JDO - Deleted data reappears

2010-06-09 Thread Andrew
Hi,

I'm in the very early stages of building an app with GAE and am trying
to do my first "CRUD" process.

Unfortunately I've run into a problem where when I delete items they
seem to disappear during the current session in development, but when
I stop and restart the development server they reappear.

I've pasted my DAO code here if anyone is able to give me some advice
on what I may have done wrong:

http://java.pastebin.com/Jr23cMTc

Best regards,
Andrew.

-- 
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] Minor issues with Struts 2 Tags

2010-06-04 Thread Andrew
Hi,

I have set up struts using the method described at this page:

http://whyjava.wordpress.com/2009/08/30/creating-struts2-application-on-google-app-engine-gae/

Everything I have tried so far works fine, except for one little
thing.

If I try this code from the Struts Tutorial (https://cwiki.apache.org/
WW/using-struts-2-tags.html):


  Bruce Phillips

Hello Bruce Phillips

The link is renedered as http://localhost:8080/${helloLink}

Other struts tags are working, so my app is definitely picking them
up.  It just seemed to work incorrectly in this case.

I wondered if it was something to do with the freemarker modifications
that were made in order to get things running on GAE.  Can anyway else
reproduce this?

I'm using GAE 1.3.4 with Struts 2.1.8 via the Eclipse Plugin.

-- 
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: Security restrictions may not be entirely emulated errors in Dev mode with Spring 3.0 on 1.3.4

2010-06-03 Thread Andrew
Hi Bill,

I can see what you mean now.  I have actually jumped over to a Struts
2 app at the moment, and whenever I change Java code I need to stop
the development server and restart it.  Very painful.

Is this just the way it is, or are we missing something?

Regards,
Andrew.

On Jun 3, 10:32 am, Bill Milligan  wrote:
> If you've gotten past point 2, I'd love to see it.  Redeploying every time I
> make a change is driving me batty.
>
>
>
> On Wed, Jun 2, 2010 at 7:38 PM, Andrew  wrote:
> > Thank you very much Bill.  The suggestion in point 1 worked a treat.
>
> > To answer your other questions, I am using asm 2.1 and spring 3.0.2.
>
> > My url pattern is:
>
> > /*
>
> > When I said that the app was actually running, I meant that even
> > though there were those errors in the console, I was able to browse to
> > the hello world file and it gave me the expected output so it appeared
> > the errors actually hadn't stopped anything from working.
>
> > If you would like me to send you my eclipse project in a zip file
> > please let me know and I'm happy to do so.
>
> > Best regards,
> > Andrew.
>
> > On Jun 3, 12:04 am, Bill  wrote:
> > > Okay, a few things I found out --
>
> > > 1.  The suggestion athttp://
> > code.google.com/p/googleappengine/issues/detail?id=2527
> > > works quite well.  You'll find the afflicted appengine-agent.jar in
> > > your eclipse plugins folder under
> > > com.google.appengine.eclipse.sdkbundle./appengine-java-sdk-
> > > /lib/agent.  Use jarjar to fix internal refs to its own asm
> > > code, completely compartmentalizing it away from everything else.
> > > Ignore the "ln -s" suggestion, I have no idea what that's about except
> > > possibly it's someone's idea to avoid renaming a file, and the
> > > "plugin.jar" to "plugin2.jar" is just an example.  It's not really
> > > relevant.
> > > 2.  It won't matter once you get this working.  Jetty will not be able
> > > to find your hello.jsp.  I can't figure out why, but I believe it has
> > > something to do with the URL pattern in web.xml.  I tried moving it
> > > around without success.
> > > 3.  Both problems are non-issues on production.  I deployed the hello
> > > app out there and everything just worked.  On one hand it's good, but
> > > on the other, this drastically disimproves my build-test-turnaround
> > > time.
>
> > > On Jun 1, 10:56 pm, Andrew  wrote:
>
> > > > Hi,
>
> > > > I'm trying to get spring 3.0 up and running as per the blog post at
>
> > > >http://www.ardentlord.com/apps/blog/show/829881-spring-3-0-on-google-.
> > ..
>
> > > > However I'm running into some issues when I try and start it up in
> > > > Development (have not tried in production yet):
>
> > > > The console is showing a stack of these messages:
>
> > > > 02/06/2010 2:50:19 AM
> > > > com.google.appengine.tools.development.agent.impl.Transformer
> > > > transform
> > > > SEVERE: Unable to instrument
>
> > org.springframework.web.servlet.view.DefaultRequestToViewNameTranslator.
> > > > Security restrictions may not be entirely emulated.
> > > > java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.(I)V
>
> > > > However as far as I can tell the app is actually running.
>
> > > > There was a thread in this group late last year that described a
> > > > similar issue, and the suggested solution seemed to be to rename the
> > > > plugin.jar file to plugin2.jar:
>
> > > >http://groups.google.com.au/group/google-appengine-java/browse_thread.
> > ..
>
> > > > However the posters seemed to be using macs.  I am on Windows 7
> > > > (Eclipse Galileo with the Google Plugin) and cannot locate this file -
> > > > does anyone have any advice on where I may find it?
>
> > > > Best regards,
> > > > Andrew.
>
> > --
> > 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.

-- 
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: Security restrictions may not be entirely emulated errors in Dev mode with Spring 3.0 on 1.3.4

2010-06-02 Thread Andrew
Hi Bill,

Can you send me the steps to reproduce it so I can see if I am
observing the same thing please?

Regards,
Andrew.

On Jun 3, 10:32 am, Bill Milligan  wrote:
> If you've gotten past point 2, I'd love to see it.  Redeploying every time I
> make a change is driving me batty.

-- 
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: Security restrictions may not be entirely emulated errors in Dev mode with Spring 3.0 on 1.3.4

2010-06-02 Thread Andrew
Thank you very much Bill.  The suggestion in point 1 worked a treat.

To answer your other questions, I am using asm 2.1 and spring 3.0.2.

My url pattern is:

/*

When I said that the app was actually running, I meant that even
though there were those errors in the console, I was able to browse to
the hello world file and it gave me the expected output so it appeared
the errors actually hadn't stopped anything from working.

If you would like me to send you my eclipse project in a zip file
please let me know and I'm happy to do so.

Best regards,
Andrew.

On Jun 3, 12:04 am, Bill  wrote:
> Okay, a few things I found out --
>
> 1.  The suggestion 
> athttp://code.google.com/p/googleappengine/issues/detail?id=2527
> works quite well.  You'll find the afflicted appengine-agent.jar in
> your eclipse plugins folder under
> com.google.appengine.eclipse.sdkbundle./appengine-java-sdk-
> /lib/agent.  Use jarjar to fix internal refs to its own asm
> code, completely compartmentalizing it away from everything else.
> Ignore the "ln -s" suggestion, I have no idea what that's about except
> possibly it's someone's idea to avoid renaming a file, and the
> "plugin.jar" to "plugin2.jar" is just an example.  It's not really
> relevant.
> 2.  It won't matter once you get this working.  Jetty will not be able
> to find your hello.jsp.  I can't figure out why, but I believe it has
> something to do with the URL pattern in web.xml.  I tried moving it
> around without success.
> 3.  Both problems are non-issues on production.  I deployed the hello
> app out there and everything just worked.  On one hand it's good, but
> on the other, this drastically disimproves my build-test-turnaround
> time.
>
> On Jun 1, 10:56 pm, Andrew  wrote:
>
> > Hi,
>
> > I'm trying to get spring 3.0 up and running as per the blog post at
>
> >http://www.ardentlord.com/apps/blog/show/829881-spring-3-0-on-google-...
>
> > However I'm running into some issues when I try and start it up in
> > Development (have not tried in production yet):
>
> > The console is showing a stack of these messages:
>
> > 02/06/2010 2:50:19 AM
> > com.google.appengine.tools.development.agent.impl.Transformer
> > transform
> > SEVERE: Unable to instrument
> > org.springframework.web.servlet.view.DefaultRequestToViewNameTranslator.
> > Security restrictions may not be entirely emulated.
> > java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.(I)V
>
> > However as far as I can tell the app is actually running.
>
> > There was a thread in this group late last year that described a
> > similar issue, and the suggested solution seemed to be to rename the
> > plugin.jar file to plugin2.jar:
>
> >http://groups.google.com.au/group/google-appengine-java/browse_thread...
>
> > However the posters seemed to be using macs.  I am on Windows 7
> > (Eclipse Galileo with the Google Plugin) and cannot locate this file -
> > does anyone have any advice on where I may find it?
>
> > Best regards,
> > Andrew.

-- 
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] Security restrictions may not be entirely emulated errors in Dev mode with Spring 3.0 on 1.3.4

2010-06-01 Thread Andrew
Hi,

I'm trying to get spring 3.0 up and running as per the blog post at

http://www.ardentlord.com/apps/blog/show/829881-spring-3-0-on-google-app-engine

However I'm running into some issues when I try and start it up in
Development (have not tried in production yet):

The console is showing a stack of these messages:

02/06/2010 2:50:19 AM
com.google.appengine.tools.development.agent.impl.Transformer
transform
SEVERE: Unable to instrument
org.springframework.web.servlet.view.DefaultRequestToViewNameTranslator.
Security restrictions may not be entirely emulated.
java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.(I)V

However as far as I can tell the app is actually running.

There was a thread in this group late last year that described a
similar issue, and the suggested solution seemed to be to rename the
plugin.jar file to plugin2.jar:

http://groups.google.com.au/group/google-appengine-java/browse_thread/thread/5e34079b5b3d58a1/b6db94a2df4ea58c?lnk=gst&q=Security+restrictions+may+not+be+entirely+emulated.#b6db94a2df4ea58c

However the posters seemed to be using macs.  I am on Windows 7
(Eclipse Galileo with the Google Plugin) and cannot locate this file -
does anyone have any advice on where I may find it?

Best regards,
Andrew.

-- 
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] Using Spring Javaconfig on Google App Engine

2010-01-21 Thread Andrew Phillips
I recently got my hands dirty getting Spring Javaconfig working on
GAE. The lessons are summarized in the following blog post:

http://blog.xebia.com/2010/01/17/using-springs-java-configuration-on-google-app-engine/

Thought this might prove useful...


Andrew
-- 
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: Role: Sr. Oracle PL/SQL Developer - Direct Client Requirement

2009-10-20 Thread Andrew Badera

And, ban this repeat offender Suren already.

∞ Andy Badera
∞ +1 518-641-1280
∞ This email is: [ ] bloggable [x] ask first [ ] private
∞ Google me: http://www.google.com/search?q=andrew%20badera



On Tue, Oct 20, 2009 at 4:07 PM, Peter Ondruska
 wrote:
>
> Please, would you turn on moderation for new posts. More and more spam
> is coming, it is really getting annoying. Thanks
>
> On Oct 20, 7:53 pm, Suren  wrote:
>> Hi,
>>
>> This is Surendra with Infowave Systems and presently we have an
>> Immediate Requirement and Let me know if you are interested in the
>> Below Position.
>>
>> Role: Sr. Oracle PL/SQL Developer
>> Location: Holyoke, MA
>> Duration: 6-12 Months
>>
>> NOTE: Prefer MASTER’S in US
>>
>> Job Description
>> •     Senior Level Knowledge of Oracle RDBMS concepts and implementation
>> •     Excellent PL/SQL knowledge. At least 6 years experience developing
>> complex applications using Oracle PL/SQL
>> •     Must have 9-10years of experience.
>> •     Perl knowledge, general scripting knowledge.
>> •     Familiar with responsibilities and problems inherent in parallel,
>> simultaneous development.  This includes implementing changes to
>> existing applications within a well-defined scope and adhering to
>> change management controls.
>> •     Experience with code management system (CVS a plus)
>> •     Good English communications skills, both written and verbal. Ability
>> to work well with others within a project team.
>>
>> If you are interested please fill the below Details:
>> First Name:
>> Last Name:
>> Current Location:
>> Availability:
>> Best Number to reach:
>> Work Authorization:
>> Year of Graduation and Name of the university:
>> Highest Qualification and Name of the university:
>> Employer Detail’s (if H1b):
>> 2 Client Reference's:
>>
>> ---
>> Thanks & Regards
>> Surendra
>> Sr. Technical Recruiter
>> Infowave Systems Inc,
>> Direct: 860-760-7634
>> Company: 860 760 7600
>> Fax: 860-760-7640
>> surendra.gu...@infowavesystems.com
>> Visit us @www.infowavesystems.com
>> Please consider the environment and do not print this email unless
>> absolutely necessary.
>> Save Earth
> >
>

--~--~-~--~~~---~--~~
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] Datastore problems!

2009-09-04 Thread Andrew

Hey,
Im getting java.lang.ArrayIndexOutOfBoundsException when trying to
retrieve from the datastore! The status page says that things are
supposed to be ok now (after the issues), but they arent for me!! Is
it just a case of taking time before everything is ok or?
--~--~-~--~~~---~--~~
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: Anyone successfully redirected "naked domain" to their "www" domain with NetworkSolutions?

2009-08-22 Thread Andrew M

I just setup a non-AppEngine server that redirects all non-www
requests to the same URL but with "www." added on the front.  The
server is setup to do this for any request, not just my domains, so
anyone can use it.

You don't need to mess with CNAMEs, just point the A record for the
base (naked/@) domain to 74.53.18.72.

I had extra hosting that I wasn't using since I moved an app onto
AppEngine.


On Aug 16, 3:02 pm, Jim McCabe  wrote:
> I manage my domains with Network Solutions (networksolutions.com) and
> am having a little trouble figuring out how to redirect requests for
> my "naked domain" (like foo.com) to my www subdomain as required by
> GAE.  I've set up theCNAMEfor www and it works great.
>
> Is there anyone here who has used Network Solutions to this?
>
> It looks like they have a "web forwarding" service but that appears
> more targeted towards people who want to redirect one domain (one.com)
> to a different domain altogether (two.com), instead of one.com towww.one.com. 
>  Plus, it costs $12/year per domain, which is on top of
> their already high yearly cost of like $35/year just for the domain.
>
> Makes me wonder if I should move to a company like GoDaddy where the
> redirection is already included in the cheap yearly rate.
>
> I just renewed with Network Solutions for another year (on five
> domains) so I'd like to find a way to do this with them at least for
> the next year.
>
> - JIm
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---