Re: [appengine-java] Reminder: Google App Engine community support is moving to Stack Overflow

2012-03-08 Thread Shawn Brown
 Questions tagged with 'google-app-engine':
   http://stackoverflow.com/questions/tagged/google-app-engine

I don't understand how to get java specific questions.  It's not
useful and a huge waste of time to have to sort through the python
stuff for me.  This sucks and it seems like google is losing it's mojo
if it takes the natural categories and lumps them into one less useful
one.

Shawn

-- 
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] Reminder: Google App Engine community support is moving to Stack Overflow

2012-03-08 Thread Shawn Brown
 Search for google-app-engine java.
I still don't get it.

searching pulls up results that are seemingly unordered by time

using a Stack Overflow filter (to notify by email or display current
results) doesn't find java related posts.

YUCK.

It'd be nice to be able to just follow the java version especially
when a new release come out with it's inevitable problems.  It helps
me pin down what might be wrong.  Also, do we need to have to follow
two lists ...

Maybe I'll get used to it.  I hate it for now.

-- 
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] Reminder: Google App Engine community support is moving to Stack Overflow

2012-03-08 Thread Shawn Brown
 When you're searching, you can specify a tag by putting it in square
 brackets. E.g. if you search for:
  [google-app-engine] [java] spring
 this will retrieve questions tagged with [google-app-engine] and [java], and
 containing 'spring'.

Thanks Amy,

It's weird.  Here's what worked.

[google-app-engine] +java
then sort by newest

Here's what didn't work

[google-app-engine] java
because the site changed it to [google-app-engine] [java]
BUT many posts are not tagged as java though they contained java in
the post which is what I was looking for but not showing up

Thanks for your help.
Shawn

-- 
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] Mail send from AppEngine application not received by any recipient from past few days

2012-02-23 Thread Shawn Brown
 We have two Business application running on AppEngine one of which we have
 upgraded into HRD instance a couple of months before and other one was
 upgraded into HRD instance a week before.Everything was working fine on them
 but from past few days(after Friday) no mail is sending from these
 applications.check your web.xml security constraint

you probably have the mail set to the app you used before migration

security-constraint
web-resource-collection

web-resource-nameIS_YOU_APP_NAME_RIGHT?/web-resource-name
url-pattern/_ah/mail/*/url-pattern
/web-resource-collection
...
/security-constraint

-- 
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] Implementation question regarding efficient check and lock on datastore

2012-01-12 Thread Shawn Brown
 I guess what I want to have is some kind of check and lock. My
 question is how to implement an efficient lock on a distributed
 environment like GAE. Transactions? Or better using memcache?


 Is there a best practise how to implement that?

I'm not saying this is best practice but just throwing it out there...

1 start transaction
2a run check on entity on whether AccountStatus needs generation
2b (if AccountStatus needs generation  AccountStatusLock entity is
null  )  store entity Key or unique identifier in separate
AccountStatusLock entity
2c commit transaction [which stores AccountStatusLock]
3a generate AccountStatus
3b commit entity with generated AccountStatus
4 delete AccountStatusLock

Shawn

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

2012-01-10 Thread Shawn Brown
 We think we know what's happening. This is something that is happening at
 app upload time. Can you try setting a new version name for your app, then
 passing the --no_batch option when using appcfg.sh?

 appcfg.sh --no_batch update [YOUR_WAR_DIRECTORY]


Seems to solve it.  I can't reproduce the error as I did by just
modifying the spaces in comments in the css file anymore.

Shawn

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

2012-01-09 Thread Shawn Brown
 If someone has a deterministically reproducible case that you can share with
 us (project files and everything), it'd be very helpful for us to nail this
 bug. We aren't able to do this with our test apps (big apps, small apps).
 There's got to be some parameter that's different in your apps.

I had the same problem and realized I can induce/eliminate the error
just by altering a comment (the first lines in the file -- not sure
about elsewhere).

test 1 - This fails:

/*test

*/
html,body,h1,h2,h3,h4,h5,h6,p,ol,ul,li,pre,code,address,variable,form,fieldset,blockquote
{
padding: 0;
margin: 0;
font-size: 100%;
font-weight: normal;
}

test 2 - This succeeds:

