[appengine-java] Re: Cannot retrieve filename with Complicated Chinese charaters in GAE

2012-02-13 Thread Tony Yang
Dear Sir,

Thanks but the problem is same after changing file encoding as code
below.

System.setProperty(file.encoding, Big5);
or
System.setProperty(file.encoding, UTF-8);



On 2月8日, 下午1時17分, Nichole nichole.k...@gmail.com wrote:
 I just looked at appengine System properties
 (System.getProperty('file.encoding').

 Thefilesystem encoding is set to ANSI_X3.4-1968.  You might tinker
 with trying to
 change that?

 On Feb 6, 10:51 pm, Tony Yang tonyyan...@gmail.com wrote:







  Dear Sir,
  Thanks a lot but the problem is still there.
  Attached more description below.
  1. input some files into directory /war/images/ , they're arefilenames of
  img01.jpg, img02.jpg ...中文img.jpg
  2. Assignfiledirectory in JSPfileby code below.
         FilemyFile = newFile(images/);
          String[] strFiles = myFile.list();
  3. Printfilenamein the assigned directory by JSP code below
           for(int i=0 ; i  strFiles.length ; i++){
  file_name = strFiles[i].toString();
      out.println(file_name);
           }
  4. Thefilenamewith traditional Chinese characters(中文) cannot be printed
  out but others are ok for printing.
  5. The mentioned problem only happened after deploying in GAE cloud but
  didn't happen in local Eclipse development environment.

  Please help and thanks again.

  On Mon, Feb 6, 2012 at 5:05 PM, Nichole nichole.k...@gmail.com wrote:
   With GFS you should be able to use any character in thenameof afile
   or directory except the null character,
   so you just need to form your string using the right encoding.

   String fileName = new String(str, UTF-8);  or use Big5 for encoding?

   And then make sure the jsp prints the character correctly by including
   the encoding in one of several
   ways.  Here's one way:
   %@ page language=java contentType=text/html; UTF-8
   pageEncoding=UTF-8 isELIgnored=false %

   On Feb 3, 7:44 pm, Tony Yang tonyyan...@gmail.com wrote:
Dear Sir,
Would you help me the problem below.
Environment : Java and JSP
Action :retrievefilename fromfilewith Complicated Chinese
characters.
Samplefile: A1-中文.jpg
Response :
1. OK for local Eclipse developing platform, thenameof 中文  can be
retrieved.
2. After deploying in GAE cloud, system sound having problem and skip
thisfileand no response.

Written code in JSPfile:
--
path_string = objFiles[i].toString();
index1 = path_string.lastIndexOf('-')+1;
index2 = path_string.indexOf('.');
file_name = path_string.substring(index1, index2)
%= file_name%
-
---thanks.

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

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



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

2012-02-13 Thread Luke
Is there any limit of maximum keys i can store in memcache in any
particular time. Can store billions of keys as long as each key not
exist hardlimit 1 mb? Is there any exacts number?

-- 
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: Redirect to original href when using federated login

2012-02-13 Thread Ice13ill
I believe you meant it is not a java issue :)

On Feb 9, 5:29 pm, Alexandru Farcaş alex.far...@expert-group.biz
wrote:
 You should try to get response from Google AppEngine group.
 I think that this is a java issue ...

 On Feb 1, 10:02 am, Ice13ill andrei.fifi...@gmail.com wrote:







  Also, when I used the Google accounts API option in my app settings, I
  remembered that after login, the redirect link back to my app,
  contained the characters after the history token ( # ).
  Is there a workaround for this? or is something I'm doing wrong?

  On Jan 31, 6:42 pm, Ice13ill andrei.fifi...@gmail.com wrote:

   I'm using federated login for my app authentication and I have the
   following issue: when users connect with google OpenID the auth
   service doesn't redirect to my original href (redirects to my domain +
   the url params but ignores all information after #).

   I use this method:
      userService.createLoginURL(requestURI, null, www.google.com/
   accounts/o8/id, new HashMap())

   When I test in development mode the redirection is ok.

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



Re: [appengine-java] max keys for memcache

2012-02-13 Thread Ikai Lan (Google)
There isn't a limit per se (that I know of), but our implementation of
Memcache has two LRU (least recently used) queues that are used to expire
content based on recency of access: a global LRU for that particular
Memcache instance, and an LRU for your app. The amount of memory used is
subject to change and I don't know it off the top of my head. I suspect you
will not be able to store a billion keys, however, as I am pretty sure
this'll go over the per app memory limits.

So the bigger question here is this: are you familiar with the concept of a
working set in computer science? Chances are good you will not need all
billion keys equally. Why not store all these objects in the datastore and
only store the most accessed in Memcache? The easiest implementation will
be to check memcache first before checking the datastore, and Memcache's
LRU expiration will just take care of the rest for you.

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



On Mon, Feb 13, 2012 at 4:18 AM, Luke travalle...@gmail.com wrote:

 Is there any limit of maximum keys i can store in memcache in any
 particular time. Can store billions of keys as long as each key not
 exist hardlimit 1 mb? Is there any exacts number?

 --
 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] Re: Handling ISO-8559-1 encoded parameter values in request

