[appengine-java] Re: Uploading to blobstore gives OutOfMemoryError

2010-06-22 Thread Mouseclicker
Did you try to upload a binary object like an image? It seems that app-
engine has hard-coded to parse the content for multipart/form-data.
The error appears when your message body is not formatted to the
multipart rules and parsing fails. The stacktrace gives an indication:

javax.mail.internet.MimeMultipart.readTillFirstBoundary

It is very unfortunate that you can only upload data from html-forms
to use BlobStore. Does someone know a workaround for other MIME types?

That you get an OutOfMemoryError is also the worst that can happen. If
the app really allocates that much heap space this is a perfect target
for a denial-of-service attack...

-- 
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: Parent child joins in JDO queries

2010-06-22 Thread Ian Marshall
Have you looked at the new-ish GAE datastore join capability at:

  http://gae-java-persistence.blogspot.com

-- 
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: Necessity for Java graphics

2010-06-22 Thread dflorey
This one works for me:
http://www.tinyline.com/
I had to implement an app engine graphics context to make it work
though. But it is fast (not too much CPU consumption) and easy to use
- but it is not free.

On Jun 22, 6:42 am, moissinac jcmoissi...@gmail.com wrote:
 On 21 juin, 11:17, dflorey daniel.flo...@gmail.com wrote:

  I've been using server side graphics using libs that don't require AWT
  image.
  This works fine for me (including server side svg generation etc.) and
  you can take advantage of the app engine image transforms.

 Which ones?
 For SVG, I have tried Batik, which have dependencies not in the white
 list of GAE = not directly usable.
 Is it a library able to transform SVG in bitmap on GAE?

-- 
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: memcache best practice or framework

2010-06-22 Thread Toby
Hello John,

Thank you for your message. I was looking at your project and indeed
it does pretty much what I was looking for.

I think memcache is good for basic caching problems but it could be
made more efficient if it would keep most used data on the local
machine memory to cut the costs for the network overhead. The problem
is that from application side our local data gets lost when the
application is cycled out. Google could provide a solution that
survives this time-out and that uses resources more efficiently.
Other discussions about ehcache show that there is a need for
something more sophisticated. Maybe something for the roadmap?

Cheers,
Toby

On Jun 18, 10:33 am, John Patterson jdpatter...@gmail.com wrote:
 Hi Toby,

 I made some code public that does what you describe: it is a simple  
 cache interface that has implementations for in-memory,memcacheand  
 the datastore.  You get about 100MB of heap space to use which can  
 significantly speed up your caching.

 There is also a CompositeCache class that allows you to layer the  
 caches so that it first checks in-memory, thenmemcache, then the  
 datastore.  Puts go to all levels and cache hits refresh the higher  
 levels.  e.g. if an item is not in-memory and has been flushed from  
 memcachebut is still present in the datastore then the other two will  
 be updated.

 http://code.google.com/p/stick-cache/

 Hope this helps,

 John

 On 18 Jun 2010, at 15:08, Toby wrote:

  Hello Ikai,

  Sorry but I might have worded my post incorrectly. I do not doubt
 memcache, in fact I use it very heavily and it is great.

  On Google I/O I learned thatmemcacheis actually hosted on another
  machine and that for each request a significant network overhead is
  involved. In appstats I see about 20ms for a single request. Simple
  data-store requests are also between 20-50ms. So in factmemcacheis
  good as second level cache but shows to be a bottleneck for data that
  I heavily use over and over again (plus it costs valuable API time).

  So the idea was to have some first level in-memory cache living on
  the same machine that is holding heavily used data to prevent the
  server round trip to the cache machine. Now you might tell me that my
  application is designed wrong. And indeed I could just put this in by
  myself. But as you also pointed out there are tricky parts like memory
  boundaries and other things to take care of. This is why I started
  this thread to see if someone has come up with a good solution.

  I think multiple cache layers are kind of a standard approach that has
  shown its usefulness in many places.  It would be good to have that as
  part of GAE. Of course this is not the most urgent issue.

  Cheers,
  Toby

  On Jun 17, 6:46 pm, Ikai L (Google) ika...@google.com wrote:
  What aspect ofMemcacheis too slow? Have you run AppStats yet?

  The overhead ofMemcacheis low enough for many of the top sites on  
  the
  internet to use. Some sites are listed on the main page here:

 http://memcached.org/

  As you move closer and closer to local memory, the volatility of  
  your cache
  will increase, so the only items I would store in local memory are  
  items
  that are okay to lose. If you want, you can probably layer your  
  application
  to fetch frommemcache- fetch from authoritative source and place  
  into
  local memory on a cache miss. Just be aware that there are process  
  memory
  limits, and exceeding these will force a restart.

  On Thu, Jun 17, 2010 at 2:30 AM, Toby toby.ro...@gmail.com wrote:
  Hello,

  I wonder if there is a framework (such as Objectify) also for
 memcache.  Asmemcacheis not on the local machine it is rather  
  slow,
  especially for reoccurring requests. So on Google I/O they suggested
  to build your own in-memory layer around that. I know that is an  
  easy
  task, still I wonder if there might already be a framework for
  that :-)

  Also I wonder if someone can give me some ideas about how to build  
  an
  in-memory cache. I guess it is just a static hashmap. But will it
  survive multiple requests? How much can I put in there?

  As the problem ofmemcacheis apparently the high latency for the
  network traffic to the server I had the idea to store the in-memory
  cache in thememcache, de-serialize it and then use it?

  Do you have other ideas how to speed up caching?

  Thank you for your advice,

  Toby

  --
  You received this message because you are subscribed to the Google  
  Groups
  Google App Engine for Java group.
  To post to this group, send email to
  google-appengine-j...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com

  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.

  --
  Ikai Lan
  Developer Programs Engineer, Google App Engine
  Blog:http://googleappengine.blogspot.com
  

