[appengine-java] Re: Google Analytics tracking code on GAE

2009-10-18 Thread Prashant
I am using GWT, Adsense, Analytics and YUI, all of them are working fine
with 
Servlets
.

Anyway, today i tried javascript with JSP also and it works,
http://gaeapptest.appspot.com/test.jsp .

You guys must be doing something wrong or may be your builder is not
recompiling the JSPs every time you change your code and then you feel like
GWE removed JS code ! try creating a new project and share some code next
time if problem persists.

--~--~-~--~~~---~--~~
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: Google Analytics tracking code on GAE

2009-10-18 Thread YONG

Prashant,

why I could not use Google Analytics JS code in my index.jsp?
I tried to upload, but the JS code is removed.

If you are not using JSP, what are you using? GWT?
--~--~-~--~~~---~--~~
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 job being executed even though it is not yet time

2009-10-18 Thread victor

I have a cron job that has the following definition
---
Checks for Expired postings every mon, tue, wed 00:00 (UTC)
2009/10/19 00:00:01 on time Success
-

When I was checking my logs just now, I was surprised that it was run
and today is Sunday. As can be seen on the cron definition, the job is
supposed to run only on mon, tue, wed

Anybody has encountered this issue before?

The only correlation that I could make is I created a new version of
the app and deleted the old one about 10 mins prior.

--~--~-~--~~~---~--~~
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: GAE Performance

2009-10-18 Thread Shawn Brown

Hi,

> I have read that a particular User can process 1-10 request per
> second.  Is this a limit of the free quota or does paid quota also
> have this limitation.

Where and what did you read?

That doesn't seem consistent with the published limits.  I guess it
depends on what they were doing with the app.
http://code.google.com/appengine/docs/quotas.html

Shawn

--~--~-~--~~~---~--~~
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: receiving mail demo

2009-10-18 Thread Prashant
how do i separate both type msg bodies ?

--~--~-~--~~~---~--~~
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: Google Analytics tracking code on GAE

2009-10-18 Thread Prashant
you guys meant that GAE removes javascript from your code? i don't think GAE
does any such thing. Currently I am using only servlets (no JSP) on all apps
and all javasrcipts (including adsense & analytics) are working fine. I gave
up using JSPs long back and I don't remember if I have ever faced any such
issue.

--~--~-~--~~~---~--~~
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: Google Analytics tracking code on GAE

2009-10-18 Thread JonRWarren

This is a good question. From what I can gather, javascript isn't
allowed in app engine code. Can anyone please verify lack of
javascript support, or if js is supported, please point to references
explaining how to include js in jsp pages.

jon

On Oct 17, 6:58 am, YONG  wrote:
> Why I could not upload Google Analytics javascript tracking code in my
> index.jsp? I had tried to deploy it, but it is gone missing. GAE does
> not allow this tracking code? Please advise.
--~--~-~--~~~---~--~~
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: receiving mail demo

2009-10-18 Thread Prashant
I used GMail to send mail...

--~--~-~--~~~---~--~~
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: javax.jdo.JDOFatalUserException

2009-10-18 Thread Jorge

Hi Jason,

I am retaking this thread because I am experiencing the same "Caused
by: javax.jdo.JDOFatalUserException..." issue. I'm not using other
frameworks than GAE. The IDE I'm using is NetBeans and I'm using Java.
The PMF singleton is in place, just like explained in the docs.

Thanks,

Jorge Gonzalez