/*test
*/
html,body,h1,h2,h3,h4,h5,h6,p,ol,ul,li,pre,code,address,variable,form,fieldset,blockquote
{
padding: 0;
margin: 0;
font-size: 100%;
font-weight: normal;
}

test 3 - this fails:

/*test*/

html,body,h1,h2,h3,h4,h5,h6,p,ol,ul,li,pre,code,address,variable,form,fieldset,blockquote
{
padding: 0;
margin: 0;
font-size: 100%;
font-weight: normal;
}

test 4 - this succeeds:
/*test*/
html,body,h1,h2,h3,h4,h5,h6,p,ol,ul,li,pre,code,address,variable,form,fieldset,blockquote
{
padding: 0;
margin: 0;
font-size: 100%;
font-weight: normal;
}

test 5 - this succeeds

/*test
*/

html,body,h1,h2,h3,h4,h5,h6,p,ol,ul,li,pre,code,address,variable,form,fieldset,blockquote
{
padding: 0;
margin: 0;
font-size: 100%;
font-weight: normal;
}

(when combined with web.xml):
 mime-mapping
extension.css/extension
mime-typetext/css/mime-type
/mime-mapping


NOTE: It's more complicated that I depict here as if I remove the
web.xml workaround for test 5 it still works.  But then if I add
another space between the comment and first html rule, it fails again.
 Anyway, just changing the spacing around the initial comment will
result in the mime type being set or not.

NOTE 2: I verified my css file was w3c valid but I have not posted the
whole thing.  The only change was spacing around the initial
comment...

NOTE3:  AE 1.6.1

-- 
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] utf-8 log files

2011-09-09 Thread Shawn Brown
Is this the right way to get appengine logs in utf-8?
I tried downloading them but ... the file itself was not written as utf-8.

So I'm wondering about setting this in appengine-web.xml:


system-properties
property name=java.util.logging.config.file
value=WEB-INF/logging.properties /
property name=file.encoding value=UTF-8 /
property name=DEFAULT_ENCODING value=UTF-8 /
/system-properties

Anyone know?

Shawn

-- 
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: utf-8 log files

2011-09-09 Thread Shawn Brown
 Is this the right way to get appengine logs in utf-8?
 I tried downloading them but ... the file itself was not written as utf-8.

 So I'm wondering about setting this in appengine-web.xml:


 system-properties
                property name=java.util.logging.config.file
 value=WEB-INF/logging.properties /
                property name=file.encoding value=UTF-8 /
                property name=DEFAULT_ENCODING value=UTF-8 /
 /system-properties

Didn't work.  Is there anyway 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.



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

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

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

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

google servlet filter

set up your filter

add the following

response.setContentType(text/cache-manifest);

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



[appengine-java] Server Error : Deployment Failed

2011-08-19 Thread Shawn Brown
Hello,

I consistently get:

Unable to update:
java.io.IOException: Error posting to URL:
https://appengine.google.com/api/appversion/clonefiles?app_id=fluency-upversion=428;
500 Internal Server Error

On a related note, are uploads to appengine (meaning deploying) very
slow.  I was averaging around 32kbps which is well below what my
connection tests at 256kbps.  Well that is before deploying failed
completely.  Now all's I see is:


at 
com.google.appengine.tools.admin.AbstractServerConnection.send(AbstractServerConnection.java:249)
at 
com.google.appengine.tools.admin.AbstractServerConnection.post(AbstractServerConnection.java:207)
at 
com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java:639)
at 
com.google.appengine.tools.admin.AppVersionUpload.cloneFiles(AppVersionUpload.java:502)
at 
com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java:462)
at 
com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java:137)
at 
com.google.appengine.tools.admin.AppAdminImpl.doUpdate(AppAdminImpl.java:300)
at 
com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:52)
at 
com.google.appengine.tools.admin.AppCfg$UpdateAction.execute(AppCfg.java:598)
at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:157)
at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:65)
at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:61)


and

37% Cloning 1027 application files.
37%  on backend null.

So what do I need to do to reply?

Shawn

-- 
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] DWR 3 doesn't work

2011-06-03 Thread Shawn Brown
 Hi,

 http://code.google.com/p/googleappengine/wiki/WillItPlayInJava
 I saw that DWR works on GAE. But whezn I do my test, I've this error:

This lists  Version(s)   2.0.5, 3.0 RC1 as COMPATIBLE

I don't know all the details of 2.0.5 but 3.0RC1 creates threads to do
session cleanup and that will just not fly on appengine.
http://dwr.2114559.n2.nabble.com/Google-AppEngine-GAE-appengine-was-Re-dwr-user-Tutorials-and-Examples-are-broken-td5316120.html

also See http://dwr.2114559.n2.nabble.com/DWR3RC1-threads-td2646984.html

Unless backends allows threads or the appengine sdk has changed
without me seeing, then having looked at the src code of dwr and
seeing what would be needed to get it to run, I would suggest
http://code.google.com/appengine/docs/java/channel/

Shawn

-- 
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] does the Google AppEngine or WebToolkit replace the bootclasspath of the running Java runtime?

2011-03-13 Thread Shawn Brown
Hi,

 Do you have the contact information for the Apple Engineer?

He's contacted you, Toby, off list now.  I got cc'd on the mail.

Let me know if for some reason you didn't get it.

Shawn

-- 
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] does the Google AppEngine or WebToolkit replace the bootclasspath of the running Java runtime?

2011-03-12 Thread Shawn Brown
Hi,

I used the open-jdk workaround to solve the problems introduced by the
latest apple java sdk update but have a question an Apple engineer
asked me about the following:

http://code.google.com/p/googleappengine/issues/detail?id=4712
http://code.google.com/p/google-web-toolkit/issues/detail?id=6125

does the Google AppEngine or WebToolkit replace the bootclasspath of
the running Java runtime? From the crash reports I've seen, we should
only be failing in native in this way if a couple of new classes we
introduced are not present. I'm not sure how to explain it, but since
the problem appears to be isolated to these Google tools, I can only
speculate that this is the work of JVM wizards who are somehow
replacing our universe with their own.

I don't think AE or GWT do that, do they?

Shawn

-- 
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: Google App Engine with MySQL Database.

2010-11-26 Thread Shawn Brown
 Why use the JDO/JPA?

You don't need to use those.

For appengine you need to use BigTable.

 JDO/JPA is one way to use BigTable.

There are others (that are easier to use but may not have the same portability):

http://code.google.com/p/objectify-appengine/
http://sites.google.com/site/slim3appengine/slim3-datastore
http://code.google.com/p/twig-persist/

Shawn

-- 
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] Security and Authentication - security-constraint in web.xml annoying error

2010-10-30 Thread Shawn Brown
 how can i fix this annoying error ?

web-resource-name}' is expected.
see the top link in the following search and just add a web-resource-name

http://docs.sun.com/app/docs/doc/819-3669/bncbk?a=view

Shawn

-- 
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] Disappointment about JPA relationships :(

2010-10-24 Thread Shawn Brown
 I'm just here because i feel i need to rant a little. I came here expecting
 way too much.

Been there with JDO -- the docs are not adequate.

I don't know your exact requirements but I suspect you'll find many on
this list who found objectify to be the simplest convenient interface
to the Google App Engine datastore.
http://code.google.com/p/objectify-appengine/

Shawn

-- 
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] [Perhaps OT] Oracle vs. Google : Java still a viable language?

2010-08-27 Thread Shawn Brown
 Motivation: I am at the early stages of implementing a web app on GAE
 using Java, but if I need to switch to Python, I shouldn't delay it
 any more.

 Anyway, what do you guys think?

IANAL but you asked so here goes.  I think you are fine using java on GAE.

My guess is that since appengine is a derivative of OpenJDK that the
(SE) patent grant holds for appengine as long as it doesn't implement
new core functionality which the OpenJDK does not.  In such a case, I
don't believe the patent grant holds.  You'd have to read the grant
more closely or an analysis of it to know whether only partially
implementing it carries the grant.  Even if Oracle were to argue
partial implementation does not, I believe the GPL2 combined with a
patent grant for that code means effectively that Oracle can not say
what people do with the GPL2 code, only that new functionality may not
carry the protection.

So, were GAE to fork OpenJDK and implement new core java classes (this
does not mean new classes using java but a re-implementation of java
with new functionality), then it's possible that we may see patent
issues.  Given the issues with Android though, I suspect Google will
stay in the clear and I do not believe the GAE SDK does this.

