Re: [appengine-java] Custom location for local_db.bin?

2011-01-16 Thread m seleron
Hi,

It might be solved by this thought is not a direct answer.
http://groups.google.com/group/google-appengine-java/browse_thread/thread/3647a2d262386b41

please try thanks.

2011/1/16 A. Stevko andy.ste...@gmail.com:
 Why not just back it up or check-in to version control?
 Another option is to use ln -s to move it.
 On Sat, Jan 15, 2011 at 10:29 AM, Daniel Kvasnicka jr.
 daniel.kvasnicka...@gmail.com wrote:

 Hey,
 is it possible to customize the location of local_db.bin? I need it to be
 somewhere outside the application, so that it doesn't get harmed.
 I'm using NetBeans to develop apps and Clean  Build always destroys my
 data.
 There must be some option for this, e.g. in appengine-web.xml, right?

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



 --
 -- A. Stevko
 ===
 If everything seems under control, you're just not going fast enough. M.
 Andretti




 --
 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] JSP code debug: Compiled JSP location in local environment

2010-05-04 Thread m seleron
Hi,

The following threads might be useful though it depends on the
operation system that you are using.

http://groups.google.com/group/google-appengine-java/browse_thread/thread/e63281b3e3d1b05/9b12a70f5172c6c1

Hope some of this helps.
thanks.

 Hi

 I got following error in my local enviroment of Google App Eng with
 Eclipse plugin:
 at org.apache.jsp.scoreresult_jsp._jspService(scoreresult_jsp.java:
 161)

 I would like to see the code on line 161 of compiled scoreresult.jsp
 file. But I can't find out the location of it. Anyone can tell me
 where the default folder locatoin for compiled .jsp files and also how
 you debug jsp code when error is on .jsp but no error on your .java
 file?

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



Re: [appengine-java] Re: JAXB

2010-05-01 Thread m seleron
Hi,

I think that it is possible
by using memcache or datastore.

Though you might already have seen
I think that the link where post was done by Duong BaTien is useful.

Please try variously.
thanks.

 Thanks saleronm
 I share your sample application adn its working.
 I have question, whether is there a possibility that we store file as xml on
 Google app engine???
 If a have file as xml so can i marshal/unmarshal or modify it ??
 Your example is wery helpful but can i save result in file ??

 Thanks for your 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-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.



Re: [appengine-java] String datatype

2010-04-26 Thread m seleron
Hi.

I guess this covers the question.

http://code.google.com/p/googleappengine/issues/detail?id=2519

thanks.

 http://code.google.com/intl/en/appengine/docs/java/datastore/dataclasses.html
 short text string is 500 characters or 500 bytes?

 For example Russian characters encoded by two bytes of UTF-8.

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



Re: [appengine-java] does gae4java 1.3.3 not suppote flag --use_sqlite.

2010-04-25 Thread m seleron
Hi,

I think the offer only to SDK of the python edition of [--use_sqlite].

thanks.


 I got error
 ---

 Usage: dev-appserver [options] war directory

 Options:
  --help, -h                 Show this help message and exit.
  --server=SERVER            The server to use to determine the latest
  -s SERVER                   SDK version.
  --address=ADDRESS          The address of the interface on the local
 machine
  -a ADDRESS                  to bind to (or 0.0.0.0 for all
 interfaces).
  --port=PORT                The port number to bind to on the local
 machine.
  -p PORT
  --sdk_root=root            Overrides where the SDK is located.
  --disable_update_check     Disable the check for newer SDK versions.
 -

 when add --use_sqlite=true to arguments;

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



Re: [appengine-java] Re: AuthSub InvalidToken problem

2010-03-31 Thread m seleron
Hi,

I made a simple sample.

Please try.
I hope I can be of some help to you.

thanks.


2010/3/31 nicanor.babula nicanor.bab...@gmail.com:
 Hmm? No idea? ;)
 Thanks in advance.

 On Mar 30, 10:06 am, nicanor.babula nicanor.bab...@gmail.com
 wrote:
 That's all the code that deals with google services in my whole
 application. The exception is raised on the following instruction:
 [code]
 CalendarEventFeed resultFeed = calendarService.query(myQuery,
 CalendarEventFeed.class);
 [/code]

 What about the environment? You are saying that I might have included
 jars that could interfere with auth sub? Are there any known
 conflictual libraries? I have simply included all the jars shipped
 with the gdata-samples package.

 On Mar 30, 4:51 am, seleronm seler...@gmail.com wrote:

  Hi,

  I was not able to have them reproduce behavior though I tried a
  little.
  (It was possible to execute it normally).

  Can post do you the source code further?
  I want to confirm behavior.

  Or, the environment might be a cause.

  thank.

   Come on!
   Anyone, anything?

   Thanks.

   On Mar 26, 12:54 pm, nicanor.babula nicanor.bab...@gmail.com
   wrote:

Hi all,

I am facing a strange problem in with my app in GAE and I can't seem
to figure it up by myself, so I hope you'll help me.. Here we are:

I do :

[code]
String authSubUrl = AuthSubUtil.getRequestUrl(nextUrl, 
http://www.google.com/calendar/feeds/default/private/full;, false, 
true);
response.sendRedirect(authSubUrl);
[/code]

in my servlet in order to get an auth subtoken. And the servlet at
nextUrl does:
[code]
String oneTimeUseToken =
AuthSubUtil.getTokenFromReply(request.getQueryString());
if(oneTimeUseToken != null){
  String sessionToken =
AuthSubUtil.exchangeForSessionToken(oneTimeUseToken, null);
  // persist the sessiontoken}

// redirect to the page using google services
[/code]
in order to retrieve and persist the sessiontokenalong with other
user information.

The problem is that when later I do:
[code]
URL feedUrl = new URL(http://www.google.com/calendar/feeds/default/
private/full);
CalendarQuery myQuery = new CalendarQuery(feedUrl);
CalendarService calendarService = new CalendarService(some-app-
name);
calendarService.setAuthSubToken(currentUser.authSubToken, null);
CalendarEventFeed resultFeed = calendarService.query(myQuery,
CalendarEventFeed.class);
[/code]

It says that thetokenisinvalid, and raises this exception:
[code]
cri.domodentweb.server.rpc.CalendarEventsServiceImpl getEventsDev:
null
com.google.gdata.util.AuthenticationException: OK
HTML
HEAD
TITLETokeninvalid-InvalidAuthSubtoken./TITLE
/HEAD
BODY BGCOLOR=#FF TEXT=#00
H1Tokeninvalid-InvalidAuthSubtoken./H1
H2Error 401/H2
/BODY
/HTML

        at
com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGData
 Request.java:
596)
        at
com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleG
 DataRequest.java:
563)
        at
com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataReques
 t.java:
550)
        at
com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java
 :
530)
        at
com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.
 java:
535)
        at com.google.gdata.client.Service.getFeed(Service.java:1102)
        at com.google.gdata.client.Service.getFeed(Service.java:1044)
        at 
com.google.gdata.client.GoogleService.getFeed(GoogleService.java:
662)
        at com.google.gdata.client.Service.query(Service.java:1204)
        at com.google.gdata.client.Service.query(Service.java:1145)
        at
cri.domodentweb.server.rpc.CalendarEventsServiceImpl.getEventsDev(CalendarE
 ventsServiceImpl.java:
133)
        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
com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.M
 ethod_
$1.run(Method_.java:165)
        at java.security.AccessController.doPrivileged(Native Method)
        at
com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.M
 ethod_.privilegedInvoke(Method_.java:
163)
        at
com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.M
 ethod_.invoke_(Method_.java:
124)
        at
com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.M
 ethod_.invoke(Method_.java:
43)
        at

Re: [appengine-java] Problem with AppStats