[appengine-java] Re: Loading request timings

2010-06-22 Thread jd
BTW, should it not be necessary to minimise dependencies?  Would love
some more details on how this should work!  e.g. do you load an entire
jar on demand from some shared repo based on a hash - or individual
classes?

On Jun 22, 10:39 am, John Patterson jdpatter...@gmail.com wrote:
 Hi Toby,

 The web app does not actually use any of the code in the additional  
 jars.  I've created an issue here with the zipped webapp and links to  
 the deployed large and normal versions.

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

 On 22 Jun 2010, at 05:13, Toby Reyelts wrote:



  Hey John,

  Nice tests. For the apps where you added a lot of jars, are you  
  running any code at all from any of those jar files, or do they just  
  sit unused in your webapp? It's certainly not our intent that unused  
  jar files cause any extra delay in loading. If you can provide us  
  with the sample webapps that demonstrate this latency, then we might  
  be able to look into it further.

  On Sun, Jun 20, 2010 at 4:09 AM, John Patterson  
  jdpatter...@gmail.com wrote:
  Hi All,

  Just thought I would share some timings I have made to determine  
  what effect adding dependencies has on loading request time.

  I made four apps using the Eclipse plugin and modified 3 of them to  
  add or remove jars from the war/WEB-INF/lib directory.

  Normal - default jars (13.2 MB)
  Small - removed all persistence related jars leaving two GAE API  
  jars (10.2 MB)
  Large - added lots of jars from various projects (51MB)

  Very basic testing procedure - I would just wait a few minutes and  
  reload the Hello world servlet.  Normally one minute was long enough  
  to cause a loading request.  However I did notice that waiting  
  longer (5 mins) seemed to cause a longer wall clock time - perhaps  
  there are several layers of caching for app resources that can expire.

  Averages discard the highest timings:

                 Total ms                CPU ms
  Small   4079            501
                 514                     501
                 598                     535
                 541                     552
                 617                     518
                 664                     535
                 _
                 587                     528

  Normal  739                     585
                 656                     535
                 636                     585
                 595                     552
                 598                     535
                 621                     552
                 1148            552
                 _
                 640                     556

  Large   2274            1372
                 1155            1171
                 2690            1422
                 4064            1255
                 1906            1272
                 1077            1188
                 2817            1355
                 __
                 1986            1296

  Some things to notice:

  1 - Often the CPU ms (which comes off your quota) often has the same  
  value. e.g. 535ms and 552ms each appear four times.  That seems to  
  indicate that some discreet function is used to calculate the cost  
  of loading your app.

  2 - It seems that each 1MB of dependencies added takes about 35ms of  
  clock time to load and adds about 19ms to your CPU quota.  However,  
  this figures will probably vary depending on if the file is already  
  loaded (by another app?) and possibly other factors.  It is also  
  possible that the extra load time is related to the number of jars  
  rather than just their size.

  3 - removing the standard persistence jars does seem to have some  
  effect

  John

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

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

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



[appengine-java] Regarding Entity Group

2010-06-22 Thread MANISH DHIMAN
Hi All
Please provide me some detail information about entity group.

-- 
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: memcache best practice or framework

2010-06-22 Thread John Patterson
Hey Toby, yes that is exactly what Stick tries to do - by storing in  
the datastore your data can survive memcache restarts while having the  
speed of in-memory access for some data.


I have always hated with a passion the APIs of JCache and EHCache.

On 22 Jun 2010, at 14:43, Toby wrote:


Hello John,

Thank you for your message. I was looking at your project and indeed
it does pretty much what I was looking for.

I think memcache is good for basic caching problems but it could be
made more efficient if it would keep most used data on the local
machine memory to cut the costs for the network overhead. The problem
is that from application side our local data gets lost when the
application is cycled out. Google could provide a solution that
survives this time-out and that uses resources more efficiently.
Other discussions about ehcache show that there is a need for
something more sophisticated. Maybe something for the roadmap?

Cheers,
Toby

On Jun 18, 10:33 am, John Patterson jdpatter...@gmail.com wrote:

Hi Toby,

I made some code public that does what you describe: it is a simple
cache interface that has implementations for in-memory,memcacheand
the datastore.  You get about 100MB of heap space to use which can
significantly speed up your caching.

There is also a CompositeCache class that allows you to layer the
caches so that it first checks in-memory, thenmemcache, then the
datastore.  Puts go to all levels and cache hits refresh the higher
levels.  e.g. if an item is not in-memory and has been flushed  
from  memcachebut is still present in the datastore then the other  
two will

be updated.

http://code.google.com/p/stick-cache/

Hope this helps,

John

On 18 Jun 2010, at 15:08, Toby wrote:


Hello Ikai,



Sorry but I might have worded my post incorrectly. I do not doubt
memcache, in fact I use it very heavily and it is great.



On Google I/O I learned thatmemcacheis actually hosted on another
machine and that for each request a significant network overhead is
involved. In appstats I see about 20ms for a single request. Simple
data-store requests are also between 20-50ms. So in factmemcacheis
good as second level cache but shows to be a bottleneck for data  
that

I heavily use over and over again (plus it costs valuable API time).



So the idea was to have some first level in-memory cache living on
the same machine that is holding heavily used data to prevent the
server round trip to the cache machine. Now you might tell me that  
my
application is designed wrong. And indeed I could just put this in  
by
myself. But as you also pointed out there are tricky parts like  
memory

boundaries and other things to take care of. This is why I started
this thread to see if someone has come up with a good solution.