On Oct 6, 2:05 pm, "Jason (Google)"  wrote:
> Are you using any frameworks on top of App Engine for Java or are you using
> a JVM-based language other than Java?
> - Jason
>
> On Mon, Oct 5, 2009 at 1:47 AM, Omer Saatcioglu wrote:
>
>
>
> > Interestingly, I use Persistence Manager as singleton just like in the
> > document. But I have the same error.
>
> > I do db operations in several methods. When I enter to the method I
> > get the Persistence Manager from the singleton object and I close the
> > persistence manager at the end of the method. When I call several
> > methods that do this operation it crashes with exactly the same error.
>
> > Do you have any advise?
>
> > Omer
>
> > On Sep 25, 10:14 pm, "Jason (Google)"  wrote:
> > > Make sure you're using a PMF singleton as described here:
>
> > >http://code.google.com/appengine/docs/java/datastore/usingjdo.html#Ge...
>
> > > Then you can call PMF.get().getPersistenceManager in all of your classes
> > > instead of continually instantiating new PersistenceManagerFactory
> > objects,
> > > which is an expensive operation.
>
> > > - Jason
>
> > > On Wed, Sep 23, 2009 at 5:27 PM, Vatsa  wrote:
>
> > > > Hi,
> > > >  I am a newbie to "Google App Engine".  We are trying to prototype a
> > > > simple application to persist DTO which are read from a .csv file to
> > > > the virtual data store.
>
> > > >  I get the following error (very descriptive) at the time of
> > > > instantiating the Access Manager
>
> > > > Caused by: javax.jdo.JDOFatalUserException: Application code attempted
> > > > to create a PersistenceManagerFactory named transactions-optional, but
> > > > one with this name already exists!  Instances of
> > > > PersistenceManagerFactory are extremely slow to create and it is
> > > > usually not necessary to create one with a given name more than once.
> > > > Instead, create a singleton and share it throughout your code.  If you
> > > > really do need to create a duplicate PersistenceManagerFactory (such
> > > > as for a unittest suite), set the
> > > > appengine.orm.disable.duplicate.pmf.exception system property to avoid
> > > > this error.
>
> > > > Thanks
> > > > Vatsa
--~--~-~--~~~---~--~~
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: GAE Performance

2009-10-18 Thread Geraldo Lopes

Hi,

Have in mind I'm not demanding anything here.
At this point it probably exists applications in production in google
app engine java.
It would be very nice if you (the ones who developed such apps) could
nicely share with us some numbers, experience etc.

Thanks in advance,

Geraldo


On 17 out, 12:08, Diana Cruise  wrote:
> That's right...you and I think (hope) we will NOT having any scaling
> issues with appengine so we are blindly developing apps in this new
> environment.  YET I'VE ONLY HEARD THE "1-10 per second" MENTIONED BY
> GOOGLE REPS AND THAT IN AND OF ITSELF IS A BOTTLENECK, RIGHT?
>
> I would like published facts from "real" production apps in GAE.  For
> a particular app, what's the peak throughput observed and cpu costs,
> etc?  Can anyone provide this?  Is there a web page that shows the
> busiest GAE apps with stats?
>
> Can any Google reps identify docs that clarify this?
>
> I don't care how many overall transactions are being processed per
> second by every Google server on the planet.  I am interested in the
> limitations on throughput for a "single application".  "1-10 per
> second" is very low for an application...I need clarification on this.
>
> Thanks, Diana
>
> On Oct 16, 5:11 pm, trung  wrote:
>
> > I don't think you will ever run into scaling problem with appengine.
>
> > In most app, the bottleneck is the database, and appengine's DataStore
> > promises to remove this bottle neck.
>
> > On Oct 16, 2:14 pm, Diana Cruise  wrote:
>
> > > What is the theoretical throughput for an app in GAE given a simple
> > > transaction scenario below?  Lets say the User is simply updating
> > > their home address and the data model is setup to where the User
> > > entity has a 1-to-many with a child entity named UserAddr.  So both
> > > entities are in the same Entity Group, as is the best practice.
>
> > > What is the max # of Users of this application that can perform this
> > > update simultaniously with an acceptable response time of under 5
> > > seconds?  Can GAE satisfy this requirement for 100 instantaneous
> > > Users?  How about 1000?  How about 10,000?
>
> > > I have read that a particular User can process 1-10 request per
> > > second.  Is this a limit of the free quota or does paid quota also
> > > have this limitation.  From statistic lets say the average is 5 per
> > > sec per request.  So it will take only a load of 25 Users to reach the
> > > benchmark of a 5 second response.
>
> > > Clearly, this statistic or my use of it is wrong!  We developers of
> > > GAE apps all expect that our apps can support large numbers of
> > > simultaneous users for a reasonable price.  Can anyone share their
> > > experiences in this regard?
>
> > > Thanks, Diana- Hide quoted text -
>
> > - Show quoted text -
--~--~-~--~~~---~--~~
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: receiving mail demo

2009-10-18 Thread Roy Smith
>
> > is this right way to read message body? why i am getting same body twice
> in two different forms (plain text & html)?


because that's what your email client is sending. It's quite normal.

>
>
> >
>

--~--~-~--~~~---~--~~
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: local datastore cleanup

2009-10-18 Thread Nikolay Gorylenko

i'm unable to browse datastore of my deployed app, instantly
receiving
Server Error

A server error has occurred.

Return to Applications screen »

--~--~-~--~~~---~--~~
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] remote_api for java