2010-03-29 Thread m seleron
Hi,

I tried.
After successfully running the following was added to the web.xml.

servlet
servlet-nameappstats/servlet-name

servlet-classcom.google.appengine.tools.appstats.AppstatsServlet/servlet-class
/servlet
servlet-mapping
servlet-nameappstats/servlet-name
url-pattern/appstats/*/url-pattern
/servlet-mapping

security-constraint
web-resource-collection
url-pattern/appstats/*/url-pattern
/web-resource-collection
auth-constraint
role-nameadmin/role-name
/auth-constraint
/security-constraint
filter
filter-nameappstats/filter-name

filter-classcom.google.appengine.tools.appstats.AppstatsFilter/filter-class
init-param
param-namelogMessage/param-name
param-valueAppstats available:
/appstats/details?time={ID}/param-value
/init-param
/filter
filter-mapping
filter-nameappstats/filter-name
url-pattern/*/url-pattern
/filter-mapping


I think that I should confirm the environment such as jar files
when there is no difference compared with your web.xml .

please try.
thanks.



2010/3/27 George Tang george.tang...@gmail.com:
 Hey Everyone,

 I just downloaded the new SDK and i was excited to use app stats.
 After following the instructions to set it up, I tried testing it on
 my localdev server and I got a nullpointerexception

 WARNING: /appstats/stats
 java.lang.NullPointerException
        at java.io.Reader.init(Reader.java:61)
        at java.io.InputStreamReader.init(InputStreamReader.java:80)
        at
 com.google.appengine.tools.appstats.TemplateTool.loadTemplateSource(TemplateTool.java:
 115)
        at com.google.appengine.tools.appstats.Renderer
 $1.loadTemplateSource(Renderer.java:41)
        at
 com.google.appengine.tools.appstats.TemplateTool.getTemplate(TemplateTool.java:
 142)
        at
 com.google.appengine.tools.appstats.TemplateTool.format(TemplateTool.java:
 100)
        at com.google.appengine.tools.appstats.Renderer
 $1.format(Renderer.java:51)
        at
 com.google.appengine.tools.appstats.Renderer.renderSummaries(Renderer.java:
 66)
        at
 com.google.appengine.tools.appstats.AppstatsServlet.doGet(AppstatsServlet.java:
 99)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
 511)
        at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1166)
        at
 com.google.appengine.tools.appstats.AppstatsFilter.doFilter(AppstatsFilter.java:
 92)
        at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
        at
 com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
 51)
        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
 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.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
 70)
        at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
 152)
        at com.google.appengine.tools.development.JettyContainerService
 $ApiProxyHandler.handle(JettyContainerService.java:349)
        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.headerComplete(HttpConnection.java:923)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
        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)

 Anyone have any idea why?

 --
 You received this 

Re: [appengine-java] CPU Quota Exceeded on Startup

2010-03-28 Thread m seleron
Hi,

The previous benchmark was carried out may be useful to you
http://groups.google.com/group/google-appengine/browse_thread/thread/11b2f2b425e10e38/

In the future, in the roadmap [Ability to reserve instances to reduce
application loading overhead]
By and expects to be alleviated.

thanks.

2010/3/27 Hanshew jhans...@pacbell.net:
 I have uploaded a Ruby on Rails app that is very difficult to get
 going because of the CPU quota.  I can sometimes get access by hitting
 refresh multiple times.  After it gets going I can use it, but if I
 wait too long I begin to get the Internal Server Error message
 again.  This is a very simple Rails app.  This feature of appengine
 will make it incompatible with Rails apps if it persists.

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



Re: [appengine-java] Configure the password for the account of Google App Engine in Eclipse

2010-02-26 Thread m seleron
Hi,

I think that the input of the password is necessary for deploy with
plugin of eclipse.

Though it might be a little difficult
I think that I can decrease the input frequency of the password if
deply that uses [appcfg] .

Please Try
thanks.


 Hello, How can I, to avoid tedious re-enter password when deploying in
 an Eclipse application, configure the password for the account google
 app engine once and for all.

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



Re: [appengine-java] Cron is not working

2010-02-25 Thread m seleron
Hi.

What is output to [admin console]-[Logs]-[Requests only]?

please Confirm.
thanks.


2010/2/25 Sowji sowji.ap...@gmail.com

  Hi to all,

  Crons in google app engine is not working for me.

  could you please help me.

 cron.xml
 -

 ?
 xml version=*1.0* encoding=*UTF-8*?

 cronentries

 cron

 url/*emailing*/url

 descriptionrepeated every one hour/description

 scheduleevery 1 hours/schedule

 /cron

 /cronentries


 *

 my application have the servlet for url emailing

 My admin console show status as follows

   Cron Job Schedule/Last Run/Last Status (All times are UTC)  /emailing

 repeated every one hour every 1 hours (UTC)
2010-02-25 07:11:16 on time Too many continues



 Please anybody tell me what was my mistake.



 Thanks,

 Lakshmi.


 *



 --
 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.comgoogle-appengine-java%2bunsubscr...@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.



Re: [appengine-java] Re: Unable to upload application - Total refill rate must not exceed 20 per second

2010-02-17 Thread m seleron
HI,
I'm sorry my information is useful in that no.

I do not think that I limit a unique queuename if app-id is different.


2010/2/14 Ronin gauravwad...@gmail.com:
 I dont think it is related to queue configuration. All the queue rates
 are below 20. I cant upload this as a  second application ( with a new
 app id ). But I can upload this as the first application. There is
 some connection between app ids  queue configs. Should the queuenames
 be unique across multiple applications ?


 On Feb 6, 3:18 pm, seleronm seler...@gmail.com wrote:
 hi.

 I guessed because I paid attention to the following parts.
 [Invalid queue configuration. Totalrefillratemust not exceed 20 per second 
 (is 24.0).]

 queue.xml the rate numbers may have to decrease

 Please try.
 thanks.

 hi,

 I'm unable to upload the application to GAE.

 Check logs 
 Unable to update:
 java.io.IOException: Error posting to URL:
 http://appengine.google.com/api/queue/update?app_id=nsecharts-testve...
 400 Bad Request
 Invalid queue configuration. Totalrefillratemust not exceed 20 per
 second (is 24.0).

     at
 com.google.appengine.tools.admin.ServerConnection.send(ServerConnection.java:
 143)
     at
 com.google.appengine.tools.admin.ServerConnection.post(ServerConnection.java:
 81)
     at
 com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java:
 427)
     at
 com.google.appengine.tools.admin.AppVersionUpload.updateQueue
 (AppVersionUpload.java:
 157)
     at
 com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.
 java:
 121)
     at
 com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:
 56)
     at com.google.appengine.tools.admin.AppCfg
 $UpdateAction.execute(AppCfg.java:521)
     at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:130)
     at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:58)
     at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:54)
 com.google.appengine.tools.admin.AdminException: Unable to update app:
 Error posting to URL:http://appengine.google.com/api/queue/update?app_id=
 nsecharts-testversion=1
 400 Bad Request
 Invalid queue configuration. Totalrefillratemust not exceed 20 per
 second (is 24.0).

     at
 com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:
 62)
     at com.google.appengine.tools.admin.AppCfg
 $UpdateAction.execute(AppCfg.java:521)
     at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:130)
     at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:58)
     at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:54)
 Caused by: java.io.IOException: Error posting to URL:
 http://appengine.google.com/api/queue/update?app_id=nsecharts-testve...
 400 Bad Request
 Invalid queue configuration. Totalrefillratemust not exceed 20 per
 second (is 24.0).

     at
 com.google.appengine.tools.admin.ServerConnection.send(ServerConnection.java:
 143)
     at
 com.google.appengine.tools.admin.ServerConnection.post(ServerConnection.java:
 81)
     at
 com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java:
 427)
     at
 com.google.appengine.tools.admin.AppVersionUpload.updateQueue
 (AppVersionUpload.java:
 157)
     at
 com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.
 java:
 121)
     at
 com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:
 56)
     ... 4 more

 --
 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 athttp://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.



