[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=gst&q=awt#b0484413bcedc38c

Please confirm.
thanks.


On 12月28日, 午前4:48, Thomas Jungblut 
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.




Re: [appengine-java] Newbie HttpSession questions

2009-12-28 Thread Jess Evans
The memcache is volatile without a well defined contract for expiration, so
it alone is not sufficient to support session behavior.  A memcached entity
is more like a SoftReference in contract.  Well a globally shared
SoftReference with, presumably,  some cross JVM network serialization
overhead (that last part being a guess).

On Dec 28, 2009 6:59 PM, "Paul Jacobs"  wrote:

HttpSession seems to be using the datastore by default in my app.  Can
it be made to use memcache?  I have not used memcache yet, so I hope
this isn't a daft question...

--

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] Wrong calculation of week in App Engine

2009-12-28 Thread Don Schwarz
No problem.  And yeah, I used the word "bug" loosely -- I agree that this is
just missing functionality.

On Mon, Dec 28, 2009 at 6:02 PM, Raphael André Bauer <
raphael.andre.ba...@gmail.com> wrote:

> On Mon, Dec 28, 2009 at 11:34 PM, Don Schwarz  wrote:
> > The bug I referenced is definitely still present up to at least Java
> > 1.6.0_10 .  I get "200901" when I run this code on my local Sun Java
> > 1.6.0_10 JDK with a timezone of CST for 1262000152901L.
> > The bug is that it's returning a value of "200901" instead of "201001"
> for
> > time points that occur in 2009 but are in the "first week of 2010", which
> is
> > defined as:
> > "Week 1 for a year is the earliest seven day period starting
> > on getFirstDayOfWeek() that contains at
> > least getMinimalDaysInFirstWeek() days from that year."
> > This blog post has a better description of the JRE bug:
> > http://bmcardoso.blogspot.com/2008/01/javautilgregoriancalendar.html
>
> Ah okay... now I got what you mean by the year bug. This is for sure
> something I did not think about and what lead to my confusion. Thanks
> for pointing that out. imho i do not think that it is really a bug; it
> is simply too easy to be confused, a YEAR_OF_THE_WEEK would be cool as
> stated by bmcardoso.
>
>
> But still - one question remains: Why is the "ww" different in the US
> (Don's machine and App Engine) (01) compared to Germany (53). Well. I
> played around with the code, and one thing I forgot to set initially
> was the Locale of the SimpleDateFormat(pattern, Locale). Setting it to
> Locale.US returns week 01; setting it to Locale.GERMAN returns week
> 53. Bingo.
>
> And the answer lies in the fact that getFirstDayOfWeek() is in
> Locale.US sunday, in Locale.GERMAN monday. Together with the way how
> week is calculated we have a different week depending if you are in
> the US or in Europe. Still really strange.
>
>
> Summing up: Not at all a bug in app engine, but I would never ever use
> week in a critical international environment...
>
>
> Thanks Don... that really helped me a lot :)
>
> Raphael
>
> --
>
> 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] Wrong calculation of week in App Engine

2009-12-28 Thread Raphael André Bauer
On Mon, Dec 28, 2009 at 11:34 PM, Don Schwarz  wrote:
> The bug I referenced is definitely still present up to at least Java
> 1.6.0_10 .  I get "200901" when I run this code on my local Sun Java
> 1.6.0_10 JDK with a timezone of CST for 1262000152901L.
> The bug is that it's returning a value of "200901" instead of "201001" for
> time points that occur in 2009 but are in the "first week of 2010", which is
> defined as:
> "Week 1 for a year is the earliest seven day period starting
> on getFirstDayOfWeek() that contains at
> least getMinimalDaysInFirstWeek() days from that year."
> This blog post has a better description of the JRE bug:
> http://bmcardoso.blogspot.com/2008/01/javautilgregoriancalendar.html

Ah okay... now I got what you mean by the year bug. This is for sure
something I did not think about and what lead to my confusion. Thanks
for pointing that out. imho i do not think that it is really a bug; it
is simply too easy to be confused, a YEAR_OF_THE_WEEK would be cool as
stated by bmcardoso.


But still - one question remains: Why is the "ww" different in the US
(Don's machine and App Engine) (01) compared to Germany (53). Well. I
played around with the code, and one thing I forgot to set initially
was the Locale of the SimpleDateFormat(pattern, Locale). Setting it to
Locale.US returns week 01; setting it to Locale.GERMAN returns week
53. Bingo.

And the answer lies in the fact that getFirstDayOfWeek() is in
Locale.US sunday, in Locale.GERMAN monday. Together with the way how
week is calculated we have a different week depending if you are in
the US or in Europe. Still really strange.


Summing up: Not at all a bug in app engine, but I would never ever use
week in a critical international environment...


Thanks Don... that really helped me a lot :)

Raphael

--

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] Newbie HttpSession questions

2009-12-28 Thread Paul Jacobs
HttpSession seems to be using the datastore by default in my app.  Can
it be made to use memcache?  I have not used memcache yet, so I hope
this isn't a daft question...

--

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] Using UserService credentials with a SpreadsheetService

2009-12-28 Thread zackmac
In my GAE/J web application, users authenticate via their google
account.  I check to see they've signed into google via this code in
my jsp:

UserService userService = UserServiceFactory.getUserService();
User user = userService.getCurrentUser();
if (user == null)
response.sendRedirect("/index.jsp");

Is there anyway to use the user object above to query for that user's
spreadsheets?  I'm thinking that it would involve using
user.getAuthDomain() but not sure if I'm right here.  For instance,
would this work?...  service.setAuthSubToken(user.getAuthDomain());

--

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] Entity copy/duplication/replication

2009-12-28 Thread Ikai L (Google)
You have a couple of options here:

- Bulk export/import using the Python bulkloader
- Create an administrative action that invokes the task queue

App Engine datastore is not backed by SQL, so you don't have a lot of the
convenience statements you would otherwise have. You'll have to solve the
problem programmatically.

On Tue, Dec 22, 2009 at 8:50 PM, vjrj  wrote:

> Hi there,
>
> I have two classes with the same fields (both use a Key field) and I
> want to copy all the data from one to another:
>
> @PersistenceCapable(identityType = IdentityType.APPLICATION)
> public class SomeEntity {
>@PrimaryKey
>@Persistent(nullValue = NullValue.EXCEPTION)
>private Key key;
> (...)
> }
>
> and
>
> @PersistenceCapable(identityType = IdentityType.APPLICATION)
> public class SomeEntityTemporal {
>@PrimaryKey
>@Persistent(nullValue = NullValue.EXCEPTION)
>private Key key;
>
> (...)
> }
> In MySQL I'll do something like:
> CREATE TABLE sometable_tmp SELECT * FROM sometable
> or similar.
>
> Which is the best way to do this with JDO in AppEngine?
>
> TIA,
>
> Vicente
>
> --
>
> 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.
>
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine

--

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] Some suggestions regarding the "not support multiple parent key provider fields" JDOexception

2009-12-28 Thread Ikai L (Google)
Hi Mike,

Can you file an issue with our issue tracker?

http://code.google.com/p/googleappengine/issues/list

On Tue, Dec 22, 2009 at 3:39 PM, Mike  wrote:

> Hi,
>
> I am playing about with JDO,  creating objects, relationship, etc. I
> have a set of unit tests to make sure that what I am creating conform
> with GAE's implementation of JDO. Coming from a RDBMS background, very
> often I find myself the following exception:
>
> javax.jdo.JDOException: App Engine ORM does not support multiple
> parent key provider fields.
>
> Wouldn't it make developers' life a lot easier to include the name of
> the entity that causes the exception? Sometimes it is not obvious
> which entity is causing the problem.
>
> --
>
> 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.
>
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine

--

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] Error in Production Datastore Explorer

2009-12-28 Thread Ikai L (Google)
What is your application ID?

On Tue, Dec 22, 2009 at 2:18 PM, David Fuelling  wrote:

> Hello,
>
> I am getting an error in the Datastore Explorer (in the GAE control
> panel: https://appengine.google.com/datastore/explorer) when I try to
> browse Entities of a certain kind.
>
> Wierdly, it's only 1 Entity kind that's giving me trouble --
> everything else is browesable.
>
> How do I get help for something like this?  Is there a Google
> Appengine support page?
>
> Thanks!
>
> david
>
> --
>
> 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.
>
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine

--

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: Strange exception from JDO - Please help

2009-12-28 Thread Ikai L (Google)
Can you post a stack trace?

On Sun, Dec 20, 2009 at 11:43 AM, Michael Chan  wrote:

> Sorry I forgot to say that I get No such object exception when the
> test is ran.
>
> Michael
>
> On 20 Dec 2009, at 18:53, Mike wrote:
>
> > Hi,
> >
> > I am a newbie to GAE and it's the first time I try out the JDO
> > facility. I followed the JUnit How-To to create all the base classes
> > for Junit test and the following is my test:
> >
> > public class AbcTest extends LocalServiceTestCase {
> >
> >Abc abcType = null;
> >
> >PersistenceManagerFactory pmf =
> > GAEPresistenceHelper.getPersistenceManagerFactory();
> >
> >
> >@Override
> >public void setUp() throws Exception {
> >super.setUp();
> >abcType = new Abc();
> >abcType.setCreationTime(Calendar.getInstance().getTime());
> >PersistenceManager pm = pmf.getPersistenceManager();
> >pm.makePersistent(abcType);
> >pm.close();
> >}
> >
> >
> >public void testPKGeneration(){
> >assertNotNull(abcType.getPk());
> >}
> >
> >
> >@Override
> >public void tearDown() throws Exception {
> >super.tearDown();
> >System.out.println(KeyFactory.keyToString(abcType.getPk()));
> >PersistenceManager pm = pmf.getPersistenceManager();
> >ObjectState state = JDOHelper.getObjectState(abcType);
> >System.out.println(state.name());
> >pm.getObjectById(abcType.getPk());
> >
> >}
> >
> > }
> >
> >
> > The ABC class:
> >
> > @PersistenceCapable(identityType=IdentityType.APPLICATION)
> > public class Abc {
> >
> >@PrimaryKey
> >@Persistent(valueStrategy=IdGeneratorStrategy.IDENTITY)
> >private Key pk;
> >
> >public Key getPk() {
> >return pk;
> >}
> >
> >public void setPk(Key pk) {
> >this.pk = pk;
> >}
> >
> > }
> >
> >
> >
> > Could someone please advice? Am I doing anything wrong? Thanks in
> > advance.
> >
> > Michael Chan
>
> --
>
> 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.
>
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine

--

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] How to architect the following persistence problem

2009-12-28 Thread Ikai L (Google)
Is there a reason you want to avoid hard coding roles? I can certainly
understand from an OO purists perspective why that can leave a nasty
aftertaste, but if you have a finite set of roles, it isn't the worst thing
in the world. In fact, it may simplify your overall design. To me, join
classes when there are only a very small set of possible roles feel
unnecessary.

>From a datastore perspective, you aren't creating columns. You are creating
a typeless entity that is stored in key-value storage, with only attributes
containing values being indexed. That is: if a Partner has a Teacher and
Student but no Employee, only those Teacher and Student values are indexed.

As far as denormalization is concerned, App Engine heavily favors small
requests over larger requests that require more calculations at request
time. What this means is that you are encouraged to calculate denormalized
value at write time such that reads can happen very quickly. It seems like
denormalization can work very well in your situation, but this is a decision
you'll have to make based on the needs of your application.

On Sun, Dec 20, 2009 at 2:39 AM, mirko  wrote:

> I am new to the persistence model of the Google app engine and have a
> question on how to best model/architect the following scenario. I
> would really appreciate your feedback!
>
> The Partner class can 0-n roles "implemented" (Teacher, Student,
> Employee, ...).
>
> Partner
> - Key
> - Name
> - RoleList
>
> Role abstract
> - Key
> - RoleType
> - RoleDescription
> - Partner
>
> Employee extends Role
> - Salary
>
> Teacher extends Role
> - Classes
>
> Student extends Role
> - Grades
>
> I would like to avoid "hard coded" relationships in the partner class
> (meaning having properties pointing to every available role). In
> addition I need to be able to query the different roles, but also need
> to be able to show all "implemented" roles of a particular partner.
>
> What would be the best model to architect the mentioned scenario?
> Is there an option in extending Role and having a list of
> "implemented" roles in the Partner object?
> Does this all make sense or would you re-architect this whole problem
> differently?
> Would you denormalize and embed the Partner class in each of the role
> classes?
>
> Thanks, Mirko
>
>
>
>
>
> There are different options I see so far on how to and I would like to
> store the different facets
>
> --
>
> 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.
>
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine

--

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] Wrong calculation of week in App Engine

2009-12-28 Thread Don Schwarz
The bug I referenced is definitely still present up to at least Java
1.6.0_10 .  I get "200901" when I run this code on my local Sun Java
1.6.0_10 JDK with a timezone of CST for 1262000152901L.

The bug is that it's returning a value of "200901" instead of "201001" for
time points that occur in 2009 but are in the "first week of 2010", which is
defined as:

"Week 1 for a year is the earliest seven day period starting on
getFirstDayOfWeek() that contains at least getMinimalDaysInFirstWeek() days
from that year."

This blog post has a better description of the JRE bug:

http://bmcardoso.blogspot.com/2008/01/javautilgregoriancalendar.html

On Mon, Dec 28, 2009 at 3:57 PM, Raphael André Bauer <
raphael.andre.ba...@gmail.com> wrote:

> On Mon, Dec 28, 2009 at 6:04 PM, Don Schwarz  wrote:
> > I suspect that WEEK_OF_YEAR and YEAR do not generally behave the way you
> > want.  See this bug for more details:
> > http://bugs.sun.com/view_bug.do?bug_id=4267450
> > As for why this works for you locally and not when deployed to App
> Engine, I
> > don't have a satisfactory answer.  Have you verified that the timezones
> are
> > the same (by adding "zzz" to your format string)
>
> Hi Don,
>
>
> thanks for the superfast reply. I tried it again setting the locale
> and the timezone explicitly (and also using explicitly the
> GregorianCalendar).
>
> ==snippp
> Calendar calendar = GregorianCalendar.getInstance(
>TimeZone.getTimeZone("MEZ"), Locale.GERMAN);
> calendar.setTimeInMillis(millisecs);
> DateFormat formatter = new SimpleDateFormat("ww");
>
> return formatter.format(calendar.getTime());
>
> == snapp
>
> however the error is still there. Using the timestamp of now
> (1262000152901L) my local machine tells me:
> "200953"  what is correct, but App Engine returns the wrong "200901".
>
> Hmm. What puzzles me is why my local machine can calculate the "ww".
> Therefore I am still not too sure if the bug you mentioned (4267450)
> from sun still applies to my SDK version 1.6 - because my 1.6 series
> can calculate the week without any problems.
>
> The next question then is: What SDK is the App Engine using? I bet
> it's not the SDK from Sun, but Open SDK or a derivate. And if that's
> the case this might be a bug...
>
>
> I think I am going to implement the "ww" myself to circumvent the App
> Engine behavior and file a bug... Not nice, but I need the
> functionality...
>
>
> Raphael
> >
> > On Mon, Dec 28, 2009 at 5:54 AM, Raphael André Bauer
> >  wrote:
> >>
> >> Hi,
> >>
> >>
> >> I am currently using this code to calculate the week of the year:
> >>
> >>
> >> ===snip
> >> Calendar calendar = Calendar.getInstance();
> >> calendar.setTimeInMillis(millisecs);
> >> DateFormat formatter = new SimpleDateFormat("ww");
> >>
> >> String timeStamp =  formatter.format(calendar.getTime());
> >> ===snap
> >>
> >> Using the timestamp of now (1262000152901L) my local machine tells me:
> >> "200953"  what is correct.
> >>
> >> However, if I execute the very same code on the App Engine I get week
> >> "200901" (!) what is strange, because the year is correct, but the
> >> week is not...
> >>
> >>
> >> Any ideas?
> >>
> >> Thanks a lot!
> >>
> >>
> >>
> >> Raphael
> >>
> >> --
> >>
> >> 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.
> >
>
> --
>
> 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] JavaMail: AccessControlException warning

