[google-appengine] Re: 502 Server Errors after upgrade?

2009-03-03 Thread Artem

I am still getting 502s in our App (which is an instance of Rietveld
without any changes except securing it with a password).
app id is: wsl-codereview

We have changed nothing. Problems started last night, but now every
request is a 502.

Artem

On Mar 3, 1:25 pm, Brett Slatkin  wrote:
> Hi Nick,
>
> On Tue, Mar 3, 2009 at 8:55 AM, Nick Winter  wrote:
>
> >http://code.google.com/status/appengine/detail/serving/2009/03/03#ae-...
>
> > Just about every day for the past several weeks, there's been elevated
> > latency like this, usually at similar times of day. It was unfortunate
> > and frustrating before, but since last night our development is
> > stalled because every part of App Engine is too slow to do any testing
> > or data manipulation right now. 5 seconds per request?
>
> > I'm confident that the App Engine team will get a handle on the
> > performance and everything will be shiny once more, but it'd be nice
> > to hear some word as to what's going on. Are the servers just
> > overloaded? Did something go wrong with the maintenance last night? Is
> > anomaly-yellow serving to be expected?
>
> We had some unexpected issues during the maintenance last night which
> caused elevated latencies and errors for all applications. We resolved
> the issue around 8:45pm last night and things have returned to normal
> since. Please let me know if you're still seeing any problems.
>
> As for the elevated latency for the dynamic request metric (that you
> linked to), this is primarily a product of alert tolerances. We're
> still tuning our status site metrics to match real-world expectations
> of App Engine performance. You'll notice today that we've raised some
> of these tolerances by a little bit, causing many of the lines to go
> back to a blue color (i.e., everything OK).
>
> -Brett

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



[google-appengine] Re: Datastore operations slow

2009-03-04 Thread Artem

+1 again Alex. The system is only a bit faster than yesterday, but it
is still many times slower than before. A ton of operations time-out
(this is on Rietveld code!)

Please update us on the status again, and please make sure that the
Datastore does not show "Normal" status. It is certainly not normal
for many of us. This is a very serious issue for many of our users.

Thank you very much.

Artem

On Mar 4, 2:19 pm, Alex Popescu 
wrote:
> Comparing the Datastore metrics for yesterday and today, I'd say that
> the Datastore is still having latency problems on most of the
> operations.
>
> I'd also have to point out that the System status does NOT reflect
> these problems:http://code.google.com/status/appengine/(it doesn't
> show it for yesterday metrics that have already been acknowledged by
> the Google team).
>
> ./alex
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Latency Issue - More Feedback!

2009-03-04 Thread Artem

Again, why does the status http://code.google.com/status/appengine
show normal?

Artem

On Mar 4, 4:13 pm, Pete Koomen  wrote:
> Hi Greg,
>
> We're listening, and we feel your pain.  The App Engine team has been
> working very hard to resolve this and we'll post updates as soon as we
> have them.  I'll try to address what I can right now:
>
> 1. The latency issues are related to the planned maintenance on Monday
> night.  They were unexpected, and we are working on infrastructure
> improvements to ensure this won't happens again.  If you'd like more
> data on serving and API latency and error rate, you can look at our
> own live monitoring data herehttp://code.google.com/status/appengine
>
> 2) We expect a fix to be in place by EOD to fix the issues you are
> currently seeing. We will keep you updated if this is not the case.
> When these issues are fixed, you should only see a small difference
> (possibly 10-20%) in the performance of your application as compared
> to earlier this week. However, one way or the other, we will return
> our previous configuration by Monday 3/9.
>
> Thanks for your patience through this.
>
> Pete, App Engine Team
>
> On Mar 4, 12:18 pm, Greg  wrote:
>
> > Please can we have more information about the current latency issue.
> > Pointing us 
> > tohttp://groups.google.com/group/google-appengine-downtime-notify
> > doesn't help when the last post there is two days old.
>
> > Specifically:
> > 1. Cloudstatus.com shows very clearly that everything went to hell in
> > handbasket after the "upgrade" earlier this week. Can Google confirm
> > this is the cause of the latency?
>
> > 2. Is the scheduled maintenence next week likely to cure the problem
> > (then please bring it forward) or make it worse (then please delay
> > it)?
>
> > I'm sure the lack of information is because the engineers who know
> > what is happening are so busy trying to resolve the issue that they
> > can't post. Or maybe they are all smoking joints while watching Lost,
> > snickering about all the poor muppets out there struggling to find
> > ways of streamlining their apps to make them work. Without feedback we
> > don't know...
>
> > This is severely denting our (paying) customers confidence in my app,
> > and likewise our confidence in Appengine. We spent yesterday wringing
> > the last ounce of performance out of our app, and if I don't hear any
> > more, today (it's morning in New Zealand) will be spent investigating
> > how big a deal it will be to migrate it to a dedicated mod_python/
> > PostgreSQL system.
>
> > Other appengine developers - please star this message so we get a
> > response from Google.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] XMPP Presence: getPresence and isAvailable don't work? sendPresence with PROBE is asynchronous?