-- 
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: can't send attachment via Java Mail API supported by GAE

2010-02-05 Thread m seleron
Hi.

I'm sorry for being not able to explain well.
Please try the following sources.

code

MimeMessage msg = new MimeMessage(session);

Multipart mp = new MimeMultipart();

//attachmentPart
MimeBodyPart attachment = new MimeBodyPart();
attachment.setFileName(videoimage.jpeg);
ByteArrayDataSource byteArrayDataSource = new
ByteArrayDataSource(theByteArray, image/jpeg);
javax.activation.DataHandler datahandler = new
javax.activation.DataHandler(byteArrayDataSource);
attachment.setDataHandler(datahandler);
mp.addBodyPart(attachment);

//MessagePart(body)
MimeBodyPart body = new MimeBodyPart();
body.setText(Message_sample); //set message
mp.addBodyPart(body);

msg.setContent(mp);

msg.setFrom(fromIaddress); // set from
msg.addRecipient(Message.RecipientType.TO, toIaddress); // set to
msg.setSubject(subject_sample); //set subject

Transport.send(msg);

/code


I confirm that I received in Gmail.

If it is useless in this method
The value of theByteArray might have to be confirmed.

thanks.


2010/2/5 Nehul neh...@gmail.com:
 Can you please explain what you mean?

 On Feb 4, 6:38 am, seleronm seler...@gmail.com wrote:
 Hi.

 I think that I can transmit if it is shape that stores
 msg and attachement in each Part

 Please try.
 thanks.



 Multi-Part Messages

 I can't send attachment (simple image file) to email but normal text
 email is working.

 code
                             MimeMessage msg = new MimeMessage
 (session);

                         Multipart mp = new MimeMultipart();

                         MimeBodyPart attachment = new MimeBodyPart();
                         attachment.setFileName(videoimage.jpeg);
                         attachment.setContent(theByteArray, image/jpeg);
                         attachment.setText(request.getParameter(msg));

                         mp.addBodyPart(attachment);
                         msg.setContent(mp);

                         msg.setFrom(new InternetAddress
 (neh...@gmail.com,Reply to));
                         msg.addRecipient(Message.RecipientType.TO, new
 InternetAddress(toe,1.3 users));
                         msg.setSubject(request.getParameter(subject));

                         Transport.send(msg);
 /code

 I am using GAE 1.3.0 for Java.

 --
 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 athttp://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.



-- 
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] Key question

2010-01-24 Thread m seleron
Hi,

I think that I cannot use Object as Key.

Please refer to the following links

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

thanks.


2010/1/25 jopaki jop...@gmail.com:
 Can I represent a primary key (Key) in an entity class as an Object
 ref?  In other words, can I do:

 @PersistenceCapable(identityType = IdentityType.APPLICATION)
 public Class AnEntity {

 �...@primarykey
 �...@persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
  private Object pk;

 }

 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.



-- 
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: Statistics Query returns null Entity for statistic entity on Development Server

2010-01-18 Thread m seleron
Hi,
I found the thread that looked like.

http://groups.google.com/group/google-appengine-java/browse_thread/thread/f2595bcaa2256a93/68a5a9a28502410b?lnk=gstq=Statistics#68a5a9a28502410b

In Development Server, statistics seems to return NULL.

thanks.

On 1月19日, 午前2:00, Stuart Moffatt stuartmoff...@gmail.com wrote:
 Cannot get statistics for an entity on the dev server:

 DatastoreService datastore =
 DatastoreServiceFactory.getDatastoreService();
 Entity globalStat = datastore.prepare(new Query
 (__Stat_Total__)).asSingleEntity();
 Long totalBytes = (Long) globalStat.getProperty(bytes);

 OS: Mac OS X 10.5.8, Eclipse 3.5.1, AppEngine SDK: 1.30 as part of
 Google Plugin for Eclipse  com.google.appengine.eclipse.sdkbundle.
 1.3.0_1.3.0.v200912141120/app
 engine-java-sdk-1.3.0/lib/agent/appengine-agent.jar, GWT SDK: 2.0.0

 Also posted issue regarding null __Stat_Kind__ before I realized it
 applied to all statistics, not just Kind
-- 
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] The error occurs by registering QueueName again.

2010-01-17 Thread m seleron
Hi,

Server Error (500) occurs as follows.
Is there a workaround or something

1.queue.xml to upload my app the following file.

queue-entries
  queue
namedefault/name
rate1/s/rate
  /queue
  queue
namedeleteTasks/name
rate10/s/rate
bucket-size10/bucket-size
  /queue
/queue-entries


2.queue.xml to upload my app the following file.

queue-entries
  queue
namedefault/name
rate1/s/rate
  /queue
/queue-entries


3.[deleteTasks] to Delete Queue the admin console.

(Before deleting the state deleteTasks on admin console)
 Maximum:[paused]
 RateBucketSize:[paused]
 TaskskinQueueRun:[blank]
 in Last Minute:[0]

4.First used queue.xml to upload my app the following file.

queue-entries
  queue
namedefault/name
rate1/s/rate
  /queue
  queue
namedeleteTasks/name
rate10/s/rate
bucket-size10/bucket-size
  /queue
/queue-entries

The following errors occur at deploy.


[Error Details](eclipse deplydialog)

Unable to update app: Error posting to URL:
http://appengine.google.com/api/queue/update?app_id=xxxversion=xxx;
500 Internal Server Error

Server Error (500)
A server error has occurred.


See the deployment console for more details
Unable to update app: Error posting to URL:
http://appengine.google.com/api/queue/update?app_id=xxxversion=xxx;
500 Internal Server Error

Server Error (500)
A server error has occurred.

[Error Details](eclipse appengine-deployXXX.log)

Server Error (500)
A server error has occurred.

