Re: [google-appengine] HttpOnly-Cookie in Java?

2014-05-26 Thread Stephan Hartmann
Hi Stephanos, Please find here some suggenstions how to set the httponly flag for session cookies on servlet containers prior to JEE6: https://www.owasp.org/index.php/HttpOnly#What_is_HttpOnly.3F Best regards, Stephan 2014-05-26 10:22 GMT+02:00 stephanos stephan.beh...@gmail.com: Hey Vinny,

Re: [google-appengine] HttpOnly-Cookie in Java?

2014-05-26 Thread Stephan Hartmann
request? And it seems to only work after the 2nd HTTP request? Regards Stephan :) On Monday, May 26, 2014 12:57:30 PM UTC+2, Stephan Hartmann wrote: Hi Stephanos, Please find here some suggenstions how to set the httponly flag for session cookies on servlet containers prior to JEE6

Aw: [google-appengine] getObjectByID ended abruptly...no exception; nothing

2014-03-14 Thread Stephan Hartmann
Maybe there is a RuntimeExcepiton (e.g. the simplest would be an NPE cause your mgr is null). You could change to catch all java.lang.Exceptions or even Throwable and look if you can debug into the catch block. Best regards, Stephan Gesendet:Montag, 10. Mrz 2014 um 20:40 Uhr

Aw: Re: [google-appengine] How is MD5 hash of a blobstore blob encoded?

2014-03-11 Thread Stephan Hartmann
Hi Vinny, Thanks for your time. Ive uploaded an empty file and here is what I get from BlobInfo.getMd5Hash(): Development Server: d41d8cd98f00b204e9800998ecf8427e AppEngine Prod: ZDQxZDhjZDk4ZjAwYjIwNGU5ODAwOTk4ZWNmODQyN2U= Hope you can shed some light on this. I dont expect that it

Aw: Re: Re: [google-appengine] How is MD5 hash of a blobstore blob encoded?

2014-03-11 Thread Stephan Hartmann
Hi Vinny, hi Barry, In my first test I assumed that Base64 was used on Prod to encode the binary data of the md5 hash (as base64 is meant for encoding raw 8bit binary data). So I tried to decode it to a byte array, assuming it would be the md5 hash and encoding it with hex encoding. But as

[google-appengine] How is MD5 hash of a blobstore blob encoded?

2014-03-10 Thread Stephan Hartmann
Hi together, On the development server BlobInfo.getMd5Hash() returns a String (why not binary array?) that seems to be the hex endoded hash value. I can proof this true with hashing the file locally. However on Appengine getMd5Hash() returns something different. It seems to be Base64

Re: [appengine-java] Re: session management

2010-05-31 Thread Stephan Hartmann
and opens a new browser and we can still identify the client using session cookies? Thanks Romesh On Thu, May 27, 2010 at 10:42 PM, Stephan Hartmann hartm...@metamesh.dewrote: Keep in mind that sessions managed by the servlet container expire after a specific time of inactivity

Re: [appengine-java] Re: session management

2010-05-27 Thread Stephan Hartmann
Keep in mind that sessions managed by the servlet container expire after a specific time of inactivity on the server side, so if a user comes back after a while with his old session cookie, he will still get a new session. According to the servlet spec, you can obtain this value with

Re: [google-appengine] Unresolvable account discrepancy - Google Apps vs. Google Accounts

2010-05-20 Thread Stephan Hartmann
I had some similar problems. I changed the (primary) e-mail address of my google account to another private one. Regards, Stephan 2010/5/19 thomp...@avaion.com thomp...@avaion.com I'm not sure how I even got in this predicament, or how it can be resolved, but here it is: - I have a google

Re: [google-appengine] Per-domain data stores and selling our apps to people who use google domains...

2010-05-07 Thread Stephan Hartmann
Hi Andy, In general i like your idea and i stared it. Do i understand it right, that you could already achieve this, if every customer would have its own GAE account and deploy your app to it and add it to his apps domain? You just want to make this process a one-click-buy in the Google