2012-02-13 Thread Bth
Have you found a solution to this problem? i have the same problem.
With utf-8 work good, but in ie7 or i6 the browser send  ISO-8859-1
encode and i can't get the parameter in google app engine in java.
For example .../page.html?name=ü The function
request.getParameter(url)  return ?.
In the log i can see the  ISO-8859-1  GET /page.html?name=%FC

Thanks for helps.

-- 
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] Billing setting enabled but not applied

2012-02-13 Thread Postdroid developer
Hi,

Billing setting has been enabled for few days now but the usage of
Recipients Emailed is 100% (100 of 100) and does not use Billable
emails.

Recipients Emailed quotas are not being reset, so its stuck at 100%

Did send an email to appengine_updated_pric...@google.com, but no
response

Please help



-- 
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] Mysql connection disaster occurred as soon as new sdk1.6.2 was installed.

2012-02-13 Thread 영현김


java.lang.RuntimeException: org.apache.commons.dbcp.SQLNestedException: 
Cannot create PoolableConnectionFactory (Could not create connection to 
database server.)

at com.happy.common.db.ibatis.BaseSqlMapDao.queryForObject(
BaseSqlMapDao.java:71)

at com.happy.common.db.biz.User.retrieveUser(User.java:36)

at ctl.actions.navigation.cmd.NEWLoginCmd.execute(NEWLoginCmd.java:68)

at agiweb.acc.command.CmdMachine.executeCommand(CmdMachine.java:66)

at agiweb.acc.command.CmdMachine.execute(CmdMachine.java:45)

at agiweb.tool.intercept.CmdInterceptor.doIntercept(CmdInterceptor.java:35)

at agiweb.tool.intercept.InterceptorChain.doIntercept(
InterceptorChain.java:82)

at agiweb.tool.intercept.ConverterInterceptor.doIntercept(
ConverterInterceptor.java:50)

at agiweb.tool.intercept.InterceptorChain.doIntercept(
InterceptorChain.java:82)

at agiweb.tool.intercept.FileUploadInterceptor.doIntercept(
FileUploadInterceptor.java:64)

at agiweb.tool.intercept.InterceptorChain.doIntercept(
InterceptorChain.java:82)

at ctl.svlmap.front.channel.GoogleAppSevlet.processAtGAE(
GoogleAppSevlet.java:31)

at ctl.svlmap.front.channel.GeneralServlet.catchService(
GeneralServlet.java:61)

at agiweb.acc.channel.AbsServlet.doPost(AbsServlet.java:91)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
ServletHandler.java:1166)

at ctl.svlmap.front.filter.AbstractSecurityFilter.doFilter(
AbstractSecurityFilter.java:107)

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
ServletHandler.java:1157)

at ctl.svlmap.front.filter.AbstractSecurityFilter.doFilter(
AbstractSecurityFilter.java:107)

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
ServletHandler.java:1157)

at ctl.svlmap.front.filter.WebContextFilter.doFilter(
WebContextFilter.java:64)

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
ServletHandler.java:1157)

at ctl.svlmap.front.filter.CharacterEncodingFilter.doFilter(
CharacterEncodingFilter.java:98)

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
ServletHandler.java:1157)

at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(
HeaderVerificationFilter.java:35)

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
ServletHandler.java:1157)

at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(
ServeBlobFilter.java:60)

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
ServletHandler.java:1157)

at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(
TransactionCleanupFilter.java:43)

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
ServletHandler.java:1157)

at com.google.appengine.tools.development.StaticFileFilter.doFilter(
StaticFileFilter.java:122)

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
ServletHandler.java:1157)

at com.google.appengine.tools.development.BackendServersFilter.doFilter(
BackendServersFilter.java:97)

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
ServletHandler.java:1157)

at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)

at org.mortbay.jetty.security.SecurityHandler.handle(
SecurityHandler.java:216)

at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)

at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)

at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)

at com.google.appengine.tools.development.DevAppEngineWebAppContext.handle(
DevAppEngineWebAppContext.java:78)

at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)

at 
com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(
JettyContainerService.java:362)

at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)

at org.mortbay.jetty.Server.handle(Server.java:326)

at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)

at org.mortbay.jetty.HttpConnection$RequestHandler.content(
HttpConnection.java:938)

at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)

at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)

at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)

at org.mortbay.io.nio.SelectChannelEndPoint.run(
SelectChannelEndPoint.java:409)

at org.mortbay.thread.QueuedThreadPool$PoolThread.run(
QueuedThreadPool.java:582)

Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create 
PoolableConnectionFactory (Could not create connection to database server.)

at org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(
BasicDataSource.java:1549)

at org.apache.commons.dbcp.BasicDataSource.createDataSource(
BasicDataSource.java:1388)

at 

[appengine-java] Re: Setting headers to static files / resources

2012-02-13 Thread Itsu Tamam
@Rick, thanks for you help, the solution you purpose will surly work.
Also love UrlRewriteFilter.

@Andrew, yes - this is what we need.

On Feb 13, 9:35 am, andrew andrew.macken...@bcntouch.com wrote:
 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.