at com.google.appengine.tools.admin.ServerConnection.send
(ServerConnection.java:143)
at com.google.appengine.tools.admin.ServerConnection.post
(ServerConnection.java:81)
at com.google.appengine.tools.admin.AppVersionUpload.send
(AppVersionUpload.java:522)
at com.google.appengine.tools.admin.AppVersionUpload.updateQueue
(AppVersionUpload.java:255)
at com.google.appengine.tools.admin.AppVersionUpload.doUpload
(AppVersionUpload.java:134)
at com.google.appengine.tools.admin.AppAdminImpl.update
(AppAdminImpl.java:56)
at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy
(AppEngineBridgeImpl.java:271)
at
com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace
(DeployProjectJob.java:148)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run
(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


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: Purge _ah_SESSION ???

2010-01-07 Thread m seleron
Hi,

I am sorry for not understanding easily.

I retrieved this Group

Is this thread useful
http://groups.google.com/group/google-appengine-java/browse_thread/thread/4f0d9af1c633d39a/875921846a160b52?lnk=gstq=sessionCleanupServlet+%23875921846a160b52pli=1

You may find more useful information .
Please look for it.

Thanks.

 Where should I look for this sessionCleanupServlet?

 On Jan 7, 6:01 am, m seleron seler...@gmail.com wrote:

  Hi,

  Though it is likely already to have tried.
  You might solve the problem by examining sessionCleanupServlet.

  thanks.

  On 1月7日, 午後1:18, Jorge athenas...@gmail.com wrote:

   Is there a way to delete old _ah_SESSION entities? I found a post
   about deleting all sessions, both from the datastore and from
   memcache, but I am looking a clean  way to delete past sessions and
   preserve the active ones.

   Thanks,

   Jorge Gonzalez


-- 
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: File path in App Engine

2010-01-07 Thread m seleron
I tried a little.

I put the file(names.txt) in /WEB-INF directly

The following are sources that I tested.

String FileName = names.txt;
File file = new File(FileName);
BufferedReader bufferedReader = new BufferedReader(new FileReader
(file));

The processing seems in my test for normality.

I might not correctly understand the content of the question or
There is a possibility it is not in the cause for the source code not
to be able to read a file but in the cause with the environment, too.

Please Confirm.
thanks.



 Hello,

 I have tried this but I always get a
 java.security.AccessControlException: access denied
 (java.io.FilePermission /names.txt read)

 Anyone know how to resolve this?

 Thanks,

 Finbarr

 On Jan 7, 3:32 am, m seleron seler...@gmail.com wrote:

  Hi,

  It might be solved by this though is not a direct answer.

  Follow this 
  thread:http://groups.google.co.jp/group/google-appengine-java/browse_thread/...

  Please Try.
  thanks.

   Hello,

   I have recently started using App Engine for a project I am working
   on, and I have a simple question.

   I have a file in the war/WEB-INF directory of my app filename.txt.
   When I try BufferedReader b = new BufferedReader(new FileReader(new
   File(filename.txt))); I get a FileNotFoundException.

   What path should I use when trying to access files in the war/WEB-INF
   directory? I have tried what seem to me to be the obvious ones and I
   have read the faq on this (which just tells you to put files in that
   directory).

   Thanks,

   Finbarr


-- 
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: File path in App Engine

2010-01-06 Thread m seleron

Hi,

It might be solved by this though is not a direct answer.

Follow this thread:
http://groups.google.co.jp/group/google-appengine-java/browse_thread/thread/474203bfe0936636/080b511624096ba8#080b511624096ba8

Please Try.
thanks.


 Hello,

 I have recently started using App Engine for a project I am working
 on, and I have a simple question.

 I have a file in the war/WEB-INF directory of my app filename.txt.
 When I try BufferedReader b = new BufferedReader(new FileReader(new
 File(filename.txt))); I get a FileNotFoundException.

 What path should I use when trying to access files in the war/WEB-INF
 directory? I have tried what seem to me to be the obvious ones and I
 have read the faq on this (which just tells you to put files in that
 directory).

 Thanks,

 Finbarr
-- 
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: Purge _ah_SESSION ???

2010-01-06 Thread m seleron

Hi,

Though it is likely already to have tried.
You might solve the problem by examining sessionCleanupServlet.

thanks.

On 1月7日, 午後1:18, Jorge athenas...@gmail.com wrote:
 Is there a way to delete old _ah_SESSION entities? I found a post
 about deleting all sessions, both from the datastore and from
 memcache, but I am looking a clean  way to delete past sessions and
 preserve the active ones.

 Thanks,

 Jorge Gonzalez
-- 
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: Upload of images

2010-01-06 Thread m seleron
Hi,

Is the following links useful though I am not looking in detail.

http://stackoverflow.com/questions/1513603/how-to-upload-and-store-an-image-with-google-app-engine-java

Please try.
thanks.


On 1月3日, 午前6:13, Hárley Diniz fhar...@gmail.com wrote:
 Hi, would like to know as to make upload of images for bigtable. I am not
 obtaining to find examples.
 Regards

 --
 --
 []'s Hárley Diniz
 --
-- 
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: Problem accessing a file on file system

2010-01-05 Thread m seleron
Hi,

Though it doesn't confirm so much.

I put the file in /WEB-INF directly.
I think if you can access this form.
WEB-INF/myfile.dat

Please Try
Thanks.


On 1月5日, 午後4:57, Steph steph@gmail.com wrote:
 I am using a RandomAccessFile, which is whitelisted on Google App
 Engine.

 My simple code looks like:

   RandomAccessFile file = new RandomAccessFile(/WEB-INF/classes/
 myfile.dat, r);

 which gets a

 java.security.AccessControlException: access denied
 (java.io.FilePermission \WEB-INF\classes\myfile.dat read)
         at java.security.AccessControlContext.checkPermission
 (AccessControlContext.java:323)
         at java.security.AccessController.checkPermission
 (AccessController.java:546)
         at java.lang.SecurityManager.checkPermission(SecurityManager.java:
 532)

 Same thing if I put the file in /WEB-INF directly.

 Am I missing something? Thanks for your 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-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: Could not fetch URL with URLFetchService but with HttpClient

2010-01-03 Thread m seleron
Hi,

I'm sorry for being not able to explain adequately.

I tried.

cfm?fuseaction=Reports.SetReport
   ^
I think that this sign is a cause in the development
where the Exception occurs.

However, even if this sign is included
I do not think that production garish excetion is generated.

The appearance is seen for a while.
If there is no workaround

There might be a necessity for doing post to the Issue list.

thanks.


2010/1/3 derkent derkentgib...@gmail.com:
 hey thanks, you seem to be right.

 It seems a bug in the sdk, in production the problem goes away.

 I am not sure what you mean though when you say, when value of the url
 paramater dot is included.

 Thanks again,

 On Jan 1, 8:42 pm, seleronm seler...@gmail.com wrote:
 Hi,

 I tried a little.
 ( SDK 1.3.0)

 The condition that IOException is generated
 when value of the URL parameter .(dot) is included.

 This is not generated in production.

 I think that the possibility of bug of development environment(SDK).

 thanks.

 I have an url which is redirecting:

 http://www.accessdata.fda.gov/Scripts/cder/DrugsatFDA/index.cfm?fusea...
 Reports.SetReportrptname=1reportSelectDate=12%2F2009ta=Submits

 org.apache.http.client.HttpClient can follow the redirect without any
 problem and get the content.
 However URLFetchService has problems following the redirects,
 java.io.IOException: Could not fetch URL.

 Clearly the implementations are different, but I wonder how I can get
 the URLFetchService to also read in that url. Could this be a bug? If
 I ask HttpClient not to follow the redirect, it comes back with
 temporarily moved, which I believe is HTTP Error 302.

 Any help would be very kind.

 The code using the URLFetchService:

 URL url = new URL(urlStr);
 URLFetchService urlFetchService =
 URLFetchServiceFactory.getURLFetchService();
 HTTPRequest httpRequest = new HTTPRequest(url,
 HTTPMethod.GET,followRedirects());
 HTTPResponse response = urlFetchService.fetch(httpRequest);

 The code using HTTPClient

 String url = http://www.accessdata.fda.gov/Scripts/cder/DrugsatFDA/
 index.cfm?
 fuseaction=Reports.SetReportrptname=1reportSelectDate=12%2F2009ta=Submits
 ;
 HttpClient httpclient = new DefaultHttpClient
 ();
 httpclient.getParams().setBooleanParameter
 (
             http.protocol.handle-redirects,
 true);
 HttpGet httpGet = new HttpGet
 (url);
 ResponseHandlerString responseHandler = new BasicResponseHandler
 ();
 String
 responseBody;
 try
 {
 responseBody = httpclient.execute(httpGet,
 responseHandler);
     System.out.println
 (responseBody);
 } catch (ClientProtocolException e)
 {
 e.printStackTrace
 ();
 } catch (IOException e)
 {
 e.printStackTrace
 ();
 }

 --

 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 athttp://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.




--

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: WARNING: No file found for:

2009-12-30 Thread m seleron
Hi,

If you do not use GWT
Please confirm it accesses by / and index.html is displayed

If you can display index.html
I think the link to default servlet to be displayed.

When PojectName is [App2] servlet-mapping made with default seems to
be made from the name of [app2].
(at least that was my experience)

Please refer to the following links for details of servlet-mapping
http://code.google.com/intl/us/appengine/docs/java/config/webxml.html

Please try .
tnaks.


On 12月29日, 午前10:31, Dana danaballin...@gmail.com wrote:
 Can't seem to get a simple app running.

 I am using Eclipse 3.4 with the Google plugin.

 I created a (default) app called App2.  I have made no changes to the
 default code provided by the wizard.

 First I got the error that favicon.ico was not found.  So I added an
 icon to the war folder.
 Now I am getting the error WARNING: No file found for /App2.  Both
 of these errors are resulting in a 404 error in the browser.

 What am I missing?  Is there some additional configuration that is
 required to get started?

 The Google Getting Started pages don't seem to mention these issues
 or other special requirements.

 Thanks,
 -db

--

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: Robot copy to clipboard

2009-12-28 Thread m seleron
Hi,

I think that I should evade using the one not explained in the
whitelist.

Please refer to this link.
http://code.google.com/intl/us/appengine/docs/java/jrewhitelist.html

I think it's possible to request the following links helpful.
http://groups.google.com/group/google-appengine-java/browse_thread/thread/8a64ae454f758435/b0484413bcedc38c?lnk=gstq=awt#b0484413bcedc38c

Please confirm.
thanks.


On 12月28日, 午前4:48, Thomas Jungblut thomas.jungb...@googlemail.com
wrote:
 Hey,

 I've build a form in a robot reply and there is a button, which should
 copy the content of the event's blip to the clipboard.

 Now I get this error in my Logs:
 java.lang.NoClassDefFoundError: Could not initialize class
 com.google.apphosting.runtime.security.shared.stub.java.awt.datatransfer.StringSelection

 Isn't it possible to copy to the clipboard of the button's
 submitter? It seems, that this is restricted...

 My robot is port...@appspot.com and the copy code is similar to that
 one here:http://www.javapractices.com/topic/TopicAction.do?Id=82

 Thanks for your help guys :-)