Re: [appengine-java] Session and AppEngine

2010-05-05 Thread Stephan Hartmann
What is your logic that initiates a session? The container does not create a session if there is no need for it. In a servlet you can initiate a session by calling HttpServletRequest.getSession(true) and in a JSP by adding the attribute session=true to a page directive. Regards,

Re: [appengine-java] Servlet request parameters empty

2010-05-04 Thread Stephan Hartmann
if you want to get your data as request parameter, you should use GET instead of POST and /or let the default contentType application/x-www-form-urlencoded and create your json object as either var json = {name: test}; // and let jquery convert it to a query string or var json =

Re: [appengine-java] Re: Servlet request parameters empty

2010-05-04 Thread Stephan Hartmann
, Stephan On May 4, 2:07 am, Stephan Hartmann hartm...@metamesh.de wrote: if you want to get your data as request parameter, you should use GET instead of POST and /or let the default contentType application/x-www-form-urlencoded and create your json object as either var json

Re: [google-appengine] Catch-all filter forwarding help

2010-04-21 Thread Stephan Hartmann
Usually, just calling chain.doFilter(req, res) would do the trick. 2010/4/21 Mark mar...@gmail.com Hi, I am trying to use a catch-all filter to support something like mod_rewrite on apache. The goal was to let users enter a username in the url like: www.mysite.com/johndoe and then

Re: [google-appengine] Re: Deployment of existing app from the web

2010-03-30 Thread Stephan Hartmann
2010/3/30 Wooble geoffsp...@gmail.com Shouldn't they be able to do so from within the web interface ? This is basically what the App Marketplace does. For Apps Marketpalce you need a Google Apps account and the app must be offered there. Also, my understanding of integrating Google App

Re: [google-appengine] Re: popularity of Python vs Java on GAE

2010-03-25 Thread Stephan Hartmann
You could also check the download counts for the different SDKs: http://code.google.com/p/googleappengine/downloads/list 2010/3/25 Tim Hoffman zutes...@gmail.com May be java dudes have more issues ;-) No seriously java may be more popular for app engine than python, but don't assume that

Re: [google-appengine] Investigation GAE

2010-03-25 Thread Stephan Hartmann
Have a look at the terms of service, especially section 10.2 http://code.google.com/intl/en/appengine/terms.html 2010/3/24 Jason Funk jasonlf...@gmail.com Hello, I have an idea for a web application and am starting to do research on the design and implementation. I ran across GAE and it

Re: [google-appengine] Re: Investigation GAE

2010-03-25 Thread Stephan Hartmann
I wouldn't set Prerelease = experimental feature (maybe someone from Google could put some light in here). However, e.g. the blobstore and task queue APIs are currently labled as experimental. 2010/3/25 Jason Funk jasonlf...@gmail.com Have a look at the terms of service, especially section

Re: [google-appengine] Re: Investigation GAE

2010-03-25 Thread Stephan Hartmann
. Off the top of my head, this includes Blobstore, Task Queues and the bulk loader tool. On Thu, Mar 25, 2010 at 11:00 AM, Stephan Hartmann hartm...@metamesh.de wrote: I wouldn't set Prerelease = experimental feature (maybe someone from Google could put some light in here). However, e.g

Re: [google-appengine] Re: Few questions about commercial use

2010-03-17 Thread Stephan Hartmann
You have to register your Domain mojafirma.pl with Google Apps. Then in the dashboard of the domain administration you can add new services, i.e. an Google App Engine app by entering its id. After you have added your App Engine app you can setup a subdomain for it, like www.mojafirma.pl Regards,

Re: [appengine-java] Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.