2011-11-10 Thread Artem Kuroptev
Hello everyone.

I would appreciate if somebody can clarify these things:

1. XMPPService.getPresence(..).isAvailable() constantly returns
'false' as of today. Is that a temporary behavior, or this methods
don't work anymore?

2. Is sendPresence method with PROBE PresenceType asynchronous?

3. Is that correct, that now there is no way to check JID presence
(whether user online) synchronously?

I have tried to read the docs. As been noted in Version 1.5.5 release
notes:
##
In the XMPP API, getPresence() is deprecated in favor of using the
inbound presence handlers documented in
http://code.google.com/appengine/docs/java/xmpp/overview.html#Handling_User_Presence.
##
and getPresence marked as deprecated in the current SDK. But in Java
world "deprecated" usually used to change syntax or semantics, and
leave incorrect method to maintain legacy. But not to mark method as
"non working". So it is unclear what really happened with
'getPresence(..).isAvailable()'.

Thanks.

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



[google-appengine] Re: XMPP Presence: getPresence and isAvailable don't work? sendPresence with PROBE is asynchronous?

2011-11-11 Thread Artem Kuroptev
'isAvailable' still does not work for me.

Anyhow, banishing of synchronous 'isAvailable' method means a pretty
big change. Previously, recipient's JID was all needed, to send a xmpp
message. From now on, GAE application have to maintain a 'roster' with
statuses of the subscribers. And now it is unable to check recipient's
status, and send a message. Status have to be already stored in
roster. And app must handle 'error' xmpp responses to adjust that
statuses. BTW, there is no methods nor classes in the current GAE Java
SDK to parse 'error' stanzas.

On Nov 10, 6:12 pm, Artem Kuroptev  wrote:
> Hello everyone.
>
> I would appreciate if somebody can clarify these things:
>
> 1. XMPPService.getPresence(..).isAvailable() constantly returns
> 'false' as of today. Is that a temporary behavior, or this methods
> don't work anymore?
>
> 2. Is sendPresence method with PROBE PresenceType asynchronous?
>
> 3. Is that correct, that now there is no way to check JID presence
> (whether user online) synchronously?
>
> I have tried to read the docs. As been noted in Version 1.5.5 release
> notes:
> ##
> In the XMPP API, getPresence() is deprecated in favor of using the
> inbound presence handlers documented 
> inhttp://code.google.com/appengine/docs/java/xmpp/overview.html#Handlin
> ##
> and getPresence marked as deprecated in the current SDK. But in Java
> world "deprecated" usually used to change syntax or semantics, and
> leave incorrect method to maintain legacy. But not to mark method as
> "non working". So it is unclear what really happened with
> 'getPresence(..).isAvailable()'.
>
> Thanks.

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



[google-appengine] GAE in China and AppScale

2012-03-15 Thread Artem Nikulchenko
Hi,

I can't find recent information about that. Are there any changes in
App Engine status in China? Is it still blocked?

If yes - does anybody have an experience in using AppScale project in
real production environment? How easy to maintain AppScale
installation in production environment? How stable is it? How well it
scales? Does anybody have experience in using AppScale in China?

Thanks!

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



[google-appengine] ApiProxy.getCurrentEnvironment().getAppId() returns incorrect app ID

2012-09-08 Thread Artem Kuroptev
Hello,