2009-10-18 Thread Gaurav

I understand that the remote_api module is only available for python
for now,
but is it possible to use python's remote_api to manipulate datastore
used
by a java application?
Since remote_api uses lowest level api and datastore is app
independent this
seems to be feasible.
Has anyone tried this?
Can we expect a similar module released for java environment anytime
soon?
--~--~-~--~~~---~--~~
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: java.lang.IllegalAccessException: Private fields can not be set on JRE classes.

2009-10-18 Thread Toby Reyelts
Groovy is trying to use reflection to set the private
fieldsof
java.lang.String as an optimization. This only works if Groovy is
granted
unsafe JVM reflection permissions, which we don't do in GAE. When this
fails, Groovy automatically reverts to the safe, normal way of creating a
string, which works just fine.
You're seeing this error in dev_appserver in 1.2.6, because we've done a lot
of work to make the dev_appserver more closely mirror the security
restrictions in prod. If you want to prevent Groovy from even attempting to
try this, you can set the System
property, "stringchararrayaccessor.disabled" to true.

On Sun, Oct 18, 2009 at 4:41 AM, aldrinm  wrote:

>
> Hi,
>
> What does this exception indicate? "Unable to use direct char[] access
> of java.lang.String. Disabling this method.
> [java] java.lang.IllegalAccessException: Private fields can not
> be set on JRE classes."
> This has started occurring after updating the GAE SDK to the latest
> (ver 1.2.7 - 2009-10-15). Tried googling but absolutely nothing! I'm
> using grails and do not understand what the framework is doing. Though
> the app continues to work irrespective of this error, am curious abt
> this. Here is a part of the stack trace.
>
>
> [java] Unable to use direct char[] access of java.lang.String.
> Disabling this method.
> [java] java.lang.IllegalAccessException: Private fields can not
> be set on JRE classes.
> [java] at
> com.google.appengine.tools.development.agent.runtime.Runtime.verifyWritable
> (Runtime.java:81)
> [java] at
> com.google.appengine.tools.development.agent.runtime.Runtime.verifyAndRun
> (Runtime.java:335)
> [java] at
> com.google.appengine.tools.development.agent.runtime.Runtime.set
> (Runtime.java:229)
> [java] at
> org.codehaus.groovy.grails.web.util.StringCharArrayAccessor.createString
> (StringCharArrayAccessor.java:168)
> [java] at
> org.codehaus.groovy.grails.web.util.StreamCharBuffer.readAsString
> (StreamCharBuffer.java:294)
> [java] at
> org.codehaus.groovy.grails.web.util.StreamCharBuffer.toString
> (StreamCharBuffer.java:312)
> [java] at
> org.codehaus.groovy.grails.web.pages.FastStringWriter.toString
> (FastStringWriter.java:47)
> [java] at
> org.codehaus.groovy.grails.web.taglib.GroovyPageTagWriter.getValue
> (GroovyPageTagWriter.java:36)
> [java] at
> org.codehaus.groovy.grails.web.pages.GroovyPage.captureTagOutput
> (GroovyPage.java:351)
> [java] at org.codehaus.groovy.grails.web.pages.GroovyPage
> $captureTagOutput.call(Unknown Source)
> [java] at
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall
> (CallSiteArray.java:40)
> [java] at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call
> (AbstractCallSite.java:117)
> [java] at
> org.codehaus.groovy.grails.web.plugins.support.WebMetaUtils
> $_registerMethodMissingForTags_closure13.doCall(WebMetaUtils.groovy:
> 128)
> [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>
> Thanks,
> Aldrin
>
> >
>

--~--~-~--~~~---~--~~
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: receiving mail demo

2009-10-18 Thread Prashant
i tried reading mail body using following code :

// print message.getContentType()
ByteArrayInputStream arrayStream = (ByteArrayInputStream)
message.getContent();
while(arrayStream.read(buffer) != -1)
// print new String(buffer)


i tested by sending a mail with following body :

this is great
this is great
this is great

following is what i got as output :


[image:
?ui=2&view=att&th=12468634e50e53d8&attid=0.1&disp=attd&realattid=ii_12468634e50e53d8&zw]

is this right way to read message body? why i am getting same body twice in
two different forms (plain text & 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] ETA is invalid in hosted development environment

2009-10-18 Thread victor

I keep getting this error when I use the "TaskOptions.etaMillis"
option in task queue. I do not get this error when I deploy my app in
google app engine. If anybody has some clues that will be great.

SEVERE: ETA is invalid :
java.lang.IllegalArgumentException: ETA is invalid :
at
com.google.appengine.api.labs.taskqueue.QueueApiHelper.translateError
(QueueApiHelper.java:86)
at com.google.appengine.api.labs.taskqueue.QueueApiHelper.makeSyncCall
(QueueApiHelper.java:32)
at com.google.appengine.api.labs.taskqueue.QueueImpl.add
(QueueImpl.java:220)
at com.google.appengine.api.labs.taskqueue.QueueImpl.add
(QueueImpl.java:210)
--~--~-~--~~~---~--~~
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: Caching using static fields

2009-10-18 Thread Raviv Pavel

A reply from a Google rep on this matter would be much appreciated.

On Oct 16, 9:55 pm, Raviv Pavel  wrote:
> I'm afraid you don't understand the problem.
> The issue is how to "notify" all instances of the app that they should
> reload their in-memory cached data.
> Cron jobs and tasks send request so a single instance of the app, not
> to all of them.
>
> On Oct 16, 5:21 pm, Jean Meurtrier  wrote:
>
> > I don't exactly understand what you want to do, but you write you
> > cannot use a timer and you need to be triggered by incoming requests.
> > Why not use the cron jobs or the task queues?
>
> > JMT
>
> > On Oct 15, 9:58 pm,RavivPavel  wrote:
>
> > > Most web apps I build need to cache data which falls into two
> > > categories:
>
> > > 1. Configuration and lookup lists such as IP-to-country and
> > > configuration - loaded from file into static member and reloaded when
> > > a file change is detected.
> > > 2. User generated lists such as tags, product list, etc - loaded from
> > > DB into static fields, and either periodically reloaded, or broadcast
> > > change to all servers (e.g. UDP)
>
> > > Using static fields gives me better performance than memcache when
> > > accessing long lookup lists on every request,
>
> > > I'm not sure how to approach this in GAE especially since I can't use
> > > a timer to watch a file or periodically reload from DB. The options I
> > > see are:
>
> > > For scenario 1:
> > > a. Redeploying the app with the new static config and lookup files - a
> > > bit risky since I can accidenty deploy new code.
> > > b. Periodically reload the file - Since there is no Timer, it will
> > > have to be triggered by incoming requests. Ugly :(
>
> > > For scenario 2:
> > > a. Load from Datastore into memcache and invalidate upon update -
> > > Slower than static member and may drain quota fast since I need to
> > > serve around 20 million req/hour at peek times.
> > > b. somehow issue a request to every active instance of my app to
> > > invalidate its static cache - Is this possible?
>
> > > Any advice would be much appreciated.
>
> > >Raviv.
>
>
--~--~-~--~~~---~--~~
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: JPA vs. JDO: Different naming convention when mapping to Entity (uppercase vs. case sensitive)

2009-10-18 Thread Raphael André Bauer

On Fri, Oct 16, 2009 at 10:09 PM, Max Ross  wrote:
> I'm surprised to hear that you're getting USER with JDO as opposed to User.
> Can you send me your jdoconfig.xml?  Are you passing any additional options
> when you create the PersistenceManagerFactory?
>
> FYI everything you need to know about changing this behavior is here, but it
> shouldn't be necessary on App Engine because our JDO/JPA implementation
> defaults to PreserveCase
> http://www.datanucleus.org/products/accessplatform_1_0/jdo/orm/datastore_identifiers.html

Hey Max,

thanks for your quick reply. After cleaning up I saw that my build
process copied a wrong jdoconfig.xml causing the uppercase behaviour.
Thanks for pointing me to that.

Maybe it's interesting for you (@google) to know that it is pretty
straight forward to change from JPA to JDO. I did not use any fancy
JPA features, but all I had to do is updating my persistent classes
and creating the default jdoconfig.xml. My app now runs with JDO and
there was no need to convert the raw data in the datastore. Nice :)


Raphael
>
> Max
> On Fri, Oct 16, 2009 at 10:52 AM, Raphael André Bauer
>  wrote:
>>
>> Hi,
>>
>>
>> I am currently trying to switch my app from JPA to JDO.
>> Works fine, but there is one stopper in the moment:
>>
>> A class called User will be stored as Entity "User" by JPA and as
>> Entity "USER" by JDO.
>>
>> Is there a way to tell JDO (or datanucleus) to retain the
>> upper/lowercase chars when creating a mapping from a class to an
>> entity by default?
>>
>>
>> thanks,
>>
>> ra
>>
>>
>
>
> >
>

--~--~-~--~~~---~--~~
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] Instances of google service objects