2009-12-28 Thread Ikai L (Google)
No, this is a harmless exception that seems to fire off when an app is
loaded from a cold start. There's some chatter about this here:
https://groups.google.com/group/google-appengine-java/browse_thread/thread/e01814b8ceaf3e59?pli=1

On Sun, Dec 20, 2009 at 7:56 AM, Pion  wrote:

> I am following the
> http://code.google.com/appengine/docs/java/mail/overview.html
> instructions.
>
> My code (snippets):
>
> import java.io.PrintWriter;
> import java.io.UnsupportedEncodingException;
> import java.util.Properties;
> import java.util.logging.Logger;
>
> import javax.mail.Message;
> import javax.mail.MessagingException;
> import javax.mail.Session;
> import javax.mail.Transport;
> import javax.mail.internet.InternetAddress;
> import javax.mail.internet.MimeMessage;
> import javax.servlet.http.HttpServletRequest;
> import javax.servlet.http.HttpServletResponse;
>
>public void execute(HttpServletRequest request, HttpServletResponse
> response, PrintWriter out) {
>String userName = System.getProperty
> ("com.galensystems.calendarEmail");
>String body = "This is a test";
>
>Properties props = System.getProperties();
>
>// Get a Session object
>Session session = Session.getInstance(props, null);
>
>Message message = new MimeMessage(session);
>try {
>message.setFrom(new InternetAddress(userName, "Admin
> Email"));
>message.addRecipient(Message.RecipientType.TO,
>new InternetAddress("
> some-receipe...@gmail.com", "Mr. John
> Smith"));
>message.setSubject("Your Example.com account has been
> activated");
>message.setText(body);
>Transport.send(message);
>} catch (UnsupportedEncodingException e) {
>e.printStackTrace();
>} catch (MessagingException e) {
>e.printStackTrace();
>}
>
>}
>
> After deploying and running it on GAE, I got the following log info/
> warning exceptions below. I did not add Sun's JavaMail JARs to my app.
> It did send the email successfully.  It showed up on my inbox as
> expected.
>
> My environments: GAE 1.3.0, Eclipse-Galileo.
>
> Do I need to worry about the exceptions below?
> Thanks in advance for your help.
>
> 12-20 07:05AM 49.119
>
> com.google.appengine.repackaged.com.google.common.base.FinalizableReferenceQueue
> : Failed to start reference finalizer thread. Reference cleanup
> will only occur when new references are created.
> java.lang.reflect.InvocationTargetException
>at com.google.appengine.runtime.Request.process-8ef88bb7edeb9b03
> (Request.java)
>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(Method.java:42)
>at
>
> com.google.appengine.repackaged.com.google.common.base.FinalizableReferenceQueue.
> (FinalizableReferenceQueue.java:124)
>at
> com.google.appengine.repackaged.com.google.common.labs.misc.InterningPools
> $WeakInterningPool.(InterningPools.java:104)
>at
>
> com.google.appengine.repackaged.com.google.common.labs.misc.InterningPools.newWeakInterningPool
> (InterningPools.java:48)
>at
>
> com.google.appengine.repackaged.com.google.io.protocol.ProtocolSupport.
> (ProtocolSupport.java:55)
>at com.google.appengine.api.mail.MailServicePb$MailMessage.
> (MailServicePb.java:643)
>at com.google.appengine.api.mail.MailServicePb$MailMessage$1.
> (MailServicePb.java:1600)
>at com.google.appengine.api.mail.MailServicePb$MailMessage.
> (MailServicePb.java:1600)
>at com.google.appengine.api.mail.MailServiceImpl.doSend
> (MailServiceImpl.java:49)
>at com.google.appengine.api.mail.MailServiceImpl.send
> (MailServiceImpl.java:32)
>at com.google.appengine.api.mail.stdimpl.GMTransport.sendMessage
> (GMTransport.java:247)
>at javax.mail.Transport.send(Transport.java:95)
>at javax.mail.Transport.send(Transport.java:48)
>at com.galensystems.pchr.server.DoEmail.execute(DoEmail.java:57)
>at com.galensystems.pchr.server.DoServer.main(DoServer.java:72)
>at com.galensystems.pchr.server.DoServer.doPost(DoServer.java:43)
>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.utils.servlet.ParseBlobUploadFilter.doFilter
> (ParseBlobUploadFilter.java:97)
>at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1084)
>at com.google.a

[appengine-java] Re: Datastore W/O JDO or JPA??

2009-12-28 Thread Iqbal Yusuf Dipu
@jd and @ vbart thanks for your input. I have also found Objectify, it
feels RESTful.

http://code.google.com/p/objectify-appengine/

People please post more projects (if  there are more) so that we can
create a list of JDO/JPA alternatives here.

Thanks.

Iqbal

--

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] Wrong calculation of week in App Engine

2009-12-28 Thread Raphael André Bauer
On Mon, Dec 28, 2009 at 6:04 PM, Don Schwarz  wrote:
> I suspect that WEEK_OF_YEAR and YEAR do not generally behave the way you
> want.  See this bug for more details:
> http://bugs.sun.com/view_bug.do?bug_id=4267450
> As for why this works for you locally and not when deployed to App Engine, I
> don't have a satisfactory answer.  Have you verified that the timezones are
> the same (by adding "zzz" to your format string)

Hi Don,


thanks for the superfast reply. I tried it again setting the locale
and the timezone explicitly (and also using explicitly the
GregorianCalendar).

==snippp
Calendar calendar = GregorianCalendar.getInstance(
TimeZone.getTimeZone("MEZ"), Locale.GERMAN);
calendar.setTimeInMillis(millisecs);
DateFormat formatter = new SimpleDateFormat("ww");

return formatter.format(calendar.getTime());

== snapp

however the error is still there. Using the timestamp of now
(1262000152901L) my local machine tells me:
"200953"  what is correct, but App Engine returns the wrong "200901".

Hmm. What puzzles me is why my local machine can calculate the "ww".
Therefore I am still not too sure if the bug you mentioned (4267450)
from sun still applies to my SDK version 1.6 - because my 1.6 series
can calculate the week without any problems.

The next question then is: What SDK is the App Engine using? I bet
it's not the SDK from Sun, but Open SDK or a derivate. And if that's
the case this might be a bug...


I think I am going to implement the "ww" myself to circumvent the App
Engine behavior and file a bug... Not nice, but I need the
functionality...


Raphael
>
> On Mon, Dec 28, 2009 at 5:54 AM, Raphael André Bauer
>  wrote:
>>
>> Hi,
>>
>>
>> I am currently using this code to calculate the week of the year:
>>
>>
>> ===snip
>> Calendar calendar = Calendar.getInstance();
>> calendar.setTimeInMillis(millisecs);
>> DateFormat formatter = new SimpleDateFormat("ww");
>>
>> String timeStamp =  formatter.format(calendar.getTime());
>> ===snap
>>
>> Using the timestamp of now (1262000152901L) my local machine tells me:
>> "200953"  what is correct.
>>
>> However, if I execute the very same code on the App Engine I get week
>> "200901" (!) what is strange, because the year is correct, but the
>> week is not...
>>
>>
>> Any ideas?
>>
>> Thanks a lot!
>>
>>
>>
>> Raphael
>>
>> --
>>
>> 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.
>

--

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] Testing mail service in development mode

2009-12-28 Thread Marcel Overdijk
As GAE does not send out mails in development server, I'm wondering
how others are testing this. Just go live and hope it works?

--

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 Didier Girard
The workaround works for me.
Thanks,
Didier

On Dec 28, 4:49 pm, Don Schwarz  wrote:
> Here's an update that includes a workaround:
>
> http://www.google.com/support/forum/p/Google+Apps/thread?tid=66513228...
>
>
>
> On Mon, Dec 28, 2009 at 4:55 AM, Roman  wrote:
> > I just fixed it and my sitehttp://www.dailydev.orgis 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  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  > >wrote:
>
> > > > 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  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  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  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  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.com > > > > >>  unsubscr...@googlegroups.com> > unsubscr...@googlegroups.com> > > > 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 > > > > >  unsubscr...@googlegroups.com> > unsubscr...@googlegroups.com> > > > 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 > > >  unsubscr...@googlegroups.com> > 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 > 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-ap

[appengine-java] "A server error has occurred." message in GAE console

2009-12-28 Thread Nikolay Gorylenko
http://appengine.google.com/datastore/explorer?app_id=sz-dashboard&viewby=kind&kind=PersonEntity
- this URL still causes an error

"Server Error
A server error has occurred.
Return to Applications screen »"

Hi Nikolay. What are your application IDs?
- Jason
On Tue, Oct 20, 2009 at 12:34 AM, Nikolay Gorylenko 
wrote:
> This problem lasts for 3 weeks on Google AppEngine console.
> But now again - "Server error" and no way to see my data via admin
> console.

--

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

2009-12-28 Thread Max
I made mistake in subject line. 405 not 401

On Dec 28, 9:45 pm, Max  wrote:
> I am developing bulk uploader.
> I delete all objects from datastore and upload data then delete and
> upload again.
>
> Recently I reached limit.
>
> So I was invited to join new "paid" application created on another
> google account.
>
> I uploaded my project but my servlet returns 405 (Method Not Allowed)
> error when I try to upload data.
>
> Data is uploaded throw POST method.
>
> I just changed Application ID it is very strange to me and I do not
> have any idea how to debug it.
>
> Thanks, Max

--

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] 401 error

2009-12-28 Thread Max
I am developing bulk uploader.
I delete all objects from datastore and upload data then delete and
upload again.

Recently I reached limit.

So I was invited to join new "paid" application created on another
google account.

I uploaded my project but my servlet returns 405 (Method Not Allowed)
error when I try to upload data.

Data is uploaded throw POST method.

I just changed Application ID it is very strange to me and I do not
have any idea how to debug it.

Thanks, Max

--

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: GAE roadmap for 2010

2009-12-28 Thread Ikai L (Google)
Not at all. As Phillipe mentions, voting on issues helps us a lot when
prioritizing fixes. As far as "big targets" go, we'll announce them and
update the roadmap when it becomes clear what they are. This'll likely
happen sometime in Q1 2010. There are a few things which we are always
looking at but aren't listed because they are very long term goals that
we'll be taking incremental steps towards:

- Improving cold startup time
- Datastore performance
- Improving reporting transparency

There are a lot of projects that may not be listed on the roadmap but will
be released in alpha form. A good example is AppStats:
https://sites.google.com/site/appengineappstats. We'll try to keep the
groups as up to date as we can.

On Wed, Dec 23, 2009 at 8:59 AM, Muz  wrote:

> Thanks Ikai. Sounds Agile! So does this mean that any feature requests
> coming in today (for example) won't get evaluated for at least 6
> months?
>
> Issue #2555 submitted.
>
> Murray
>
> On Dec 22, 3:23 pm, "Ikai L (Google)"  wrote:
> > The roadmap that is up right now represents our six month goals:
> http://code.google.com/appengine/docs/roadmap.html
> >
> > Beyond that, we do not even have much visibility ourselves into what we
> are
> > going to work on, but as soon as we have set high level objectives, we'll
> > communicate them with our developers. This is one of the reasons we ask
> > everybody to create and star issues:
> http://code.google.com/p/googleappengine/issues/list
> >
> >
> >
> > On Tue, Dec 22, 2009 at 8:32 AM, Muz  wrote:
> > > I second this request for 2010 roadmap visibility.
> >
> > > I'm especially curious if there will be any definite plan to support
> > > multi-tenancy on GAE (beyond the current odd workaround/exception
> > > mechanisms). We have requirements for several of these to get started
> > > in Q2. Google seems to be the only cloud player to not have a long-
> > > term model for this yet.
> >
> > > M
> >
> > > On 20 Dec, 02:54, Antoine Sabot-durand 
> > > wrote:
> > > > Hi,
> >
> > > > I found the roadmap for 2009 but is there one for 2010 ? I'd like to
> > > > propose my company to start developement on GAE but the lack of
> > > > visibility on the platform is an issue. Will you support some of the
> > > > JEE6 new standard (JSF 2, CDI, JPA 2, EJB 3.1 ?). Is the imageio
> issue
> > > > with the JSF richfaces library will be corrected ?
> > > > I saw a lot of question in the forum but few answer (or wasn't able
> to
> > > > find them).
> > > > Thanks for your answers.
> >
> > > > Antoine
> >
> > > --
> >
> > > 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.
> >
> > --
> > Ikai Lan
> > Developer Programs Engineer, Google App Engine
>
> --
>
> 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.
>
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine

--

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] Code does not run server side.

