I've got some classes that extend a base class. This base class
implements some simple functions (like hashCode() and equals() ect.)
in a generic way so I don't have to keep writing those methods over...
and over... and over again. It also is the central place for entities
id field:
It also is the central place for entities id field:
DataNucleus, the project (as opposed to the Google plugin), only
insists that something is enhanced if you are using its fields/
properties as persistent. If this class has an id field and you
expect that field to be persisted then ***JDO***
well, I should clarify:
BaseBean used to just hold the field id:
private Key id;
public Key getId()
{
return id;
}
public void setId(Key id)
{
this.id = id;
}
and subclasses would override this method and put the appropriate JDO
annotations in. I was doing this because inheritance of
oh, forgot to mention:
if according to the JDO specs a non-persistent super class can have
a field that is overridden by it's persistent sub-classes, then it
seems like a bug that I was getting runtime errors saying that
BaseBean isn't persistable when trying to persist a subclass of
BaseBean that
Let's be clear here, if you have
public class Base
{
private long id;
public long getId()
{
return id;
}
public void setId(long id)
{
this.id = id;
}
}
@PersistenceCapable
public class Sub extends Base
{
@PrimaryKey
@Persistent
public long
right, we're certainly on the same page on what should/shouldn't be
persisted. I have that override on every single class that subclasses
BaseBean. I would never expect JDO/datanucleus or any other framework
for that matter to magically persist a field in a non-peristable
super class. That's
Hello Eric,
thank you for your update. In fact I was suspecting the index or other
management data. But it is hard to believe that it leads to such a big
overhead. I mean it is enormous to have an index that is 10 times more
than the actual data, don't you think so?
Furthermore in the datastore
Hi,
I just upgraded to sdk 1.2.8 from 1.2.5 and am now getting the
following errors when the first request to the datastore is made:
[java] Caused by: java.lang.NoClassDefFoundError: javax/persistence/
InheritanceType
[java] at
org.datanucleus.store.appengine.DatastoreManager.clinit
Any ideas why this is occurring?
For some reason the GAE/J DN plugin is referring to JPA classes yet
should only ever refer to DataNucleus internal classes. Raise a bug
in
http://code.google.com/p/datanucleus-appengine/issues/list
Dependence only on DN internal classes means that people can use
Hi shwan I'm in Nagoya
I could fix this problem by using following post
http://groups.google.com/group/google-appengine-java/browse_thread/thread/df660675d21c64f0/725edfd2ecb0d188?lnk=gstq=1.2.6#725edfd2ecb0d188
The Last Larry Cable's Post is the to show how to fix this problem.
Thank you
No, this is not currently possible. I believe Servlet 3.0 adds support for
web.xml fragments, which is likely what you want.
On Mon, Dec 7, 2009 at 8:03 AM, Prashant antsh...@gmail.com wrote:
Hi,
I have some (eclipse) projects which extend a main project, in other words,
a project is
ok, thanks anyway.
--
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
On Mon, Dec 7, 2009 at 2:20 AM, Toby tobias.ro...@sunnymail.mobi wrote:
thank you for your update. In fact I was suspecting the index or other
management data. But it is hard to believe that it leads to such a big
overhead. I mean it is enormous to have an index that is 10 times more
than the
You might try leveraging one of the MVC frameworks which supports
inheritance for its action mapping files.
Xdoclet may be another alternative worth investigating for a lower level
build time composition of web.xml (although I haven't used it in the GAE /
Eclipse context). It was a great ant
Jason:
I need your help.
Before I create the index,My app works fine,and I use the query
below,I can get 1 row.
SELECT FROM StockBase where code = '600175' and season = '3' and year
= '2009'
However,after create the index,and status of index is serving.I
use the query above,then can
I have trying to deploy a web MSN Messenger app to GAE and the
following error appears.
java.lang.NoClassDefFoundError: rath.msnm.MSNMessenger is a restricted
class. Please see the Google App Engine developer's guide for more
details.
The app used an external jar includes rath.msnm.MSNMessenger
Hi,
I'm using the Java low-level Datastore API, in a local unit test (as
described here:
http://code.google.com/appengine/docs/java/howto/unittesting.htm):
I'm trying to run a prefix search on __key__ (which I generated in the
first place), as per the usual range-query hack:
Can anybody reply to me on this, I am still facing this issue.
Thanks,
Muhammad Umair
On Dec 3, 5:32 pm, umair umair...@gmail.com wrote:
Does anybody have a solution to this problem, an immediate reply will
be highly appreciated.
Thanks,
Muhammad Umair
On Dec 3, 2:29 am, umair
Hi, I'm new in JDO, so I think this problem may sounds stupid...
I'm working on my application on App-engine, and feel really confused
about how to use the PersistenceManager in my app...
1) At the very beginning I tried to maintain only one static pm
instance in my app, but I found that when I
Hi, I'm trying to store email and phone number in one of my tables.
I'm using the PhoneNumber and Email objects to store these values.
These tables work fine in my dev environment. However when I create
them in production I cannot read them from Data Viewer in the App
Engine console. Whenever I
Is it possible? I am new, but based on my research the answer is no.
How about connecting my development code to the hosted datastore?
--
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
Rusty,
Currently the Google Plugin works with a hardcoded path to the webapp-
directory.
An issue has already been filles (http://code.google.com/p/
googleappengine/issues/detail?id=1515) and accepted, so I guess it
will be fixed anytime soon.
I still use Eclipse to write my application, build
Just Take backup of your application, then create new application and
update src and war file manually. refresh eclipse project. enjoy
--
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
Hi,
Our appengine instance is seeing nearly double the CPU usage since
december 3rd compared to before, without an increase in number of
requests.
We have been trying to debug this, but it's hard to make sense of the
numbers provided by appengine.
A typical request that we do has numbers like
To answer my own question:
If you search for Keys rather than Strings, it works properly. However, this
is still a small defect IMO.
Recorded here, with a test-case attached:
http://code.google.com/p/googleappengine/issues/detail?id=2471
Regards,
Viktor
On Sat, Dec 5, 2009 at 11:36 PM,
I am getting this error when deploying the youtube direct application
to google app engine.
Unable to update:
com.google.appengine.tools.admin.JspCompilationException: Failed to
compile the generated JSP java files.
Some forum suggested me to do these steps
1. Copy tools.jar into the AppEngine
you cuold edit the app-engine plugin:
C:\Documents and Settings\pm\.grails\1.1.1\projects\grails-gae\plugins
\app-engine-0.8.5\scripts\_Events.groovy
inside system-properties element add:
system-properties
!-- this property should be necessary. it avoids the report of
an abnormal
What is the most efficient way of querying the many side of an
unowned relationship. E.g., assuming the standard JDO annotations are
applied:
class Person
{
SetKey foods;
}
class Food
{
Key key;
String name; // unique
}
Given the name of a Food, how can I best get the list of Person
Hi all,
I got the following error from app server.
I only define a servlet in web.xml and do nothing in servlet.
Any one has idea about this issue?
Thanks.
Web.xml
servlet
servlet-namepostURL/servlet-name
servlet-classorg.liko.servlet.postURL/servlet-class
/servlet
servlet-mapping
We are considering to redevelop our existing MS Access based
application. We are planning to have one back-end database connected
with the website as well as the off-line (office based) data entry.
Option we are considering are; a) Google Apps Engine based
application; b) asp.Net SQL based
What's your app id?
On Sun, Dec 6, 2009 at 10:19 AM, jd jdpatter...@gmail.com wrote:
Hi,
I am getting errors on every other request like this:
Request was aborted after waiting too long to attempt to service your
request. Most likely, this indicates that you have reached your
simultaneous
I am not sure it/there is a right way, but in my application I am
injecting (via Spring)
a (singleton) PMF into my Controller(s) (which are singletons) and
instantiating a PM for each (concurrent) query/request...
On Dec 4, 11:30 pm, Fan Lin linfa...@gmail.com wrote:
Hi, I'm new in JDO, so I
On Mon, Dec 7, 2009 at 5:42 AM, SCMSoft scms...@gmail.com wrote:
We always used to have ~100ms api cpu_ms, but cpu_ms used to be more
like 50ms or so. We added logging on the time of entry and exit of
doGet() and there was 58 ms difference in this case. How is it
possible to have 210cpu_ms,
Hi Dom,
We definitely should have updated our unit-testing documentation to include
more information for testing with queues. I'll make sure this gets
addressed. In the meantime, I believe this should do what you want:
QueueFactory.getDefaultQueue().add(TaskOptions.Builder.taskName(task29));
You'll have to stop the server when you redeploy. If you run in debug
mode, the JVM will reload classes that you recompile so you would only need
to redeploy when you change configurations (web.xml, appengine-web.xml,
etc). I'm not familiar with the NetBeans plugin, so I can't comment on why
this
Toby,
There's another thing to be aware of: sessions are backed with the
datastore. If you have sessions enabled, you may want to write a scheduled
task that clears session data.
On Mon, Dec 7, 2009 at 9:00 AM, Eric Rannaud eric.rann...@gmail.com wrote:
On Mon, Dec 7, 2009 at 2:20 AM, Toby
Yes, App Engine suggests external JARs. What is likely happening is that the
library is using a class that is not on the whitelist. Since it is an MSN
Messenger app, this likely has to do with classes that require socket
communication, which we do not allow. Have you looked into the XMPP service?
Local task execution is using the local UrlFetchService implementation with
its default timeout: 5 seconds. So, if the url that your task hits takes
more than 5 seconds to respond you'll see this exception. However, this
exception is from the client of the task url, not the task execution
Hi Max, after sleeping on it, it became apparent that as you describe
the timeout is
in fact in the client and not the execution of the (servlet) task
itself ...
On Dec 7, 10:54 am, Max Ross (Google) maxr+appeng...@google.com
wrote:
Local task execution is using the local UrlFetchService
Regarding the per-request quota
Are you worried about the number of requests or the duration of those
requests?
On Mon, Dec 7, 2009 at 11:17 AM, Larry Cable larry.ca...@gmail.com wrote:
Hi Max, after sleeping on it, it became apparent that as you describe
the timeout is
in fact in the
Hi Jason and all Google guys,
This is real big problem and its not just canslimbot application but there
are many applications, in today's mails i can see 3 people have faced this
problem i ncluding m e. I am sure there is some defect in index building.
Can you please have a look.
Thanks,
Ravi.
Ikai, how to check/clear session data? Thanks, Peter
On Dec 7, 7:53 pm, Ikai L (Google) ika...@google.com wrote:
Toby,
There's another thing to be aware of: sessions are backed with the
datastore. If you have sessions enabled, you may want to write a scheduled
task that clears session data.
Leon,
I may have originally misdiagnosed your issue. Where did you place the JAR
file? If you placed it in your JDK's lib/ext directory, it could cause
dev_appserver to incorrectly think the class belongs to a package that we
don't support. You'll need to put this JAR file under WEB-INF/lib and
sorry I should have been more precise, essentially I am concerned
about blowing the 30sec per request processing/duration limit
previously I was bulk uploading csv files and parsing them into POJOs
then persisting them via JDO to pre-populate my app data ...
I was encountering both the 5sec DS
How did you change the proxy settings to make it work?
On Dec 4, 7:45 pm, GaryC garyacr...@gmail.com wrote:
Resolved. The issue was the Connection refused. I had to update
the proxy settings in Eclipse.
On Dec 4, 4:49 pm, GaryC garyacr...@gmail.com wrote:
Same issue. Just getting
Your approach sounds fine. As an alternative you could schedule the next
task up front, then check to see if there is any work to be done, then
proceed. That way you'll always have the next task scheduled no matter what
might go wrong during processing.
On Mon, Dec 7, 2009 at 2:19 PM, Larry
Hi Shawn,
My apologies, but the Extent example on the page you referenced is not
supported because we have no way to efficiently query across different types
(datastore queries are either by kind, by ancestor, or both).
pm.getObjectById(TestDN.class, key) will fail if the persistent type of the
Yes, pre-compilation reduces the time to load an application. This will
benefit you on your first request after a deploy, after you've been cycled
out or if more application instances are created to scale up with your load.
You will see up to 30% improved loading time on your first request.
Scott,
No, not in the data viewer. You should be able to use the Python bulk loader
tool for this:
http://blog.notdot.net/2009/9/Advanced-Bulk-Loading-Part-5-Bulk-Loading-for-Java
On Sun, Dec 6, 2009 at 4:45 PM, Scott gocards...@gmail.com wrote:
Is it possible to run update/insert queries in
Excellent, look forward to trying it out!
On Dec 3, 4:35 pm, Vince Bonfanti vbonfa...@gmail.com wrote:
I just committed the code to add support for the If-Modified-Since request
header (and the Last-Modified and Content-Length response headers). It'll be
in the next GaeVFS release, which will
Hi friends,
Recently I required debugging my appengine webapps on a public ip
address. There is no place set the host ip address in the
plugin...finally I try this paramter to the command line of the
plugin. It works...
debug as debug configurations arguments Program arguments
-a
Hi,
Jason (Google) has mentioned that there is a limit on the amount of
memory an application can consume in another thread:
There is an upper limit to the amount of memory your app can consume,
but
it's more than reasonable for the type of applications that App Engine
is
built to serve. If your
Martin,
Can you provide your app ID? I'm not able to look up czumdm.
On Sun, Dec 6, 2009 at 4:40 PM, Martin Caslavsky mcaslav...@gmail.comwrote:
Hi,
my java app (czumdm) was over quota, so I enabled billing. First
request was processed at 12-06 04:10PM 11.559. App worked correctly --
most
Hello,
I care for an application that updates every day somewhere around 1
million rss (6 times a day) and we are looking for alternatives to
reduce costs, and among the cheaper alternative is the Gae4j.
But I'm still a little afraid to migrate the application, considering
the limits that exist
Hi,
I should have said no error log but on my browser Error: NOT_FOUND
gets displayed.
Below is my log with serverity set to DEBUG
#
1.
12-07 05:33PM 21.623 / 404 11146ms 15477cpu_ms 0kb Mozilla/5.0
(Windows; U; Windows NT 6.0; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/
3.5.5,gzip(gfe)
Sam,
I understand your confusion. I'm looking into it. The code I posted was to
convert an InputStream to the proper format. My understanding is that 1.2.8
actually fixed the issue, so our code should actually end up being simpler
and closer adhere to standard Java incoming mail processing.
Any
François,
Can you give this a try?
ByteArrayDataSource mimePartDataSource = new ByteArrayDataSource(imgData,
inboundMimeBodyPart.getContentType());
attachment.setDataHandler(new DataHandler(mimePartDataSource));
On Sat, Dec 5, 2009 at 1:47 AM, mably fm2...@mably.com wrote:
This code doesn't
Max,
With your settings added to my MockAppEngineEnvironment.tearDown()
method, there's no more issue.
Personally, I think using my MockQueue which stores the submitted
TaskOptions instances is easier to use. I can access each attributes
individually (URL, method, parameters, etc.) with the
hi, Andrey:
I am also looking for advices on how to use spring security and OpenID on
Google App Engine applications, did you find any useful information?
as far as my research, I found my application on GAE can't be used as OpenID
RP because it's not allowed to create Realm.
It will be great
I'm glad to hear things are working for you. If MockQueue works best for
you then by all means stick with that - that's more of a pure unit test
anyway since it doesn't depend on the actual local task component.
Max
On Mon, Dec 7, 2009 at 8:47 PM, Dom Derrien dominique.derr...@gmail.comwrote:
Hi all,
I've created the log appender that write a log out through the
XMPPService for sl4j and logback.
XmppAppender.java
---
import ch.qos.logback.classic.spi.ILoggingEvent;
import ch.qos.logback.core.*;
import com.google.appengine.api.xmpp.*;
public class XmppAppender extends
Thanks for the link Max.
Having BaseBean be PersistenceCapable isn't really a requirement.
It'd be nice, 'cause pretty much every bean in my class structure is
going to have an id field, a getter/setter and the exact same JDO
annotation metadata on that field. It'd be nice to just have that
Max, have you had a chance to try this out? I'm not trying to push or
anything, just wanted to make sure my last message didn't get
overlooked. I've noticed this error sort of... randomly popping up in
places where it preivously hasn't as of late. If i'm missing
something in my configuration,
63 matches
Mail list logo