2010-03-16 Thread Stephan Hartmann
Your JSP file should be not a relative path but absolute, i.e. jsp-file*/absoulute/path/to/*mountain.jsp/jsp-file 2010/3/16 Chris christoph.wor...@gmail.com Hi, I've got a strange problem with (I believe) my servlet mapping. I'm trying to map all requests for /mountain/* to a JSP file

Re: [appengine-java] what if I hit memory limit ?

2010-03-10 Thread Stephan Hartmann
You should use memcache instead of your servlet env. The memcache service will evict values if you run out of memory. 2010/3/10 Prashant Gupta nextprash...@gmail.com Hi, I have designed my app to keep data (within servlet env.) for all previous requests. For each request it will first

Re: [appengine-java] Sporadic problems with very high response times

2010-03-04 Thread Stephan Hartmann
Hi Ikai, i wonder what exactly happens in a loading request before the first component (piece of code) of an app is hit? In my case it is a ServletContextListener and the time between the first log entry of the container for the request and the the log entry from my contextInitialized method

Re: [appengine-java] getting host headers in Java

2010-03-03 Thread Stephan Hartmann
It is part of the servlet spec: javax.servlet.ServletRequest.getServerName() 2010/3/3 deuce4 lynx...@gmail.com Hi, I would like to use the subdomains of my appspot.com domain to set initial user parameters. I'm not really sure how to do this in Java. Google provides the Python example

Re: [appengine-java] Re: Problem with persistance

2010-02-25 Thread Stephan Hartmann
I think in your Offer class you should use getter/setter for mOfferDetail (not a constructor to set the field). 2010/2/25 Anton Klotz dipl.ing.akl...@googlemail.com Hi Jake, thanks a lot for your answer. After changing the mappedBy statement to child like this:

Re: [appengine-java] Re: Problem with persistance

2010-02-25 Thread Stephan Hartmann
2010/2/25 datanucleus andy_jeffer...@yahoo.com I think in your Offer class you should use getter/setter for mOfferDetail (not a constructor to set the field). Can't see why that would make the slightest difference. What does appear iffy is that if you have a bidirectional relation then the

Re: [appengine-java] Re: how to do initialization at startup?

2010-02-18 Thread Stephan Hartmann
, you have to do some creative work-around as proposed in GAE documentation. Am I making sense? In any case, I'm hoping someone has an easy/reliable way to keep tracking a counter in memory within GAE. I'll appreciate any suggestion. -aj On Wed, Feb 17, 2010 at 1:56 PM, Stephan Hartmann

Re: [appengine-java] How to pass paramters to servlet deployed on GAE?

2010-02-18 Thread Stephan Hartmann
You say http://appid.appspot.com/test1/ hits the servlet. What happens without a trailing slash? Is it redirected? How does your servlet mappings look like? 2010/2/18 barak barak.ya...@gmail.com Hello all, I've a test servlet to deploy on gae platform, which just read paramters from the

Re: [appengine-java] Re: How to pass paramters to servlet deployed on GAE?

2010-02-18 Thread Stephan Hartmann
servlet-mapping servlet-nametest1/servlet-name url-pattern/test1/*/url-pattern /servlet-mapping On Feb 18, 6:41 pm, Stephan Hartmann hartm...@metamesh.de wrote: You sayhttp://appid.appspot.com/test1/hits the servlet. What happens without a trailing slash? Is it redirected

Re: [appengine-java] Null Pointer Exception at the time of transaction commit.

2010-02-17 Thread Stephan Hartmann
Could you please provide the source of your Employee and Department classes? And AFAIK you must not use full qualified class names in queries but the simple class name (Department only). Regards, Stephan 2010/2/16 Sushama Khadilkar sush.khadil...@gmail.com package

Re: [appengine-java] how to do initialization at startup?

2010-02-17 Thread Stephan Hartmann
Your app becomes shut down if it does not receive any requests for some time. After that, the next request will initiate a new startup sequence, so the implementation of the servlet spec is correct. You should also implement ServletContextListener.contextDestroyed() to perform cleanup of your

Re: [appengine-java] Null Pointer Exception at the time of transaction commit.

2010-02-17 Thread Stephan Hartmann
). Regards, Stephan 2010/2/17 Sushama Khadilkar sush.khadil...@gmail.com Thanks Stephan Hartmann, But there is another problem now . Does the DataStore will have a Foreign Key of Department in Employee? And , is it visible in the Employee table? Following are my POJO's