2009-12-28 Thread Ikai L (Google)
Do you have a stack trace or an error? What are the visible symptoms of your
problems running in production?

On Thu, Dec 24, 2009 at 7:50 AM, Bert Peters wrote:

> Some code, that i created and tested using Eclipse and the google
> plugin, seems not to run while installed on the App Engine, no matter
> what.
> I have really no idea what it couldd be, Anyone else an idea?
>
> By the way, the code for all files is listed below.
>
> Main file:
>
> package poaphost;
>
> import javax.servlet.http.*;
> import javax.jdo.Query;
> import javax.jdo.PersistenceManager;
> import java.io.IOException;
> import poaphost.PMF;
> import poaphost.Address;
> import poaphost.Iphandler;
>
> import java.util.Locale;
> import java.util.Random;
> import java.util.List;
> import java.util.Date;
> import java.util.Formatter;
>
> public class LOGONServlet extends HttpServlet {
>
>/**
> *
> */
>private static final long serialVersionUID = 1373256072813419920L;
>
>public void doGet(HttpServletRequest req, HttpServletResponse resp)
>throws IOException {
>String uid = "";
>Cookie[] cookies = req.getCookies();
>for (Integer i = 0; i < cookies.length; i++) {
>if (cookies[i].getName().equals("poap_uid")
>&& cookies[i].getValue().length() ==
> 8) {
>uid = cookies[i].getValue();
>}
>}
>if (uid == "") {
>String base =
> "abcdefghijklmnopqrstuvwxyz1234567890";
>Random generator = new Random();
>for (Integer i = 0; i < 8; i++) {
>uid += base.charAt(generator.nextInt(35));
>}
>}
>
>String ip = req.getRemoteAddr();
>
>Long ipNo = Iphandler.ip2long(ip);
>
>PersistenceManager pm = PMF.get().getPersistenceManager();
>
>Query q = pm.newQuery(Address.class, "ip == ipParam && code
> ==
> uidParam");
>q.declareParameters("Long ipParam, String uidParam");
>
>List result = (List) q.execute(ipNo, uid);
>
>if (result.isEmpty()) {
>Address a = new Address(ipNo, uid);
>pm.makePersistent(a);
>}
>Cookie c = new Cookie("poap_uid",uid);
>c.setPath("/");
>c.setDomain("http://poaphost.appspot.com";);
>c.setMaxAge(60*60*24*365);
>
>resp.setContentType("text/xml");
>resp.setCharacterEncoding("ISO-8859-1");
>resp.addCookie(c);
>
>Date d = new Date();
>
>Long i = d.getTime();
>
>Double f = i.doubleValue() / 1000;
>
>StringBuilder sb = new StringBuilder();
>
>Formatter formatter = new Formatter(sb, Locale.US);
>formatter.format("%11.4f", f);
>
>resp.getWriter().println(
>" encoding=\"ISO-8859-1\"?>");
>resp.getWriter().println("");
>resp.getWriter().println("logon");
>resp.getWriter().println("1");
>resp.getWriter().println("0");
>resp.getWriter().println("" + sb.toString() +
> "");
>resp.getWriter().println("0");
>resp.getWriter().println("" + uid + "");
>resp.getWriter().println("");
>}
>
> }
>
> poaphost.PMF file
>
> package guestbook;
>
> import javax.jdo.JDOHelper;
> import javax.jdo.PersistenceManagerFactory;
>
> public final class PMF {
>private static final PersistenceManagerFactory pmfInstance =
>JDOHelper.getPersistenceManagerFactory("transactions-
> optional");
>
>private PMF() {}
>
>public static PersistenceManagerFactory get() {
>return pmfInstance;
>}
> }
>  file poaphost.iphandler
>
> package poaphost;
>
> public class Iphandler {
>public static long ip2long( String aIpAddress )
>{
>long ip = 0;
>String[] t = aIpAddress.split("\\.");
>ip = Long.parseLong(t[0]) * 256 * 256 * 256;
>ip += Long.parseLong(t[1]) * 256 * 256;
>ip += Long.parseLong(t[2]) * 256;
>ip += Long.parseLong(t[3]);
>return ip;
>}
>public static String long2ip( long aIpAddress )
>{
>return (aIpAddress >> 24 & 255) + "." + (aIpAddress >> 16 &
> 255) + "." + (aIpAddress >> 8 & 255) + "." + (aIpAddress & 255);
>}
> }
>
> file poaphost.Address
>
> package poaphost;
>
> import com.google.appengine.api.datastore.Key;
>
> import java.lang.Long;
> import java.lang.String;
>
> import javax.jdo.annotations.IdGeneratorStrategy;
> import javax.jdo.annotations.IdentityType;
> import javax.jdo.annotations.PersistenceCapable;
> i

Re: [appengine-java] JDO Mapping issue : A parent cannot be established or changed once an object has been persisted.

2009-12-28 Thread Ikai L (Google)
Parent relationships cannot be established after an object has been saved
because the parent Key information is saved in the Child Key as a prefix. If
an Artist is the parent of a Song, your Song key will looking something like
this unencoded (this is just a pseudo-key):

Artist(Madonna):Song(Papa Don't Preach):

If you save the Song object before the artist object, the Song already has
the Key:

Song(Papa Don't Preach)

This cannot be changed. Rather than a parent-child relationship, you may be
better off designing your objects to contain Keys of related objects. That
is, your Song object should have a Key referencing the Artist. This'll allow
you to save in arbitrary orders, though you may have to revisit your entity
group setup if you need transactional writes.

On Wed, Dec 23, 2009 at 2:15 PM, niraj  wrote:

> I have three classes
>
> Album{
>  Artist albumArtist;
>@Persistent(mappedBy = "parent")
>@Element(dependent = "true")
>   List songs;
> }
>
> Song{
>  Artist singer;
>  Album parent;
> }
>
> Artist{
>  String name;
> }
>
>
> If I use the Artist instance I create for Album for Song(singer) - I
> get an error
>
> javax.jdo.JDOFatalUserException: Detected attempt to establish Album
> (1) as the parent of Album(1)/Song(2)/Artist(3) but the entity
> identified by Album(1)/Song(2)/Artist(3) is already a child of Album
> (1)/Song(2).  A parent cannot be established or changed once an object
> has been persisted.
>
> CODE -  THIS throws the above error
>
>Artist artist = new Artist("First", "LastN", "First Last");
>Album album = new Album("Ahat and album", artist, 1978);
>Song song = new Song("Som song", album, artist);
>album.addSong(song);
>dao.makePersistantAndCommit(album);
>
>
> CODE: This works
>
>Artist artist = new Artist("First", "LastN", "First Last");
>Artist artist2 = new Artist("Second", "LastN", "Second Last");
>Album album = new Album("Ahat and album", artist, 1978);
>Song song = new Song("Som song", album, artist2);
>album.addSong(song);
>dao.makePersistantAndCommit(album);
>
> From my app requirements standpoint - I can have an Artist who is the
> albumArtist and who is also the singer. And hence I have a need to use
> the Artist instance.
>
> Inputs
>
> --
>
> 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.
>
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine

--

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: JDO Query for properties with null values

2009-12-28 Thread Ikai L (Google)
You should be able to query for a null value, but you will not be able to
query for an empty value. What is the query you are issuing? What is this
returning?

On Wed, Dec 23, 2009 at 8:29 AM, dantuluri  wrote:

> I am new GAE and I need some help. Is it possible to query for
> entities with a property value null using GAE JDO query?
>
> I want something like
>
>   "Get me all the Files that don't have a parent"
>
> In regular relational DBs, it can be queried some thing like this:
>"select * from File where parentKey is null"
>
> I have a class something like this:
>
> public class File {
>  @Persistent
>  @PrimaryKey
>  private Key id;
>
>  @Persistent
>  String name;
>
>   @Persistent
>   private Key parentKey;
> }
>
> When I am querying for Files that have null parentKey, query returns
> all Files including those with non-null parentKey value. Is this
> possible to do with GAE?
>
> Thanks!
>
> On Dec 22, 1:33 pm, dantuluri  wrote:
> > Hi,
> >
> > I have an entity that has the following structure:
> >
> > File  which has Key as primary key and ParentKey that refers to
> > another File which is parent of this File. Example data for this
> > structure looks like this:
> >
> > Key: File(2)
> > Name: Inbox
> > parentKey: File(1)
> >
> > It is possible that File may not have a parentKey.
> >
> > I want to query the DataStore for Files that don't have parent file
> > (parentKey == null). But when I am querying with parentKey == null, I
> > am still getting all Files including those with parentsKeys. How can
> > we do this with JDO query with App Store? I must be missing something
> > basic here.
> >
> > Similarly I would like to get the child folders of a given folder
> > (parentKey == File(1)).
> >
> > Any help would be appreciated!
> >
> > 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.
>
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine

--

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] 1K results query limit removed?

2009-12-28 Thread Don Schwarz
You can get more than 1K entities as long as you iterate over them.  You
just can't fetch more than 1K entities in a single batch (e.g. via
PreparedQuery.asList()).

On Mon, Dec 28, 2009 at 3:54 AM, Stas Chizhov  wrote:

> Hi,
>
> I'm able to get much more than just 1K entities in one query (I was
> observing up to 8K rows).
> AFAIK there query result set is supposed to be limited by 1K entities.
> So I'm a bit confused - was this limit relaxed recently or am I
> getting something wrong?
>
> Thank you,
> Stas.
>
> --
>
> 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: What's the right way to use PersistenceManager?

2009-12-28 Thread patr...@kodova.com
I playing around with GWT RPC & App Engine and was wondering the same
thing today and I ended up using a ThreadLocal.Also I am going to do
some refactoring it to make it work with dependency injection so I can
reuse it in the future.

Pros:
 * I have one PersistenceManager per RPC request.
 * Less code on every method to handle exceptions and closing
connections
 * Entity objets being passed around between methods are not detached.

Cons:
 * Increases runtime exceptions if you forget to initiate the
PersistenceManager
 * Currently not very friendly for unit testing of your RPC calls but
can be fixed.

PMF.java
public final class PMF {
private static final PersistenceManagerFactory pmfInstance =
JDOHelper
.getPersistenceManagerFactory("transactions-optional");
private static final ThreadLocal pmLocal = new
ThreadLocal();

private PMF() {
}

public static PersistenceManager initPersistenceManager() {

pmLocal.set(getPersistenceManagerFactory().getPersistenceManager());
return pmLocal.get();
}

public static PersistenceManager getPersistenceManager() {
PersistenceManager pm = pmLocal.get();
if (null == pm) {
throw new IllegalStateException(
"You must call initPersitenceManager 
first.");
} else if (pm.isClosed()) {
throw new IllegalStateException(
"The persistence manager is closed. Was 
close called on it before
you expected.");
}

return pm;
}

private static PersistenceManagerFactory getPersistenceManagerFactory
() {
return pmfInstance;
}
}


RPC Service Implementation Method
///
PMF.initPersistenceManager();
try{

// Call some methods that call this -> PersistenceManager pm =
PMF.getPersistenceManager();

}catch (Exception e) {
// Handle Exception in a graceful way
}finally{
PMF.getPersistenceManager().close();
}



On Dec 5, 12:30 am, Fan Lin  wrote:
> Hi, I'm new in JDO, so I think this problem may sounds stupid...
> I'm working on my application on App-engine, and feel really confused
> about how to use the PersistenceManager in my app...
>
> 1) At the very beginning I tried to maintain only one static pm
> instance in my app, but I found that when I try to update the entities
> in datastore, it does not write back, since I do not close the pm.
>
> 2) Then, I tried to get a new pm in every request, and after the
> request I close it. But I still store the pm as a static field in a
> DaoBase class. the code looks like:
>
> PersistenceManager pm = PFM.get().getPersistenceManager();
> DaoBase.setPm(pm);
>
> do the request...
>
> DaoBase.getPm().close();
> DaoBase.setPm(null);
>
> But when multiple requests come concurrently, things becomes messy and
> sometimes the DaoBase.getPm() will returns null during a request.
>
> 3) Use new pm each time when reading the datastore, then detach the
> object from pm, close the pm. Then during update time, use a new pm to
> update it. But the problem here is when there is some owned
> relationship between datastore entities, a detatched object will not
> fetch the data automatically, like:
>
> /
> class Address {
> 
>
> }
>
> class Employee {
>    private List addressList;
>
>    public List getAddressList() {
>         return addressList;
>     }}
>
> ///
> the getAddressList() will always return null.
>
> So...What is the right way to use PersistenceManager?