I am trying to get an id of my app using 
'ApiProxy.getCurrentEnvironment().getAppId()'.

But the code returns application id with 's~' prefix. Which, I believe, 
somehow related to HDR datastore.

How do I receive a clear id of my application in run-time? I don't really 
want cut the prefix from the string, because that would looks like a hack.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/htKSv-SVFWEJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] ApiProxy.getCurrentEnvironment().getAppId() returns incorrect app ID

2012-09-13 Thread Artem Kuroptev
It's the same code. getAppId is not available in static context.

On Wednesday, September 12, 2012 7:00:13 AM UTC+4, Brian Michelich wrote:
>
> Have you tried this? 
>
>
> https://developers.google.com/appengine/docs/java/appidentity/overview#Identifying_Itself
>  
>
> The Application ID can be found in the ApiProxy.Environment.getAppId() 
> method. 
>
>
> On Sat, Sep 8, 2012 at 8:05 AM, Artem Kuroptev 
> > 
> wrote: 
> > Hello, 
> > 
> > I am trying to get an id of my app using 
> > 'ApiProxy.getCurrentEnvironment().getAppId()'. 
> > 
> > But the code returns application id with 's~' prefix. Which, I believe, 
> > somehow related to HDR datastore. 
> > 
> > How do I receive a clear id of my application in run-time? I don't 
> really 
> > want cut the prefix from the string, because that would looks like a 
> hack. 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "Google App Engine" group. 
> > To view this discussion on the web visit 
> > https://groups.google.com/d/msg/google-appengine/-/htKSv-SVFWEJ. 
> > To post to this group, send email to 
> > google-a...@googlegroups.com. 
>
> > To unsubscribe from this group, send email to 
> > google-appengi...@googlegroups.com . 
> > For more options, visit this group at 
> > http://groups.google.com/group/google-appengine?hl=en. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine/-/kB--oiJbKmoJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] dev_appserver.cmd & transactions on multiple entity groups only allowed in High Replication & applications datastore.default_high_rep_job_policy_unapplied_job_pct

2013-01-31 Thread Artem Kuroptev
Hello, 

I am using latest Java SDK 1.7.4, and the following command to start dev 
server:

%java.home%\bin\java 
-Ddatastore.default_high_rep_job_policy_unapplied_job_pct=20 -cp 
"%~dp0\..\lib\appengine-tools-api.jar" ^
com.google.appengine.tools.KickStart ^
   com.google.appengine.tools.development.DevAppServerMain %*

(as in 
https://developers.google.com/appengine/docs/java/tools/devserver#Using_the_Datastore
 
)

Yet, log says on a first request to DataStore :

INFO: Local Datastore initialized:
Type: Master/Slave
[..]

Then, I get an exception:

31.01.2013 19:16:02 org.datanucleus.transaction.Transaction rollback
SEVERE: Operation rollback failed on resource: 
org.datanucleus.store.appengine.DatastoreXAResource@404eb2, error code 
UNKNOWN and transaction: [DataNucleus Transaction, ID=Xid=, enlisted 
resources=[org.datanucleus.store.appengine.DatastoreXAResource@404eb2]]
31.01.2013 19:16:02 com.google.apphosting.utils.jetty.JettyLogger warn
WARNING: /themepark/post
java.lang.IllegalArgumentException: transactions on multiple entity groups 
only allowed in High Replication applications
[..]

I have following lines in \META-INF\jdoconfig.xml:



How do I make dev_appserver.cmd emulate High Replication Datastore?
Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] How is it possible to get access to contacts?

2013-08-13 Thread Artem Savateev

Hello.

I am writing an application on the platform of Google Engine for my company. 
The 
application should work with corporate contacts that are created within the 
account compnet.supervi...@compnet.ru. The application is built from account 
artem.savat...@compnet.ru.
Is it possible to access your contacts by compnet.supervi...@compnet.ru of my 
application?

When trying to get contacts so: 
http://www.google.com/m8/feeds/contacts/compnet.supervisor% 
40compnet.ru/full /, I get a 403 error (Your client does not have 
permission to get URL /m8/feeds/contacts/compnet.supervisor%40compnet.ru/full/ 
from this server.).

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Re: How is it possible to get access to contacts?