That said, if you try to take the SDK jars and set up an equivalent of
GAE that runs on your phone (note:  I am not talking about an app on a
phone that connects to GAE, I am talking about *running* a GAE
instance on a mobile phone) then perhaps you may have trouble as
Oracle reserved the rights to mobile devices for non-GPL versions of
Java.  Nobody would or could ever do that I think, and so am sure it
won't ever be an issue.

Don't listen to me though.  Really don't.

Shawn

-- 
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] HTTPS on App Engine

2010-08-26 Thread Shawn Brown

 I tried it but a call via http is still possible and wil not be
 automatically redirected to the https protocol.

Are you using *.appspot.com?  It doesn't work for a custom domain, does it?

Also Eclipse doesn't
 like the url-pattern in web-resource-collection and marks it as
 error.

adding  web-resource-nameasdf/web-resource-name  resolved that for me

 security-constraint
  web-resource-collection
 web-resource-nameasdf/web-resource-name
  url-pattern/load/url-pattern
  /web-resource-collection
  user-data-constraint
  transport-guaranteeCONFIDENTIAL/transport-guarantee
  /user-data-constraint
 /security-constraint

-- 
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] Stored Data- how billed?

2010-08-09 Thread Shawn Brown
Hi,

About storage costs,

If I have say 25 GB in storage,
is this right -- 25 GB X $0.15/month = $3.75/month???

The docs here say:
http://code.google.com/appengine/docs/billing.html#Billable_Quota_Unit_Cost
Stored Data   gigabytes per month   $0.15

Other quotas are on a daily basis so I'm a little confused.
Is my storage per day added up and then billed so actually I'd see

25 GB (on disk) X 31 days X $0.15 = $3.75 x 30.

I'm guessing daily storage is averaged and then billed at the end of the month.

(daily average for the month) in GB X $0.15/month

Anyone know?

Shawn

-- 
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] Instance startup/shutdown and sessions

2010-07-26 Thread Shawn Brown
 What happens if between logged in user navigates to another page and
 the GAE instance was shutdown?
 I understand a new instance is started but what happened to the
 session data?

AFAIK session data is persisted to big table.

 Also, how is startup/shutdown of instances related to session-timeout
 in web.xml?

 session-config
    session-timeout30/session-timeout
 /session-config

AFAIK there is no connection.  An instance will not be kept warm
because there is an open session.

-- 
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: sessions - configured but don't work on first call

2010-07-17 Thread Shawn Brown
 Why can't a filter start a session?
 this.getThreadLocalRequest().getSession(); will find a session created
 by a filter via request.getSession(true);
 but  request.getSession(true); doesn't seem so send a cookie to the client.

 I really can't understand this.  Help please

It looks like this is related to the appengine developement server.
When deployed, the filter sets cookies as expected.  It's not that the
cookie was at a different uri or something, there was just no cookie
(JSESSION or anything I tried to set) being sent on the first access.

I configured appengine-web.xml file to treat it as a non-static
resource so yes the filter is called but under the dev server no
cookie is sent for the first access.

Shawn

-- 
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: memcache best practice or framework

2010-07-16 Thread Shawn Brown

 What's the usage for in-memory caching via stick-cache?

 It now supports bulk gets for all caches - i.e. memcache and datastore using
 their respective bulk get methods

Aaah, stick-cache has dependencies on twig and
http://code.google.com/p/guava-libraries/

The utilities from twig can be pulled out easily but I haven't looked
at guava-libraries/

I don't wonder if having fewer jars in the classpath at cold start
time is more than the savings from using local/memcache over strictly
datastore  for session storage.  In other words, is loading guava
worth it.  Maybe I can just snip out the relevant code.

Shawn

-- 
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] Why are filters not used on first access?

2010-07-11 Thread Shawn Brown
Hi,

I have a filter set for all requests.  Yet the first request to GAE
seems to bypass the filter.  Why/How could that be?

I do have a welcome file set

welcome-fileMyAppGAE.html/welcome-file

but shouldn't that get called by the following filter