I think multiple cache layers are kind of a standard approach that  
has
shown its usefulness in many places.  It would be good to have  
that as

part of GAE. Of course this is not the most urgent issue.



Cheers,
Toby



On Jun 17, 6:46 pm, Ikai L (Google) ika...@google.com wrote:

What aspect ofMemcacheis too slow? Have you run AppStats yet?



The overhead ofMemcacheis low enough for many of the top sites on
the
internet to use. Some sites are listed on the main page here:



http://memcached.org/



As you move closer and closer to local memory, the volatility of
your cache
will increase, so the only items I would store in local memory are
items
that are okay to lose. If you want, you can probably layer your
application
to fetch frommemcache- fetch from authoritative source and place
into
local memory on a cache miss. Just be aware that there are process
memory
limits, and exceeding these will force a restart.



On Thu, Jun 17, 2010 at 2:30 AM, Toby toby.ro...@gmail.com wrote:

Hello,



I wonder if there is a framework (such as Objectify) also for
memcache.  Asmemcacheis not on the local machine it is rather
slow,
especially for reoccurring requests. So on Google I/O they  
suggested

to build your own in-memory layer around that. I know that is an
easy
task, still I wonder if there might already be a framework for
that :-)



Also I wonder if someone can give me some ideas about how to build
an
in-memory cache. I guess it is just a static hashmap. But will it
survive multiple requests? How much can I put in there?



As the problem ofmemcacheis apparently the high latency for the
network traffic to the server I had the idea to store the in- 
memory

cache in thememcache, de-serialize it and then use it?



Do you have other ideas how to speed up caching?



Thank you for your advice,



Toby



--
You received this message because you are subscribed to the Google
Groups
Google App Engine for Java group.
To post to this group, send email to
google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to
google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com



.
For more options, visit this group at

Re: [appengine-java] Parent child joins in JDO queries

2010-06-22 Thread John Patterson
If you are not required to use JDO consider one of the GAE specific  
persistence libraries.  Both Twig and Objectify support embedding  
collections of entities in a single container entity which gives the  
ability to query using properties of the container or the contained.


I believe Twig is the only one that allows embedded items to be  
polymorphic.  For example:


class Farm
{
String city;
@Embed(polymorphic=true) ListAnimal animals;
}

class Goat implements Animal
{
int horns;
}

class Pig implements Animal
{
String favouriteFood;
}

then you can query for all farms in Wellington with a Pig that likes  
cream buns


datastore.find().type(Farm.class)
.addFilter(city, EQUAL, Wellington)
.addFilter(animals.favouriteFood, EQUAL, Cream buns)
.returnResultsNow();


On 22 Jun 2010, at 09:17, Hariharan Anantharaman wrote:


Hi,
As per documentation, JDO does not support join queries over parent  
and child entities(tables) in datastore.  Are there any work arounds  
to achieve the same? Is this possible with JPA?


Thanks
Hariharan
http://harianantha.in

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


--
You received this message because you are subscribed to the Google Groups Google 
App Engine for Java group.
To post to this group, send email to google-appengine-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: Creation of SQLite on AppEngine

2010-06-22 Thread Maulik Gordhandas
I am able to create in memory sqlite database. Now my concern is how
do I send the in-memory db to http stream.

Is it possible to retrieve the db from the memory?
Thanks

On Jun 21, 10:38 pm, Ikai L (Google) ika...@google.com wrote:
 *It's not clear what you are doing here. If you need persistence, use the
 datastore API to store data 
 (http://code.google.com/appengine/docs/java/datastore/). However, if you need
 to *transmit* a sqlite database to some client, you'll need to generate the
 db file and send it down. I don't know how you would do this - it seems like
 any SQLite libraries you would load would try to load non-whitelisted
 classes (http://stackoverflow.com/questions/41233/java-and-sqlite), though
 you could probably take a look at what a SQLite db file looks like and
 generate it by hand.
 *
 On Sun, Jun 20, 2010 at 9:36 PM, Maulik Gordhandas 



 maulik.gordhan...@tcs.com wrote:
  My application use is to store the collected data in an sqlite db file
  which needs to be sent to a mobile phone.

  Is it possible to do it in appengine?

  On Jun 21, 3:19 am, Tristan tristan.slomin...@gmail.com wrote:
   ditto... if you want SQL this is not the tool to use

   On Jun 19, 12:22 am, nicolas melendez nfmelen...@gmail.com wrote:

Use the datastore, and forget SQL dbs in scalable apps.

On Fri, Jun 18, 2010 at 9:28 AM, Maulik Gordhandas 

maulik.gordhan...@tcs.com wrote:
 Dear All,

 Wanted to know is it possible to create a SQLite db on AppEngine
  using
 Java code. Or do i need to upload a sqlite db file to blob storage
  and
 than insert data into it using some connector.

 Please help..
 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%2B
  unsubscr...@googlegroups.com
 .
 For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.

--
Nicolás Meléndez
Java Software Developer

1) Google App Engine works:

1.a)http://www.clasificad.com.ar(Local free classifieds for  housing,
sale, services, local community, curses,jobs, and events - GAE/J +
  Wicket +
YUI)

1.b)http://www.chessk.com(Massive multiplayer chess online  GAE/J +
Applets + Wicket)

2) Linkedin:http://ar.linkedin.com/in/nicolasmelendez

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

 --
 Ikai Lan
 Developer Programs Engineer, Google App Engine
 Blog:http://googleappengine.blogspot.com
 Twitter:http://twitter.com/app_engine
 Reddit:http://www.reddit.com/r/appengine

-- 
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: Regarding Entity Group