--

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] Cannot install app engine plugin in eclipse 3.5 (Galileo)

2009-12-28 Thread Uros
Hello,

When I try to install app engine plugin in eclipse I get the following
error:

An error occurred while collecting items to be installed
  session context was:(profile=epp.package.jee,
phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Collect,
operand=, action=).
  Unable to read repository at
http://dl.google.com/eclipse/plugin/3.5/plugins/com.google.appengine.eclipse.sdkbundle.1.3.0_1.3.0.v200912141120.jar.
  Read timed out

An error occurred while collecting items to be installed
An exception stack trace is not available.

Unable to read repository at
http://dl.google.com/eclipse/plugin/3.5/plugins/com.google.appengine.eclipse.sdkbundle.1.3.0_1.3.0.v200912141120.jar.
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read1(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at org.apache.commons.httpclient.ContentLengthInputStream.read
(ContentLengthInputStream.java:170)
at java.io.FilterInputStream.read(Unknown Source)
at org.apache.commons.httpclient.AutoCloseInputStream.read
(AutoCloseInputStream.java:108)
at java.io.FilterInputStream.read(Unknown Source)
at org.apache.commons.httpclient.AutoCloseInputStream.read
(AutoCloseInputStream.java:127)
at
org.eclipse.ecf.provider.filetransfer.retrieve.AbstractRetrieveFileTransfer
$1.performFileTransfer(AbstractRetrieveFileTransfer.java:140)
at org.eclipse.ecf.filetransfer.FileTransferJob.run
(FileTransferJob.java:73)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

session context was:(profile=epp.package.jee,
phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Collect,
operand=, action=).
An exception stack trace is not available.

eclipse.buildId=M20090917-0800
java.version=1.6.0_17
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product
org.eclipse.epp.package.jee.product

Is there any workaround to this problem?

Thanks,
Uros

--

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] Using Castor with GAE