filter-mapping
   filter-nameAuthenticationFilter/filter-name
   url-pattern/*/url-pattern
/filter-mapping

Using a url like (running locally)
http://127.0.0.1:/MyAppGAE.html?gwt.codesvr=127.0.0.1:9997#login,
why does the filter get bypassed on first access.  Subsequest rpc
calls to the app do trigger the filter but I'm worried that before I
can authenticate the user, they have a chance to make an rpc call.
It's a huge potential security hole.

If it's the browser caching something, then when I change the welcome
page MyAppGAE.html, I would expect the filter to be applied when the
user gets the new page.  I can see the new page but still don't see
the filter applied.

What am I not understanding???

Shawn

-- 
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] Why are filters not used on first access?

2010-07-11 Thread Shawn Brown
 Hi,

 Please read the second paragraph of:
 http://code.google.com/appengine/docs/java/gettingstarted/staticfiles.html
 You'll need to exclude your files from static-files in appengine-web.xml
 if you are relying on a custom filter for authentication purposes.

Thanks.

IMHO it should be documented here
http://code.google.com/appengine/docs/java/config/webxml.html#Filters

Anyway, thanks!

Shawn

-- 
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: memcache best practice or framework

2010-07-10 Thread Shawn Brown
Hi John,


 There is also a CompositeCache class that allows you to layer the caches so
 that it first checks in-memory, then memcache , then the datastore.  Puts go
 to all levels and cache hits refresh the higher levels.  e.g. if an item is
 not in-memory and has been flushed from memcache but is still present in the
 datastore then the other two will be updated.

 http://code.google.com/p/stick-cache/

What's the usage for in-memory caching via stick-cache?

The docs show this:
MemoryCacheString, Hotel mc = new MemoryCacheString, Hotel(50);


but on Jun 22, 2010;  that class was deleted

revisionded84586e4Delete
/src/main/java/com/vercer/cache/MemoryCache.java

Is it no longer supported?


Shawn

-- 
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: Enabling SSL for a Servlet

2010-07-09 Thread Shawn Brown
 Secure Connection Failed
 An error occurred during a connection to ikai-openid-demo.appspot.com:
 80.

 SSL received a record that exceeded the maximum permissible length.

 (Error code: ssl_error_rx_record_too_long)

Same on firefox and Chrome on OSX
Http works, https fails.

Also, is there source code available.

I can't find anything (for java) at:
http://code.google.com/p/google-app-engine-samples/
and appengine-java-sdk-1.3.5 seems not to have it as a demo.

Thanks,

Shawn

PS.  Actually Chrome reports:
Unable to make a secure connection to the server. This may be a
problem with the server, or it may be requiring a client
authentication certificate that you don't have.

  More information on this error
Below is the original error message

Error 107 (net::ERR_SSL_PROTOCOL_ERROR): SSL protocol error.

-- 
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: Failure to write objects to HttpSession - NotSerializableException : LazyResult

2010-06-03 Thread Shawn Draper
Attached is the User object...

package com.gcf.core;

import java.util.*;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.NotPersistent;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;




/**
 * Individual user access object that grants access to the site/
application under the ownership of
 * a specified Account.  Additional utility methods are provided to
deliver enhanced and extendible
 * capability beyond the base requirements.
 *
 * @author smd0772
 *
 */