Re: [appengine-java] Re: Caching pages.

2010-02-17 Thread Stephan Hartmann
You may consider using OSCache (http://www.opensymphony.com/oscache/) for caching parts of JSPs with its JSP tags or whole responses (don't know if it works with GAE). Cheers, Stephan 2010/2/13 abhi abhishek9...@gmail.com @ bimbo jones - Thanx , thats a good idea, i guess i found out how to

Re: [appengine-java] Suggested migration path for Web app using realm auth and offering web service.

2010-02-17 Thread Stephan Hartmann
For authentication you could use Securityfilter ( http://securityfilter.sourceforge.net/) or Acegi (Spring Security, http://www.acegisecurity.org/) Don't know if either of them works with GAE. About Acegi there has been little discussion here on the list i think. Regards, Stephan 2010/2/17

Re: [appengine-java] filereading error

2010-02-17 Thread Stephan Hartmann
i think the correct pattern is **/*.csv 2010/2/17 cscsaba strongfr...@gmail.com Hello, What is the right way to reading files on GAE I made this preparation below in appengine-web.xml ... resource-files include path=/**.csv / /resource-files ... but I got this error:

Re: [appengine-java] Re: filereading error

2010-02-17 Thread Stephan Hartmann
Hello Stephan, I have tried several combination of include path without result. http://imagebin.org/85235 It seems to me something other factor prevent reading this csv. Have you tried to read resource file on GAE ? On Feb 17, 7:22 pm, Stephan Hartmann hartm...@metamesh.de wrote: i think

Re: [appengine-java] Re: App Engine and Spring slow start up

2010-02-17 Thread Stephan Hartmann
The problem is that the initialization of your app takes longer than 30 seconds. Pinging your app doesn't help when the app is restarted due to redeployment or maintenance, or when high traffic demands a second instance. You should try to reduce your startup time. regards, Stephan 2010/2/17

Re: [appengine-java] Re: how to do initialization at startup?

2010-02-17 Thread Stephan Hartmann
Hi AJ, Your consideration is not specific to GAE. You always have the potential risk that a server could crash and then all your unstored data changes will get lost. So for critical data you should use a write-through cache. However, in a distributed environment like GAE (but not specific to GAE,

Re: [appengine-java] Content caching and Compression

2010-02-16 Thread Stephan Hartmann
AFAIK gzip compression is turned on by default. You can verify this by looking at the content-encoding response header (i use the Live HTTP headers plugin for firebug/firefox). Regards, Stephan 2010/2/15 zainul franciscus zainul.francis...@gmail.com I was browsing through Google App Engine

Re: [appengine-java] Mail API / Sender Email Address

2010-02-16 Thread Stephan Hartmann
You could try to login to app-engine with your google apps account under https://appengine.google.com/a/YOURDOMAIN.COM/ Of course you have to create and deploy a new app instance in this account. I guess it is related to the fact that real google accounts (like google mail) and google apps

Re: [appengine-java] Re: App instance recycling and response times - is there solution?

2010-01-14 Thread Stephan Hartmann
Jeff, in one point i disagree. In a high available einvironment you would have a cluster of load balanced application servers and you would deploy new versions of your app in turn, one at a time. So if one instance is down the other(s) will continue serving your users (though it might require

Re: [appengine-java] Problem in uploading jsp file

2009-11-24 Thread Stephan Hartmann
You are using a Java Runtime Environment (JRE) which does not include a compiler. You have to use a JDK instead. Regards, Stephan sahil mahajan schrieb: Hello I am working on java google app engine. When I try to upload my application, I receive following error Error Details: Nov

Re: [appengine-java] Re: Xalan

2009-11-19 Thread Stephan Hartmann
It seems that the classes of the JSTL are loaded by a different classloader than the webapp classloader. Because this class loader does not have xalan in place, it fails. Could you please add xalan to the classpath of this classloder? (If i do this in the eclipse plugin, it works, but only in