2009-12-28 Thread marwen
Hello,
I'm trying to use Castor in the server side of an appengine
application in order to initialize the datastore with xml-performed
data. I put the xml init file in the war directory and I add castor
jars and its dependencies in the war/lib directory. But I got
something like that :
AccessDeniedException : could not access castor.core.properties in C:
\Program Files\...\jre6\lib

I'm using the Eclipse 3.4 with appengine 1.2.0 plugin
Do I something wrong ? Is castor supported by GAE ? If it doesn't, is
there something to bypass this issue ?

Thanks in advance
Marwen

--

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] AppEngine Blob data type limits

2009-12-28 Thread Don Schwarz
Datastore Blob fields are limited to approximately 1M each:

http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/Blob.html

If you need to store data larger than 1M, you'll need to use the new
Blobstore API:

http://code.google.com/appengine/docs/java/blobstore/

You then store a BlobKey to a larger block of data in your CacheEntity.

On Mon, Dec 28, 2009 at 8:04 AM, Miroslav Genov wrote:

> Hello,
>  Does anyone knows why I'm getting the following exception when Blob
> field is used ?
>
>  The documentation doesn't mention any limits for that data type.
>
> java.lang.IllegalArgumentException: string property content is too
> long.  It cannot exceed 100 characters.
>at
>
> com.google.appengine.api.datastore.DatastoreApiHelper.translateError(DatastoreApiHelper.java:33)
>at
>
> com.google.appengine.api.datastore.DatastoreApiHelper.makeSyncCall(DatastoreApiHelper.java:60)
>at
>
> com.google.appengine.api.datastore.DatastoreServiceImpl$2.run(DatastoreServiceImpl.java:173)
>at
>
> com.google.appengine.api.datastore.TransactionRunner.runInTransaction(TransactionRunner.java:30)
>at
>
> com.google.appengine.api.datastore.DatastoreServiceImpl.put(DatastoreServiceImpl.java:161)
>at
>
> com.google.appengine.api.datastore.DatastoreServiceImpl.put(DatastoreServiceImpl.java:141)
>at
>
> com.google.appengine.api.datastore.DatastoreServiceImpl.put(DatastoreServiceImpl.java:133)
>at
>
> org.datanucleus.store.appengine.RuntimeExceptionWrappingDatastoreService.put(RuntimeExceptionWrappingDatastoreService.java:93)
>at
>
> org.datanucleus.store.appengine.DatastorePersistenceHandler.put(DatastorePersistenceHandler.java:165)
>at
>
> org.datanucleus.store.appengine.DatastorePersistenceHandler.put(DatastorePersistenceHandler.java:124)
>at
>
> org.datanucleus.store.appengine.DatastorePersistenceHandler.put(DatastorePersistenceHandler.java:119)
>at
>
> org.datanucleus.store.appengine.DatastorePersistenceHandler.updateObject(DatastorePersistenceHandler.java:492)
>at
>
> org.datanucleus.state.JDOStateManagerImpl.flush(JDOStateManagerImpl.java:4576)
>at
>
> org.datanucleus.ObjectManagerImpl.flushInternal(ObjectManagerImpl.java:2814)
>at org.datanucleus.ObjectManagerImpl.flush(ObjectManagerImpl.java:2754)
>at
> org.datanucleus.ObjectManagerImpl.preCommit(ObjectManagerImpl.java:2893)
>at
> org.datanucleus.TransactionImpl.internalPreCommit(TransactionImpl.java:369)
>at org.datanucleus.TransactionImpl.commit(TransactionImpl.java:256)
>at org.datanucleus.ObjectManagerImpl.close(ObjectManagerImpl.java:801)
>
>
> Here is the definition of my entity object:
>
> @PersistenceCapable(identityType = IdentityType.APPLICATION,
> detachable="true")
> public class CacheEntity {
>
>  @PrimaryKey
>  @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
>  private Key key;
>
>  @Persistent
>  private Blob content;
>
>  public Key getKey() {
>return key;
>  }
>
>  public void setKey(Key key) {
>this.key = key;
>  }
>
>  public Blob getContent() {
>return content;
>  }
>
>  public void setContent(Blob content) {
>this.content = content;
>  }
> }
>
> Regards,
>  Miroslav
>
> --
>
> 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] Wrong calculation of week in App Engine