@PersistenceCapable
public class User  implements java.io.Serializable
{

/** Unique serial version id for this class */
@NotPersistent
private static final long serialVersionUID = 386273711850256872L;



/** Unique User ID ID */
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Long id;

/** Full name of the user */
@Persistent
private String fullName;

/** Username or login ID - used for authentication */
@Persistent
private String userName;

/** Password - used for authentication */
@Persistent
private String password;

/** Indicates the Account this user is associated with */
@Persistent
private long accountid;

/** Indicates the security group this user is associated with */
@Persistent
private long groupid;

/** Indicated the time of the last login */
@Persistent
private Date lastlogin;

/** Indicated the time of the previous last login */
@Persistent
private Date prevlastlogin;

/** Map of user defined attributes (email, contact #, etc) */
//@Persistent(serialized = true)
//private Map String,String attributes = new HashMap
String,String ( );

/** Map of custom dashboard query settings */
//@Persistent(serialized = true)
//private Map String,String parameters = new HashMap
String,String ( );




/**
 * CONSTRUCTOR - creates a new User object with the specified full
name,
 * user-id, and password.
 *
 * @param name (String) full user name
 * @param user (String) user id - used for authentication
 * @param pwd (String) password - used for authentication
 */
public User ( String name, String user, String pwd )
{
this.fullName = name;
this.userName = user;
this.password = pwd;
}




/**
 * Gets the Unique Identifier for this object.
 *
 * @return (long) unique id
 */
public long getID ( )
{
return id;
}

/**
 * Sets the Unique Identifier for this object.
 *
 * @param id (long) unique id
 */
public void setID ( long id )
{
this.id = id;
}

/**
 * Returns the full name of the user.
 *
 * @return (String) full user name
 */
public String getFullName ( )
{
return fullName;
}

/**
 * Sets the full name of the user.
 *
 * @param name (String) full user name
 */
public void setFullName ( String name )
{
this.fullName = name;
}

/**
 * Returns the user-id of the user.  This is used for
 * authentication.
 *
 * @return (String) user-id
 */
public String getUserID ( )
{
return userName;
}

/**
 * Sets the user-id of the user.  This is used for
 * authentication.
 *
 * @param id (String) user-id
 */
public void setUserID ( String id )
{
this.userName = id;
}

/**
 * Returns the password for this user.  This is used for
 * authentication.
 *
 * @return (String) password
 */
public String getPassword ( )
{
return this.password;
}

/**
 * Sets the password for this user.  This is used for
 * authentication.
 *
 * @return (String) password
 */
public void setPassword ( String pwd )
{
this.password = pwd;
}

/**
 * Returns the time of the last login.
 *
 * @return (Date) date
 */
public Date getLastLogin ( )
{
return lastlogin;
}

/**
 * Sets the time of the last login.
 *
 * @return (Date) date
 */
public void setLastLogin ( Date date )
{
this.lastlogin = date;
}

/**
 * Returns the time of the previous last login.
 *
 * @return (Date) date
 */
public Date getPreviousLastLogin ( )
{
return prevlastlogin;
}

/**
 * Sets the time of the previous last login.
 *
 * @return (Date) date
 */
public void setPreviousLastLogin ( Date date )
{
this.prevlastlogin = date;
}

/**
 * Returns the account-id this user is associated with.
 *
 * @return (Long) owning account-id
 */
public Long getOwningAccount ( )
{
return accountid;
}

/**
 * Sets the account-id this user is associated with.
 *
 

[appengine-java] Failure to write objects to HttpSession - NotSerializableException : LazyResult

2010-06-02 Thread Shawn Draper
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at java.util.HashMap.writeObject(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at
com.google.apphosting.runtime.jetty.SessionManager.serialize(SessionManager.java:
358)
... 39 more

Does anyone have any ideas on why this would be happening?

Thank you in advance for your help.

Shawn

-- 
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] java.lang.RuntimeException: java.io.NotSerializableException: + objectify framework

2010-04-12 Thread Shawn Brown
 I am using dwr and objectify framework to get the arraylist of string
 from datastore.
 But I am getting error.

 java.lang.RuntimeException: java.io.NotSerializableException

Well beyond that have you really gotten dwr to work in appengine.  If
so, it must be a pretty old version.

AFAIK, dwr uses threads and file writes.  Have you modified dwr to avoid those?

Shawn

-- 
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: Why should app startup times be a problem.

2010-03-29 Thread Shawn Brown
   It's boggled my mind from day 1 why instances
 aren't loaded in the background. I always assumed it would be addressed

What is difficult to understand?

1 server has X resources
warmed instanced require Y resources

X - YN = resources left over for the server to fulfill requests.

By reducing N (the number of warmed instances), you can increase the
capacity to fulfill actual requests.

By allowing us to pay for our own N, Google can presumably increase
the capacity of each server or can increase the number of servers.

I can see how it can cost Google to have unused apps loaded and ready
to immediately serve.  Can't you.

I don't see what the difficulty understanding is.

Shawn

-- 
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] GWT+JDO+GAE enhancement nightmare

2010-03-22 Thread Shawn Brown
 This seems pretty basic. Can somebody wake me from this nightmare?

Sorry, been there...

If I was starting over, I'd seriously think about:

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

for two reasons:

1) Objectify entities can be used in GWT without the need for Data
Transfer Objects.
2) it seems cold start up time is better when you take the jdo and
datanucleus stuff out. (judging by mail on this list)

There are much more knowledgeable people on this list but ... yeah I
know it's a nightmare to get it figured out in the beginning and don't
wonder if objectify isn't simpler.

Shawn

-- 
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] Discussion on will-it-play-in-app-engine

2009-12-21 Thread Shawn
WRONG**

You have:

Direct Web Remoting (DWR)
Version(s): 2.0.5, 3.0 RC1
Status: COMPATIBLE

If AppEngine does not support spawning new threads then 3.0RC1 won't
work out of the box  see http://old.nabble.com/DWR3RC1-threads-td23074328.html
and/or search the DWR mailing list for appengine to see progress on
what approaches people have tried.

--

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] GAE for few requests high processing

2009-12-13 Thread Shawn Brown
 My Java App anticipates few requests, but a lot of processing. Hence
 it was designed to be multi-threaded. Since the multiple threads are
 not allowed in GAE  max request processing time is only 30 secs with
 Task Queues, I'm looking at my options:
 1. How do you develop high background processing application with
 GAE ?

Have you seen http://code.google.com/appengine/docs/java/taskqueue/

Shawn

--

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] Why not use integer primary keys?

2009-12-12 Thread Shawn Brown
 Error in meta-data for my.syncdroidserver.Box.boxID: Unsupported
 primary key type: int

http://code.google.com/appengine/docs/java/datastore/creatinggettinganddeletingdata.html#Keys

--

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: Why not use integer primary keys?

2009-12-12 Thread Shawn Brown
Well this won't help to use id as an array index but...

  * As you've probably figured out, the datastore natively only
 supports two types of id, Long and String
  * Only Long will autogenerate

Key will autogenerate too won't it!

and from the api:

long com.google.appengine.api.datastore.Key.getId()
getId
public long getId()
Returns the numeric identifier of this Key.

Shawn

--

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: Failed to startup after ver 1.2.8 update

2009-12-06 Thread Shawn Brown
 Yes its like a official release I can breathe again.

 Then move back original question. How should I teach
 Eclipse of this update?

Can't you just update eclipse?

 Sorry I am writing from japan so Dec-5th is japan time and it means
 Dec-4th US west coast.

Actually I'm in Japan (Tokyo) myself.

Shawn

--

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: DWR SUPPORT

2009-12-04 Thread Shawn Brown
Hi,

   Some said GAE did not support DWR while I had read about
 Will it play in App Engine.It showed that 
 Direct Web Remoting (DWR)
 Version(s): 2.0.5, 3.0 RC1
 Status: COMPATIBLE

DWR uses threads for some things like reverse ajax.  For sure, that
will not work in appengine at least the way 3.0RC1 is written.  It
also writes files that don't work on appengine.  Long polling isn't
supported either.

I've seen people on the DWR list try to work around that, but I've
never seen a clean solution.  Maybe there is one though.  Here are
relevant posts from the DWR list
http://old.nabble.com/forum/Search.jtp?forum=13934local=yquery=dwr+appengine

Anyway, your undifined error is most likely:

1) the path to the DWR script is wrong
2) the path is correct but when your javascript on the client loads,
it send a call to the server to configure DWR. But by the time the
call returns, your javascript on the client has already moved on and
thrown the undefined error because DWR hadn't returned in time.  I saw
this with reverse ajax.

Shawn

--

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: Failed to startup after ver 1.2.8 update

2009-12-04 Thread Shawn Brown
  And So is it become
 official version at Dec-5th?

I think so.  Well Dec 4th.

 
http://groups.google.com/group/google-appengine-java/browse_thread/thread/18e49b1559752fae/fdf7c0bc29d6e74d?lnk=gstq=App+Engine+SDK+1.2.8+released+including+new+Admin+Console+features#fdf7c0bc29d6e74d


Shawn

--

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: Exception while trying to run app

2009-10-24 Thread Shawn Brown

see http://tinyurl.com/yzhwl6p

It's a known issue with upgrading.  Look at the top result.

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