2010-06-22 Thread Simon
I suggest you read the documentation for storing data, in both the
Python and Java sections.

For example, the Python sections gives a good overview of Entity
Groups here - 
http://code.google.com/appengine/docs/python/datastore/keysandentitygroups.html

On Jun 22, 9:49 am, MANISH DHIMAN manisd...@gmail.com wrote:
 Hi All
 Please provide me some detail information about entity group.

-- 
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] Appache Commons StringEscapeUtils - NoClassDefFoundError

2010-06-22 Thread klonq
I am using org.apache.commons.lang.StringEscapeUtils in my project and
running into errors on the development server. The exception I receive
is java.lang.NoClassDefFoundError, from what I understand this error
is thrown when the class is found at compiletime but cannot be found
at runtime.

Unfortunately I cannot test on the app engine server right now, I am
hoping somebody can tell me how to resolve. If I import the package
into my eclipse project, I believe the jar will not be available on
App Engine, is this correct?

-- 
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] Appache Commons StringEscapeUtils - NoClassDefFoundError

2010-06-22 Thread John Patterson

Make sure the jar is also in your war/WEB-INF/lib directory

On 22 Jun 2010, at 21:41, klonq wrote:


I am using org.apache.commons.lang.StringEscapeUtils in my project and
running into errors on the development server. The exception I receive
is java.lang.NoClassDefFoundError, from what I understand this error
is thrown when the class is found at compiletime but cannot be found
at runtime.

Unfortunately I cannot test on the app engine server right now, I am
hoping somebody can tell me how to resolve. If I import the package
into my eclipse project, I believe the jar will not be available on
App Engine, is this correct?

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




--
You received this message because you are subscribed to the Google Groups Google 
App Engine for Java group.
To post to this group, send email to google-appengine-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 make Eclipse AppEngine+GWT plugin use proxy for update check.

2010-06-22 Thread Rajeev Dayal
Can you file an issue for this (passing DevAppServer arguments when running
with GWT)?

As for a workaround, can you try adding the following JVM arguments to your
launch configuration:

-Dhttp.proxyHost=http proxy hostname -Dhttp.proxyPort=http proxy port
-Dhttps.proxyHost=https proxy hostname -Dhttps.proxyPort=https proxy
hostname

On Wed, Jun 16, 2010 at 1:07 AM, Nick Lothian nick.loth...@gmail.comwrote:

 Hi,

 When I debug an AppEngine+GWT project from Eclipse I get the message
 Initializing AppEngine server. It stays on that for nearly 3 minutes
 before timing out (I'm behind a firewall). The stack trace is:

 INFO: Unable to access

 http://appengine.google.com/api/updatecheck?runtime=javarelease=1.3.4timestamp=1273872371api_versions=['1.0
 ']
 java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
 ...
 ...
 at

 com.google.appengine.tools.info.RemoteVersionFactory.getVersion(RemoteVersionFactory.java:
 76)


 Once that has timed out I can debug successfully.

 I'd like to be able to pass the --disable_update_check argument to
 AppEngine to avoid this wait. However because the debug configuration
 is GWT (which uses the GWT Dev Server) I cannot do that.

 Is there a solution or work around for this? (Setting my proxy in
 Eclipse doesn't work either)

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



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



[appengine-java] HttpClient is not supported?

2010-06-22 Thread Lu
Hi,

I am trying to use HttpClient to extract the urls. It works in normal
java application but not under the context of web application.

HttpClient client = new HttpClient();
GetMethod method = new GetMethod(url);

I will get error says 'java.lang.NoClassDefFoundError: java.net.Socket
is a restricted class. Please see the Google  App Engine developer's
guide for more details'

Does that mean it conflicts with google app engine?

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.



Re: [appengine-java] Re: Regarding Entity Group

2010-06-22 Thread Dormand
If u want to perform one more different entity save,update,delete operation
in a single transaction then you need to set a parent key to create same
entity group. In java you can use KeyFactory


Example:

tx.begin();

// Here root is a saved entity.  You have to load that entity when you want
to create key

Key entityAKey= KeyFactory.*createKey*(root.getKey(),
EntityA.*class*.getSimpleName(),
EntityA+UUID.*randomUUID*().toString());

Key entityBKey= KeyFactory.*createKey*(root.getKey(),
EntityB.*class*.getSimpleName(),
EntityB+UUID.*randomUUID*().toString());

EntityA a = *new* EntityA();

a.setKey(entityAKey);

EntityB b = new EntityB();

b.setKey(entityBKey);

pm.makePersistent(a);

pm.makePersistent(b);

tx.commit();



On Tue, Jun 22, 2010 at 8:06 PM, Simon qila...@gmail.com wrote:

 I suggest you read the documentation for storing data, in both the
 Python and Java sections.

 For example, the Python sections gives a good overview of Entity
 Groups here -
 http://code.google.com/appengine/docs/python/datastore/keysandentitygroups.html

 On Jun 22, 9:49 am, MANISH DHIMAN manisd...@gmail.com wrote:
  Hi All
  Please provide me some detail information about entity group.

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



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



[appengine-java] Administration Console Custom Pages

2010-06-22 Thread WillNa
Hello,

I'm trying to add an admin page to the admin console, following
http://code.google.com/appengine/docs/java/config/appconfig.html#Administration_Console_Custom_Pages

Unfortunatly, whatever I try, nothing more is visible on /_ah/admin

This is what I added to my appengine-web
admin-console
page name=Create a board url=/adminboard /
/admin-console

and what I added to web.xml
servlet
servlet-nameadminboard/servlet-name
jsp-file/admin_board.jsp/jsp-file
  /servlet

servlet-mapping
servlet-nameadminboard/servlet-name
url-pattern/adminboard/url-pattern
/servlet-mapping

Am I missing something ?!

Thanks for any hint

William

-- 
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] DataStore, ApplicationError: 3: Unexpected error, please try again

2010-06-22 Thread Alfred Fuller
This can happen when you add the same entity to the put(or delete) request
more than once (same by .equals). If this is the case, your put actually
succeeded. This should be fixed soon, however I would suggest checking your
code to figure out why you are putting the same entity multiple times (if in
fact this is what is happening).

On Fri, Jun 18, 2010 at 10:19 AM, Toby toby.ro...@gmail.com wrote:

 Hello,

 I am lately getting errors of this kind:

 Response: com.google.apphosting.api.ApiProxy$ApplicationException:
 ApplicationError: 3: Unexpected error, please try again. at
 com.google.apphosting.runtime.ApiProxyImpl
 $AsyncApiFuture.rpcFinished(ApiProxyImpl.java:293) at
 com.google.net.rpc.RpcStub$RpcCallbackDispatcher
 $1.runInContext(RpcStub.java:1025) at com.google.tracing.TraceContext
 $TraceContextRunnable$1.run(TraceContext.java:444) at
 com.google.tracing.TraceContext.runInContext(TraceContext.java:684) at
 com.google.tracing.TraceContext

 $AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:
 322) at com.google.tracing.TraceContext
 $AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:
 314) at com.google.tracing.TraceContext
 $TraceContextRunnable.run(TraceContext.java:442) at
 com.google.net.rpc.RpcStub
 $RpcCallbackDispatcher.rpcFinished(RpcStub.java:1046) at
 com.google.net.rpc.RPC.internalFinish(RPC.java:2047) at
 com.google.net.rpc.impl.RpcNetChannel.finishRpc(RpcNetChannel.java:
 2338) at
 com.google.net.rpc.impl.RpcNetChannel.messageReceived(RpcNetChannel.java:
 1265) at
 com.google.net.rpc.impl.RpcConnection.parseMessages(RpcConnection.java:
 319) at
 com.google.net.rpc.impl.RpcConnection.dataReceived(RpcConnection.java:
 290) at
 com.google.net.async.Connection.handleReadEvent(Connection.java:474)
 at

 com.google.net.async.EventDispatcher.processNetworkEvents(EventDispatcher.java:
 831) at
 com.google.net.async.EventDispatcher.internalLoop(EventDispatcher.java:
 207) at com.google.net.async.EventDispatcher.loop(EventDispatcher.java:
 103) at com.google.net.async.GlobalEventRegistry
 $2.runLoop(GlobalEventRegistry.java:95) at
 com.google.net.async.LoopingEventDispatcher
 $EventDispatcherThread.run(LoopingEventDispatcher.java:378)

 It is during batch insert of multiple objects. The request took
 2904ms 2753cpu_ms 1703api_cpu_ms. On system status I can not see any
 irregularities of the datastore. Maybe it is in my code?

 Thank you,
 Tobias

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



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