2009-10-18 Thread Erdinc Yilmazel
I am using google guice with my App Engine application. Is it alright if I
bind instances of DatastoreService, MemcacheService or Service
interfaces as singletons?
In short should I call DatastoreServiceFactory.getDatastoreService(); inside
a servlet method for each request or is it ok to call it once and store the
instance in application startup?

Erdinc

--~--~-~--~~~---~--~~
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: Persisting java.util.TimeZone

2009-10-18 Thread datanucleus

DataNucleus itself provides support for persisting TimeZone fields to
datastores (as String). Why not define what your class is and what XML/
annotations you use, and what was in the log ?
--~--~-~--~~~---~--~~
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: Framework for java/jsp based dev supported by GAE

2009-10-18 Thread Vik
okies
Great.. please update on the group for others benefit as well. I find it
pretty time consuming to build JSF  apps w/o IDE support in case of GAE
apps.
Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com


On Sun, Oct 18, 2009 at 7:52 AM, Derek Berube wrote:

> IMHO, the most important things that the Google AppEngine Plug-In for
> Eclipse does is:
>
>- Provide the ability to "create" a new AppEngine project.
>- Launch the AppEngine runtime environment so you can test/debug your
>code.
>- Package and upload your AppEngine application to Google's cloud
>infrastructure.
>
>
> Most of the other things that Eclipse does (code completion/tips) work just
> fine with the 2.0 API.  About the only thing I find myself struggling with
> is remembering all the options for the markup for the various tags you use
> (whether it's the default JSF HTML components, ADF Faces, ICEFaces,
> RichFaces, etc.).  Of course, help is never more than a browser window away.
>
> I know that the 1.81 release of the ICEFaces runtime environment is
> supposed to work on GAE.  I think RichFaces has problems because it uses
> some of the AWT classes internally and those classes are not available in
> the GAE runtime environment.
>
> As a general rule, when I'm learning a new API or technology, I tend to
> prefer to do things the "hard way".  For me, it is a better way to get to
> know how things work because you're forced to.  Once one understands how and
> why things work the way they do and after they have endured the "hard way",
> then they can appreciate what it is that the tools do for you.  Believe me,
> I appreciate Netbeans, IntelliJ, and Eclipse for all the amazing things they
> do for me - largely because I know how hard it is to do things without them.
>
> You have, however, inspired me to take a look at the ICEFaces plug-in for
> Eclipse.  Perhaps I'll install that and see what it does for me with respect
> to JSF on GAE/J development!
>
> Derek
>
> On Oct 16, 2009, at 2:43 PM, Vik wrote:
>
> hie
>
> I am from ADF world and used awesome JDeveloper to build ADF apps. It is
> great to use the ide stuff to do all the page design of ADF pages.
>
> So,kinda hard for me to imagine how to write a JSF page in eclipse without
> all that support for a GAE app.
>
> Please enlighten how you do that
>
> Thankx and Regards
>
> Vik
> Founder
> www.sakshum.com
> www.sakshum.blogspot.com
>
>
> On Fri, Oct 16, 2009 at 7:03 PM, Derek Berube wrote:
>
>> I have been using Eclipse 3.5 with Google's AppEngine Eclipse Plugin and
>> have found it to be quite useful.  I am more interested in the JSF2
>> framework, so I have spent the bulk of my time using that with AppEngine.
>> While the JSF2 specification is in final draft status and there is a
>> second release candidate for Sun's reference implementation, tooling support
>> specifically targeted at supporting JSF2 in only now starting to emerge.
>>  The milestone 2 release of Netbeans 6.8 is now out and it includes JSf2
>> support.  I know the next major releases of ICEFaces and RichFaces will be
>> formally supporting JSF2, so it will be interesting to see how those
>> frameworks play in AppEngine as well.
>>
>> I just updated the step-by-step guide for JSF2 and Google 
>> AppEngine
>>  configuration
>> guide.  I plan on doing some more generic JSF1.2/JSF2 Facelets templating
>> stuff as well as writing up some stuff on the new JSF2 resource management
>> framework (awesome)!.
>>
>> Derek
>>
>> On Oct 13, 2009, at 2:58 PM, Vik wrote:
>>
>> Well i believe ide features provide much more than just visual design..
>> like looking at property inspector, binding to action listeners and managed
>> beans etc..
>>
>> So, it means there is no easy way to build JSF apps targeted for GAE?
>>
>> Thankx and Regards
>>
>> Vik
>> Founder
>> www.sakshum.com
>> www.sakshum.blogspot.com
>>
>>
>> On Wed, Oct 14, 2009 at 12:22 AM, Derek Berube wrote:
>>
>>> I don't really rely much on the visual design tools for building out the
>>> GUI.  I tend to prefer to work with the raw XHTML and stylesheets while
>>> frequently previewing the work in my browser.
>>> Derek
>>>
>>>
>>> On Oct 13, 2009, at 9:08 AM, Vik wrote:
>>>
>>> Derek
>>>
>>> Do you get to see page designer and component pellete etc when u just add
>>> libraries in your project related to JSF?
>>>
>>>
>>> Thankx and Regards
>>>
>>> Vik
>>> Founder
>>> www.sakshum.com
>>> www.sakshum.blogspot.com
>>>
>>>
>>> On Mon, Oct 12, 2009 at 8:41 AM, Derek Berube wrote:
>>>
 Vik,
 When doing JSF development with the Google AppEngine and the Eclipse
 plug-in, go ahead and select the Google Web Application project.

 You'll have to manually copy the JSF libraries into the WEB-INF/lib
 directory of your web application.  The WEB-INF/