2009-12-28 Thread Don Schwarz
I suspect that WEEK_OF_YEAR and YEAR do not generally behave the way you
want.  See this bug for more details:

http://bugs.sun.com/view_bug.do?bug_id=4267450

As for why this works for you locally and not when deployed to App Engine, I
don't have a satisfactory answer.  Have you verified that the timezones are
the same (by adding "zzz" to your format string) ?

On Mon, Dec 28, 2009 at 5:54 AM, Raphael André Bauer <
raphael.andre.ba...@gmail.com> wrote:

> Hi,
>
>
> I am currently using this code to calculate the week of the year:
>
>
> ===snip
> Calendar calendar = Calendar.getInstance();
> calendar.setTimeInMillis(millisecs);
> DateFormat formatter = new SimpleDateFormat("ww");
>
> String timeStamp =  formatter.format(calendar.getTime());
> ===snap
>
> Using the timestamp of now (1262000152901L) my local machine tells me:
> "200953"  what is correct.
>
> However, if I execute the very same code on the App Engine I get week
> "200901" (!) what is strange, because the year is correct, but the
> week is not...
>
>
> Any ideas?
>
> Thanks a lot!
>
>
>
> Raphael
>
> --
>
> 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: hijacked domain

2009-12-28 Thread Don Schwarz
Here's an update that includes a workaround:

http://www.google.com/support/forum/p/Google+Apps/thread?tid=66513228ad68b941&hl=en

On Mon, Dec 28, 2009 at 4:55 AM, Roman  wrote:

> 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  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  >wrote:
> >
> >
> >
> > > 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  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  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  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  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.com unsubscr...@googlegroups.com> > > 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 unsubscr...@googlegroups.com> > > 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 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.
>
>
>

--

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

2009-12-28 Thread Don Schwarz
Here's an update on this issue that includes a workaround:

http://www.google.com/support/forum/p/Google+Apps/thread?tid=66513228ad68b941&hl=en

On Mon, Dec 28, 2009 at 4:53 AM, Roman  wrote:

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

--

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: Scope of datastores -- accessible across multiple GAE applications?

2009-12-28 Thread Sandeep Sathaye
An abstraction layer is required on top of Google Bigtable to achieve this
kind of functionality. We are trying to achieve this through JDBC & SQL
route. Please check out this link (http://www.cloud2db.com).
On Sun, Dec 27, 2009 at 11:29 PM, Riyad  wrote:

> Michael,
>
> I'm not sure I follow -- I was literally thinking in the sense of
> "what values do I put in my persistence.xml / hibernate.cfg.xml file
> to get this app to connect back to that particular singular
> datastore?" for each of my 3 or 4 apps that want to share that same
> singular source of data -- basically what the JDBC settings would be.
>
> Creating a public API that is exposed via web services or something is
> fine/great/etc -- just not the use-case I needed.
>
> Maybe it was a dump question and the nature of the GAE beast is that 1
> app gets 1 data store and everything is sandboxed just by virtue of
> how the system is designed/intended... I might just be thinking about
> this wrong.
>
> Also, Merry Christmas and Happy New Year to you as well!
>
> Thanks,
> Riyad
>
> On Dec 26, 7:52 am, mike s  wrote:
> > Merry Christmas.
> >
> > Surely an important use of cloud computing is creating services that
> > can be shared?
> >
> > So why not implement your "harvester" with an API that allows other
> > apps, including your own, to read the database?  i.e. other
> > applications connect to your datastore through your application rather
> > than some other magic.   Wouldn't that be safer anyway?
> >
> > Michael
> >
> > On Dec 25, 4:46 am,Riyad wrote:
> >
> >
> >
> > > bump
> >
> > > On Dec 23, 9:50 pm,Riyad wrote:> What is the
> definedscopeof a datastore as used by your JDO/JPA code
> > > > in a Java application deployed on GAE? Can you only insert/retrieve
> > > > data for a pre-defined datastore associated with your running app, or
> > > > can you connect to another application's datastore and
> insert/retrieve
> > > > data from that data store as well?
> >
> > > > Example:
> >
> > > > Consider a very large data-mining application written and deployed on
> > > > GAE as separate applications:
> >
> > > > 1. Harvester -- application scrubs the web all day long looking for
> > > > information and inserting it into it's data store. Lots of the new
> > > > experiemntal Task API used here.
> >
> > > > 2. Website -- website used by customers to search the compiled data,
> > > > create accounts, and do other compelling things with it -- like rank
> > > > it. This would be reading/updating data from App #1's datastore.
> >
> > > > 3. Admin -- website used by admins to manually modify the information
> > > > in the system -- again, manipulating the data from App #1's
> datastore.
> >
> > > > Is this possible? Or would I just have to model this entire
> > > > application as a single huge GAE application in order to allow all
> > > > those pieces to share access to the datastore that the Harvester
> > > > creates and maintains?
> >
> > > > Thanks for the assist guys.
> >
> > > > Best,
> > > >Riyad
>
> --
>
> 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] Way to enforce Appengine Whitelist in Eclipse?

2009-12-28 Thread Miguel Méndez
The Google Plugin for Eclipse  provides
that feature.

On Sat, Dec 26, 2009 at 11:47 PM, Dieter Krachtus <
dieter.krach...@googlemail.com> wrote:

> Hi,
>
> is there a way to enforce the Appengine Whitelist in Eclipse? I would
> like to get a little Error-Icon as soon as I use a class not in the
> Whitelist.
>
> Cheers,
> Dieter
>
> --
>
> 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.
>
>
>


-- 
Miguel

--

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: Data Nucleus Enhancer Exception

2009-12-28 Thread Vik
Hie

so i see below exceptions. Please reply how can i make sure to avoid this
issue. I tried deleting all the libs from WEB-INF/lib folder and when i
restart eclipse i get to see all appearing again automatically and the below
exception in the log.

java.lang.RuntimeException: Unexpected exception
at com.google.appengine.tools.enhancer.Enhancer.execute(Enhancer.java:59)
 at com.google.appengine.tools.enhancer.Enhance.(Enhance.java:60)
at com.google.appengine.tools.enhancer.Enhance.main(Enhance.java:41)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
 at com.google.appengine.tools.enhancer.Enhancer.execute(Enhancer.java:57)
... 2 more
Caused by: org.datanucleus.exceptions.NucleusException: Plugin (Bundle)
"org.datanucleus.store.appengine" is already registered. Ensure you dont
have multiple JAR versions of the same plugin in the classpath. The URL
"file:/D:/Personal/softwares/sakshum_softwares/Google_Apps/eclipse/plugins/com.google.appengine.eclipse.sdkbundle.1.3.0_1.3.0.v200912141120/appengine-java-sdk-1.3.0/lib/user/orm/datanucleus-appengine-1.0.4.1.final.jar"
is already registered, and you are trying to register an identical plugin
located at URL
"file:/D:/eclipse/vskumar/workspace/Sakshumweb2.0/war/WEB-INF/lib/datanucleus-appengine-1.0.4.1.final.jar."
 at
org.datanucleus.plugin.NonManagedPluginRegistry.registerBundle(NonManagedPluginRegistry.java:434)
at
org.datanucleus.plugin.NonManagedPluginRegistry.registerBundle(NonManagedPluginRegistry.java:340)
 at
org.datanucleus.plugin.NonManagedPluginRegistry.registerExtensions(NonManagedPluginRegistry.java:222)
at
org.datanucleus.plugin.NonManagedPluginRegistry.registerExtensionPoints(NonManagedPluginRegistry.java:153)
 at
org.datanucleus.plugin.PluginManager.registerExtensionPoints(PluginManager.java:82)
at org.datanucleus.OMFContext.(OMFContext.java:160)
 at