2013-08-14 Thread Artem Savateev
I run the code from within Google Engine and get an error when running the 
application (on appspot.com), not the code on my server.
I did not get to use those examples that are published on 
developers.google.com because it uses cURL, which include the platform Google 
Engine does not work (according to the documentation - Google does not 
support curl at all).
I tried to create a php.ini file with the text 
google_app_engine.enable_functions 
= "phpcurl", but the code is still not earned.

вторник, 13 августа 2013 г., 15:24:01 UTC+4 пользователь Artem Savateev 
написал:
>
>
> Hello.
>
> I am writing an application on the platform of Google Engine for my 
> company. The application should work with corporate contacts that are 
> created within the account compnet.supervi...@compnet.ru. The application 
> is built from account artem.savat...@compnet.ru.
> Is it possible to access your contacts by compnet.supervi...@compnet.ru of my 
> application?
>
> When trying to get contacts so: 
> http://www.google.com/m8/feeds/contacts/compnet.supervisor% 
> 40compnet.ru/full /, I get a 403 error (Your client does not have 
> permission to get URL /m8/feeds/contacts/compnet.supervisor%
> 40compnet.ru/full/ from this server.).
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.




[google-appengine] Nodejs cluster and auto scaling

2016-05-03 Thread Artem Alekseev
Hi, please explain how does autoscaling work for nodejs in app engine? 
What if I use kode clustering to apawn workers for each cpu core? Do I need to 
catch an event from app engine to start spawning more workers?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/c5c00fde-87af-4099-aca0-b96caf7718fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: Nodejs cluster and auto scaling

2016-05-04 Thread Artem Alekseev
I use node as a TCP server. And also use internal node clustering, so that i 
have one point of TCP connection (IP,PORT), and node starts workers(separate 
processes) and balances my TCP requests by sending them to different instances 
of node processes. Don't I need to use clustering with app engine? And Why. 
As I understand now, app engine scales automatically, but nodejs is a single 
core app, and it needs to use processes ro handle simultanious tasks in more 
efficient way

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/2faa27a9-8afe-49aa-a135-3ed38e1c0d98%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Storage for geo-points

2010-03-15 Thread Artem Dudarev
There are several approaches to do geographical queries on App Engine:

http://code.google.com/p/geodatastore/
http://code.google.com/p/geomodel/
http://code.google.com/p/mutiny/

I would like to announce yet another project to work with geographical
point entities:

http://code.google.com/p/geotiles/

Frequently, it is required to fetch all important points for a given
area, similar to Google Buzz for Mobiles where only some number of
buzzes are shown for a given zoom. With this module, models
representing Mercator map tiles are populated with important points
starting from some maximum zoom to smaller ones. Importance of a point
may be population of a city, freshness of an update etc.

This is a very early alpha version and your feedback would be greatly
appreciated.

On a related note. Making a demo run on appspot.com would take the
last quota for applications. Is there a way to increase this quota?

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



[google-appengine] Re: Storage for geo-points

2010-03-19 Thread Artem Dudarev
Thank you for your reply. I have two opensource projects taking two
slots and this one would take yet another. So I wrote as detailed as
possible description of making its demo run on localhost with
dev_appsver. If a couple more opensource projects would come up I
would definitely fill the form.

On Mar 18, 10:14 am, "Wesley C (Google)"  wrote:
> generally we cannot change the maximum number of applications you can
> unless you can demonstrate and justify a legitimate reasons why you
> need more applications. in other words, it's not impossible but just
> not likely. if you still want to try this, go fill out the form you
> can access from:http://code.google.com/appengine/kb/billing.html#cpu
>
> -- wesley
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> "Core Python Programming", Prentice Hall, (c)2007,2001
> "Python Fundamentals", Prentice Hall, (c)2009
>    http://corepython.com
>
> wesley.j.chun :: wesc+...@google.com
> developer relations :: google app engine

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



[google-appengine] xmpp.parseMessage(request) has a problem with non-latin characters?

2009-09-08 Thread Artem Kuroptev