[appengine-java] Local Persistance of Data

2010-06-22 Thread Prateek
Dear GAE Team,

I have been running my server locally and there are lots of data that
has been persisted using the persistance manager. Now that i want to
have a look @ them and deleted those Local ones. How do i do that? I
can view , and delete the one i upload to the app server but not the
one i run LOCALLY (http://localhost:/).

Regards
Prateek

-- 
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] junit and local_db.bin

2010-06-22 Thread Acerezo
Hello all,

I have been running my server locally with JUNIT all is ok but when  I
want to see the data of the local_db.bin file from localhost:  I
don´t see the data (entities, etc) Anyone can help me, please?

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.



Re: [appengine-java] junit and local_db.bin

2010-06-22 Thread Ronmell Fuentes
Hi Acerezo

remember the Data stored in dataStore is schemaless so, as far as I know,
only GAE knows how to deal with it.

When I want to see the data from the dataStore I use the classes written in
java in order to manage the data in Data Store.
in the other hand, you can use Restlets running on your app in order to
manage your data when deployed in GAE.

Rgds.

Ronmell

2010/6/22 Acerezo acerezoguil...@gmail.com

 Hello all,

 I have been running my server locally with JUNIT all is ok but when  I
 want to see the data of the local_db.bin file from localhost:  I
 don´t see the data (entities, etc) Anyone can help me, please?

 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




-- 
ausencia de evidencia  ≠  evidencia de ausencia
http://culturainteractiva.blogspot.com/

-- 
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] junit and local_db.bin

2010-06-22 Thread Andrés Cerezo
But I can see the data created with the servlets with
http://localhost:/_ah/admin, but not when I the data are created with
junit.

2010/6/22 Ronmell Fuentes ringe...@gmail.com

 Hi Acerezo

 remember the Data stored in dataStore is schemaless so, as far as I know,
 only GAE knows how to deal with it.

 When I want to see the data from the dataStore I use the classes written in
 java in order to manage the data in Data Store.
 in the other hand, you can use Restlets running on your app in order to
 manage your data when deployed in GAE.

 Rgds.

 Ronmell

 2010/6/22 Acerezo acerezoguil...@gmail.com

 Hello all,

 I have been running my server locally with JUNIT all is ok but when  I
 want to see the data of the local_db.bin file from localhost:  I
 don´t see the data (entities, etc) Anyone can help me, please?

 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




 --
 ausencia de evidencia  ≠  evidencia de ausencia
 http://culturainteractiva.blogspot.com/

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


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



Re: [appengine-java] junit and local_db.bin

2010-06-22 Thread Ronmell Fuentes
is your JUnit well configured??

