[appengine-java] Re: Inheritance in JDO

2009-09-03 Thread bgood

Does anyone know if this was fixed in the 1.2.5 SDK release announced
today ?  (based on the status of the datanucleus-appengine/issues/list
I would guess no.)

I'd really like to start using JDO inheritance when it comes
available.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[appengine-java] Re: JasperReports on GAE

2009-09-03 Thread bgood


We had the same problem but ended up hosting the report generator on a
separate server.  If you figure it out, please post here about how to
do it!  Its really the only critical piece of our code that we can't
move into this particular cloud.  Its the only reason we are
considering alternative hosting services right now.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[appengine-java] Re: JasperReports on GAE

2009-09-04 Thread bgood

Sure would be nice if appengine would decide to support awt - it would
solve this problem and many others. (Vote for it here
http://code.google.com/p/googleappengine/issues/detail?id=1423).
However, my impression is that they have no intention to do so any
time soon - it must cause some significant problems for their
infrastructure.

Someone apparently got iText to run in app-engine
http://groups.google.com/group/google-appengine-java/msg/419faf63fff47ef7

and there was an issue posted to itext on sourceforge, but I can't
seem to access the itext project there anymore - perhaps they moved?
https://sourceforge.net/tracker/?func=detail&aid=2810312&group_id=152



On Sep 4, 1:33 am, Grzegorz Borkowski  wrote:
> Do you know if JasperReports developers are aware of this problem? Is
> there any bug reported to them? I haven't found any on myself.
> Logically, JasperReports (nor iText) shouldn't depend on AWT classes,
> so this dependency is a bit strange, and perhaps can be fixed by them.
>
> On Sep 4, 12:16 am, bgood  wrote:
>
>
>
> > We had the same problem but ended up hosting the report generator on a
> > separate server.  If you figure it out, please post here about how to
> > do it!  Its really the only critical piece of our code that we can't
> > move into this particular cloud.  Its the only reason we are
> > considering alternative hosting services right now.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[appengine-java] this group is being copied on a blog

2009-09-04 Thread bgood

I don't know what the owners of the group think about this, but it
seems wrong to me.  All of the messages posted to this list are
appearing on this guys blog unmodified.  See

http://cng1985.blogspot.com/2009/09/appengine-java-re-jasperreports-on-gae_04.html

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



[appengine-java] Re: After upgrade to Java SDK 1.2.5 Key property saved but retrieved as null

2009-09-05 Thread bgood

OK, but why would this behavior be happening inconsistently across his
(and probably others) application?


On Sep 5, 7:06 pm, Max Ross  wrote:
> Key is not in the default fetch group because it is an appengine-specific
> class.  The JDO spec doesn't know anything about app engine so there's no
> way that Key could be included in the list of types that are automatically
> included in the default fetch group.
>
> Max
>
>
>
> On Fri, Sep 4, 2009 at 1:32 PM, Yegor  wrote:
>
> > Just so you know, I think I have solved the problem by setting
> > defaultFetchGroup="true" on the Key property:
>
> > @Persistent(defaultFetchGroup="true")
> > private Key text;
>
> > Might have something to do with the recently closed issue #58 "Queries
> > don't respect fetch groups":
> >http://code.google.com/p/datanucleus-appengine/issues/detail?id=58
>
> > What's puzzling is that I have unowned relationships all over the
> > application, however only one class - CMSPage - fails to retrieve the
> > Key properties.
>
> > I am not sure why Key is not automatically in the default fetch group.
> > Key is not an entity class. It should be ok to fetch it non-lazily by
> > default.
>
> > Yegor
>
> > On Sep 4, 1:21 pm, Yegor  wrote:
> > > Hi,
>
> > > I am experiencing a problem after upgrading to Java SDK 1.2.5. In a
> > > simple CMS application a page is stored as a CMSPage entity, which
> > > points to its text saved as a DetachedText entity using a Key property
> > > (i.e. an unowned relationship) as follows:
>
> > > @PersistenceCapable(identityType = IdentityType.APPLICATION)
> > > public class CMSPage {
>
> > >   @PrimaryKey
> > >   @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
> > >   private Key id;
>
> > >   @Persistent
> > >   private Key text;
>
> > >   public Key getId() {
> > >     return id;
> > >   }
>
> > >   public void setId(Key id) {
> > >     this.id = id;
> > >   }
>
> > >   public Key getText() {
> > >     return text;
> > >   }
>
> > >   public void setText(Key text) {
> > >     this.text = text;
> > >   }
>
> > > }
>
> > > The Key property "text" points to:
>
> > > @PersistenceCapable(identityType = IdentityType.APPLICATION)
> > > public class DetachedText {
>
> > >   @PrimaryKey
> > >   @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
> > >   private Key id;
>
> > >   @Persistent
> > >   private Text content;
>
> > >   public DetachedText(Text content) {
> > >     this.content = content;
> > >   }
>
> > >   public Key getId() {
> > >     return id;
> > >   }
>
> > >   public Text getContent() {
> > >     return content;
> > >   }
>
> > > }
>
> > > NOTE: I have removed other properties and code that I found unrelated
> > > to the problem
>
> > > After saving the page I can see the "text" field populated in the
> > > development console. The value shows as "DetachedText(5)". I also
> > > verified that the DetachedText entity exists and its ID equals 5.
>
> > > However, after I retrieve CMSPage from the datastore using a
> > > javax.jdo.Query the "text" field in the retrieved object is null (both
> > > the Eclipse debugger and the application throwing NPE confirm it).
>
> > > What am I doing wrong?
>
> > > Any pointers will be appreciated.
>
> > > Thanks,
>
> > > Yegor
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[appengine-java] maximum URL length

2009-09-09 Thread bgood

What is the maximum length of a URL on app engine ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-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
-~--~~~~--~~--~--~---



[appengine-java] Re: maximum URL length

2009-09-09 Thread bgood

Based on a quick experiment it seems to be 2072 .

Is this an adjustable parameter ?



On Sep 9, 9:24 am, bgood  wrote:
> What is the maximum length of a URL on app engine ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-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
-~--~~~~--~~--~--~---



[appengine-java] cron query

2009-09-15 Thread bgood

Is it possible to specify the start time for a scheduled task that
happens at regular intervals?

For example, if I want something to happen at 12:00, 12:10, 12:20 ...
(not e.g. 12:03, 12:13, 12:23...)

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



[appengine-java] Re: How to grow your data model over the long term

2009-09-15 Thread bgood

Purely from experimenting with this (if anyone can identify a
reference to a good doc that would be great) I've succeeded with the
"just add the new fields" approach described above.  The hiccups I've
experienced are that you have to use nullable types for your new
properties (e.g. an int won't work but an Integer will) and, if you
don't implement and execute some sort of batch update-everything-to-
good-non-null-defaults process queries containing the new properties
won't work as you might expect.

Its definitely a source of some concern for me. Looking forward to the
model migration segments of the "JDO/JPA Snippets That Work" series
here (which seem like they are important enough to promote to blog
posts or the like).
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[appengine-java] Re: cron query

2009-09-16 Thread bgood

Thanks for the responses, I had ended up with this one (from Raphael)
before I posted - just seems a bit inelegant to have to poll every
minute when you know the desired times in advance.

On Sep 16, 2:08 am, Raphael André Bauer
 wrote:
> On Wed, Sep 16, 2009 at 6:53 AM, antshpra  wrote:
> > no...
>
> you can generate a cron job that runs every minute and only executes
> the working task when the "time is right" (eg the 12:20 13:20
> whatever..). this is fairly easy to make..
> r
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[appengine-java] java security exceptions from previously working app

2010-03-04 Thread bgood
I just reuploaded an app that I is working locally (and has been
working fine live for a while) and I'm getting two different security
related errors in different areas of the app.

java.lang.SecurityException: Unable to get members for class ...
and
java.lang.SecurityException: SHA1 digest error for org/jdom/
Content.class

Is anyone having a similar problem today?
Any ideas where to look to debug?

-- 
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: java security exceptions from previously working app

2010-03-04 Thread bgood
It looks like the problem for both errors was that I had a dependent
class from jdom.jar that was not included when I deployed the app.  My
bad, bizarre though.  It was there on my classpath in eclipse, was
there in my WEB-INF/LIB folder and the application worked fine
locally.  The only clue in Eclipse was that the jar file was not
visible in WEB-INF/LIB when I looked - though it was there when I
looked directly at the file system.  Dropping a new jdom.jar into the
lib folder (and saying 'yes I do want to replace the old one') appears
to have solved the problem.

So, I guess nothing wrong with the gae, but some weirdness happening
in my eclipse plugin/installation.



On Mar 4, 11:48 am, bgood  wrote:
> I just reuploaded an app that I is working locally (and has been
> working fine live for a while) and I'm getting two different security
> related errors in different areas of the app.
>
> java.lang.SecurityException: Unable to get members for class ...
> and
> java.lang.SecurityException: SHA1 digest error for org/jdom/
> Content.class
>
> Is anyone having a similar problem today?
> Any ideas where to look to debug?

-- 
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: java security exceptions from previously working app

2010-03-04 Thread bgood
To conclude my discussion with myself.  After re-installing a new
eclipse and fresh plugin the final answer here is that the error
actually looks like it was caused by an old version of jdom.
Replacing it with the jdom1.1 jar is what solved the problem.  No idea
why GAE doesn't like old jdom but there it is.


On Mar 4, 1:36 pm, bgood  wrote:
> It looks like the problem for both errors was that I had a dependent
> class from jdom.jar that was not included when I deployed the app.  My
> bad, bizarre though.  It was there on my classpath in eclipse, was
> there in my WEB-INF/LIB folder and the application worked fine
> locally.  The only clue in Eclipse was that the jar file was not
> visible in WEB-INF/LIB when I looked - though it was there when I
> looked directly at the file system.  Dropping a new jdom.jar into the
> lib folder (and saying 'yes I do want to replace the old one') appears
> to have solved the problem.
>
> So, I guess nothing wrong with the gae, but some weirdness happening
> in my eclipse plugin/installation.
>
> On Mar 4, 11:48 am, bgood  wrote:
>
>
>
> > I just reuploaded an app that I is working locally (and has been
> > working fine live for a while) and I'm getting two different security
> > related errors in different areas of the app.
>
> > java.lang.SecurityException: Unable to get members for class ...
> > and
> > java.lang.SecurityException: SHA1 digest error for org/jdom/
> > Content.class
>
> > Is anyone having a similar problem today?
> > Any ideas where to look to debug?

-- 
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: Problems in deployment

2011-02-15 Thread bgood
Same for me.  This happened after updating an app thats been running 
peacefully for many months to 1.4.2 .  Anxiously awaiting a solution.

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