Any ideas ?
Regards,
Miroslav
On 07/10/2010 08:36 PM, Miroslav Genov wrote:
Hello,
My general idea of doing this in jetty instead of GAE's local
development server is that I want to spin up the development server
from my test. To handle that, I made a custom ApiProxy.Delegate that
could
Thanks Robert.
I don’t think that will solve it.
I think text search could have solved it easily, which is not in at
the moment, unfortunately.
If I design it something like this (Item as concatenated strings of
items separated by a space):
InvoiceNo Item
Not the Manager is created once but the ManagerFactory!
Managers should be created and ended each time data-access is needed!
I think you should call pm.commit() after calling makePersistent() ...
because after that u r sure that your data has been written!
I would be glad to hear your feedback.
Yes I'm agree with all the comments, but my problem is that I have to read
data after saving and I can only see these data after doing a pm.close().
Anyone has a simple project? I'm really lost and I'm losing a lot of time in
this
2010/7/12 boustanihani boustanih...@googlemail.com
Not the
You could add an app engine mail account as bcc and skip the task when
you receive that email to avoid duplicate execution ;-)
On 12 Jul., 00:30, Marcus Brody mhrab...@gmail.com wrote:
I know :( I just thought there maybe be some trick with special case :
Sending Mail.
Good is it forces to
I got it working. It seems that LocalTaskQueueTestConfig has a property
disableAutoTaskExecution. Here is the snippet that fixes my issue:
LocalTaskQueueTestConfig taskQueueConfig = new LocalTaskQueueTestConfig();
taskQueueConfig.setDisableAutoTaskExecution(false);
Regards,
Miroslav
On
Hello,
I have situation where I am creating atleast 100 entities in one request.
All the 100 entities has the same parent.
The appengine times out with DeadlineExceeded exception.
Any suggestions on how to avoid the DeadlineExceeded exception.
-Aswath
--
You received this message because you
Hi everyone,
i want to test a remoteService that performs operations on a datastore
with jdo. For example:
public class UserServiceImpl extends RemoteServiceServlet implements
UserService {
public User addUser(User u) {
PersistenceManager pm =
Hello,
You have to use the LocalServiceTestHelper class to manage
datastore,memcache, task queues and etc.
Here is one example that could help you find out how to use it:
class UserServiceImplTest extends TestCase {
private LocalServiceTestHelper helper = new LocalServiceTestHelper(
You can't agree with all the comments because there are
contradictions. It is possible to agree with some of them but not all
of them!
Did u try calling pm.commit() after calling makePersistent() ?
--
You received this message because you are subscribed to the Google Groups
Google App Engine
Sorry, I would to say that I understand both comments because I've test all
the posible options. Here is my source code, look that I have to comment
pm.close(), to do a number of calls to createUser. Can you help, please?
Thanks.
public UserInfo createUser(String fullname, String address,
Could you paste the source of PersistenceManagerHelper ?
Are you sure you are getting a new PersistenceManager ?
--
You received this message because you are subscribed to the Google Groups
Google App Engine for Java group.
To post to this group, send email to
In the documentation I've read that I have to use a singleton instance here
you have the source code, perhaps i have here the error?
public class PersistenceManagerHelper {
/* the singleton instance */
private static PersistenceManager instance = null;
/**
* Hide the constructor.
*/
Yes indeed, here is the error ... the PersistenceManagerFactory should
be the singleton not the PersistenceManager. Managers should be
created and ended each time data-access is needed!
After u close a PersistenceManager u may not reuse it again ... and
this is what was happening because your
Anytime you change a Java file you have to restart the server to make
the changes effective.
On Jul 12, 7:59 am, decitrig rws...@gmail.com wrote:
I have this controller set up right now, using Spring MVC 3.0:
@Controller
public class HelloController {
@RequestMapping(/hello.htm)
On Google App Engine Java email service, I am trying to send a UTF8
(Hebrew) email subject and body but they arrive (in Gmail) jumbled as
��
Here is my code
MimeMessage msg = new MimeMessage(session);
msg.setSubject(emailSubject, UTF-8);
Multipart mp = new
Dear all,
How Can I query a __key__ in Datastore Viewer?
I tried the following method:
SELECT * FROM PreparedTransaction WHERE
name='0cc230c8611ce1a9fcd2dd131c27'
SELECT * FROM PreparedTransaction WHERE
JRebel woks well with App Engine to make restarting unnecessary most
of the time.
On 12 Jul 2010, at 19:53, Marcel Overdijk wrote:
Anytime you change a Java file you have to restart the server to make
the changes effective.
On Jul 12, 7:59 am, decitrig rws...@gmail.com wrote:
I have this
On Jul 12, 5:53 am, Marcel Overdijk marceloverd...@gmail.com wrote:
Anytime you change a Java file you have to restart the server to make
the changes effective.
My mistake; I'm also working with GWT, and got the two mixed up. Sorry
for the static!
On Jul 12, 7:59 am, decitrig rws...@gmail.com
Even i was having the single instance of PersistenceManager in my
application. I too had the code similar to the above mentioned way.
In some perspective, the PersistenceManager can be considered similar to
JDBC connection. So by basic programming concepts, i ended up creating only
one(or perhaps
http://code.google.com/eclipse/docs/install-from-zip.html
On Fri, Jul 9, 2010 at 12:00 AM, shekhar shekhar.kote...@gmail.com wrote:
Hi,
I do not have internet connection at my home. So I am not able to
download GAE eclipse plugin at my home. Is it possible to download
this plugin without
Ok. It was my mistake to get your question wrong. Apologize for the
confusion.
Thanks
Hari
2010/7/12 cscsaba strongfr...@gmail.com
Hello Hariharan,
I need the way, which can instruct the JPA using the xml, flat file
ids as unique identifier.
Since I'm not able to use the find() which is
Hi Lisan,
In the Torneo class, i am not seeing mappedBy attribute for @persistent
tage for field
private ListEquipo equiposTorneo;
That is required to make this a owned one-many collection. Only then it
might be possible to get collection of Equipo when retrieving Torneo .
Thanks
Hari
I'm creating textareas in the main java file of my app, and I want to
make them resize themselves as users enter and delete text in them. I
can't figure out how to do this, though. There are solutions online
where you can use javascript in the html file to compare the
offsetHeight and scrollHeight
Hi i'm trying to follow http://www.youtube.com/watch?v=P3GT4-m_6RQ
tutorial but i get this error
HTTP ERROR 500
Problem accessing /otraClase. Reason:
INTERNAL_SERVER_ERROR
Caused by:
java.lang.ExceptionInInitializerError
at com.google.guestbook.otraClase.doGet(otraClase.java:21)
I'm trying to model a polymorphic relationship in JDO, ListGameRound
where each GameRound could be either a TextRound or PictureRound.
I've followed the documentation and modeled the association as a
ListKey as described:
I am facing a problem with file upload.I have used Apache Commons
servlet file upload for uploading the file. Though the file is getting
uploaded and the data is getting stored on the local server(http://
127.0.0.1:/_ah/admin/datastore) but it is not going to the Google
App Engine datastore.
Could you please post an example. Thank you in advance.
On Jun 30, 1:18 pm, Matthew Blain matthew.bl...@google.com wrote:
The 1.3.5 bulkloader client will allow you to specify a numeric key;
you must use the Key constructor explicitly to do this, integers will
still be converted into strings.
Hello,
I am running on Ubuntu 8.04 LTS, using Eclipse Galileo. I am new to
the App Engine, GWT, and Eclipse.
Back in April I installed the App Engine and GWT plugins and started
experimenting with a web app project that uses the App Engine GWT.
Today I was prompted to upgrade the plugins:
-
You'll need to do this in the client using Javascript. You can't do client
side UI on the server.
If you're using Google Web Toolkit, you may have better luck finding an
answer here: https://groups.google.com/group/Google-Web-Toolkit?pli=1
On Sun, Jul 11, 2010 at 11:24 PM, Brandon A
Check the logs or add your own logging to check if the file arrives.
Files are limited to 1 MB in the datastore. Use the blobstore service for
bigger files and easy (public) uploading.
On Mon, Jul 12, 2010 at 1:35 PM, Akriti Kalra akriti...@gmail.com wrote:
I am facing a problem with file
I can only confirm I see the same issue when sending e-mail with a German ü
in the subject. I haven't found a solution yet.
On Mon, Jul 12, 2010 at 3:04 PM, Marc Hacker marc1hac...@gmail.com wrote:
On Google App Engine Java email service, I am trying to send a UTF8
(Hebrew) email subject and
Split this up in 10 tasks with 10 entities each or check
http://code.google.com/p/gaevfs/source/browse/trunk/src/com/newatlanta/appengine/taskqueue/Deferred.java
On Mon, Jul 12, 2010 at 11:43 AM, aswath satrasala
aswath.satras...@gmail.com wrote:
Hello,
I have situation where I am creating
Create a task for sending e-mail instead of calling the mailservice
directly.
use this in your task (a task can be part of a transaction)
try{
...
} catch (Throwable thr) {
log.error(...);
}
and all exceptions will be catched. I think a task will be re-executed only
if it fails (throws an
Pieter,
although this looks easy its not that easy, I am aware that I can
queue a mail sending task,
problem is that task has to be idempotent to achiev desired behaviour,
a queue task can be executed for example twice, since those are
specifications
and this would result in sending mail twice,
Locking will not help.
You may need to be able to pass a unique identifier to the mail api to
prevent sending mails twice (see
http://groups.google.com/group/google-appengine/browse_thread/thread/c64caf9539a45051/00d157921c2fde92)
On 12 Jul., 22:07, Marcus Brody mhrab...@gmail.com wrote:
You can check request headers to see if this is a first invocation of a task
(
http://code.google.com/appengine/docs/java/taskqueue/overview.html#Task_Request_Headers),
so you can detect a second invocation of a task.
Maybe if you combine this with specific catch blocks for mail exceptions?
On
dflorey and Pieter,
thank you for the links,
I will look into it asap.
On Jul 12, 10:35 pm, Pieter Coucke pieter.cou...@onthoo.com wrote:
You can check request headers to see if this is a first invocation of a task
(http://code.google.com/appengine/docs/java/taskqueue/overview.html#Ta...),
so
Hello everyone,
I was trying to send mail to per...@domain.com and in the same mail
BCC to admins (app has 2x admin)
result is that per...@domain.com never receive mail but admins do.
I would like to ask if this is intended behaviour.
My code is following:
InternetAddress []
Hi! Prashant/Hariharan. The problem was that I don´t have the
annotation in the collection:
@Persistent(mappedBy = torneo, defaultFetchGroup = true)
private ListEquipo equiposTorneo;
The defaultFetchGroup = true is critical and in the documentation of
google it is not...
I did
If you use the RemoteDatastore you have complete control in Java of
what you key is.
http://code.google.com/p/remote-datastore/
e.g. this code puts an entity with the id set in your remote datastore
from your local machine:
RemoteDatastore.install();
Try this:
SELECT * FROM PreparedTransaction WHERE
__key__=KEY('agdwYXllbGV4cjkLEhNQcmVwYXJlZFRyYW5zYWN0aW9uIiAwMDAwMGNjMjMwYzg2MTFjZTFhOWZjZDJkZDEzMWMyNww')
This is documented here:
http://code.google.com/appengine/docs/python/datastore/gqlreference.html
On Mon, Jul 12, 2010 at 6:25 AM,
Another way I can think of divide the kind and do some form of keys
only query on ItemIndex and transform them to parent keys (http://
www.youtube.com/watch?v=AgaL6NGpkB8) and then filter in memory as per
invoiceDate? But this way I may end fetching lots of invoices which do
not meet criteria, any
Hi all,
I'm trying to config my first Java Server Faces project with GAE. I
have already configured my Eclipse following instructions published at
I've executed the program and now is right!!!. However now I have another
problem if I executed this source code, the system tells me that the
transaction is still active, for the second getUser. I'm using Junit perhaps
is for this?.
public void test3UserFindById() {
try {
yes, you can, but it's a little bit undocumented.
checkout: http://code.google.com/p/gaeoauthdemo/
On Sun, Jul 11, 2010 at 12:16 PM, compeng4lf juan91...@comcast.net wrote:
Can the Google Appengine OAUTH API work with other sites? Meaning can
you use this API to authenticate on different
Hi aswath,
I would exactly do what Pieter suggests as the tasks you're posting in
queue are guaranteed to execute by App Engine if you include them in
the transaction : see
http://code.google.com/appengine/docs/java/taskqueue/overview.html#Task_Within_Transactions
The only issue after this
The file is very small nowhere near 1 MB. What I am doing is loading
the file as a stream and immediately parsing the stream and creating
datastore entities with the data. I am not actually trying to save the
file. In the local server it works. It even works when I try to access
the local server
Yes, it worked without explicitly detaching fields with just defaultFetchGroup
set to true.
btw,
mappedBy property is required only for bi-directional mapping.
--
Prashant
www.claymus.com
--
You received this message because you are subscribed to the Google Groups
Google App Engine for Java
49 matches
Mail list logo