2010/6/22 Andrés Cerezo acerezoguil...@gmail.com

 But I can see the data created with the servlets with
 http://localhost:/_ah/admin, but not when I the data are created with
 junit.

 2010/6/22 Ronmell Fuentes ringe...@gmail.com

 Hi Acerezo

 remember the Data stored in dataStore is schemaless so, as far as I know,
 only GAE knows how to deal with it.

 When I want to see the data from the dataStore I use the classes written
 in java in order to manage the data in Data Store.
 in the other hand, you can use Restlets running on your app in order to
 manage your data when deployed in GAE.

 Rgds.

 Ronmell

 2010/6/22 Acerezo acerezoguil...@gmail.com

 Hello all,

 I have been running my server locally with JUNIT all is ok but when  I
 want to see the data of the local_db.bin file from localhost:  I
 don´t see the data (entities, etc) Anyone can help me, please?

 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




 --
 ausencia de evidencia  ≠  evidencia de ausencia
 http://culturainteractiva.blogspot.com/

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


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




-- 
ausencia de evidencia  ≠  evidencia de ausencia
http://culturainteractiva.blogspot.com/

-- 
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] junit and local_db.bin

2010-06-22 Thread Andrés Cerezo
I think so, When I executed all is right, however I don't execute teardown
method because If I executed this the data are deleted. Also everytime I
executed JUNIT the local_db.bin file is bigger than the last time so It has
the data.

2010/6/22 Ronmell Fuentes ringe...@gmail.com

 is your JUnit well configured??

 2010/6/22 Andrés Cerezo acerezoguil...@gmail.com

 But I can see the data created with the servlets with
 http://localhost:/_ah/admin, but not when I the data are created with
 junit.

 2010/6/22 Ronmell Fuentes ringe...@gmail.com

 Hi Acerezo

 remember the Data stored in dataStore is schemaless so, as far as I know,
 only GAE knows how to deal with it.

 When I want to see the data from the dataStore I use the classes written
 in java in order to manage the data in Data Store.
 in the other hand, you can use Restlets running on your app in order to
 manage your data when deployed in GAE.

 Rgds.

 Ronmell

 2010/6/22 Acerezo acerezoguil...@gmail.com

 Hello all,

 I have been running my server locally with JUNIT all is ok but when  I
 want to see the data of the local_db.bin file from localhost:  I
 don´t see the data (entities, etc) Anyone can help me, please?

 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




 --
 ausencia de evidencia  ≠  evidencia de ausencia
 http://culturainteractiva.blogspot.com/

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


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




 --
 ausencia de evidencia  ≠  evidencia de ausencia
 http://culturainteractiva.blogspot.com/

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


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



Re: [appengine-java] junit and local_db.bin

2010-06-22 Thread Andrés Cerezo
No, perhaps have yout got an example?

2010/6/22 Ronmell Fuentes ringe...@gmail.com

 have you tried to retrieve the data from your app, I mean, not using the
 http/_ah/admin console but using your own application, a class written
 in java to show the data, does it work??

 2010/6/22 Andrés Cerezo acerezoguil...@gmail.com

 I think so, When I executed all is right, however I don't execute teardown
 method because If I executed this the data are deleted. Also everytime I
 executed JUNIT the local_db.bin file is bigger than the last time so It has
 the data.


 2010/6/22 Ronmell Fuentes ringe...@gmail.com

 is your JUnit well configured??

 2010/6/22 Andrés Cerezo acerezoguil...@gmail.com

  But I can see the data created with the servlets with
 http://localhost:/_ah/admin, but not when I the data are created
 with junit.

 2010/6/22 Ronmell Fuentes ringe...@gmail.com

 Hi Acerezo

 remember the Data stored in dataStore is schemaless so, as far as I
 know, only GAE knows how to deal with it.

 When I want to see the data from the dataStore I use the classes
 written in java in order to manage the data in Data Store.
 in the other hand, you can use Restlets running on your app in order to
 manage your data when deployed in GAE.

 Rgds.

 Ronmell

 2010/6/22 Acerezo acerezoguil...@gmail.com

 Hello all,

 I have been running my server locally with JUNIT all is ok but when  I
 want to see the data of the local_db.bin file from localhost:  I
 don´t see the data (entities, etc) Anyone can help me, please?

 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




 --
 ausencia de evidencia  ≠  evidencia de ausencia
 http://culturainteractiva.blogspot.com/

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


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




 --
 ausencia de evidencia  ≠  evidencia de ausencia
 http://culturainteractiva.blogspot.com/

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


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




 --
 ausencia de evidencia  ≠  evidencia de ausencia
 http://culturainteractiva.blogspot.com/

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


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



Re: [appengine-java] junit and local_db.bin

2010-06-22 Thread Ronmell Fuentes
Yup, for sure.

Let's suppose you have an entity called domain which has the following
attributes:

1. Key
2. Name

public void listAllDomain(){
List Domain results;
Query query=factory.newQuery(Domain.class);
try{
results=(ListDomain) query.execute();
if(results.iterator().hasNext()){
for(int k=0;kresults.size();k++){
Domain dumb=results.get(k);
System.out.println(Key:
\t+String.valueOf(dumb.getKey()).toString());
System.out.println(Domain
Name:\t+dumb.getDomainName());
}
}
else System.out.println(no results exist);
}
finally{query.closeAll();}
}

Where Domain.clas is the class type for your entity called Domain.
besides, in the query object you can set filters for your query.

this method will show the data in your data Store.

As I can see, if the local_db.bin is getting bigger each time JUnit is ran,
then the data must be there, so with this method you should be able to see
all the data stored in your Data Store. you have just replace all Domain
references for your Entity's.

Hope this is was helpful.

Rgds.

R