I have created a simple echo xmpp chat bot at gaechat...@appspot.com.
It works fine for latin characters and I get blank squareы for non-
latin. Ihave tried to use
request.setCharacterEncoding("utf-8");
as a first call at doPost, but that doesn't work.
I guess XMPPService.parseMessage method do not takes into account the
encoding of POST request. Probably it is possible to parse post
request by myself (without XMPPService) and to brute force the
character encoding used by requester in Google backed. But if there is
a better way?

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



[google-appengine] Re: xmpp.parseMessage(request) has a problem with non-latin characters?

2009-09-09 Thread Artem Kuroptev

There sure is, if xmpp reffers XMPPService instnce :-) The source code
follows.
I have made screenshot with Google Talk also:
http://farm4.static.flickr.com/3533/3902870863_a935be9197.jpg

-
public class ChatBotServlet extends HttpServlet
{
private static final Logger log = Logger.getLogger
(ChatBotServlet.class.getName());

private static final String JABBER_ID = "gaechat...@appspot.com";
private JID myJID = null;


public void init() throws ServletException
{
myJID = new JID(JABBER_ID);
}

protected void doPost(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException
{
//request.setCharacterEncoding("utf-8");
XMPPService xmpp = XMPPServiceFactory.getXMPPService();
Message msg = xmpp.parseMessage(request);

JID fromJid = msg.getFromJid();
String body = msg.getBody();

final String msgBody = "From: "+fromJid+", Text: "+body;
log.info("xmpp received: " + msgBody);
final Message outmsg = new MessageBuilder()
.withRecipientJids(fromJid)
.withBody(msgBody)
.build();

boolean messageSent = false;

if (xmpp.getPresence(fromJid).isAvailable())
{
SendResponse status = xmpp.sendMessage(outmsg);
messageSent = (status.getStatusMap().get(fromJid) ==
SendResponse.Status.SUCCESS);

}

if (!messageSent)
{
log.warning("outgoing message hasn't been sent to: " +
fromJid);
}

}

protected void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException
{
//throw new ServletException("doGet is not supported");
}
}
-

On Sep 9, 2:37 pm, "Nick Johnson (Google)" 
wrote:
> Hi Artem,
> There is no 'xmpp.parseMessage' method. What method/class are you referring
> to? Can you please paste the code you're using, and the exception (if any)
> you're getting?
>
> -Nick Johnson
>
> On Tue, Sep 8, 2009 at 3:23 PM, Artem Kuroptev  wrote:
>
> > I have created a simple echo xmpp chat bot at gaechat...@appspot.com.
> > It works fine for latin characters and I get blank squareы for non-
> > latin. Ihave tried to use
> > request.setCharacterEncoding("utf-8");
> > as a first call at doPost, but that doesn't work.
> > I guess XMPPService.parseMessage method do not takes into account the
> > encoding of POST request. Probably it is possible to parse post
> > request by myself (without XMPPService) and to brute force the
> > character encoding used by requester in Google backed. But if there is
> > a better way?
>
> --
> Nick Johnson, Developer Programs Engineer, App Engine

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



[google-appengine] Re: xmpp.parseMessage(request) has a problem with non-latin characters?

2009-09-10 Thread Artem Kuroptev

There is a principal thing to find - if a body of POST request to
servlet contains valid unicode data.
1. POST body contains valid data. Then we can get it in binary form
and then parse with apache commons or something like that. It will
require to guess the encoding of post request.
2. POST contains malformed data. We can do nothing, it all on Google
engineers.



On Sep 10, 6:06 pm, gusto  wrote:
> The same problem.
>  However if I send message from web interface in development mode (/
> _ah/admin/xmpp), it works fine.
>

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



[google-appengine] Re: xmpp.parseMessage(request) has a problem with non-latin characters?

2009-09-13 Thread Artem Kuroptev

I have found just now that this issue has been reported even earlier
than I started this topic.
Here the URL:
http://code.google.com/p/googleappengine/issues/detail?id=2072

On Sep 11, 10:56 am, Ivan Frolov  wrote:
> I've checked the request.
>
> Here's the fragment.
>
> --=_Part_16732_4260695.1252651666846
> Content-Type: text/plain; charset="UTF-8"
> Content-Disposition: form-data; name="from"
>
> *...@***.**/Work067E4040
> --=_Part_16732_4260695.1252651666846
> Content-Type: text/plain; charset="UTF-8"
> Content-Disposition: form-data; name="to"
>
> *...@***.appspotchat.com
> --=_Part_16732_4260695.1252651666846
> Content-Type: text/plain; charset="UTF-8"
> Content-Disposition: form-data; name="body"
>
> a a
> --=_Part_16732_4260695.1252651666846
> Content-Type: text/xml; charset="UTF-8"
> Content-Disposition: form-data; name="stanza"
>
>  from="*...@***.**/Work067E4040" xmlns:cli="jabber:client"> xmlns="jabber:x:event"> xmlns="http://jabber.org/protocol/chatstates"/>a???a xmlns="http://jabber.org/protocol/xhtml-im";> xmlns="http://www.w3.org/1999/xhtml";>a???a value="disabled" xmlns:nos="google:nosave"/> xmlns:arc="http://jabber.org/protocol/archive"/>
> --=_Part_16732_4260695.1252651666846--
>
> Letters between 'a' characters are not displayed correctly and have code
> 65533.
> So the request itself comes malformed. I guess we should fire bug.
>
> ---
> Ivan Frolovhttp://www.frolov.md
>
> On Thu, Sep 10, 2009 at 21:22, Artem Kuroptev  wrote:
>
> > There is a principal thing to find - if a body of POST request to
> > servlet contains valid unicode data.
> > 1. POST body contains valid data. Then we can get it in binary form
> > and then parse with apache commons or something like that. It will
> > require to guess the encoding of post request.
> > 2. POST contains malformed data. We can do nothing, it all on Google
> > engineers.
>
> > On Sep 10, 6:06 pm, gusto  wrote:
> > > The same problem.
> > >  However if I send message from web interface in development mode (/
> > > _ah/admin/xmpp), it works fine.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] How to apply an "unique" constrain to a field of a class using JDO annotations?

