Hello, Thanks for use of the app engine! I'm wondering if there are
future plans to implement something like the ability to use a
concurrent count down latch with a wrapper to or within a queue
implementation? It would be nice to be able to set a condition upon
which multiple processors
Your error message says that the current app engine API doesn't
support 'OR', and
the docs state:
'An entity must match all filters to be a result. In the JDOQL
string syntax, multiple filters are specified separated by (logical
and). Other logical combinations of filters (logical or, not)
, pushing it back onto the queue from a cron job
sounds like the right solution
for now.
-Nichole
On Nov 10, 2:51 pm, Ikai L (Google) ika...@google.com wrote:
Nichole,
Our Task Queue API will take care of distributing your background tasks
across separate application
instances:http
Hello,
In the near future will there be an API method to get the current
number of tasks in a queue?
Thanks for your time,
Nichole
--
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
returned.
Thanks for your time,
Nichole
--
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
).
The combination of all 3 may lead to a guaranteed unique number.
Cheers,
Nichole
(p.s. If you do use sharded counters in your approach, you can
configure the datastore
read consistency to be strong:
http://code.google.com/appengine/docs/java/datastore/usingjdo.html)
On Dec 28, 8:33 pm, MG
not found?
Thanks for your time,
Nichole
--
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
Or you could use a ServletContextListener or a ServletFilter. They're
components so easy to swap in an out of your
architecture.
On Apr 18, 4:04 am, Simon Knott knott.si...@gmail.com wrote:
Hi,
Didier's solution will definitely do the job for servlets. Alternatively,
you could use a servlet
or a ServletRequestListener or HttpSessionListener. There are
attribute listeners too. In general,
as convenient as listeners are, they also affect performance.
On Apr 18, 9:51 pm, Nichole nichole.k...@gmail.com wrote:
Or you could use a ServletContextListener or a ServletFilter. They're
When I need to use document operations rather than a sax2 parser
through the XMLReaderFactory
reader, I set a system property which declares the first preferred
implementation of the factory:
String appEngineEnv =
System.getProperty(com.google.appengine.runtime.environment);
if (appEngineEnv !=
Is xml-apis.jar included in your build? I had to add the following
jars to
an appengine app that used various xml operations.
dependency
groupIdorg.apache.xerces/groupId
artifactIdxml-apis/artifactId
version2.9.1/version
/dependency
You can use contains in JDO instead of SQL's IN(), but the
implementation is a separate query for each item in the list.
(http://code.google.com/appengine/docs/java/datastore/jdo/
queries.html).
There's also a limit of 30 to the number of items in the array.
This from appengine tests is expected
:57 am, Nichole nichole.k...@gmail.com wrote:
You can use contains in JDO instead of SQL's IN(), but the
implementation is a separate query for each item in the list.
(http://code.google.com/appengine/docs/java/datastore/jdo/
queries.html).
There's also a limit of 30 to the number
I've been programming to the jcache interface that's included in the
appengine sdk
javax.cache.Cache and that still works in SDK 1.5.0.
appengine's service locator (MemcacheService) finds the implementation
for the interface.
import javax.cache.Cache;
import javax.cache.CacheException;
import
Just a quick summary, the servlet spec requires that a servlet
container such as appengine
provider an implementation for a service. Those jars such as servlet-
api-2.4.jar are needed
at compile time. They are sometimes provided by the servlet container/
engines at run time
in a global directory
You might want to consider denormalizing that table by one field?
That is, create a new entity holding a foreign key relation and the
field of interest,
and create an index for that query equality.
Reads are fast, and updates are slower so creating new entities for
that data
rather than updating
According to the docs, the namespace is set globally within the app,
but you can use
it On a per-User Basis for users that are logged in as an example
and that user
is the tenant. The docs aren't clear, but the namespace must be
globally just for that
tenant, yes? If that's the case, then you
I like Jeff's solution as it's failsafe, but one more pattern I often
use is to set a couple of flags, and
complete the 2nd action in a finally clause if needed. The timeout
for the 30 sec limit does allow for a very quick
transaction to still succeed, so I use that time to persist any state
You could try iText:
http://groups.google.com/group/google-appengine-java/browse_thread/thread/7dfdf19cfdd410d6/ee7024dd040ba6eb?lnk=gstq=pdf#ee7024dd040ba6eb
http://code.google.com/appengine/docs/java/mail/usingjavamail.html
On May 16, 7:11 pm, Vik vik@gmail.com wrote:
Hie
Trying
Vik
Founder
http://www.sakshum.org
http://blog.sakshum.org
On Tue, May 17, 2011 at 6:45 PM, Nichole nichole.k...@gmail.com
wrote:
You could try iText:
http://groups.google.com/group/google-appengine-java/browse_thread/th...
http://code.google.com/appengine/docs/java
Hello,
Static pages within appengine are not picked up by the servlet
filters. Are there plans to change that?
Thanks for your time,
Nichole
--
You received this message because you are subscribed to the Google Groups
Google App Engine for Java group.
To post to this group, send
as an
attachment via mail api on app engine
Thankx and Regards
Vik
Founder
http://www.sakshum.org
http://blog.sakshum.org
On Tue, May 17, 2011 at 6:45 PM, Nichole nichole.k...@gmail.com
wrote:
You could try iText:
http://groups.google.com/group/google-appengine-java
application is already
authenticated with Google
and authorized to access your Google Docs, you would read the PDF
export stream directly
into the response stream to the donor. A brief look at the Google
Documents List API
suggests that that's possible, but I haven't tried it.
Cheers,
Nichole
On May
googling outside the list turns up a few examples:
http://googleappengine.blogspot.com/2011/03/high-replication-datastore-solid-choice.html
On May 31, 1:26 pm, Ian Marshall ianmarshall...@gmail.com wrote:
I too can make do with cleaning all my datastore data for the
transition, so that's
Appengine uses servlet spec 2.4 so the compatible jstl library is
version 1.1. the jsp library
is version 2.0.
You compile w/ those locally, and yes, they are provided by the
container for production deployment
so you don't include them in your war file/directory.
If your custom tag is
I didn't look at your snippet in detail, but you need transactions,
and that means the entities
need to be in the same entity group, that is have same ancestor.
On May 31, 2:53 am, pavb pavieillardba...@gmail.com wrote:
Hi,
Yes all the datastore insert, update, delete done in the transaction
Adding to Ian's suggesting, you might want to look at Query Cursors
and
pre-prepare reports ahead of time...
or pre-prepare reports iteratively, compress, store as blob and
download...
On May 31, 1:24 pm, Ian Marshall ianmarshall...@gmail.com wrote:
You can reduce time-out issues if you
I think you might be a little confused about the difference between
appengine's
transaction in a distributed environment and an enterprise 2-phase
transaction
in a more classic client server architecture?
appengine uses a distributed datastore, so entities are stored all
over the place by
In your appengine directory there's a file called config/user/ant-
macros.xml
that accepts --address and --port as arguments for dev_appserver,
but you have to include the file into your own build.xml.
Instructions are at the top of the file.
On Jun 3, 8:06 pm, Bourke Floyd IV chb...@gmail.com
Google Voice?
On Jun 3, 3:01 pm, Ronoaldo José de Lana Pereira
rpere...@beneficiofacil.com.br wrote:
Sorry Joe, I don't know if you can unregister your phone number. I didn't
found this kind of option. Ikai, any tips?
--
You received this message because you are subscribed to the Google
You could parse your xml file or parse the System variable called
user.dir.
On Jun 3, 2:46 am, Marcel Overdijk marceloverd...@gmail.com wrote:
Is the Application title accessible using the SDK?
I guess not, but Maybe Google can make in available in the Environment
class.
--
You received
Make that System.getProperty(com.google.appengine.application.id)
instead... no parsing
On Jun 3, 9:53 pm, Nichole nichole.k...@gmail.com wrote:
You could parse your xml file or parse the System variable called
user.dir.
On Jun 3, 2:46 am, Marcel Overdijk marceloverd...@gmail.com wrote
You might want to use @Persistent(mappedBy = parent) for your Parent
entity declaration in your Child entity.
Owned one-to-many
http://code.google.com/appengine/docs/java/datastore/jdo/relationships.html#Owned_One_to_Many_Relationships
On Jun 5, 9:27 pm, Didier Durand durand.did...@gmail.com
this exception is occurring if possible.
@Nichole - I currently have an unowned one to many relationship and
don't really need an owned one, having said that could this make a
difference? I will have to try and see when I get time.
Thanks again
On Jun 6, 5:27 am, Didier Durand durand.did
Hi Hector,
The apache commons http client isn't loaded by the appengine
classloader now. It's included
in a repackaged form for use in testing in appengine-api-stubs.jar,
but shouldn't be
included in the deployment. Any 3rd party library using that class
will have the same
problem.
You can
Just to add to objectuser, you definitely need to use entity groups to
retrieve all
entity types within a transaction if you use the model you're both
describing.
You might want to consider a change in your model though to move the
most updated fields
in User to a new and different entity,
Looks like an error in your jsp file.
On Jul 3, 8:12 am, ~Juli~ yoolc...@gmail.com wrote:
Hi all!
I faced with probem that i couldn't update war because jsp compilation
failed.
---
http://code.google.com/appengine/docs/java/datastore/jdo/relationships.html#Owned_One_to_Many_Relationships
entity groups and mappedBy in your parent class.
On Jul 2, 1:39 pm, ksafez216 mell...@gmail.com wrote:
After I get a Command object using PersistenceManager.getObjectById(),
and then try
Since you're working with data that is presumably in entities, your
fields such as long or date at
any given time aren't continuous, so the algorithm to group by
features should work.
'Any given time' here is the time that you actually start to write
your entities that are to be your HilbertIndex
Or use OpenAuth instead?
On Jul 5, 10:33 pm, Shash Joshi sh...@perfode.com wrote:
I have used it, and it works great!
--
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
The quickest solution might be to wrap your entity fetch in a try/
catch (Throwable t)
block. Throwable will catch a runtime exception. Upon the expected
exception, use
the alternate variable type to try another fetch.
On Jul 6, 1:34 pm, Jeff Schnitzer j...@infohazard.org wrote:
On Wed, Jul
To update your existing entities to the new entity schema, you would
need to rewrite your existing entities (create new w/ same fields and
delete old).
To find the existing older entities, you could use the low level API
(DatastoreService) to fetch Entity
instances for your entity Kind and then
It sounds like your main goal is to send email that does not get
flagged by Yahoo's
spam filter.
The links you included had a discussion about key security added to
google apps for business that signs your email and allows Yahoo spam
filter service
to check the public key w/ your DNS mx records.
I might add that you could add a try/catch/finally: use a transaction
on the first operation
in the try block that can be rolled back if a succeeded flag is
false in the finally block;
after the 2nd operation in the try block the succeeded gets set to
true; and if you
use the referred
I think I understood your question before your last addition: if
you're wanting
to add human verification, you might use the oddly named 'honeypot' :)
On Jul 11, 1:11 am, Arvind Chari arvind.ik.ch...@gmail.com wrote:
Hi
Sorry for the late reply... I am trying to submit same/similar data to
as to how I can have two transactions in
one try/catch and make sure both succeed. Maybe a quick code sample
would help if you have the time.
Thanks
On Jul 11, 5:01 pm, Nichole nichole.k...@gmail.com wrote:
I might add that you could add a try/catch/finally: use a transaction
successfully?
Thanks
On Jul 12, 9:37 am, Nichole nichole.k...@gmail.com wrote:
Here's an implementation. You might want to add checks for read
staleness, and think about using a task
structure for the operations to make retry easier.
The unit test structure is from
fromhttp
.
* In this case a retry of transaction2 should be invoked and must
eventually succeed.
*
* For that reason, any code using this pattern should design
the logic so that the logic in the 2nd transaction can be
consistent
on a longer timescale.
*
* @author nichole
*/
public
design the
* logic so that the logic in the 2nd transaction can be
consistent
* on a longer timescale.
*
* @author nichole
*/
public class TwoOperationPseudoTransactionTest extends
LocalDatastoreTestCase {
private final Logger log = Logger.getLogger(
this.getClass
The answer to the nontransactionalread and write are below, but
meanwhile, if you really do need those updates to be as close
to atomic as possible, then you need them in the same entity
group so they're co-located in the distributed file system.
On Jul 18, 2:02 am, mscwd01 mscw...@gmail.com
By the way, if you wanted vary your jdoconfig.xml settings
knowing which are impl in appengine, here's a link to
appengine datanucleus test code:
http://code.google.com/p/datanucleus-appengine/source/browse/trunk/tests/META-INF/jdoconfig.xml?r=514spec=svn514
On Jul 18, 8:44 pm, Nichole
in the appengine-tools-api.jar
Has anyone else had the same problem recently? If so, how
did you solve it?
Thanks,
Nichole
--
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
Can anyone who's successfully today deploying to appengine production
w/ sdk 1.5.0 confirm this md5 sum for me?
MD5 (appengine-tools-api.jar) = 472e6d29ff6633cf1cc7fde3cabd6290
Thanks for your time
On Jul 25, 11:05 am, Nichole nichole.k...@gmail.com wrote:
Hello,
Anyone having troubles
Or the script that's used to upload your application now offers the
ability to
download logs too:
http://code.google.com/appengine/docs/java/tools/uploadinganapp.html
You'd have to download frequently or not depending upon your log
rate.
Or you could create a servletrequestlistener to gather
(com.google.appengine.api.datastore.Key k);
long ndeleted = qRT.deletePersistentAll(key);
pm.flush();
tx.commit();
On Jul 18, 8:49 pm, Nichole nichole.k...@gmail.com wrote:
By the way, if you wanted vary your jdoconfig.xml settings
knowing which are impl in appengine, here's a link to
appengine datanucleus test code
In the first case, you have an unowned one to many and the children
are not
persisted with pm.makePersitent(item);
If the 2nd case, when Item owns Child entities,
pm.makePersistent(item)
will persist the children too, but you will have exceptions it you try
to persist another item with the same
Did you reverse the error and queries? In the first, you're getting a
list
of keys, so those aren't entities to have caused the multiple entity
exception.
On Aug 1, 11:12 pm, Mauricio Aristizabal aris...@gmail.com wrote:
I was just trying retrieve a List of entities and do a .size() to get a
http://code.google.com/p/googleappengine/issues/detail?id=5524
Anyone had trouble with client-server-client data exchange that's lead
to stalled updates?
Thanks for your time,
Nichole
On Jul 26, 1:46 pm, Nichole nichole.k...@gmail.com wrote:
Can anyone who's successfully today deploying
Ikai, can you recommend a work around?
On Aug 8, 10:37 am, Nichole nichole.k...@gmail.com wrote:
http://code.google.com/p/googleappengine/issues/detail?id=5524
Anyone had trouble with client-server-client data exchange that's lead
to stalled updates?
Thanks for your time,
Nichole
you can get notifications for the issue at:
http://code.google.com/p/googleappengine/issues/detail?id=5474
On Aug 20, 12:10 am, steveb steve.buikhui...@gmail.com wrote:
and me
On Aug 20, 3:13 pm, BoulderGae sc...@scmlabs.com wrote:
Me Too!
On Aug 19, 10:34 pm, culov
I started seeing errors due to changes in appengine security manager
and a new appengine
defined user-class loader on about July 21st for classes that I was
constructing on
the fly dynamically in the code using Constructor. In addition to
ExceptionInInitializerErrors there were logs statements
In addition to the above, I'd say you might want to make new keyword
entities for each
keyword and store the reference/key to the original entities instead
of storing your keywords
as a list of properties in your original entity. A list of strings is
stored implicitly as
an embedded table so will
Hi Mauricio, I think I need more information:
What relationships do you have between your entities?
For the Conversation/Comment example above I can derive something like
this:
===
Conversation
--
commentKey: Key
status: String
rank: Integer
In addition to adding urls to your appengine-web.xml, if you intend
app to be your
application default root path, see:
http://code.google.com/appengine/docs/java/config/appconfig.html#Changing_the_Root_Directory
On Sep 9, 12:13 pm, jem...@gmail.com wrote:
Static file are dealt with
Can use low-level datastore and iterate over batches:
binSize = 1000;// or smaller if needed 30 sec timeout
DatastoreService datastore =
DatastoreServiceFactory.getDatastoreService();
Keys only select and delete:
javax.jdo.Query q = pm.newQuery(select key from +
The javadocs for MemcacheService suggest a pattern that you would use
if the
backing cache used soft references:
foo = memcache.get(key);
if (foo == null) {
if (memcache.contains(key)) {
// continue, assuming foo had the real value null
} else {
// continue; foo may
The lower level MemcacheService is different from the service provided
by
the jache api (a.k.a. memcache). The lower level MemcacheService that
you
are accessing is more volatile and so in between checking for
existence of
a key and getting that value, the value may have been disappeared
The implementation of jcache is now Google's GCache internally
and that's included in the api, so no need to include the separate jar
for appengine-jsr107cache.
GCache implements javax.cache.Cache
The only mention I could find of net.sf.jsr107cache.Cache.java online
did not implement
If you have a java web application that conforms to servlet spec 2.4,
jsp spec 2.0 and jstl spec 1.1.x the additional steps you'll need to
take
are roughly:
-- add the resource files to your appengine-web.xml file
-- replace use of JAAS classes that are not allowed by the
appengine security
and you'll probably want to add threadsafetrue/threadsafe to
appengine-web.xml
as appengine's frontend server will otherwise send requests serially
On Sep 18, 6:25 pm, Nichole nichole.k...@gmail.com wrote:
If you have a java web application that conforms to servlet spec 2.4,
jsp spec 2.0
It looks like a factory for a validation service might be looking for
the declaration of
the validation service.
These are often declared in a file in META-INF/services in
jars that are the providers of that service so take a look at the jars
in your
web apps lib directory. That same declaration
try a forward within index.jsp instead:
jsp:forward page=/index.vm /
On Sep 26, 1:42 pm, Stephen Johnson onepagewo...@gmail.com wrote:
My guess is that Google is interpreting them as static files and Google's
infrastructure is handling them before it reaches your app. So, read up on
use the level 2 cache?
property name=datanucleus.cache.level2.type value=javax.cache /
Objects are placed in the L2 cache when you commit() the transaction
of a PersistenceManager. This means that you only have datastore-
persisted objects in that cache. Also, if an object is deleted during
a
Level2 cache might be what you want, but anyway, just to add to the
dialog, I tinkered
with what's available in datanucleus-core v1.1.5.
Choices in datanucleus are: none, soft, and weak
(jcache is not available in any version, but see below for
customization)
In addition to those, one can make a
Have you thought of designing for all viewports from the start instead
of a redirect?
see the new jquery library
http://jquerymobile.com
On Oct 4, 11:57 am, WillSpecht willspe...@gmail.com wrote:
Can someone give me a basic rundown of how to set up a mobile site on
app engine. I already
2 things to fix in your web.xml:
--param-value should be single valued
--url-pattern ExampleApp/* should be changed.
url-pattern has the following rules
path mapping: starts with /, ends with /*
extension mapping: begins with *.
default servlet: single character /
Not sure what your search server does, but presumably the user enters
keywords
and you search through your file based pre-prepared 'indexes' of file
offset and keywords to return
information to locate the word within the text?
Since you don't have direct access to big table and are not wanting to
entity key could have a scalable name that is usable in an order
by clause (the order by is
needed if you're using cursors for example).
A pattern like object1 for the entity name means you can keep
adding names
with a number as string.
On Oct 5, 11:56 pm, Nichole nichole.k...@gmail.com
I should add that my simplified model above uses the given static
examples without a redirect to a /site/mobile.
By 'design for all viewports' I mean design to use floating right divs
when possible...
On Oct 6, 2:50 pm, Nichole nichole.k...@gmail.com wrote:
I'm not using a pseudo-2-site model
One last addition is that the appengine implementation of
javax.servlet.Filter
will probably never intercept static content as those files are
probably on CDN, hence
not delivered directly by servlet container...
On Oct 6, 2:55 pm, Nichole nichole.k...@gmail.com wrote:
I should add that my
/mobile/
home.jsp when a user types in m.mydomain.com/home.
On Oct 6, 5:55 pm, Nichole nichole.k...@gmail.com wrote:
I should add that my simplified model above uses the given static
examples without a redirect to a /site/mobile.
By 'design for all viewports' I mean design to use
content, then if you use a post
to same
url and parameters as data, no difference in resulting SEO for these
2 different site approaches...
On Oct 8, 1:30 am, Nichole nichole.k...@gmail.com wrote:
You can use a single servlet filter instead of a servlet per
destination jsp page.
Keep in mind
Since it's javascript downloaded from *appspot.com, is your question
about 'cross origin resource sharing'?
On Oct 7, 6:01 am, Vik vik@gmail.com wrote:
Hie
I have a google app script which I want to invoke from google app engine for
java. Can someone please guide on how to invoke such
To simplify the problem, can you use your IDE purely as jdwp agent?
For maven (which for multi-module projects w/ profiles, current
netbeans and eclipse plugins can have difficulty resolving a class,
but are well worth that trouble for everything they do do right :)
I often use this:
mvn
javax.jdo.PersistenceManager
On Jan 29, 4:46 pm, John Goche johngoch...@googlemail.com wrote:
On Mon, Jan 30, 2012 at 12:37 AM, Nichole nichole.k...@gmail.com wrote:
Do you have fields within your persistable entities in Data.store
which are persistable?
Yes, all the fields within the persistable entities
You'll have a security, restricted class exception for javax.net.ssl.
You can use ssl provided by appengine for appspot.com subdomains (the
CA was Equifax last time I checked),
but not your own certificate.
http://code.google.com/appengine/kb/general.html#https
On Jan 29, 3:18 pm, Doug
Looks like you are using paging...
On Jan 31, 11:41 am, Paul Ford paul.f...@mavenwave.com wrote:
ok guys could not find a google docs api group so posting this here.
I'm trying to list out all documents within a domain companyabc.com.
If I use DocumentListFeed I get a 100 docs. If I use the
Do you have a security-constraint in your web.xml that specifies 'role-
name' as '*' or admin for the url-pattern of the servlet you used? It
looks like the invoker was not yet authenticated or failed
authentication.
On Feb 1, 5:59 am, Sergio ksergio...@gmail.com wrote:
Hi All!
I catch the
2-phase locking
transactions:
http://groups.google.com/group/google-appengine-java/browse_thread/thread/497060c343e16052/18f8603e9ffe3db4?lnk=gstq=Good+point+++nichole#18f8603e9ffe3db4
On Feb 1, 10:25 am, John Goche johngoch...@googlemail.com wrote:
Hi,
I've raised the issue with a test case
Looks like you are trying to upload binaries compiled w/ a jdk version
not compatible w/ 5 or 6.
On Feb 2, 9:06 pm, Arjun Damodar lutt...@gmail.com wrote:
Hello,
I was trying to compile an application but getting the following error:
javax.servlet.ServletException: java.sql.SQLException:
you'll want to use the HttpServletResponse close() method.
On Feb 1, 9:18 pm, Jeff Morgan j...@lacodatech.com wrote:
Is there a way to force GAE to send an HTTP response with header
Connection: close?
I have tried, response.setHeader(Connection,close);
but no luck.
--
You received this
With GFS you should be able to use any character in the name of a file
or directory except the null character,
so you just need to form your string using the right encoding.
String fileName = new String(str, UTF-8); or use Big5 for encoding?
And then make sure the jsp prints the character
that, but that is the simplest way to explain it.
Cheers,
Nichole
On Feb 2, 4:19 am, John Goche johngoch...@googlemail.com wrote:
NIchole,
Thank you for your feedback, but how do I change my code so that I have
this entity group you are mentioning? I am using the HR datastore. And
how did you get
. The mentioned problem only happened after deploying in GAE cloud but
didn't happen in local Eclipse development environment.
Please help and thanks again.
On Mon, Feb 6, 2012 at 5:05 PM, Nichole nichole.k...@gmail.com wrote:
With GFS you should be able to use any character in the name
94 matches
Mail list logo