[appengine-java] Re: Persisting java.util.TimeZone

2009-10-18 Thread aldrinm

As a workaround, am now persisting the timezone id as a String
datatype

On Oct 16, 7:07 pm, aldrinm  wrote:
> Hi,
>
> Can I persist an instance of java.util.TimeZonein the datastore? From
> this 
> thread,http://groups.google.com/group/google-appengine-java/browse_thread/th...
> and the whitelisthttp://code.google.com/appengine/docs/java/jrewhitelist.html
> , it appears that it can be done. Unable to get it to work. Any
> pointers?
>
> Thanks
> Aldrin
--~--~-~--~~~---~--~~
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.lang.IllegalAccessException: Private fields can not be set on JRE classes.

2009-10-18 Thread aldrinm

Hi,

What does this exception indicate? "Unable to use direct char[] access
of java.lang.String. Disabling this method.
 [java] java.lang.IllegalAccessException: Private fields can not
be set on JRE classes."
This has started occurring after updating the GAE SDK to the latest
(ver 1.2.7 - 2009-10-15). Tried googling but absolutely nothing! I'm
using grails and do not understand what the framework is doing. Though
the app continues to work irrespective of this error, am curious abt
this. Here is a part of the stack trace.


 [java] Unable to use direct char[] access of java.lang.String.