--

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: Clear particular session manually

2009-12-27 Thread m seleron
Hi,

In detail though it doesn't examine
I think that the following content serves as a reference.
http://code.google.com/intl/us/appengine/docs/java/config/appconfig.html
Please look at the chapter of[Enabling Sessions] and [prefix of _ahs]

I think that key of memcache turns out by the value of getKey of
[_ah_SESSION] and this link.

Please Try,
thanks.

On 12月24日, 午後3:59, David hyrv...@gmail.com wrote:
 I need to clear a session manually from a servlet which has only the
 id of the session which needs to be cleared (long story short this is
 to overcome some limitation with flash not supporting cookies).

 I need to delete both the session from datastore and memcache.

 How can this be done ? (is the name of the entity in _ah_session table
 the id of the session ? )
 What is the key of the particular session for memcache ? can it be
 derived from the session id ?

--

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: Clear particular session manually

2009-12-27 Thread m seleron
Hi,

Supplement is
As another solution,
I think sessionCleanupServlet also useful for examining things.

Thanks.

On 12月28日, 午後12:56, m seleron seler...@gmail.com wrote:
 Hi,

 In detail though it doesn't examine
 I think that the following content serves as a 
 reference.http://code.google.com/intl/us/appengine/docs/java/config/appconfig.html
 Please look at the chapter of[Enabling Sessions] and [prefix of _ahs]

 I think that key of memcache turns out by the value of getKey of
 [_ah_SESSION] and this link.

 Please Try,
 thanks.

 On 12月24日, 午後3:59, David hyrv...@gmail.com wrote:

  I need to clear a session manually from a servlet which has only the
  id of the session which needs to be cleared (long story short this is
  to overcome some limitation with flash not supporting cookies).

  I need to delete both the session from datastore and memcache.

  How can this be done ? (is the name of the entity in _ah_session table
  the id of the session ? )
  What is the key of the particular session for memcache ? can it be
  derived from the session id ?



--

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: mail message

2009-12-25 Thread m seleron
Hi,
I tested the source code that you had contributed.
It seems to operate normally.

I think that the setting or the environment in the mail address is a
cause.

Follow this thread:
http://groups.google.com/group/google-appengine/browse_thread/thread/fdfdafa51ef140fc/97d7c0492c2270bb?lnk=gstq=seleronm#97d7c0492c2270bb

Please Try.
thanks.


On 12月24日, 午後4:34, venkat satyanarayana nidadavolu.ven...@gmail.com
wrote:
 Hi , i ma tring to send mail  with google app engine with java

 my code :

 Properties props = new Properties();
         Session session = Session.getDefaultInstance(props, null);

         String msgBody = test;

         try {
             Message msg = new MimeMessage(session);
             try {
                                 msg.setFrom(new 
 InternetAddress(nidadavolu.ven...@gmail.com,
 Example.com Admin));
                         } catch (UnsupportedEncodingException e) {
                                 // TODO Auto-generated catch block
                                 e.printStackTrace();
                         }
             try {
                                 msg.addRecipient(Message.RecipientType.TO,
                                                  new 
 InternetAddress(nidadavolu.ven...@gmail.com
 , Mr. User));
                         } catch (UnsupportedEncodingException e) {
                                 // TODO Auto-generated catch block
                                 e.printStackTrace();
                         }
             msg.setSubject(Your Example.com account has been
 activated);
             msg.setText(msgBody);
             Transport.send(msg);

         } catch (AddressException e) {
             // ...
         } catch (MessagingException e) {
             // ...
         }

 but  i didn't get any error , but we are not receaving  mail

 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: So I found out I can't simulate post in a cron job and pass parameters after ? in URL

2009-12-24 Thread m seleron
Hi,

About [user=testrank=1]
I think it is possible if '' is processed in HTMLescape.

?user=testamp;rank=1

Please Try.
thanks.


On 12月24日, 午後3:43, Tb tho...@bertranfamily.com wrote:
 I know it kinda looks ugly since I had to add a doGet method to my
 servlet to call doPost with the request and response objects... but
 it was going to get the job done! Or so I thought...
 I'm getting a
 com.google.apphosting.utils.config.AppEngineConfigException: XML
 error validating exception when GAE tries to match my cron.xml to the
 xsd file. The url looks something like this /doCall?
 user=testrank=1.

 Am I missing something or there's no way to set-up a real cron job
 with command-line arguments and that kind of stuff? We can just do a
 dumb get to a servlet?
 Like I said, I may be missing something...

--

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: Help with reading file

2009-12-21 Thread m seleron
Hi,

I think that I become normal if [web-inf/gr17.tsp] is corrected to
[WEB-INF/gr17.tsp].

Please Try.
thanks.