org.datanucleus.enhancer.DataNucleusEnhancer.(DataNucleusEnhancer.java:172)
at
org.datanucleus.enhancer.DataNucleusEnhancer.(DataNucleusEnhancer.java:150)
 at
org.datanucleus.enhancer.DataNucleusEnhancer.main(DataNucleusEnhancer.java:1157)
... 7 more


Thankx...
Thankx and Regards

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


On Sun, Dec 27, 2009 at 1:00 PM, Lior Harsat  wrote:

> Hi,
>
> This happens from time to time on the google app engine eclipse
> plugin. so If you are using eclipse,clean and build your project. open
> the enhancer console ( in eclipse)  and verify that it ran correctly.
>
> Thanx, Lior
>
> On Dec 25, 11:33 am, Vik  wrote:
> > Hie
> >
> > While trying to do executeQuery  i get the follow exception:
> >
> > SEVERE: Exception is :Persistent class "Class
> > vik.sakshum.sakshumweb.server.model.jdo.Subscribe does not seem to have
> been
> > enhanced.  You may want to rerun the enhancer and check for errors in the
> > output." has no table in the database, but the operation requires it.
> Please
> > check the specification of the MetaData for this class.
> > javax.jdo.JDOUserException: Persistent class "Class
> > vik.sakshum.sakshumweb.server.model.jdo.Subscribe does not seem to have
> been
> > enhanced.  You may want to rerun the enhancer and check for errors in the
> > output." has no table in the database, but the operation requires it.
> Please
> > check the specification of the MetaData for this class.
> >  at
> >
> org.datanucleus.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(Nuc
> leusJDOHelper.java:375)
> > at org.datanucleus.jdo.JDOQuery.execute(JDOQuery.java:230)
> >  at
> >
> vik.sakshum.sakshumweb.server.model.DoSubscribe.execute(DoSubscribe.java:35
> )
> > at
> >
> vik.sakshum.sakshumweb.server.SubscribeModule$1$2.buttonClick(SubscribeModu
> le.java:119)
> >  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
> 9)
> >  at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
> l.java:25)
> > at java.lang.reflect.Method.invoke(Method.java:597)
> >  at
> >
> com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime
> .java:100)
> > at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:487)
> >  at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:161)
> > at com.vaadin.ui.AbstractComponent.fireEvent(AbstractComponent.java:1105)
> >  at com.vaadin.ui.Button.fireClick(Button.java:341)
> > at com.vaadin.ui.Button.changeVariables(Button.java:177)
> >  at
> >
> com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleVariables
> (AbstractCommunicationManager.java:1058)
> > at
> >
> com.vaadin.terminal.gwt.server.AbstractCommunicationManager.doHandleUidlReq
> uest(AbstractCommunicationManager.java:559

[appengine-java] AppEngine Blob data type limits

2009-12-28 Thread Miroslav Genov
Hello,
 Does anyone knows why I'm getting the following exception when Blob 
field is used ?

 The documentation doesn't mention any limits for that data type.

java.lang.IllegalArgumentException: string property content is too 
long.  It cannot exceed 100 characters.
at 
com.google.appengine.api.datastore.DatastoreApiHelper.translateError(DatastoreApiHelper.java:33)
at 
com.google.appengine.api.datastore.DatastoreApiHelper.makeSyncCall(DatastoreApiHelper.java:60)
at 
com.google.appengine.api.datastore.DatastoreServiceImpl$2.run(DatastoreServiceImpl.java:173)
at 
com.google.appengine.api.datastore.TransactionRunner.runInTransaction(TransactionRunner.java:30)
at 
com.google.appengine.api.datastore.DatastoreServiceImpl.put(DatastoreServiceImpl.java:161)
at 
com.google.appengine.api.datastore.DatastoreServiceImpl.put(DatastoreServiceImpl.java:141)
at 
com.google.appengine.api.datastore.DatastoreServiceImpl.put(DatastoreServiceImpl.java:133)
at 
org.datanucleus.store.appengine.RuntimeExceptionWrappingDatastoreService.put(RuntimeExceptionWrappingDatastoreService.java:93)
at 
org.datanucleus.store.appengine.DatastorePersistenceHandler.put(DatastorePersistenceHandler.java:165)
at 
org.datanucleus.store.appengine.DatastorePersistenceHandler.put(DatastorePersistenceHandler.java:124)
at 
org.datanucleus.store.appengine.DatastorePersistenceHandler.put(DatastorePersistenceHandler.java:119)
at 
org.datanucleus.store.appengine.DatastorePersistenceHandler.updateObject(DatastorePersistenceHandler.java:492)
at 
org.datanucleus.state.JDOStateManagerImpl.flush(JDOStateManagerImpl.java:4576)
at 
org.datanucleus.ObjectManagerImpl.flushInternal(ObjectManagerImpl.java:2814)
at org.datanucleus.ObjectManagerImpl.flush(ObjectManagerImpl.java:2754)
at 
org.datanucleus.ObjectManagerImpl.preCommit(ObjectManagerImpl.java:2893)
at 
org.datanucleus.TransactionImpl.internalPreCommit(TransactionImpl.java:369)
at org.datanucleus.TransactionImpl.commit(TransactionImpl.java:256)
at org.datanucleus.ObjectManagerImpl.close(ObjectManagerImpl.java:801)


Here is the definition of my entity object:

@PersistenceCapable(identityType = IdentityType.APPLICATION, 
detachable="true")
public class CacheEntity {

  @PrimaryKey
  @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
  private Key key;

  @Persistent
  private Blob content;

  public Key getKey() {   
return key;
  }

  public void setKey(Key key) {
this.key = key;
  }

  public Blob getContent() {
return content;
  }

  public void setContent(Blob content) {
this.content = content;
  }
}

Regards,
  Miroslav

--

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: Datastore W/O JDO or JPA??

2009-12-28 Thread jd
Twig http://code.google.com/p/twig-persist/

I think its the only one that doesn't make you deal with Keys
(including JDO) ... correct me if Im wrong here.  You just use normal
object references to other entities and define them as @Parent's
@Child'ren or even @Component's so that its properties are embedded.

On Dec 28, 9:01 am, Iqbal Yusuf Dipu  wrote:
> We have Siena and SimpleDS as alternative to JDO and JPA. Are there
> any other libraries exist?
>
> 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] Wrong calculation of week in App Engine

2009-12-28 Thread Raphael André Bauer
Hi,


I am currently using this code to calculate the week of the year:


===snip
Calendar calendar = Calendar.getInstance();
calendar.setTimeInMillis(millisecs);
DateFormat formatter = new SimpleDateFormat("ww");

String timeStamp =  formatter.format(calendar.getTime());
===snap

Using the timestamp of now (1262000152901L) my local machine tells me:
"200953"  what is correct.

However, if I execute the very same code on the App Engine I get week
"200901" (!) what is strange, because the year is correct, but the
week is not...


Any ideas?

Thanks a lot!



Raphael

--

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  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 
> wrote:
>
>
>
> > 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  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  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  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  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.com > > >>  unsubscr...@googlegroups.com> > 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 > > >  unsubscr...@googlegroups.com> > 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 > 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: 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  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  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  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.com > >  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] 1K results query limit removed?

2009-12-28 Thread Stas Chizhov
Hi,

I'm able to get much more than just 1K entities in one query (I was
observing up to 8K rows).
AFAIK there query result set is supposed to be limited by 1K entities.
So I'm a bit confused - was this limit relaxed recently or am I
getting something wrong?

Thank you,
Stas.

--

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: Datastore W/O JDO or JPA??

2009-12-28 Thread vbart
You can try AuDAO which generates a DAO layer.
More info at http://audao.spoledge.com

Vaclav

On Dec 28, 3:01 am, Iqbal Yusuf Dipu  wrote:
> We have Siena and SimpleDS as alternative to JDO and JPA. Are there
> any other libraries exist?
>
> 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.