2010/6/22 Andrés Cerezo acerezoguil...@gmail.com

 No, perhaps have yout got an example?


 2010/6/22 Ronmell Fuentes ringe...@gmail.com

 have you tried to retrieve the data from your app, I mean, not using the
 http/_ah/admin console but using your own application, a class written
 in java to show the data, does it work??

 2010/6/22 Andrés Cerezo acerezoguil...@gmail.com

 I think so, When I executed all is right, however I don't execute
 teardown method because If I executed this the data are deleted. 
 Alsoeverytime I executed JUNIT the local_db.bin file is bigger than the last
 time so It has the data.


 2010/6/22 Ronmell Fuentes ringe...@gmail.com

 is your JUnit well configured??

 2010/6/22 Andrés Cerezo acerezoguil...@gmail.com

  But I can see the data created with the servlets with
 http://localhost:/_ah/admin, but not when I the data are created
 with junit.

 2010/6/22 Ronmell Fuentes ringe...@gmail.com

 Hi Acerezo

 remember the Data stored in dataStore is schemaless so, as far as I
 know, only GAE knows how to deal with it.

 When I want to see the data from the dataStore I use the classes
 written in java in order to manage the data in Data Store.
 in the other hand, you can use Restlets running on your app in order
 to manage your data when deployed in GAE.

 Rgds.

 Ronmell

 2010/6/22 Acerezo acerezoguil...@gmail.com

 Hello all,

 I have been running my server locally with JUNIT all is ok but when
  I
 want to see the data of the local_db.bin file from localhost:  I
 don´t see the data (entities, etc) Anyone can help me, please?

 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




 --
 ausencia de evidencia  ≠  evidencia de ausencia
 http://culturainteractiva.blogspot.com/

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


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




 --
 ausencia de evidencia  ≠  evidencia de ausencia
 http://culturainteractiva.blogspot.com/

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


  --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to
 

Re: [appengine-java] Re: Creation of SQLite on AppEngine

2010-06-22 Thread Ikai L (Google)
You'll have to consult the library you used to create the in-memory database
to figure out how to do that. As far as creating an outputstream - this is
just a matter of setting a content type and outputstream. Standard servlet:

http://www.google.com/search?sourceid=chromeie=UTF-8q=servlets+binary+data+response

On Tue, Jun 22, 2010 at 4:59 AM, Maulik Gordhandas 
maulik.gordhan...@tcs.com wrote:

 I am able to create in memory sqlite database. Now my concern is how
 do I send the in-memory db to http stream.

 Is it possible to retrieve the db from the memory?
 Thanks

 On Jun 21, 10:38 pm, Ikai L (Google) ika...@google.com wrote:
  *It's not clear what you are doing here. If you need persistence, use the
  datastore API to store data (
 http://code.google.com/appengine/docs/java/datastore/). However, if you
 need
  to *transmit* a sqlite database to some client, you'll need to generate
 the
  db file and send it down. I don't know how you would do this - it seems
 like
  any SQLite libraries you would load would try to load non-whitelisted
  classes (http://stackoverflow.com/questions/41233/java-and-sqlite),
 though
  you could probably take a look at what a SQLite db file looks like and
  generate it by hand.
  *
  On Sun, Jun 20, 2010 at 9:36 PM, Maulik Gordhandas 
 
 
 
  maulik.gordhan...@tcs.com wrote:
   My application use is to store the collected data in an sqlite db file
   which needs to be sent to a mobile phone.
 
   Is it possible to do it in appengine?
 
   On Jun 21, 3:19 am, Tristan tristan.slomin...@gmail.com wrote:
ditto... if you want SQL this is not the tool to use
 
On Jun 19, 12:22 am, nicolas melendez nfmelen...@gmail.com wrote:
 
 Use the datastore, and forget SQL dbs in scalable apps.
 
 On Fri, Jun 18, 2010 at 9:28 AM, Maulik Gordhandas 
 
 maulik.gordhan...@tcs.com wrote:
  Dear All,
 
  Wanted to know is it possible to create a SQLite db on AppEngine
   using
  Java code. Or do i need to upload a sqlite db file to blob
 storage
   and
  than insert data into it using some connector.
 
  Please help..
  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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@googlegroups.com
 google-appengine-java%2B
   unsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.
 
 --
 Nicolás Meléndez
 Java Software Developer
 
 1) Google App Engine works:
 
 1.a)http://www.clasificad.com.ar(Local free classifieds for
  housing,
 sale, services, local community, curses,jobs, and events - GAE/J +
   Wicket +
 YUI)
 
 1.b)http://www.chessk.com(Massive multiplayer chess online  GAE/J
 +
 Applets + Wicket)
 
 2) Linkedin:http://ar.linkedin.com/in/nicolasmelendez
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google App Engine for Java group.
   To post to this group, send email to
   google-appengine-j...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@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
  Blog:http://googleappengine.blogspot.com
  Twitter:http://twitter.com/app_engine
  Reddit:http://www.reddit.com/r/appengine

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




-- 
Ikai Lan
Developer Programs Engineer, Google App Engine
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine

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

[appengine-java] Problem JDO

2010-06-22 Thread lisandrodc
Hi! I have a problem with JDO at persist a class:

  1.  La clase model.Empleado no es s epuede hacer persistente.
Esto significa que no esta analizada, o que la version analizada no
esta en el CLASSPATH (o antes se encuentra una version que no esta
analizada), o que el Meta-Data/Annotaciones de la clase no existe o no
se encuentra disponible.
   2. La clase La clase model.Empleado no es s epuede hacer