On 12月21日, 午後1:25, sebas tan sebastianc...@hotmail.com wrote:
 Hello, I have a simple application to read from afileand carry out
 operations on it. However, when deployed to appspot, it keepsreading
 thefileas null and doesn't execute. gr17.tsp is a textfile
 containing a travelingsalesman problem.

 It works fine on localhost so i really don't see what's the problem
 here. Really appreciate anyhelp, thanks. The application is 
 athttp://helloworldureca.appspot.com/

 import java.io.*;
 @SuppressWarnings(serial)
 public class TSP_gr17Servlet extends HttpServlet {
         public void doGet(HttpServletRequest req, HttpServletResponse resp)
                         throws ServletException, IOException {
                 Matrix m1 = new Matrix();

                 resp.setContentType(text/plain);
                 PrintWriter writer = resp.getWriter();
                 String filename = web-inf/gr17.tsp;
                 ServletContext context = getServletContext();

                 // First get thefileInputStream using
 ServletContext.getResourceAsStream() method.
                 InputStream is = context.getResourceAsStream(filename);

                 if (is != null) {
                         m1.readMatrix(is);
                                 m1.displayMatrix(writer);
                                 m1.insertionCal(writer);
                                 writer.println(reached);
                       }

--

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: Finding abandoned child entities

2009-12-18 Thread m seleron
Hi.

Thank you for following.

Movement might be different depending on the entry method in JDO.

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: Finding abandoned child entities

2009-12-17 Thread m seleron
Hi,

If you specify kind if it is lowlevelapi
I think that it is possible to acquire list of entity

How about the following examples?

String kindName = kindName; // abandoned children kindname

DatastoreService service = DatastoreServiceFactory.getDatastoreService
();
Query query = new Query(kindName);
PreparedQuery pq = service.prepare(query);
ListEntity list = pq.asList(FetchOptions.Builder.withOffset(0));

for (Entity e : list) {
e.getProperty(xx); //get property

}

Please try .
thanks.

On 12月17日, 午後1:56, Brian Hayward bhayw...@gmail.com wrote:
 So I read in the documentation that deleting parents via the admin
 console will create abandoned children because owned relationships are
 managed by JDO.  Is there a query that can find abandoned children of
 a given kind?

 Thanks,
 Brian

--

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: Finding abandoned child entities

2009-12-17 Thread m seleron
Sorry, did not have enough explanation.

I corrected it a little.

I think that the method of confirming the parent existence is simple.
It uses Entity#getParent()

How about the following examples?

String parentKindName = parentKind; //Parent Kindname
String kindName = kindName; // Child Kindname

DatastoreService service = DatastoreServiceFactory.getDatastoreService
();

Query query = new Query(kindName);
PreparedQuery pq = service.prepare(query);
ListEntity list = pq.asList(FetchOptions.Builder.withOffset(0));

for (Entity e : list) {
e.getProperty(xx); //get childproperty



//Parent check
PreparedQuery parentPq = service.prepare(new Query
(parentKindName,e.getParent()));
int parentCount = parentPq.countEntities();
if (parentCount == 0){
//abandoned children
}

}

Please try.
Thanks,
seleronm

--

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: error 409

2009-12-16 Thread m seleron
Hi.

Somewhere of the message
I think the display as appcfg rollback.

Follow this thread:
http://groups.google.com/group/google-appengine-java/browse_thread/thread/7beadad55307cca5/fa488c86eca1a788?hl=enlnk=gstq=rollback+deploy#fa488c86eca1a788

If 409 is generated by rollback
Please execute it again for a while after time.

Please try
thanks.



On 12月16日, 午後11:23, megha saddi megha.sa...@gmail.com wrote:
 I cancel the deployment of application inbetween and now whenever i
 try to redeploy the application on google appengine , an error message
 occurs
 409 Conflict and saying another transaction is in process..
 Kindly tell me how to resolve this issue and redeploy that application

--

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: Querying parent side of unowned relationship

2009-12-11 Thread m seleron
Hi,
Though it doesn't understand how to register
I think that I can be likely to do if it is not JDO but lowlevelAPI.

Please examine
[com.google.storage.onestore.v3.OnestoreEntity.Entity#getParent].
If this is not good, it might have to change the model.


thanks.


On 12月6日, 午前2:36, Jeffrey jeffreywin...@gmail.com wrote:
 What is the most efficient way of querying the many side of an
 unowned relationship.  E.g., assuming the standard JDO annotations are
 applied:

 class Person
 {
    SetKey foods;

 }

 classFood
 {
     Key key;
     String name; // unique

 }

 Given the name of aFood, how can I best get the list of Person
 objects that reference it in it'sfoodSet?

--

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: File Access on App Engine

2009-12-08 Thread m seleron
Hi,

Follow this thread.

http://groups.google.com/group/google-appengine-java/browse_thread/thread/ef91a0e8c32c576e/3358e5877c6ef30e?lnk=gstq=FileInputStream#3358e5877c6ef30e

thanks.


On 12月9日, 午前7:49, mattkrae34 matt.krae...@gmail.com wrote:
 I'm using 1.2.8 SDK and on both local and the app engine I get the
 following exception:

 java.security.AccessControlException: access denied
 (java.io.FilePermission file.xml read)

 When I ever I try to open a FileInputStream

 XMLEventReader r = factory.createXMLEventReader(new FileInputStream(/
 test.xml));

 My appengine-web.xml contains the following:

         static-files
         include path=/**.xml /
     /static-files

         resource-files
         include path=/**.xml /
     /resource-files

 The file is located in the WEB-INF directory.

--

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: Processing incoming email

2009-12-04 Thread m seleron
Hi.Peter,

As one example.

When you use

InputStream inputStream = message.getInputStream(); //
ByteArrayDataSource inboundDataSource = new
ByteArrayDataSource(inputStream, message.getContentType());
Multipart inboundMultipart = new MimeMultipart(inboundDataSource);


Please switch the processing of each type by using
MimeMessage#isMimeType.
(In the offered source it is variable [message]. )

MimeMessage#isMimeType(multipart/*) == true
Convert into MimeMultipart.

MimeMessage#isMimeType(text/plain) == true
MimeMessage#isMimeType(text/html) == true
Need not convert into MimeMultipart.

Of course,
Jeremy Blythe have provided us information that [contentType.indexOf
( multipart)] also Behave the same.
Thanks Jeremy Blythe.

Ikai.
Thank you variously for useful information as for processing
concerning the attached file to datastore ,etc.


Though it noticed now.

MimeMessage#isMimeType(multipart/*) == true
The return value of MimeMessage#getContent() seems to have changed
into Multipart. (SDK-1.2.8)
(The real thing environment has been updated recently. )

http://code.google.com/p/googleappengine/wiki/SdkForJavaReleaseNotes


When you use [message.getContent() ]
Such a method might be able to be used.

Object content = message.getContent();
if ( content instanceof Multipart){
MimeMultipart mmp = (MimeMultipart)content;
}
else{
//plain text/html part .etc
}

Though there might be an insufficient condition.
Please try.
thanks.


On 12月5日, 午前3:24, Peter Ondruska peter.ondru...@gmail.com wrote:
 OK. now I am really puzzled. message.getContent() is very much
 dependent on how message is sent, e.g. email from Gmail:
 message.getContent().getClass().getName() is
 javax.mail.internet.MimeMultipart

 email from Hotmail and Yahoo mail:
 message.getContent().getClass().getName() throws:
 Uncaught exception from servlet
 java.io.IOException: Truncated quoted printable data
 at
 org.apache.geronimo.mail.util.QuotedPrintableEncoder.decodeNonspaceChar
 (QuotedPrintableEncoder.java:597)
 at org.apache.geronimo.mail.util.QuotedPrintableEncoder.decode
 (QuotedPrintableEncoder.java:584)
 at org.apache.geronimo.mail.util.QuotedPrintableDecoderStream.read
 (QuotedPrintableDecoderStream.java:80)
 at org.apache.geronimo.mail.handlers.TextHandler.getContent
 (TextHandler.java:107)
 at javax.activation.DataSourceDataContentHandler.getContent(Unknown
 Source)
 at javax.activation.DataHandler.getContent(Unknown Source)
 at javax.mail.internet.MimeMessage.getContent(MimeMessage.java:927)

 On Dec 4, 6:38 pm, Peter Ondruska peter.ondru...@gmail.com wrote:

  Ikai, my code looks same as yours to me:

  package eu.kaibo.server;

  import java.io.ByteArrayInputStream;
  import java.io.IOException;
  import java.io.InputStream;
  import java.util.Properties;
  import java.util.logging.Level;
  import java.util.logging.Logger;

  import javax.mail.Address;
  import javax.mail.MessagingException;
  import javax.mail.Multipart;
  import javax.mail.Part;
  import javax.mail.Session;
  import javax.mail.internet.MimeMessage;
  import javax.mail.internet.MimeMultipart;
  import javax.mail.util.ByteArrayDataSource;
  import javax.servlet.ServletException;
  import javax.servlet.http.HttpServlet;
  import javax.servlet.http.HttpServletRequest;
  import javax.servlet.http.HttpServletResponse;

  import com.google.appengine.api.labs.taskqueue.QueueFactory;
  import com.google.appengine.api.labs.taskqueue.TaskOptions;

  public class MailHandler extends HttpServlet {

  private static final long serialVersionUID = 895612806305910032L;

  private final Logger logger = 
  Logger.getLogger(getClass().getName());

  @Override
  protected void doPost(HttpServletRequest request, 
  HttpServletResponse
  response) throws ServletException, IOException {

  Session session = Session.getDefaultInstance(new 
  Properties(),
  null);

  try {

  MimeMessage message = new MimeMessage(session,
  request.getInputStream());

  StringBuffer sb = new StringBuffer();

  sb.append(From: );
  Address[] senders = message.getFrom();
  for (int i = 0; i  senders.length; i++)
  sb.append(senders[i].toString()).append(; 
  );
  sb.append(\n);

  sb.append(To: );
  Address[] receivers = message.getAllRecipients();
  for (int i = 0; i  receivers.length; i++)
  
  sb.append(receivers[i].toString()).append(; );
  sb.append(\n);

  line 55:InputStream is = (InputStream) 

[appengine-java] Re: TimeZone

2009-12-03 Thread m seleron
Hi,

It is likely to possibly solve it by this.
Please refer to the following links.
http://www.javaworld.com/javaworld/jw-10-2003/jw-1003-time.html?page=3

The page in the back and forth might be also related.

thanks.


On 12月4日, 午前4:08, Nour Ahmed salahtimes...@googlemail.com wrote:
 Can anyone help me to know how to configure the Timezone in the web
 application that i run localy on my mmachine?

 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] Re: NPE trying to create JPA EntityManagerFactory in integration tests

2009-12-01 Thread m seleron
Hi,

Please arrange persistence.xml
in the [war/WEB-INF/classes/META-INF] folder.

Please try.
thanks.



On 12月1日, 午後7:42, Felipe Cypriano fmcypri...@gmail.com wrote:
 Hello,

 I'm trying to do integrations tests in my app, but I get a
 NullPointerException when this line is executed:

 private static final EntityManagerFactory instance =
 Persistence.createEntityManagerFactory(transactions-optional)

 See:
 Caused by: java.lang.NullPointerException
         at org.datanucleus.jpa.EntityManagerFactoryImpl.initialisePMF
 (EntityManagerFactoryImpl.java:452)
         at org.datanucleus.jpa.EntityManagerFactoryImpl.init
 (EntityManagerFactoryImpl.java:355)
         at
 org.datanucleus.store.appengine.jpa.DatastoreEntityManagerFactory.init
 (DatastoreEntityManagerFactory.java:63)
         at
 org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider.createEntityManagerFactory
 (DatastorePersistenceProvider.java:35)
         at javax.persistence.Persistence.createEntityManagerFactory
 (Persistence.java:51)
         at javax.persistence.Persistence.createEntityManagerFactory
 (Persistence.java:33)
         at javax.persistence.Persistence$createEntityManagerFactory.call
 (Unknown Source)
         at org.grails.appengine.AppEngineEntityManagerFactory.clinit
 (AppEngineEntityManagerFactory.groovy:13)

 Has anybody any ideas of why I'm getting NullPointerException in
 datanucleos jpa EntityManagerFactoryImpl? Any advice that help me to
 find how to solve the problem is very welcome, for example what line
 452 of EntityManagerFactoryImpl expects?

 Regards,
 Felipe Cypriano

--

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: problem in XMPP sendMessage()

2009-11-28 Thread m seleron
Hi.

I tested execution by the following source.

JID jid = new JID(x...@gmail.com); // set your send gmail address
Message msg = new MessageBuilder().withRecipientJids(jid)
.withFromJid(new JID(x...@appspot.com) ) // set your
ap...@appspot.com
.withMessageType(MessageType.NORMAL)
.withBody(send-message).build();  //set msg String
boolean messageSent = false;
XMPPService xmpp = XMPPServiceFactory.getXMPPService();
if (xmpp.getPresence(jid).isAvailable()) {
SendResponse status = xmpp.sendMessage(msg);
messageSent = (status.getStatusMap().get(jid) ==
SendResponse.Status.SUCCESS);
}

I executed about ten times.
My Gtalk is seem to receive it normally.

Though various possibilities are thought.
If it is possible
Please execute it by the fixed value
as much as possible to simplify a problem.

Though something only has to be able to be useful.

thanks.


On 11月29日, 午前2:52, Sahil Mahajan sahilm2...@gmail.com wrote:
 I removed .withFromJid(new JID(recipientJid[0].getId()) )
 but I am still facing problem.

 The servlet works correctly for first two messages. But problem starts
 when servlet receives third message.

 I find this strange. Initially it works fine, but gives problem from
 third message.

 Regards
 Sahil Mahajan

 On Nov 28, 8:19 pm, Ravi Sharma ping2r...@gmail.com wrote:

  I am not sure, but i think you dont need to(should not)  set fromJid, as
  message will be sent from your application JID.
  I am running following code and its working .

  JID jid = new JID(responseJid);
          Message msg = new MessageBuilder()
              .withRecipientJids(jid)
              .withBody(msgBody)
              .build();

          boolean messageSent = false;
          XMPPService xmpp = XMPPServiceFactory.getXMPPService();
          if (xmpp.getPresence(jid).isAvailable()) {
              SendResponse status = xmpp.sendMessage(msg);
              messageSent = (status.getStatusMap().get(jid) ==
  SendResponse.Status.SUCCESS);
          }

  On Sat, Nov 28, 2009 at 2:51 PM, sahil mahajan sahilm2...@gmail.com wrote:
   I am using XMPP and getting following error when I try
   /CODE*/
   Message msg = new MessageBuilder()
                   .withRecipientJids(receiverJid)
            .withFromJid(new JID(recipientJid[0].getId()) )
     .withMessageType(MessageType.NORMAL)
                   .withBody(msgBody)
                   .build();

         SendResponse status =xmpp.sendMessage(msg);

   My JID's are correct. msgBody is not null
   Problem occures at xmpp.sendMessage(msg);
   I don't understand what is null?

   /***ERROR
   DETAILS/

   Uncaught exception from servlet
   java.lang.NullPointerException
      at 
   com.google.appengine.api.xmpp.XMPPServiceImpl.createMessageRequest(XMPPServiceImpl.java:120)
      at 
   com.google.appengine.api.xmpp.XMPPServiceImpl.sendMessage(XMPPServiceImpl.java:105)
      at 
   com.ChatRoom.server.XMPPReceiverServlet.doPost(XMPPReceiverServlet.java:165)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
      at 
   org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
      at 
   org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
      at 
   com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:35)
      at 
   org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
      at 
   com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
      at 
   org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
      at 
   org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
      at 
   org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      at 
   org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
      at 
   org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
      at 
   org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
      at 
   com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:238)
      at 
   org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
      at org.mortbay.jetty.Server.handle(Server.java:313)
      at 
   org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
      at 
   org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830)
      at 
   com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:76)
      at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
      at 
   com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:139)
      at 
   

[appengine-java] Re: Filtering by Date using the Datastore Low Level API

2009-11-27 Thread m seleron
Hi,

Though it might be unrelated.
I think that Date and Time Patterns of SimpleDateFormat is [MM] Month
in year [mm] Minute in hour.

thanks.

On 11月27日, 午後7:22, dflorey daniel.flo...@gmail.com wrote:
 The filter will just do string comparison (how should it know that you
 are comparing dates??)
 To get proper sorting/filtering just store the date as time in millis
 and it will work.

 Cheers,
 Daniel

 On 27 Nov., 04:25, Doug doug...@gmail.com wrote:

  Good Evening Everyone,

  I am working on creating an event calendar type of page and am having
  trouble using the low level API and applying a filter to select events
  that occur in the future.  The data that I am selecting has a property
  of display_until that holds a date in -mm-dd hh:mm:ss format.

  To select future events I started with the following code:
                  SimpleDateFormat formatter;
                  formatter = new SimpleDateFormat(-mm-dd hh:mm:ss);
                  Date date = new Date();
                  String query_date = formatter.format(date);

                  query.addSort(display_until, 
  Query.SortDirection.ASCENDING);
                  query.addFilter(display_until,
  com.google.appengine.api.datastore.Query.FilterOperator.GREATER_THAN,
  query_date);

  When I ran this code it did select future events, but not all of
  them.  Currently I have some 2009 and some 2010 events.  It selected
  the 2010 events, but not the December 2009 events.

  Anyone have any suggestions for how I can select all of the future
  events?

  Thanks,
  Doug

--

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: out of memory on javax.mail.internet.MimeMultipart.getCount

2009-11-24 Thread m seleron
Hi,

I want you to teach the value of
[javax.mail.internetMimeMessage.getContentType() ]
for confirmation.

thanks.

On 11月25日, 午前3:57, david ruescas fastn...@gmail.com wrote:
 When receiving email I get an out of memory error when calling
 getCount on the MimeMultipart object.

 Heres the stack trace:

 Error for /_ah/mail/rev...@reviewengine.appspotmail.com
 java.lang.OutOfMemoryError: Java heap space
         at java.util.Arrays.copyOf(Unknown Source)
         at java.io.ByteArrayOutputStream.write(Unknown Source)
         at 
 javax.mail.internet.MimeMultipart.readTillFirstBoundary(MimeMultipart.java:244)
         at javax.mail.internet.MimeMultipart.parse(MimeMultipart.java:181)
         at javax.mail.internet.MimeMultipart.getCount(MimeMultipart.java:109)
         at com.dr.reviewengine.MailServlet.doPost(MailServlet.java:85)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
         at 
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
         at 
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
         at 
 com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:35)
         at 
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
         at 
 com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
         at 
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
         at 
 org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
         at 
 org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
         at 
 org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
         at 
 org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
         at 
 org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
         at 
 com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:238)
         at 
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
         at org.mortbay.jetty.Server.handle(Server.java:313)
         at 
 org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
         at 
 org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830)
         at 
 com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:76)
         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
         at 
 com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:139)
         at 
 com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:239)
         at 
 com.google.apphosting.base.RuntimePb$EvaluationRuntime$6.handleBlockingRequest(RuntimePb.java:5135)
         at 
 com.google.apphosting.base.RuntimePb$EvaluationRuntime$6.handleBlockingRequest(RuntimePb.java:5133)
         at 
 com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java:24)
         at 
 com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:363)

--

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 Mail Problems

2009-11-21 Thread m seleron

Thank you for replay.

I was able to confirm the message that you had done post.

Though you might already have tried.
Was this method tried?

msg.setSubject(text,Big5);

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=.




[appengine-java] Re: XMPP getPresence response not valid?

2009-11-17 Thread m seleron

Hi.

Though it is likely already to have tried.

If the state is [is not available]
please invite it from GMailchat or GTalk to
XMPP Addresses
([app...@appspot.com] or [anyth...@app-id.appspotchat.com],etc.)

Please confirm Gtalk display that XMPP Addresses
([app...@appspot.com] or [anyth...@app-id.appspotchat.com],etc.)
is online and confirm presence status on the GppEngine side.


Please refer to the following links for details of XMPP Addresses.
http://code.google.com/intl/us/appengine/docs/java/xmpp/overview.html

Thanks.

On 11月18日, 午前1:52, timzon jerome.bre...@gmail.com wrote:
 Is anybody having problem with  xmpp.getPresence not providing valid
 presence information for GTalk clients?

 Using very simple function to check the availability of a GTalk
 client:

 XMPPService xmpp = XMPPServiceFactory.getXMPPService();
 if (xmpp.getPresence(agentJid).isAvailable()) {
         log.info(agentJid.toString() +  is available (added to
 list));} else {

         log.info(agentJid.toString() +  is not available);

 }

 getPresence always returns the same presence status for a user
 regardless of the user real status.

 I've tried this with GTalk clients on both GMail and Apps domains. The
 result is exactly the same.

 This is extremely blocking for our application as we need to validate
 the presence of a group of GTalk clients to determine what to do with
 a request.

 Thanks in advance for your help,
  Jerome.

--

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=.




[appengine-java] Re: Email .csv attachment in UTF-8 charset

2009-11-16 Thread m seleron
Hi,

As an another way.
How about this technique ?

1. import
import javax.mail.util.ByteArrayDataSource;
import javax.activation.DataHandler;
import javax.activation.DataSource;


2.modify
//attachment.setContent(attachmentData, text/comma-separated-values;
charset=UTF-8);
ByteArrayDataSource byteArrayDataSource = new ByteArrayDataSource
(attachmentData, text/comma-separated-values; charset=UTF-8);
attachment.setDataHandler(new DataHandler(byteArrayDataSource));

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=.




[appengine-java] Re: How to filter the entities with null value of a property with JDQL?

2009-11-13 Thread m seleron
Hi

I want to confirm it.
What is the type that you are using for propertyA?

Thanks.




On 11月14日, 午前1:14, Jason jasonc...@gmail.com wrote:
 I would like to query for the entities with null value of a property,
 how to write the JDQL queryFilter code?
 I have tried the code like  - query.setFilter(propertyA == null),
 however, it seems not work right.

 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=.




[appengine-java] Re: GAE Mail Problems

2009-11-11 Thread m seleron

Hi

I want to hear of a detailed content.
Cannot the source for which Sernder is made be taught?
--~--~-~--~~~---~--~~
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: Sending bulk emails - what are the limitations?

2009-11-09 Thread m seleron

Hi


I think that mail section is a detailed content.
http://code.google.com/intl/en/appengine/docs/quotas.html

There seems to be an limit in the processing that can be done in one minute.

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: java.lang.OutOfMemoryError when reading inbound mail on production

2009-10-28 Thread m seleron

Hi

It examined it a little.
I think that there is a part where [MimeMultipart#getCount] is used in
places other than this source.

How compatible.
--
System.setProperty(mail.mime.multipart.ignoremissingendboundary,
true);
--

This setting allows you to be tolerant and think MimeMultipart
rigorous checks

Sorry
Details are not examined. what influence you exist

Please try.
--~--~-~--~~~---~--~~
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: Incoming Email Service

2009-10-26 Thread m seleron

Hi
message can parse it by either method or both

Sorry
It doesn't examine it in detail.


MimeMessage mimeMessage = new MimeMessage(session, req.getInputStream
());

-

DataHandler dataHandler = mimeMessage.getDataHandler();
DataSource dataSource = dataHandler.getDataSource();
MimeMultipart mimeMultipart = new MimeMultipart(dataSource);

or

InputStream inputStream = (InputStream)mimeMessage.getContent();
String ContentType = mimeMessage.getContentType();
ByteArrayDataSource byteArrayDataSource = new ByteArrayDataSource
(inputStream,ContentType);
Multipart mimeMultipart = new MimeMultipart(byteArrayDataSource);

-

  //message parse

  Part part1 = mimeMultipart.getBodyPart(0);
  part1.getContentType();
  
  Part part2 = mimeMultipart.getBodyPart(1);
  part2.getContentType();
  


Try that please

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