Disabling this method.
 [java] java.lang.IllegalAccessException: Private fields can not
be set on JRE classes.
 [java] at
com.google.appengine.tools.development.agent.runtime.Runtime.verifyWritable
(Runtime.java:81)
 [java] at
com.google.appengine.tools.development.agent.runtime.Runtime.verifyAndRun
(Runtime.java:335)
 [java] at
com.google.appengine.tools.development.agent.runtime.Runtime.set
(Runtime.java:229)
 [java] at
org.codehaus.groovy.grails.web.util.StringCharArrayAccessor.createString
(StringCharArrayAccessor.java:168)
 [java] at
org.codehaus.groovy.grails.web.util.StreamCharBuffer.readAsString
(StreamCharBuffer.java:294)
 [java] at
org.codehaus.groovy.grails.web.util.StreamCharBuffer.toString
(StreamCharBuffer.java:312)
 [java] at
org.codehaus.groovy.grails.web.pages.FastStringWriter.toString
(FastStringWriter.java:47)
 [java] at
org.codehaus.groovy.grails.web.taglib.GroovyPageTagWriter.getValue
(GroovyPageTagWriter.java:36)
 [java] at
org.codehaus.groovy.grails.web.pages.GroovyPage.captureTagOutput
(GroovyPage.java:351)
 [java] at org.codehaus.groovy.grails.web.pages.GroovyPage
$captureTagOutput.call(Unknown Source)
 [java] at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall
(CallSiteArray.java:40)
 [java] at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call
(AbstractCallSite.java:117)
 [java] at
org.codehaus.groovy.grails.web.plugins.support.WebMetaUtils
$_registerMethodMissingForTags_closure13.doCall(WebMetaUtils.groovy:
128)
 [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

Thanks,
Aldrin

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