persistente. Esto significa que no esta analizada, o que la version
analizada no esta en el CLASSPATH (o antes se encuentra una version
que no esta analizada), o que el Meta-Data/Annotaciones de la clase no
existe o no se encuentra disponible. no es s epuede hacer
persistente. Esto significa que no esta analizada, o que la version
analizada no esta en el CLASSPATH (o antes se encuentra una version
que no esta analizada), o que el Meta-Data de la clase no existe o no
se encuentra disponible.

File:   org/datanucleus/ObjectManagerImpl.java
Line number:3.890
Stacktraces
org.datanucleus.jdo.exceptions.ClassNotPersistenceCapableException: La
clase La clase model.Empleado no es s epuede hacer persistente.
Esto significa que no esta analizada, o que la version analizada no
esta en el CLASSPATH (o antes se encuentra una version que n.

What's the problem? I does not understand.

-- 
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] Signing into multiple Apps Simultaneously

2010-06-22 Thread terran
Hey fellas,

I've created multiple applications for basic functions, blog/forums/
chat that I want to share across 3 or 4 domain specific applications.
Is there a way that I can have a user sign into one application and
also automatically sign them into the other applications? So that way
if they're using a chat webservice I've exposed on one of the sites,
it's using their User credentials without asking for a separate login.

-- 
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] how to set cookie policy?

2010-06-22 Thread mingbo
I need a crawler, but when I use URL fetch service I got below
warning, and I cannot access the website

22-Jun-2010 4:38:43 PM org.apache.commons.httpclient.HttpMethodBase
processCookieHeaders
WARNING: Cookie rejected: $Version=0; PhoLIVEServerID=1025; $Path=/;
$Domain=.wiley.com. Domain attribute .wiley.com violates RFC 2109:
host minus domain may not contain any dots

The web site said:
An error has occured because we were unable to send a cookie to your
web browser,


I tried apache httpclient to set cookie policy like
(   method.getParams().setCookiePolicy(CookiePolicy.RFC_2109);   ) and
get below error:
java.lang.NoClassDefFoundError: java.net.Socket is a restricted class.
Please see the Google  App Engine developer's guide for more details.

Anyone can help?

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



[appengine-java] BD in Appgoogle

2010-06-22 Thread lisandrodc
I have a doubt for use the bd. Some way exists for view the
local_db(without dates binaries).
Regards
Lisandro

-- 
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] HttpClient is not supported?

2010-06-22 Thread Ikai L (Google)
Take a look at URLFetch:

http://code.google.com/appengine/docs/java/urlfetch/overview.html



On Tue, Jun 22, 2010 at 9:36 AM, Lu chenglu.annal...@gmail.com wrote:

 Hi,

 I am trying to use HttpClient to extract the urls. It works in normal
 java application but not under the context of web application.

 HttpClient client = new HttpClient();
 GetMethod method = new GetMethod(url);

 I will get error says 'java.lang.NoClassDefFoundError: java.net.Socket
 is a restricted class. Please see the Google  App Engine developer's
 guide for more details'

 Does that mean it conflicts with google app engine?

 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.comgoogle-appengine-java%2bunsubscr...@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
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine

-- 
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] Problem JDO

2010-06-22 Thread Andrés Cerezo
Si estás en eclipse tienes que ir a las propiedades de appengine y en la
opción ORM añadir o las carpetas que tienen la clase que quieres hacer
persistente o cada clase individualmente.

Saludos.

If you are in eclipse you have to go to the properties of appengine and ORM
option to add or folders that have the class you wish to persistent or
individual classes.

Cheers.

2010/6/22 lisandrodc lisandr...@gmail.com

 Hi! I have a problem with JDO at persist a class:

   1.  La clase model.Empleado no es s epuede hacer persistente.
 Esto significa que no esta analizada, o que la version analizada no
 esta en el CLASSPATH (o antes se encuentra una version que no esta
 analizada), o que el Meta-Data/Annotaciones de la clase no existe o no
 se encuentra disponible.
   2. La clase La clase model.Empleado no es s epuede hacer
 persistente. Esto significa que no esta analizada, o que la version
 analizada no esta en el CLASSPATH (o antes se encuentra una version
 que no esta analizada), o que el Meta-Data/Annotaciones de la clase no
 existe o no se encuentra disponible. no es s epuede hacer
 persistente. Esto significa que no esta analizada, o que la version
 analizada no esta en el CLASSPATH (o antes se encuentra una version
 que no esta analizada), o que el Meta-Data de la clase no existe o no
 se encuentra disponible.

 File:   org/datanucleus/ObjectManagerImpl.java
 Line number:3.890
 Stacktraces
 org.datanucleus.jdo.exceptions.ClassNotPersistenceCapableException: La
 clase La clase model.Empleado no es s epuede hacer persistente.
 Esto significa que no esta analizada, o que la version analizada no
 esta en el CLASSPATH (o antes se encuentra una version que n.

 What's the problem? I does not understand.

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



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



Re: [appengine-java] Signing into multiple Apps Simultaneously

2010-06-22 Thread Patrick Cornelißen
Hi!

2010/6/22 terran terran.le...@gmail.com:
 Hey fellas,

 I've created multiple applications for basic functions, blog/forums/
 chat that I want to share across 3 or 4 domain specific applications.
 Is there a way that I can have a user sign into one application and
 also automatically sign them into the other applications? So that way
 if they're using a chat webservice I've exposed on one of the sites,
 it's using their User credentials without asking for a separate login.

Hmm, maybe this may be problematic, because the apps may act as one
which is not allowed by the terms of service.

-- 
Mit freundlichen Grüßen,  // Bye,
  Patrick Cornelißen
  http://www.openprojectguide.org
  http://www.pcornelissen.de http://code.google.com/p/gloudy/

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