[appengine-java] Re: Python url fetch against java appengine servlet

2011-03-31 Thread Roman Nurik
Just found this thread from a Google search. I was running into the same 
problem; after switching to Python 2.7 this problem seems to have gone away.

-- 
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] using getObjectByIds in SDK 1.3.6

2010-09-04 Thread Roman
Hi,
I am trying to use PersistenceManager.getObjectByIds() method in order
fetch multiple object at once.
1. Is it supported by appengine?
2. If yes, which keys should I pass to the collection?
For the single object I use the following call:
pm.getObjectById(A.class, name)
3. Is it possible to convert low-level api Entity object  if that
represents class A into the object of  class A (which is
PersistenceCapable)?
   In other words, is it possible to use  JDO enhancement if I used a
low-level API for loading the object from the storage?

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] inconsistent behavior of jdoPostLoad in appengine

2010-08-30 Thread Roman
Hi,

I am using SDK 1.3.6.
I noticed the following inconsistencies when using JDO. Consider the
following example:

@PersistenceCapable
public class A implements LoadCallback {
  @Persistent
  @PrimaryKey
  public String key;

  @Persistent
  public String payload;

  @NotPersistent
  public String derivedData = null;

  public A() {
  }

  @Override
  public void jdoPostLoad() {
derivedData = key;
  }
};


@Test
  public void testLoadCallback() {
PersistenceManager pm = PMF.get().getPersistenceManager();
A a = new A();
a.key = foo;
pm.makePersistent(a);
pm.close();

pm = PMF.get().getPersistenceManager();
A a2 = pm.getObjectById(A.class, foo);
assertEquals(foo, a2.derivedData);   //ASSERT 1
pm.close();

pm = PMF.get().getPersistenceManager();
ExtentA extent = pm.getExtent(A.class, false);
for (A a3 : extent) {
  assertEquals(foo, a3.derivedData);  //ASSERT 2
}
pm.close();
}

1. When 'payload' field in A is missing then ASSERT 1 fails, i.e.
jdoPostLoad is not called for classes that have only key as their
persistent data member.
2. Another problem is that ASSERT 2 always fails (even if payload is
defined), i.e. jdoPostLoad  is not called when objects are loaded via
query/extent interface.

Why does it happen?

-- 
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: wrong redirection to google sites

2009-12-28 Thread Roman
I just fixed it and my site http://www.dailydev.org is back!

What I did was, that I disabled Web Pages service in Google Apps,
which is already not supported and Google is just trying to get rid of
it migrating existing web pages to Sites. Then I was able to remove
www mapping in Sites without error and also was able to create it once
more. After few minutes it started to work again.

br,
Roman

On Dec 24, 12:33 pm, Didier Girard didier.gir...@gmail.com wrote:
 Hello Don,
 I have the same problem for my web site:www.onGWT.com.
 I hope you can find the team that can help us to solve this problem...
 Thanks in advance,
 Didier

 On Dec 23, 6:53 pm, Don Schwarz schwa...@google.com wrote:



  I've forwarded this on to another team internally.

  In the mean time, you might try reading through and/or posting to the Google
  Apps support forum:

 http://www.google.com/support/forum/p/Google+Apps/label?lid=71f36fd9e...

  This issue in particular looks useful:

 http://www.google.com/support/forum/p/Google+Apps/thread?tid=48924e49...

  On Wed, Dec 23, 2009 at 11:45 AM, spaceman spacem...@gmail.com wrote:
   I'm having the same problem.

   This was working till 1-2 days ago.
   Here's my site:www.paint-smart.biz
   now its redirecting me to :http://sites.google.com/a/paint-smart.biz/www/

   what is going on?

   --

   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%2B
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: hijacked domain

2009-12-28 Thread Roman
I just fixed it and my site http://www.dailydev.org is back!

What I did was, that I disabled Web Pages service in Google Apps,
which is already not supported and Google is just trying to get rid of
it migrating existing web pages to Sites. Then I was able to remove
www mapping in Sites without error and also was able to create it once
more. After few minutes it started to work again.

br,
Roman

On Dec 24, 6:36 pm, atomi at...@verizon.net wrote:
 Thanks Didier that is a better place for this discussion. Vik I'll do my
 best to answer your question there.

 On Thu, Dec 24, 2009 at 12:21 AM, Didier Girard 
 didier.gir...@gmail.comwrote:



  I have the same problem, but I'm not able to solve it.
  I have open a discussion on the Apps Forum :

 http://www.google.com/support/forum/p/Google+Apps/thread?tid=22a420ff...

  Didier

  On Dec 24, 8:48 am, atomi at...@verizon.net wrote:
   Yes, I disabled the Google Sites App and removed my App Engine App. After
   about an hour I added the App Engine App again and mapped it to my
  domain.
   The App Engine app works on my domain just fine now.

   On Wed, Dec 23, 2009 at 8:53 PM, Vik vik@gmail.com wrote:
Did disabling worked for u?

For me it still redirects me to google sites... and i am unable to
  resolve
it.

Thankx and Regards

Vik
Founder
   www.sakshum.com
   www.sakshum.blogspot.com

On Thu, Dec 24, 2009 at 6:40 AM, atomi at...@verizon.net wrote:

Apologies, please disregard my previous message.
For posterity's sake, it seems if you have an appengine application
mapped to a domain and Google Sites is activated, your domain will
redirect to the Google Sites application and not your appengine
application.
This was something I wasn't aware of, thanks.

On Dec 23, 4:31 pm, atomi at...@verizon.net wrote:
 Hi could someone from Google contact me off list in regards to a
 serious security issue?
 Or direct me to someone I can speak to (privately of course) ?

--

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%2B
 unsubscr...@googlegroups.comgoogle-appengine-java%2B
  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.comgoogle-appengine-java%2B
 unsubscr...@googlegroups.comgoogle-appengine-java%2B
  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.comgoogle-appengine-java%2B 
  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] Cron job fired up twice

2009-11-04 Thread Stefan Roman

Hi All,

My crontab is defined in the following way:

?xml version=1.0 encoding=UTF-8?
cronentries
  cron
url/cron/sendnotifs/url
descriptionSend notification at 9 every Mon, Tue, Wed, Thu, Fri/
description
scheduleevery mon,tue,wed,thu,fri 09:00/schedule
timezoneEurope/Sarajevo/timezone
  /cron
  cron
url/cron/sendnotifs/url
descriptionSend notification at 10 every Sat, Sun/description
scheduleevery sat,sun 10:00/schedule
timezoneEurope/Sarajevo/timezone
  /cron
/cronentries

The problem is that it is fired up twice. Unfortunately I don't know
how big is the problem because I don't receive notifications every
time when cron hits the /cron/sendnotifs URL, but if the conditions
for notification in my app are met, I receive two notifications. That
leads me to the conclusion that cron was started twice.

Today, cron was executed at 9 as it suppouse to, and at 09:05:09.

Where is the problem? Am I missing something?

Thanks in advance for any help.

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