2009-09-13 Thread Artem Kuroptev

I'have tried to make a field of a class "unique" using different
combinations of JDO annotations. Never successfully.
Here is one of my variations:
---
@Uniques({...@unique(name="MYCONST_1", members={"userJID"})})
@Unique(name="MYCONST_2", members={"userJID"})
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class User
{
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Long id;

@Persistent
@Unique(name="MYUSERJID_IDX")
private String userJID;

[..]
---

Is there any way to apply "unique" constrain to a field of a class
using JDO annotations?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Adding a field to the existing JDO class

2009-10-19 Thread Artem Kuroptev

I have a class with JDO annotations in it. There is a number of
entities of that class already in Data Store. I need to add a new
field to the class. Is it safe for the data to add a new field to JDO
class? Will my entities stay available with 'null' returned for the
new field or they will be erased?

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



[google-appengine] Re: Adding a field to the existing JDO class

2009-10-19 Thread Artem Kuroptev

Thank you, Roy. I've updated jdo class and everything goes as
described.

On Oct 19, 6:24 pm, Roy Smith  wrote:
> The old entities will still be there. If your field types are objects (Long,
> Boolean, etc) they will return null. If they are base types (int, boolean)
> you will get an error.
>
> On Mon, Oct 19, 2009 at 3:15 PM, Artem Kuroptev  wrote:
>
> > I have a class with JDO annotations in it. There is a number of
> > entities of that class already in Data Store. I need to add a new
> > field to the class. Is it safe for the data to add a new field to JDO
> > class? Will my entities stay available with 'null' returned for the
> > new field or they will be erased?
>
> > Thanks in advance.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] java.lang.NoClassDefFoundError: javax/validation/ValidationException

2011-03-02 Thread Artem Nikulchenko
Hi,

I'm trying to use GWT application in GAE. I tried to use
RequestFactory (framework introduced in GWT 2.1) to make client-server
communication. But I'm constantly getting an error:

java.lang.NoClassDefFoundError: javax/validation/ValidationException
at
com.google.gwt.requestfactory.server.ServiceLayer.create(ServiceLayer.java:
66)
at
com.google.gwt.requestfactory.server.RequestFactoryServlet.(RequestFactoryServlet.java:
88)
at
com.google.gwt.requestfactory.server.RequestFactoryServlet.(RequestFactoryServlet.java:
74)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)

Does anybody know how to fix it?

Thanks!

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