[appengine-java] Re: Request for best practice ideas for deployment of GWT JARs in AppEngine project

2012-02-12 Thread Daniel Florey
Hi,
our approach is to split up gwt modules into xxx-user.jar and 
xxx-server.jar. You can then copy the xxx-server.jar (containing only 
server/shared code) to WEB-INF/lib.
What 3rd party modules are you referring to?

Daniel

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/dgQ6mFkWH0wJ.
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: Channel API reconnect after token timeout

2012-01-06 Thread Daniel Florey
I've received a reasonable workaround from Google Enterprise Support:
You can use a timer on the client side to renew the token before it 
expires. This will work somehow...

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/NivXiDrqW7QJ.
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] Eclipse doesn't automatically reload anymore

2012-01-02 Thread Daniel
When I first got eclipse setup, it would automatically reinsert newly 
compiled objects into the running server so that all I had to do was 
refresh the page in the browser to see my changes. For some reason this 
stopped working. 

I don't see any errors in the error log for eclipse and it appears to be 
building the objects as before. When I stop the server and do the 'Run as' 
to start the web application again it shows the new changes. 

Any idea why this would stop working and how to get it back?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/hWdCD9C7iqIJ.
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: Eclipse doesn't automatically reload anymore

2012-01-02 Thread Daniel
I'm not sure if this is related, but I'm getting errors with DataNucleus 
Enhancer. Here's what I'm getting:

DataNucleus Enhancer (version 1.1.4) : Enhancement of classes
DataNucleus Enhancer completed with success for 0 classes. Timings : 
input=42 ms, enhance=0 ms, total=42 ms. Consult the log for full details
DataNucleus Enhancer completed and no classes were enhanced. Consult the 
log for full details

I also noticed that my Windows 7 machine has JRE7 installed. It all worked 
when I first set it up, but now it's not for some unknown reason.

I'm only working with the sample 'Hello World' servlet that is 
automatically generated with a new project. There are no modifications...

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/U0AWBVwF3hQJ.
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: Eclipse doesn't automatically reload anymore

2012-01-02 Thread Daniel
I have now uninstalled Java7 so that only Java6 is installed.

I also uninstalled and reinstalled Eclipse. Changes to classes still don't 
show up until I stop the web application and the start it again using 'Run 
as'

Any ideas of what I can troubleshoot next?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/UsKF40NzBjkJ.
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: Eclipse doesn't automatically reload anymore

2012-01-02 Thread Daniel
Solved (sort of).

I went back through the tutorial here: 
http://code.google.com/appengine/docs/java/tools/eclipse.html

I should have been debugging as:

 *Debug As*  *Web Application* 

It now works just like it should

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/IHlFZHrHi4YJ.
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] Conversion API: Best way to track down conversion issues?

2011-12-09 Thread Daniel Florey
Hi,
I'm getting started with the new Conversion API. While it works like a 
charm for some documents (html-pdf) I end up with empty pdf's for others.
The pdf's seem to be generated with Prince (princexml.com), so I've 
downloaded the latest release to track down the issue.
Prince converts the documents just fine, so I'm wondering which version is 
used on GAE?
Or is there another way to get more debug info?

Thanks,
Daniel

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/IP7Osc0iYK0J.
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: Conversion API: Best way to track down conversion issues?

2011-12-09 Thread Daniel Florey
Everything works fine now! I've been just messing up the pdf document by 
streaming it to the client with the wrong encoding...

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/QK_bZ9C6r6QJ.
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] Channel API reconnect after token timeout

2011-11-14 Thread Daniel Florey
Hi,
I'm not able to re-open a channel after the token expired.
I'm using GWT on the client side.
I am creating a new channel after the onError() method is called when the 
token expires. 
Everything looks ok but I do not get any events after reopening the channel.
I've read in another thread that I had to delete the iframe manually, but 
this did not help either.
Any ideas?
Anybody managed to properly reconnect after timeout using GWT?

Thanks,
Daniel


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/CQxdbpTJw5wJ.
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: Channel API reconnect after token timeout

2011-11-14 Thread Daniel Florey
...finally figured out how to properly remove the iframe from a GWT app:

public static native void removeChannelApi() /*-{
  var child = $wnd.parent.document.getElementById(wcs-iframe);
  if ( child != null ) {
   child.parentNode.removeChild(child);
  }
}-*/;

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/sg_sPX024w8J.
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: Change from String to Integer , now can't rid of Zombie instances... what is the right procedure to do so?

2011-11-02 Thread Daniel
Thx 4 the detailed example, Will read it at later on today

Daniel.

On Nov 1, 6:40 pm, Ronoaldo José de Lana Pereira
rpere...@beneficiofacil.com.br wrote:
 Daniel,

 To convert old session data I started to persist just the user Id in
 session. Sadly, unlike memcache, you can't control how the session is
 deserialized. In my case, any request with has the old user data in session
 was throwing 500 erros and I couldn't control this behavior (it was a
 filter from the gae...). What I did was something like this:

 public MyUser getCurrentUser(HttpServletRequest req) {
    Object userOrId = req.getSession().getAttribute(user);
    if (userOrId instanceof Long) {
       return loadUserFromDsOrMemcache((Long) userOrId);
    } else {
       // Remove user from session and start storing ID for next change to
 User class dont raise exceptoins ...
       User user = (User) userOrId;
       req.getSession().setAttribute(user, user.getId());
       return user;
    }

 }

 This way I could get rid of storing this in session and of the app being
 unacessible when I changed my model (wich was happening heavly by the
 way...). Note that at the time I deployed this code, the User object hasn't
 changed.

 After running this for a while (you can expire sessions or delete them in
 bulk from the datastore so you can force them to expire, I deployed the new
 version.

 To store json data, you may use some json library that can map/convert
 to/from Java - Json, like Google Gson:

 String userJson = new Gson().toJson(user);
 req.getSession().setAttribute(user, userJson);
 (...)

 String userJson = (String) req.getSession().getAttribute(user);
 if (userJson != null) {
    User user = new Gson().fromJson(User.class, userJson);

 }

 This way you can add/remove fields to you model, and old session data will
 be restored as expected. Note that is a good practice to set defaults for
 the new fields, so your session data won't create unusable objects. In your
 original post, the change from string to integer may be solved by
 overriding the Gson de-serializer to handle the id field as number and not
 as string. I guess that you can change the way Java will de-serialize your
 classes too, but I'm not sure if this will solve your particular issue
 mentioned.

 Not sure if this is the best way to handle, but this is how I solved on our
 live app.

 More on Gson:http://code.google.com/p/google-gson/.

 Hope this helps (sorry for some typos or misspelled words)

 Best Regards,

 -Ronoaldo

-- 
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: Change from String to Integer , now can't rid of Zombie instances... what is the right procedure to do so?

2011-11-01 Thread Daniel
Thanks for the suggestions,

Ian's sounds unrealistic (to me at least)

Ronaldo, could you please explain more about the method you are using?
or post some references/url's so i could read some more?


Thanks!

On Oct 30, 10:33 am, Ian Marshall ianmarshall...@gmail.com wrote:
 You might want to implement an alternative procedure of the following
 stages to change the data type of your data mamber = field:

 1.  Add the data member quantityToAddNew of data type Integer. Use
 this in your code instead of quantityToAdd. Deploy.
 2.  After a suitable delay (at least 24 hours?): change the data type
 of the data member quantityToAdd to Integer. Use this in your code
 instead of quantityToAddNew. Deploy.
 3.  After a suitable delay (at least 24 hours?): remove the data
 member quantityToAddNew. Deploy. You're done.

 Enjoy?

 On Oct 29, 11:44 pm, Ronoaldo José de Lana Pereira







 rpere...@beneficiofacil.com.br wrote:
  Sine you are talking about _ah_SESSION stuff I suppose you are serializing
  ToBuyBeans to the sessions. On AppEngine, sessions are implemented using a
  combination of datastore and memecache. When you deleted your old session
  data from the datastore, the memcache was still there, and only when they
  got flushed your problem was automatic solved.

  Sadly, I was having this trouble too previously, and the only way to get
  rid of it was to deploy a versions that was trying to fetch data from
  session and convert to new format or invalidate the session. This is very
  odd, tought, so I started to store only unchanged data, like a JSON
  representation of you objects, that will never stop your app when you
  change your code and redeploy. Gson and flex-json are good start points,
  apart from the fact that they add some small conversion overhead before
  store data in session.

  Hope this helps (sorry for typos ... I'm sleepy)

  -Ronoaldo

-- 
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: Change from String to Integer , now can't rid of Zombie instances... what is the right procedure to do so?

2011-10-29 Thread Daniel
The ToBuyBean class indeed implements Serializable  , (but its not
stored or persisted in the DB)

How can I get rid of previously-existing ToBuyBean persistent
entities?

On Oct 28, 10:14 am, Ian Marshall ianmarshall...@gmail.com wrote:
 If you are getting this exception when running on the GAE/J cloud,
 have you deleted all your previously-existing ToBuyBean persistent
 entities? (This would ensure that no ToBuyBean persistent entity
 exists that has a quantityToAdd already persisted as a string.)

 On Oct 27, 10:14 pm, Daniel vedm...@gmail.com wrote:

  HI

  I'm getting

  Nested in javax.servlet.ServletException:
  java.lang.ClassCastException: cannot assign instance of
  java.lang.String to field dr.todo.beans.ToBuyBean.quantityToAdd of
  type java.lang.Integer in instance of dr.todo.beans.ToBuyBean:

  cause I had a String and now i changed it to Integer and updated my
  application, and i deleted all _ah_SESSION entrys, but it still does
  not work...

  how can i properly get rid of all the Zombie data upon updating my
  application from eclipse?

  I don't want to wait for couple of hours , I want to get rid of all
  the Zombies right after the upgrade...

  What is the best practice for it?

  Thanks ahead,

  Daniel.



-- 
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: Change from String to Integer , now can't rid of Zombie instances... what is the right procedure to do so?

2011-10-29 Thread Daniel
And 1 more thing , the error got fixed by itself, after several hours,
the previously-existing ToBuyBean persistent entities were somehow
deleted (not by me)...

so how can i do it by myself if i want to?

Thanks ahead

On Oct 29, 10:20 pm, Daniel vedm...@gmail.com wrote:
 The ToBuyBean class indeed implements Serializable  , (but its not
 stored or persisted in the DB)

 How can I get rid of previously-existing ToBuyBean persistent
 entities?

 On Oct 28, 10:14 am, Ian Marshall ianmarshall...@gmail.com wrote:

  If you are getting this exception when running on the GAE/J cloud,
  have you deleted all your previously-existing ToBuyBean persistent
  entities? (This would ensure that no ToBuyBean persistent entity
  exists that has a quantityToAdd already persisted as a string.)

  On Oct 27, 10:14 pm, Daniel vedm...@gmail.com wrote:

   HI

   I'm getting

   Nested in javax.servlet.ServletException:
   java.lang.ClassCastException: cannot assign instance of
   java.lang.String to field dr.todo.beans.ToBuyBean.quantityToAdd of
   type java.lang.Integer in instance of dr.todo.beans.ToBuyBean:

   cause I had a String and now i changed it to Integer and updated my
   application, and i deleted all _ah_SESSION entrys, but it still does
   not work...

   how can i properly get rid of all the Zombie data upon updating my
   application from eclipse?

   I don't want to wait for couple of hours , I want to get rid of all
   the Zombies right after the upgrade...

   What is the best practice for it?

   Thanks ahead,

   Daniel.



-- 
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] Change from String to Integer , now can't rid of Zombie instances... what is the right procedure to do so?

2011-10-27 Thread Daniel
HI

I'm getting

Nested in javax.servlet.ServletException:
java.lang.ClassCastException: cannot assign instance of
java.lang.String to field dr.todo.beans.ToBuyBean.quantityToAdd of
type java.lang.Integer in instance of dr.todo.beans.ToBuyBean:

cause I had a String and now i changed it to Integer and updated my
application, and i deleted all _ah_SESSION entrys, but it still does
not work...


how can i properly get rid of all the Zombie data upon updating my
application from eclipse?

I don't want to wait for couple of hours , I want to get rid of all
the Zombies right after the upgrade...

What is the best practice for it?

Thanks ahead,



Daniel.

-- 
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] Parsing XML on GAE/Java

2011-10-05 Thread Daniel Florey
Hi,
just wanted to share my experience with parsing XML on App Engine/Java:
http://www.floreysoft.net/en/blog.html

Cheers,
Daniel

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/n8TtHEgI6FUJ.
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.



Re: [appengine-java] Re: Snapshots...

2011-09-28 Thread Daniel Viveiros
Thank you! This is really a good post.

Best,
Daniel V.

2011/9/28 Jose Montes de Oca jfmontesde...@google.com

 Hi Daniel,

 Take a look at our Bulkloader Tool:
 http://code.google.com/appengine/docs/python/tools/uploadingdata.html

 Here is a great post:
 http://ikaisays.com/2010/06/10/using-the-bulkloader-with-java-app-engine/

 Hope this helps your needs!

 Best,
 Jose Montes de Oca

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-appengine-java/-/mqMA-JEDmFQJ.

 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.




-- 
__
Daniel Vieira Viveiros
Technology Manager - CiT
Phone: +55 (019) 9787-9674
E-mail/GTalk: vivei...@ciandt.com

Esta mensagem, incluindo seus anexos, contém informações legais
privilegiadas e/ou confidenciais, não podendo ser retransmitida, arquivada,
divulgada ou copiada sem autorização do remetente. Caso tenha recebido esta
mensagem por engano, por favor informe o remetente respondendo imediatamente
a este e-mail, e em seguida apague-a do seu computador.

The information contained in this email message, including any attachment,
is privileged and/or confidential. This message may not be retransmitted,
archived, disclosed or copied without sender’s approval. If you have
received this email in error, please notify the sender by replying to this
message, and then delete it from your system.

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

2011-09-27 Thread Daniel Viveiros
Hi all,

What's the best way to take snapshots of the GAE's database in a way it's
possible to backup/restore it if needed?

Thanks,
Daniel V.

-- 
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] Image API

2011-09-21 Thread Daniel Viveiros
Hi all,

I'm considering to use Google App Engine as the platform of a new
application that will have to handle several image transformations such as
blur, sepia, gray scale etc. GAE's Image API seems nice but very limited. As
far as I know, GAE does not support Java 2D or Java Advanced Imaging.

Is there another component/framework for imaging processing/transformation
that I can use in GAE?

Thanks,
Daniel V.

-- 
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: Writing to google spreadsheet from GAE

2011-09-19 Thread Daniel Florey
I've been able to access spreadsheets from GAE without problems.
The only problem is the limited upload size for URLFetch that makes it 
impossible to upload large pre-populated sheets.
Other than that it worked without problmes...

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/cI_21ja-m10J.
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: SocketTimeoutException when doing URLFetch between 2 apps

2011-09-16 Thread Daniel Florey
Any ideas anyone?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/oS6fYc8lgcsJ.
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 OAuth API, example

2011-09-11 Thread Daniel Florey
As it is not related to GAE you should check the GData docs. You'll
find all the good stuff there.

On Sep 11, 1:56 pm, de Witte jcreator.xi...@gmail.com wrote:
 Hello,

 I'm trying to find any example for the OAuth API.

 The trunk forhttp://oauthexample.appspot.com/Welcomeseems to be empty.

 http://code.google.com/p/googleappengine/source/browse/#svn%2Ftrunk%2...

 Are there any other examples?

 Can google upload the code of oauthexample.

 -Wendel

-- 
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 OAuth API, example

2011-09-11 Thread Daniel Florey
...or are you interested in implementing an OAuth provider? Then of
course it is a different story.

On Sep 11, 11:12 pm, Daniel Florey daniel.flo...@gmail.com wrote:
 As it is not related to GAE you should check the GData docs. You'll
 find all the good stuff there.

 On Sep 11, 1:56 pm, de Witte jcreator.xi...@gmail.com wrote:







  Hello,

  I'm trying to find any example for the OAuth API.

  The trunk forhttp://oauthexample.appspot.com/Welcomeseemsto be empty.

 http://code.google.com/p/googleappengine/source/browse/#svn%2Ftrunk%2...

  Are there any other examples?

  Can google upload the code of oauthexample.

  -Wendel

-- 
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] Strange datastore exception

2011-09-05 Thread Daniel Florey
Anybody seen this exception before?

Thanks for your help,
Daniel


Caused by: java.lang.IllegalArgumentException: app s~floreysoftucm cannot 
access app floreysoftucm's data
at 
com.google.appengine.api.datastore.DatastoreApiHelper.translateError(DatastoreApiHelper.java:36)
at 
com.google.appengine.api.datastore.DatastoreApiHelper$1.convertException(DatastoreApiHelper.java:98)
at 
com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:69)
at 
com.google.appengine.api.datastore.FutureHelper$CumulativeAggregateFuture.get(FutureHelper.java:144)
at 
com.google.appengine.api.datastore.FutureHelper.getInternal(FutureHelper.java:72)
at 
com.google.appengine.api.datastore.FutureHelper.quietGet(FutureHelper.java:33)
at 
com.google.appengine.api.datastore.DatastoreServiceImpl$1.runInternal(DatastoreServiceImpl.java:78)
at 
com.google.appengine.api.datastore.DatastoreServiceImpl$1.runInternal(DatastoreServiceImpl.java:75)
at 
com.google.appengine.api.datastore.TransactionRunner.runInTransaction(TransactionRunner.java:31)
at 
com.google.appengine.api.datastore.DatastoreServiceImpl.get(DatastoreServiceImpl.java:75)
at 
com.google.appengine.api.datastore.DatastoreServiceImpl.get(DatastoreServiceImpl.java:62)
at com.floreysoft.ucm.server.DB.getContactMaster(DB.java:305)


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/oJsta5hCQYUJ.
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.



Aw: Re: [appengine-java] javax.mail.SendFailedException: Send failure:Unauthorized Sender: Unauthorized sender

2011-08-12 Thread Daniel Florey
Same problem here.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/V5KAFTzYUUsJ.
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.



Re: [appengine-java] GAE Authentication Broken

2011-07-11 Thread Daniel Werner
Could someone tell me how this was resolved (if it was)?  I'm running into 
the exact same problem here.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/ELrT0lGOAYsJ.
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: jsf view id's expire too quick

2011-06-20 Thread Daniel
hed the same issues with mojarra 2.0.4 , so i downgraded back to
mojarra 2.0.3 , and it works fine...

On Jun 19, 11:46 pm, Piter Blom piter.b...@gmail.com wrote:
 Hi Mich, did you ever resolve this problem?

 I've just deployed my first app (mojarra 2.0.4) and I ran into exactly the
 same problem.

-- 
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: Why does the info messages stopped appearing in the Logs?

2011-06-12 Thread Daniel
working!!!


finally

this is the needed line :

dr.level = INFO

upper level of my packages... + dot + level

this is the line:

dr.level = INFO

On Jun 11, 9:47 pm, Daniel vedm...@gmail.com wrote:
 Thanks alot anyway,

 adn yes

 my appengine-web.xml is set up correctly,

 anotehr weird thing is , event when i set up

 # Set the default logging level for all loggers to WARNING
 .level = FINE

 and i'm getting tons of jetty logs from FINE level... even than I'm
 not getting any of my logs lower than warning

 :/

 Can any 1 else throw an idea?

 Thanks ahead,

 On Jun 11, 11:08 am, Ian Marshall ianmarshall...@gmail.com wrote:

  Sorry that it's not working for you.

  I use NetBeans for my IDE, so I trust that someone else reading this
  who uses Eclipse can help you better than me.

  (Am I correct to presume that the relevant setting in your appengine-
  web.xml points to the correct logging.properties file and
  location?)

  On Jun 11, 8:59 am, Daniel vedm...@gmail.com wrote:

   I did as you said in 1 -- did nothing

   after I did as you said in 2   -- the logs started to appear in my
   development eclipse console (*which is really great! , thx , although
   only warning and above logs :()

   did as you said in 3, but did not helped :(

   i tired this
   .level = WARNING
   dr.todo.beans.[...].level = FINE

   and this
   .level = WARNING
   dr.[...].level = FINE

   here an example from the code and the output from the logs

   System.err.println(Inside HoursReportBean Constructor
   eerr b4);
   log.fine(*Inside HoursReportBean Constructor+:+new Date());
   log.info(*Inside HoursReportBean Constructor+:+new Date());
   log.warning(**Inside HoursReportBean Constructor+:+new Date());
   log.severe(**Inside HoursReportBean Constructor+:+new Date());
   System.err.println(Inside HoursReportBean Constructor
   eerr after);

   in logs i see the following:

   #
   2011-06-11 00:58:06.446

   [vedmack/1.351054244259633422].stderr: Inside HoursReportBean
   Constructor eerr b4

   #
   W 2011-06-11 00:58:06.449

   dr.todo.beans.HoursReportBean init: **Inside HoursReportBean
   Constructor:Sat Jun 11 07:58:06 UTC 2011

   #
   E 2011-06-11 00:58:06.450

   dr.todo.beans.HoursReportBean init: **Inside HoursReportBean
   Constructor:Sat Jun 11 07:58:06 UTC 2011

   #
   W 2011-06-11 00:58:06.450

   [vedmack/1.351054244259633422].stderr: Inside HoursReportBean
   Constructor eerr after

   4) its already with lower cases

   On Jun 10, 11:43 pm, Ian Marshall ianmarshall...@gmail.com wrote:

1.  Have a look 
athttp://groups.google.com/group/google-appengine-java/browse_thread/th...
for a hint about your appengine-web.xml file.

2.  I place my logging.properties file in

  /WEB-INF/classes

Why? I cannot remember, but this worked for me.

3.  Your logging.properties file uses its default level, for your
own classes, of

  # Set the default logging level for all loggers
  .level = WARNING

I use

  # Set the default logging level for all loggers
  .level = WARNING

  com.my.app.[...].level = FINE

This then allows my log message of level FINE or more severe to be
recorded.

4. Case sensitivity: I recall (perhaps wrongly) that
logging.properties will work whereas Logging.properties will not.

Does any of this help?

On Jun 10, 8:33 pm, Daniel vedm...@gmail.com wrote:

 this is the content of the logging.properties file (I have never
 touched it)

 # A default java.util.logging configuration.
 # (All App Engine logging is through java.util.logging by default).
 #
 # To use this configuration, copy it into your application's WEB-INF
 # folder and add the following to your appengine-web.xml:
 #
 # system-properties
 #   property name=java.util.logging.config.file value=WEB-INF/
 logging.properties/
 # /system-properties
 #

 # Set the default logging level for all loggers to WARNING
 .level = WARNING

 # Set the default logging level for ORM, specifically, to WARNING
 DataNucleus.JDO.level=WARNING
 DataNucleus.Persistence.level=WARNING
 DataNucleus.Cache.level=WARNING
 DataNucleus.MetaData.level=WARNING
 DataNucleus.General.level=WARNING
 DataNucleus.Utility.level=WARNING
 DataNucleus.Transaction.level=WARNING
 DataNucleus.Datastore.level=WARNING
 DataNucleus.ClassLoading.level=WARNING
 DataNucleus.Plugin.level=WARNING
 DataNucleus.ValueGeneration.level=WARNING
 DataNucleus.Enhancer.level=WARNING
 DataNucleus.SchemaTool.level=WARNING

 and I have only 1 copy of it, and it was never moved, in WEB-INF

 any ideas?

 On Jun 9, 11:31 am, Ian Marshall ianmarshall...@gmail.com wrote:

  Hi,

  A few trouble-shooting questions:

    ·  What's in your logging.properties file?
    ·  Where is this file? Has it moved recently? Have

[appengine-java] Re: Why does the info messages stopped appearing in the Logs?

2011-06-11 Thread Daniel
I did as you said in 1 -- did nothing

after I did as you said in 2   -- the logs started to appear in my
development eclipse console (*which is really great! , thx , although
only warning and above logs :()

did as you said in 3, but did not helped :(

i tired this
.level = WARNING
dr.todo.beans.[...].level = FINE


and this
.level = WARNING
dr.[...].level = FINE


here an example from the code and the output from the logs


System.err.println(Inside HoursReportBean Constructor
eerr b4);
log.fine(*Inside HoursReportBean Constructor+:+new Date());
log.info(*Inside HoursReportBean Constructor+:+new Date());
log.warning(**Inside HoursReportBean Constructor+:+new Date());
log.severe(**Inside HoursReportBean Constructor+:+new Date());
System.err.println(Inside HoursReportBean Constructor
eerr after);

in logs i see the following:


#
2011-06-11 00:58:06.446

[vedmack/1.351054244259633422].stderr: Inside HoursReportBean
Constructor eerr b4


#
W 2011-06-11 00:58:06.449

dr.todo.beans.HoursReportBean init: **Inside HoursReportBean
Constructor:Sat Jun 11 07:58:06 UTC 2011

#
E 2011-06-11 00:58:06.450

dr.todo.beans.HoursReportBean init: **Inside HoursReportBean
Constructor:Sat Jun 11 07:58:06 UTC 2011

#
W 2011-06-11 00:58:06.450

[vedmack/1.351054244259633422].stderr: Inside HoursReportBean
Constructor eerr after





4) its already with lower cases

On Jun 10, 11:43 pm, Ian Marshall ianmarshall...@gmail.com wrote:
 1.  Have a look 
 athttp://groups.google.com/group/google-appengine-java/browse_thread/th...
 for a hint about your appengine-web.xml file.

 2.  I place my logging.properties file in

   /WEB-INF/classes

 Why? I cannot remember, but this worked for me.

 3.  Your logging.properties file uses its default level, for your
 own classes, of

   # Set the default logging level for all loggers
   .level = WARNING

 I use

   # Set the default logging level for all loggers
   .level = WARNING

   com.my.app.[...].level = FINE

 This then allows my log message of level FINE or more severe to be
 recorded.

 4. Case sensitivity: I recall (perhaps wrongly) that
 logging.properties will work whereas Logging.properties will not.

 Does any of this help?

 On Jun 10, 8:33 pm, Daniel vedm...@gmail.com wrote:

  this is the content of the logging.properties file (I have never
  touched it)

  # A default java.util.logging configuration.
  # (All App Engine logging is through java.util.logging by default).
  #
  # To use this configuration, copy it into your application's WEB-INF
  # folder and add the following to your appengine-web.xml:
  #
  # system-properties
  #   property name=java.util.logging.config.file value=WEB-INF/
  logging.properties/
  # /system-properties
  #

  # Set the default logging level for all loggers to WARNING
  .level = WARNING

  # Set the default logging level for ORM, specifically, to WARNING
  DataNucleus.JDO.level=WARNING
  DataNucleus.Persistence.level=WARNING
  DataNucleus.Cache.level=WARNING
  DataNucleus.MetaData.level=WARNING
  DataNucleus.General.level=WARNING
  DataNucleus.Utility.level=WARNING
  DataNucleus.Transaction.level=WARNING
  DataNucleus.Datastore.level=WARNING
  DataNucleus.ClassLoading.level=WARNING
  DataNucleus.Plugin.level=WARNING
  DataNucleus.ValueGeneration.level=WARNING
  DataNucleus.Enhancer.level=WARNING
  DataNucleus.SchemaTool.level=WARNING

  and I have only 1 copy of it, and it was never moved, in WEB-INF

  any ideas?

  On Jun 9, 11:31 am, Ian Marshall ianmarshall...@gmail.com wrote:

   Hi,

   A few trouble-shooting questions:

     ·  What's in your logging.properties file?
     ·  Where is this file? Has it moved recently? Have you more than one
   copy of this file?

   On Jun 8, 2:00 pm, Daniel vedm...@gmail.com wrote:

Hi

I always was writing the info messages to the log (like described in
here :

   http://code.google.com/appengine/docs/java/runtime.html#Logging)

I always used the .info method and the messages were perfectly shown
in the Admin Log page,

But recently i noticed the .info messages stopped to work, adn
only .warning and higher are written into the Log...

Why is that?

How can I write .info messages into the log?

import java.util.logging.Logger;

private static final Logger log =
Logger.getLogger(KeepSessionAliveServlet.class.getName());

log.info(KeepSessionAliveServlet);   -- not working :(

log.warning(KeepSessionAliveServlet);   -- does work :/

Any ideas?



-- 
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: Why does the info messages stopped appearing in the Logs?

2011-06-11 Thread Daniel
I did as you said in 1 -- did nothing

after I did as you said in 2   -- the logs started to appear in my
development eclipse console (*which is really great! , thx , although
only warning and above logs :()

did as you said in 3, but did not helped :(

i tired this
.level = WARNING
dr.todo.beans.[...].level = FINE


and this
.level = WARNING
dr.[...].level = FINE


here an example from the code and the output from the logs


System.err.println(Inside HoursReportBean Constructor
eerr b4);
log.fine(*Inside HoursReportBean Constructor+:+new Date());
log.info(*Inside HoursReportBean Constructor+:+new Date());
log.warning(**Inside HoursReportBean Constructor+:+new Date());
log.severe(**Inside HoursReportBean Constructor+:+new Date());
System.err.println(Inside HoursReportBean Constructor
eerr after);

in logs i see the following:


#
2011-06-11 00:58:06.446

[vedmack/1.351054244259633422].stderr: Inside HoursReportBean
Constructor eerr b4


#
W 2011-06-11 00:58:06.449

dr.todo.beans.HoursReportBean init: **Inside HoursReportBean
Constructor:Sat Jun 11 07:58:06 UTC 2011

#
E 2011-06-11 00:58:06.450

dr.todo.beans.HoursReportBean init: **Inside HoursReportBean
Constructor:Sat Jun 11 07:58:06 UTC 2011

#
W 2011-06-11 00:58:06.450

[vedmack/1.351054244259633422].stderr: Inside HoursReportBean
Constructor eerr after





4) its already with lower cases

On Jun 10, 11:43 pm, Ian Marshall ianmarshall...@gmail.com wrote:
 1.  Have a look 
 athttp://groups.google.com/group/google-appengine-java/browse_thread/th...
 for a hint about your appengine-web.xml file.

 2.  I place my logging.properties file in

   /WEB-INF/classes

 Why? I cannot remember, but this worked for me.

 3.  Your logging.properties file uses its default level, for your
 own classes, of

   # Set the default logging level for all loggers
   .level = WARNING

 I use

   # Set the default logging level for all loggers
   .level = WARNING

   com.my.app.[...].level = FINE

 This then allows my log message of level FINE or more severe to be
 recorded.

 4. Case sensitivity: I recall (perhaps wrongly) that
 logging.properties will work whereas Logging.properties will not.

 Does any of this help?

 On Jun 10, 8:33 pm, Daniel vedm...@gmail.com wrote:

  this is the content of the logging.properties file (I have never
  touched it)

  # A default java.util.logging configuration.
  # (All App Engine logging is through java.util.logging by default).
  #
  # To use this configuration, copy it into your application's WEB-INF
  # folder and add the following to your appengine-web.xml:
  #
  # system-properties
  #   property name=java.util.logging.config.file value=WEB-INF/
  logging.properties/
  # /system-properties
  #

  # Set the default logging level for all loggers to WARNING
  .level = WARNING

  # Set the default logging level for ORM, specifically, to WARNING
  DataNucleus.JDO.level=WARNING
  DataNucleus.Persistence.level=WARNING
  DataNucleus.Cache.level=WARNING
  DataNucleus.MetaData.level=WARNING
  DataNucleus.General.level=WARNING
  DataNucleus.Utility.level=WARNING
  DataNucleus.Transaction.level=WARNING
  DataNucleus.Datastore.level=WARNING
  DataNucleus.ClassLoading.level=WARNING
  DataNucleus.Plugin.level=WARNING
  DataNucleus.ValueGeneration.level=WARNING
  DataNucleus.Enhancer.level=WARNING
  DataNucleus.SchemaTool.level=WARNING

  and I have only 1 copy of it, and it was never moved, in WEB-INF

  any ideas?

  On Jun 9, 11:31 am, Ian Marshall ianmarshall...@gmail.com wrote:

   Hi,

   A few trouble-shooting questions:

     ·  What's in your logging.properties file?
     ·  Where is this file? Has it moved recently? Have you more than one
   copy of this file?

   On Jun 8, 2:00 pm, Daniel vedm...@gmail.com wrote:

Hi

I always was writing the info messages to the log (like described in
here :

   http://code.google.com/appengine/docs/java/runtime.html#Logging)

I always used the .info method and the messages were perfectly shown
in the Admin Log page,

But recently i noticed the .info messages stopped to work, adn
only .warning and higher are written into the Log...

Why is that?

How can I write .info messages into the log?

import java.util.logging.Logger;

private static final Logger log =
Logger.getLogger(KeepSessionAliveServlet.class.getName());

log.info(KeepSessionAliveServlet);   -- not working :(

log.warning(KeepSessionAliveServlet);   -- does work :/

Any ideas?



-- 
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: Why does the info messages stopped appearing in the Logs?

2011-06-11 Thread Daniel
Thanks alot anyway,

adn yes

my appengine-web.xml is set up correctly,

anotehr weird thing is , event when i set up

# Set the default logging level for all loggers to WARNING
.level = FINE

and i'm getting tons of jetty logs from FINE level... even than I'm
not getting any of my logs lower than warning

:/

Can any 1 else throw an idea?


Thanks ahead,

On Jun 11, 11:08 am, Ian Marshall ianmarshall...@gmail.com wrote:
 Sorry that it's not working for you.

 I use NetBeans for my IDE, so I trust that someone else reading this
 who uses Eclipse can help you better than me.

 (Am I correct to presume that the relevant setting in your appengine-
 web.xml points to the correct logging.properties file and
 location?)

 On Jun 11, 8:59 am, Daniel vedm...@gmail.com wrote:

  I did as you said in 1 -- did nothing

  after I did as you said in 2   -- the logs started to appear in my
  development eclipse console (*which is really great! , thx , although
  only warning and above logs :()

  did as you said in 3, but did not helped :(

  i tired this
  .level = WARNING
  dr.todo.beans.[...].level = FINE

  and this
  .level = WARNING
  dr.[...].level = FINE

  here an example from the code and the output from the logs

  System.err.println(Inside HoursReportBean Constructor
  eerr b4);
  log.fine(*Inside HoursReportBean Constructor+:+new Date());
  log.info(*Inside HoursReportBean Constructor+:+new Date());
  log.warning(**Inside HoursReportBean Constructor+:+new Date());
  log.severe(**Inside HoursReportBean Constructor+:+new Date());
  System.err.println(Inside HoursReportBean Constructor
  eerr after);

  in logs i see the following:

  #
  2011-06-11 00:58:06.446

  [vedmack/1.351054244259633422].stderr: Inside HoursReportBean
  Constructor eerr b4

  #
  W 2011-06-11 00:58:06.449

  dr.todo.beans.HoursReportBean init: **Inside HoursReportBean
  Constructor:Sat Jun 11 07:58:06 UTC 2011

  #
  E 2011-06-11 00:58:06.450

  dr.todo.beans.HoursReportBean init: **Inside HoursReportBean
  Constructor:Sat Jun 11 07:58:06 UTC 2011

  #
  W 2011-06-11 00:58:06.450

  [vedmack/1.351054244259633422].stderr: Inside HoursReportBean
  Constructor eerr after

  4) its already with lower cases

  On Jun 10, 11:43 pm, Ian Marshall ianmarshall...@gmail.com wrote:

   1.  Have a look 
   athttp://groups.google.com/group/google-appengine-java/browse_thread/th...
   for a hint about your appengine-web.xml file.

   2.  I place my logging.properties file in

     /WEB-INF/classes

   Why? I cannot remember, but this worked for me.

   3.  Your logging.properties file uses its default level, for your
   own classes, of

     # Set the default logging level for all loggers
     .level = WARNING

   I use

     # Set the default logging level for all loggers
     .level = WARNING

     com.my.app.[...].level = FINE

   This then allows my log message of level FINE or more severe to be
   recorded.

   4. Case sensitivity: I recall (perhaps wrongly) that
   logging.properties will work whereas Logging.properties will not.

   Does any of this help?

   On Jun 10, 8:33 pm, Daniel vedm...@gmail.com wrote:

this is the content of the logging.properties file (I have never
touched it)

# A default java.util.logging configuration.
# (All App Engine logging is through java.util.logging by default).
#
# To use this configuration, copy it into your application's WEB-INF
# folder and add the following to your appengine-web.xml:
#
# system-properties
#   property name=java.util.logging.config.file value=WEB-INF/
logging.properties/
# /system-properties
#

# Set the default logging level for all loggers to WARNING
.level = WARNING

# Set the default logging level for ORM, specifically, to WARNING
DataNucleus.JDO.level=WARNING
DataNucleus.Persistence.level=WARNING
DataNucleus.Cache.level=WARNING
DataNucleus.MetaData.level=WARNING
DataNucleus.General.level=WARNING
DataNucleus.Utility.level=WARNING
DataNucleus.Transaction.level=WARNING
DataNucleus.Datastore.level=WARNING
DataNucleus.ClassLoading.level=WARNING
DataNucleus.Plugin.level=WARNING
DataNucleus.ValueGeneration.level=WARNING
DataNucleus.Enhancer.level=WARNING
DataNucleus.SchemaTool.level=WARNING

and I have only 1 copy of it, and it was never moved, in WEB-INF

any ideas?

On Jun 9, 11:31 am, Ian Marshall ianmarshall...@gmail.com wrote:

 Hi,

 A few trouble-shooting questions:

   ·  What's in your logging.properties file?
   ·  Where is this file? Has it moved recently? Have you more than one
 copy of this file?

 On Jun 8, 2:00 pm, Daniel vedm...@gmail.com wrote:

  Hi

  I always was writing the info messages to the log (like described in
  here :

 http://code.google.com/appengine/docs/java/runtime.html#Logging)

  I always used the .info method and the messages

[appengine-java] Re: Why does the info messages stopped appearing in the Logs?

2011-06-10 Thread Daniel
this is the content of the logging.properties file (I have never
touched it)

# A default java.util.logging configuration.
# (All App Engine logging is through java.util.logging by default).
#
# To use this configuration, copy it into your application's WEB-INF
# folder and add the following to your appengine-web.xml:
#
# system-properties
#   property name=java.util.logging.config.file value=WEB-INF/
logging.properties/
# /system-properties
#

# Set the default logging level for all loggers to WARNING
.level = WARNING

# Set the default logging level for ORM, specifically, to WARNING
DataNucleus.JDO.level=WARNING
DataNucleus.Persistence.level=WARNING
DataNucleus.Cache.level=WARNING
DataNucleus.MetaData.level=WARNING
DataNucleus.General.level=WARNING
DataNucleus.Utility.level=WARNING
DataNucleus.Transaction.level=WARNING
DataNucleus.Datastore.level=WARNING
DataNucleus.ClassLoading.level=WARNING
DataNucleus.Plugin.level=WARNING
DataNucleus.ValueGeneration.level=WARNING
DataNucleus.Enhancer.level=WARNING
DataNucleus.SchemaTool.level=WARNING



and I have only 1 copy of it, and it was never moved, in WEB-INF


any ideas?

On Jun 9, 11:31 am, Ian Marshall ianmarshall...@gmail.com wrote:
 Hi,

 A few trouble-shooting questions:

   ·  What's in your logging.properties file?
   ·  Where is this file? Has it moved recently? Have you more than one
 copy of this file?

 On Jun 8, 2:00 pm, Daniel vedm...@gmail.com wrote:

  Hi

  I always was writing the info messages to the log (like described in
  here :

 http://code.google.com/appengine/docs/java/runtime.html#Logging)

  I always used the .info method and the messages were perfectly shown
  in the Admin Log page,

  But recently i noticed the .info messages stopped to work, adn
  only .warning and higher are written into the Log...

  Why is that?

  How can I write .info messages into the log?

  import java.util.logging.Logger;

  private static final Logger log =
  Logger.getLogger(KeepSessionAliveServlet.class.getName());

  log.info(KeepSessionAliveServlet);   -- not working :(

  log.warning(KeepSessionAliveServlet);   -- does work :/

  Any ideas?



-- 
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] Why does the info messages stopped appearing in the Logs?

2011-06-08 Thread Daniel
Hi

I always was writing the info messages to the log (like described in
here :

http://code.google.com/appengine/docs/java/runtime.html#Logging)

I always used the .info method and the messages were perfectly shown
in the Admin Log page,


But recently i noticed the .info messages stopped to work, adn
only .warning and higher are written into the Log...


Why is that?

How can I write .info messages into the log?


import java.util.logging.Logger;

private static final Logger log =
Logger.getLogger(KeepSessionAliveServlet.class.getName());

log.info(KeepSessionAliveServlet);   -- not working :(

log.warning(KeepSessionAliveServlet);   -- does work :/

Any ideas?

-- 
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: Upload blob never calls success path

2011-05-24 Thread Daniel Florey
As I expected in the first place I'm just dumb.
After running into a lot of issues (OutOfMemory and alike) I found out that 
I just forgot to attach the form to the site properly ;-)

-- 
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] List of supported content types in BlobStore?

2011-05-24 Thread Daniel Florey
Hi,
is there a list of content types that BlobStore is be able to detect?

Thanks,
Daniel

-- 
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] Upload blob never calls success path

2011-05-23 Thread Daniel Florey
I guess I'm just dumb, but please help me anyway ;-)
I've just tried to upload a blob into the blobstore. When I upload the blobs 
I can see an entry for each upload in the __BlobUploadSession__ table.
I also can see in there that the success path is properly set, but my mapped 
servlet is never called. (I can call it from the browser though, so it seems 
to be mapped correctly).

Do I have to enable some option on the devserver so that the success path 
servlet will be called once the upload is complete?

Thanks for any hints,

Daniel

-- 
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: Upload blob never calls success path

2011-05-23 Thread Daniel Florey
Hi,
thanks a lot for the info.
I did not even upload to App Engine, just using the development server. So I 
guess there is just the default version?

My servlet is never called, so I cannot even send a redirect yet.
I just end up with an entry in the  __BlobUploadSession__ table and I assume 
that I may need to turn on some flags to call my success path after upload?

Is there a way to turn on debug logging for the core services?

Thanks!

Daniel

-- 
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] Another transaction by user vedmack is already in progress for app: vedmack, version: 1. That user can undo the transaction with appcfg rollback.

2011-05-21 Thread Daniel
Hi I tried to deploy to GAE and noticed that by mistake I'm about to
upload tons of tons of files... so i closed the eclipse and reopen it,
since then i cant deplot my application (its been several hours since
than)

hoe can i FIX this?

Here is the message:

Unable to update app: Error posting to URL:
https://appengine.google.com/api/appversion/create?app_id=vedmackversion=1;
409 Conflict
Another transaction by user vedmack is already in progress for app:
vedmack, version: 1. That user can undo the transaction with appcfg
rollback.


See the deployment console for more details
Unable to update app: Error posting to URL:
https://appengine.google.com/api/appversion/create?app_id=vedmackversion=1;
409 Conflict
Another transaction by user vedmack is already in progress for app:
vedmack, version: 1. That user can undo the transaction with appcfg
rollback.

-- 
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: Another transaction by user vedmack is already in progress for app: vedmack, version: 1. That user can undo the transaction with appcfg rollback.

2011-05-21 Thread Daniel
actually i didn't i never used this appcfg and i was not aware of
it...

google a bit now and did the rollback :)

i guess i got :cold feet :)


thx...






On May 21, 11:26 pm, JT jem...@gmail.com wrote:
 Did you try appcfg rollback?
 On May 21, 2011 4:17 PM, Daniel vedm...@gmail.com wrote: Hi I tried to 
 deploy to GAE and noticed that by mistake I'm about to
  upload tons of tons of files... so i closed the eclipse and reopen it,
  since then i cant deplot my application (its been several hours since
  than)

  hoe can i FIX this?

  Here is the message:

  Unable to update app: Error posting to URL:

 https://appengine.google.com/api/appversion/create?app_id=vedmackver... 409 
 Conflict
  Another transaction by user vedmack is already in progress for app:
  vedmack, version: 1. That user can undo the transaction with appcfg
  rollback.

  See the deployment console for more details
  Unable to update app: Error posting to URL:

 https://appengine.google.com/api/appversion/create?app_id=vedmackver... 409 
 Conflict
  Another transaction by user vedmack is already in progress for app:
  vedmack, version: 1. That user can undo the transaction with appcfg
  rollback.

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





-- 
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] Coding with Adobe Software

2011-05-19 Thread Daniel Nieblas
Hi my name is Daniel, I'm new to coding, so everything literally feels like 
a foreign language at this point, but I decided to start learning because 
I'm interested in developing a news app for smartphones and tablets.

Anyway i'm using the Java version of the GAE SDK and was wondering how 
exactly does coding incorporate commercial-based software. Im saving up to 
buy Adobe InDesign CS5.5 so that I can create the user interface for the 
app, but I'm not sure how exactly that works itself out in relation to 
coding the app itself. 

How do I code the application so that it functions with the interface?



thanks for helping out:)

-- 
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] stderr: SystemId Unknown; Line #57; Column #31; Failed calling setMethod method

2011-05-14 Thread Daniel
My log is full of this weird stderr message

[vedmack/1.350345457568997204].stderr: SystemId Unknown; Line #57;
Column #31; Failed calling setMethod method

Its an Info message...

any ideas to what can cause this?

Thanks ahead!


Daniel,

-- 
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: stderr: SystemId Unknown; Line #57; Column #31; Failed calling setMethod method

2011-05-14 Thread Daniel
Hehe :)

That's a thread I opened almost a year ago (on a completely diff
issues) happens to be that in a log I posted back than the weird
stderr was appearing too,..




On May 14, 12:46 pm, Didier Durand durand.did...@gmail.com wrote:
 Hi,

 Look 
 athttp://groups.google.com/group/google-appengine-java/browse_thread/th...

 At the very bottom, you may have the answer to you question

 regards

 didier

 On May 14, 11:25 am, Daniel vedm...@gmail.com wrote:

  My log is full of this weird stderr message

  [vedmack/1.350345457568997204].stderr: SystemId Unknown; Line #57;
  Column #31; Failed calling setMethod method

  Its an Info message...

  any ideas to what can cause this?

  Thanks ahead!

  Daniel,



-- 
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] Why my KeepSessionAlive Servlet consumes diff' ammount of cpu???

2011-05-10 Thread Daniel
Hi

I got a servlet that is being executed from my web page every 5
minutes (to keep the session opened)

All this servlet does this:

System.err.println(KeepSessionAliveServlet doPost, +new Date());


now when i look in the logs i can see that some time this cost

/servlets/KeepSessionAliveServlet 200 5202ms 7563cpu_ms 73api_cpu_ms

and some times

/servlets/TimeZoneDromClientServlet 200 165ms 190cpu_ms 73api_cpu_ms

sometimes it do dozens of heavy calls (5202ms 7563cpu_ms
73api_cpu_ms )

and sometimes dozens of light calls (165ms 190cpu_ms 73api_cpu_ms)

also when it does the heavy call it also prints some weird stderr :
stderr: SystemId Unknown; Line #57; Column #31; Failed calling
setMethod method


before my own stderr  (System.err.println(KeepSessionAliveServlet
doPost, +new Date());)

the heavy  call of the servlet also says
This request caused a new process to be started for your application,
and thus caused your application code to be loaded for the first time.
This request may thus take longer and use more CPU than a typical
request for your application.

why is that? my servlet being called every 5 minutes? why each time it
says that it loaded for the first time?

when it does an light  serlvet call it does not says that it is
loaded for the first time...

I am the only one that logged into the app so only my open tab in the
FF calls the servlet

Help will be appreciated.

Daniel.

-- 
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: Eclipse, RichFaces Google App Engine - Tutorial - Step By Step - Draft 1.0

2011-04-20 Thread Daniel
nice!
tx!

On Apr 18, 12:53 am, Tomek gooto...@gmail.com wrote:
 On Apr 17, 9:48 pm, Tomek gooto...@gmail.com wrote:

  Hi,

  Maybe some of you will find the 
  tutorialhttp://void-pointers.blogspot.com/2011/04/eclipse-richfaces-google-ap...useful.
   Any comments (fixes too) are very welcome.

  All the best,

  Tomek

 I am sorry, I didnt use and post to the groups before, so the link
 looked like broken. Once 
 again:http://void-pointers.blogspot.com/2011/04/eclipse-richfaces-google-ap...

-- 
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] Deploy credentials with 3.6 beta plugin

2011-04-14 Thread Daniel Florey
Since upgrading to the 3.6 beta plugin I am unable to deploy apps with ant.
It will always complain that my credentials have expired, so I can only 
upload from the IDE.
This is annoying since it will always trigger full gwt compile...

Any ideas?

Daniel

-- 
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 can I make the session to be held open as long as the user got its browser opened?

2011-04-11 Thread Daniel
I refer to the one that defined in web.xml

session-config
session-timeout30/session-timeout
/session-config

I want to keep it open as long as the browser is opened at my page...

On Apr 10, 2:10 pm, Didier Durand durand.did...@gmail.com wrote:
 Hi,

 You should clarify what you mean by an open session: do you mean the
 http one defined by the cookie, the security one after login, etc ?

 regards

 didier

 On Apr 10, 9:35 am, Max thebb...@gmail.com wrote:

  have you tried to use memcache or simply store session into 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 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 can I make the session to be held open as long as the user got its browser opened?

2011-04-10 Thread Daniel
any1?

On Apr 6, 1:18 pm, Daniel vedm...@gmail.com wrote:
 Hi

 I need to keep the session opened as long as the user got its browser
 opened in my web app...

 Is there such a setting that i can enable for my web app?

 If not, Is there any suggester/recommend way to achieve it?

 Thanks ahead!

 Daniel.

-- 
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] How can I make the session to be held open as long as the user got its browser opened?

2011-04-06 Thread Daniel
Hi

I need to keep the session opened as long as the user got its browser
opened in my web app...

Is there such a setting that i can enable for my web app?

If not, Is there any suggester/recommend way to achieve it?

Thanks ahead!


Daniel.

-- 
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: suggestions on template engine for GAE-java

2011-03-17 Thread Daniel Florey
You can check out 

http://code.google.com/p/jmte/


-- 
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: Gettin white page when trying to log in - cause of exception.... even after deleting all _ah_SESSION Entities???

2011-03-15 Thread Daniel
Where can I do the flush of the MemCache?

On Mar 15, 11:18 am, Simon Knott knott.si...@gmail.com wrote:
 Have you tried flushing MemCache?  Sessions are serialized in there as well
 as the 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 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] Gettin white page when trying to log in - cause of exception.... even after deleting all _ah_SESSION Entities???

2011-03-14 Thread Daniel
I'm getting the next exception after I've added the private static
final long serialVersionUID to the class...

What else do i need to delete from my app in order to be able to log
in into the application

Regards,

Daniel.

2011-03-14 14:25:24.394

http://vedmack.appspot.com/
javax.servlet.ServletException: java.lang.RuntimeException:
java.io.InvalidClassException: dr.todo.beans.ScheduleControllerBean;
local class incompatible: stream classdesc serialVersionUID =
-1116670100735325123, local class serialVersionUID =
-6271321495824439527
at
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:
240)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
542)
at org.mortbay.jetty.HttpConnection
$RequestHandler.headerComplete(HttpConnection.java:923)
at
com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:
76)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:
135)
at
com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:
261)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$2.handleRequest(RuntimePb.java:8440)
at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
454)
at com.google.net.rpc.impl.Server$RpcTask.runInContext(Server.java:
572)
at com.google.tracing.TraceContext$TraceContextRunnable
$1.run(TraceContext.java:448)
at com.google.tracing.TraceContext.runInContext(TraceContext.java:
688)
at com.google.tracing.TraceContext
$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:
326)
at com.google.tracing.TraceContext
$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:
318)
at com.google.tracing.TraceContext
$TraceContextRunnable.run(TraceContext.java:446)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
1110)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)
Caused by: java.lang.RuntimeException: java.io.InvalidClassException:
dr.todo.beans.ScheduleControllerBean; local class incompatible: stream
classdesc serialVersionUID = -1116670100735325123, local class
serialVersionUID = -6271321495824439527
at
com.google.apphosting.runtime.jetty.SessionManager.deserialize(SessionManager.java:
419)
at
com.google.apphosting.runtime.jetty.SessionManager.loadSession(SessionManager.java:
315)
at
com.google.apphosting.runtime.jetty.SessionManager.getSession(SessionManager.java:
288)
at
org.mortbay.jetty.servlet.AbstractSessionManager.getHttpSession(AbstractSessionManager.java:
237)
at
org.mortbay.jetty.servlet.SessionHandler.setRequestedId(SessionHandler.java:
246)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
136)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
418)
at
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:
238)
... 19 more
Caused by: java.io.InvalidClassException:
dr.todo.beans.ScheduleControllerBean; local class incompatible: stream
classdesc serialVersionUID = -1116670100735325123, local class
serialVersionUID = -6271321495824439527
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:579)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:
1600)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:
1513)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:
1749)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1346)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:368)
at java.util.HashMap.readObject(HashMap.java:1047)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
43)
at java.lang.reflect.Method.invoke(Method.java:616)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:
991)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:
1865)
at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:
1770)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1346)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java

Re: [appengine-java] Re: Custom location for local_db.bin?

2011-01-16 Thread Daniel Kvasnička jr .
Yeah, I've been looking at extending the netbeans build files. That
would probably work. But the link m seleron suggested looks promising
-- it could be the cleanest way to do that IMO.
Will try it and let you guys know.

Dan

On Mon, Jan 17, 2011 at 08:11, andrew aute...@gmail.com wrote:
 I added steps to my build to copy it.

 If you want an evolving datastore, copy it out before clean. If you
 have fixed contents you want, then copy out manually once when in the
 state you want.

 After clean, copy it back in to WEB-INF etc

 I use eclipse, but netbeans builds I have seen provide pre and post
 target hooks in build_implemented.XML that you can use in build.XML to
 customize the build without touching the netbesns generated build file
 (build_implemented.XML). That was for J2ME, not sure how build looks
 for GAE in NetBeans.

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





-- 
http://www.danielkvasnicka.net

-- 
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] Custom location for local_db.bin?

2011-01-15 Thread Daniel Kvasnicka jr.
Hey,

is it possible to customize the location of local_db.bin? I need it to be 
somewhere outside the application, so that it doesn't get harmed.
I'm using NetBeans to develop apps and Clean  Build always destroys my 
data.
There must be some option for this, e.g. in appengine-web.xml, right?

-- 
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: Nice Online XSLT Transformer Hosted in GAE

2011-01-02 Thread Daniel
looks cool

On Jan 2, 10:23 pm, XSLT Master xslt@gmail.com wrote:
 Useful for tests when developing XSLT:

 http://xslttest.appspot.com/

 Developed with Java, GWT and Google Plugin for Eclipse. Hosted in GAE.

 Cheers

-- 
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: Cloud2db for Cassandra and MongoDb

2010-12-28 Thread Daniel Florey
Hi,
this sounds very interesting.
Will the data stored in the db be human-readable in the datastore with
datastore viewer or will it just store a bunch of blobs?

Daniel

On Dec 28, 9:03 pm, Sandeep Sathaye sandeep.sath...@gmail.com wrote:
 Hi Everyone,

 Cloud2db http://www.cloud2db.com/ is pleased to announce the support for
 Cassandra and mongoDB cloud database platforms in addition to Google
 Bigtable platform which it already supports. With this new release you will
 be able to transparently choose between Google Bigtable, Cassandra and
 MongoDB as your cloud database platform.

 Please download the Cloud2db software from the following link.

 Download http://cloud2db-server.appspot.com/website/download.html(Google
 Bigtable, Cassandra, MongoDB)

 Cloud2db provides a standards-based abstraction layer over cloud databases.
 This product provides you with performance and scalability of cloud platform
 along with structure, standards and interoperability of RDBMS, SQL and JDBC.

 With Cloud2db, you will be able to manage your data on cloud platforms by
 using established concepts of RDBMS, SQL and JDBC, and thereby preserving
 your existing investments in tools, technologies, frameworks and skills.

 Here are Cloud2db features:

    - Manage data on Google Bigtable, Cassandra and MongoDB using familiar
    concepts of RDBMD, SQL
       - Referential integrity (Primary Keys, Foreign Keys)
       - Role Based Security
       - Joins (Inner Join, Left Outer Join, Theta Join, Cross Join)
       - Subqueries (Exists, Not Exists, In)
       - DDL  DML
       - Transactions (for the datastores supporting transactions)
       - ANSI SQL stored functions
       - Views
       - BLOB and CLOB support (for the datastores supporting BLOBs)

    - Use any JDBC compliant tools and frameworks in the market to interact
    with the Google Datastore. For example.
       - Squirrel SQL (database management)
       - Power Architect (data modeling)
       - Jasper Reports (reporting)
       - Hibernate (Object To Relational mapping)
       - All JDBC compliant tools

    - Port exiting RDBMS instances to cloud databases

 Please visit our websitehttp://www.cloud2db.comand try out the free trial
 version. Please visit google group
 Cloud2dbhttp://groups.google.com/group/cloud2db to
 share your feedback and thoughts.

 Sincerely,

 Sandeep Sathaye
 Founder and Chief Architect
 Cloud2db

-- 
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] Primefaces works on Development but after Deployment seems like all css are not recognized? (In FireFox only)

2010-12-06 Thread Daniel
Hi I'm developing using PrimeFaces(JSF) library... and all works just
fine on development (in IE 8 and FireFox 3.6)

But after the deployment to the GAE platform it stops to work in
FireFox, it looks like no css are recognized... and the website looks
poor...

Any ideas how can i solve this issue?


Regards


Daniel.

-- 
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] New book: Google App Engine Java and GWT Application Development

2010-12-03 Thread Daniel Guermeur
hi,

Some of you may be interested in a book I co-authored that has just
been published:
Google App Engine Java and GWT Application Development by Amy Unruh
and Daniel Guermeur, from Packt.

The book describes many of the techniques and approaches used to
develop GAE+GWT applications, and includes an app developed
throughout  the book as a running example. It has a particular focus
on some of the technologies useful for building scalable social-media-
oriented applications, including: MVP and UiBinder, using the Channel
API for push, using Facebook and Twitter OAuth for authorization, JDO,
the Task Queue, transactions and transactional tasks, Memcache, and
XMPP.


This is the Packt Publishing link:
- http://link.packtpub.com/5XWJBI

Book blog w/ table of contents:
- http://theconnectr.blogspot.com/

Enjoy.

-- Daniel

-- 
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: Problem with JSF 2.0

2010-11-07 Thread Daniel
Try adding  implements Serializable to the problematic bean
(br.com.controlecartao.web.managed.EmpresaMBean)

and add the private static final long serialVersionUID .. variable
as eclipse suggests

also make sure you got this entry in appengine-web.xml : sessions-
enabledtrue/sessions-enabled


this should solve the issue


Regards


Daniel

On Nov 5, 9:12 pm, vaninh0 vani...@gmail.com wrote:
 Hello,

 I have an application running on EclipsePlugin (JSF2.0), but when I
 deploy it got the following error:
 (it's started when I used the templates)

 Anyone can help me?

 java.lang.RuntimeException: java.io.NotSerializableException:
 br.com.controlecartao.web.managed.EmpresaMBean
         at
 com.google.apphosting.runtime.jetty.SessionManager.serialize(SessionManager.java:
 387)
         at
 com.google.apphosting.runtime.jetty.SessionManager.createEntityForSession(SessionManager.java:
 364)
         at com.google.apphosting.runtime.jetty.SessionManager
 $AppEngineSession.save(SessionManager.java:164)
         at
 com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:
 41)
         at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
         at
 com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
 43)
         at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
         at
 org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
 388)
         at
 org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
 216)
         at
 org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
 182)
         at
 org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
 765)
         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
 418)
         at
 com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:
 238)
         at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
 152)
         at org.mortbay.jetty.Server.handle(Server.java:326)
         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
 542)
         at org.mortbay.jetty.HttpConnection
 $RequestHandler.headerComplete(HttpConnection.java:923)
         at
 com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:
 76)
         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
         at
 com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:
 135)
         at
 com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:
 261)
         at com.google.apphosting.base.RuntimePb$EvaluationRuntime
 $6.handleBlockingRequest(RuntimePb.java:8486)
         at com.google.apphosting.base.RuntimePb$EvaluationRuntime
 $6.handleBlockingRequest(RuntimePb.java:8484)
         at
 com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java:
 24)
         at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
 418)
         at com.google.net.rpc.impl.Server$RpcTask.runInContext(Server.java:
 572)
         at com.google.tracing.TraceContext$TraceContextRunnable
 $1.run(TraceContext.java:448)
         at com.google.tracing.TraceContext.runInContext(TraceContext.java:
 688)
         at com.google.tracing.TraceContext
 $AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:
 326)
         at com.google.tracing.TraceContext
 $AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:
 318)
         at com.google.tracing.TraceContext
 $TraceContextRunnable.run(TraceContext.java:446)
         at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
 1110)
         at java.util.concurrent.ThreadPoolExecutor
 $Worker.run(ThreadPoolExecutor.java:603)
         at java.lang.Thread.run(Thread.java:636)
 Caused by: java.io.NotSerializableException:
 br.com.controlecartao.web.managed.EmpresaMBean
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:
 1173)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:
 343)
         at java.util.HashMap.writeObject(HashMap.java:1018)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
 57)
         at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
 43)
         at java.lang.reflect.Method.invoke(Method.java:616)
         at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:
 962)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:
 1478)
         at
 java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:
 1409)
         at java.io.ObjectOutputStream.writeObject0

[appengine-java] Re: Security and Authentication - security-constraint in web.xml annoying error

2010-11-01 Thread Daniel
Thx! Solved the issue...

On Oct 31, 12:37 am, Shawn Brown big.coffee.lo...@gmail.com wrote:
  how can i fix this annoying error ?

 web-resource-name}' is expected.
 see the top link in the following search and just add a web-resource-name

 http://docs.sun.com/app/docs/doc/819-3669/bncbk?a=view

 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-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] Security and Authentication - security-constraint in web.xml annoying error

2010-10-30 Thread Daniel
Hi i got the following setting in my web.xml:

security-constraint
web-resource-collection
url-pattern/*/url-pattern
/web-resource-collection
auth-constraint
role-name*/role-name
/auth-constraint
  /security-constraint

in eclipse it shows me a red X as if it was an error (the project
works fine and even can be deployed) but it asks me all the time if im
sure i want to deploy with the error)

HERE IS THE ERROR:

cvc-complex-type.2.4.a: Invalid content was found starting with
element 'url-pattern'. One of '{http://java.sun.com/xml/ns/
javaee:web-resource-name}' is expected.


And this is how the web.xml begins:

?xml version=1.0 encoding=utf-8?
web-app version=2.5 xmlns=http://java.sun.com/xml/ns/javaee;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;


how can i fix this annoying error ?

Tx ahead

Daniel

-- 
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: JSF 2.0 MyFaces problem with Ajax and Command Button

2010-10-27 Thread Daniel
First of all what version of mojarra you use?

In case you using the modified jar that was done by Josh for Google
App Engine SDK 1.2.6 you should using the original mojarra jars.

I wrote a short tutorial on how one can use the original mojarra jars

You can find it here:

[url]http://www.neverslair-blog.net/daniels-tips-and-tutorials/[/url]


Daniel.

On Oct 26, 11:06 am, powell...@gmail.com powell...@gmail.com
wrote:
 I cannot get Ajax to allow navigation to another page when a
 h:commandButton is clicked. I use the classic command given in texts
 as shown below but Ajax will always display the current page. In the
 example below, I want to transition to the page2.xhtml page when I
 click but I only get the current page redisplayed. I tried giving ajax
 attributes of execute=@form and even render=@form without success.
 Is this a known bug.

 h:form prependId=false
 ...
 h:commandButton id=button1 action=page2 
    f:ajax /
 /h:commandButton
 /h:form

 Dave

-- 
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: Testing with JDO

2010-10-25 Thread Daniel Blasco
Thank you Didier.

This is my BaseTest.java and works perfect now:

package ...;

import static org.junit.Assert.assertEquals;

import java.util.Date;
import java.util.List;

import javax.jdo.PersistenceManager;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import com.declaraciones.PMF;
import com.declaraciones.shared.Declaracion.EstadoDeclaracion;
import com.declaraciones.shared.Movimiento;
import
com.google.appengine.tools.development.testing.LocalDatastoreServiceTestConfig;
import
com.google.appengine.tools.development.testing.LocalServiceTestHelper;

public class BaseTest {
private final LocalServiceTestHelper dsHelper = new
LocalServiceTestHelper(new LocalDatastoreServiceTestConfig());
private final PersistenceManager pm = PMF.getPersistenceManager();

@Before
public void setUp() {
System.out.println(Entering @Before for BaseTest);
dsHelper.setUp();
}

@After
public void tearDown() {
System.out.println(Entering @After for BaseTest);
this.dsHelper.tearDown();
}

// run this test twice to prove we're not leaking any state across
tests
@SuppressWarnings(unchecked)
private void doTest() {
String query = select from  + Movimiento.class.getName();
assertEquals(0, ((ListMovimiento)
pm.newQuery(query).execute()).size());
Movimiento m1 = new Movimiento();
pm.makePersistent(m1);
assertEquals(1, ((ListMovimiento)
pm.newQuery(query).execute()).size());
Movimiento m2 = new Movimiento();
pm.makePersistent(m2);
assertEquals(2, ((ListMovimiento)
pm.newQuery(query).execute()).size());
}

@Test
public void testInsert1() {
doTest();
}

@Test
public void testInsert2() {
doTest();
}

}

-- 
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] JSF 2 (pure mojarra jars) on GAE : short tutorial on how to use...

2010-10-17 Thread Daniel
Hi I recently figured out how to use the original latest mojarra jars
in my project...

It solved many weird errors i was bumping into once in a while... so I
thought i would share it with other JSF 2 users...


Here the link to the tutorial...

http://www.neverslair-blog.net/daniels-tips-and-tutorials/

-- 
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] Primefaces 2.2 (Based on JSF 2 )- does any one manged to get it working properly ?

2010-09-27 Thread Daniel
Hi I'm trying to get primefaces-2.2 working on GAE , but already on
the very simple attempt  - p:commandButton I'm having issues with
ajax.. seems to work fine to local Tomcat , but not working on GAE?


Does any one tried primefaces in general on GAE and managed to get the
p:commandButton working with ajax ?


Regards


Daniel.

-- 
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: JSF2 f:ajax does not work for me... Any Ideas Why?

2010-09-24 Thread Daniel
I tried also mojarra-2.0.3-FCS-binary.zip but without any luck also..
no ajax for me :/

On Sep 23, 9:22 pm, Daniel vedm...@gmail.com wrote:
 Hi
 this does not help... same behavior...

 i got my jsf jars from here 
 :http://javadocs.wordpress.com/2009/10/17/mojarra-jsf-2-0-rc2-and-goog...
 and followed the setting of web.xml from 
 herehttps://sites.google.com/a/wildstartech.com/adventures-in-java/Java-P...

 maybe you used different sources? if you do please let me know, also
 maybe you can post your web.xml ? might be i missed something...

 any other ideas are welcomed.

 Thanks ahead

 Daniel

 On Sep 23, 3:24 pm, Jaziel Leandro jaziel...@gmail.com wrote:

  I have the same error few times ago.
  Try this, make you Bean implements Serializable.

  2010/9/23 Daniel vedm...@gmail.com

   I'm want to use the f:ajax tag of the JSF 2 on app engine... but
   without any luck

   I tried some very simple examples taken from

  http://mkblog.exadel.com/2010/04/learning-jsf-2-ajax-in-jsf-using-faj...

   all of them works perfectly on local Tomcat (not GAE)

   But when i try the same on GAE, nothing works, im not getting any
   errors.. its just do nothing...
   Here the simplest example

   On each char type I'm supposed to sea the same char typed beneath and
   beneath it a counter of chars (text length) - again.. this works
   perfectly on tomcat server... (not GAE)

   Any ideas what am i missing?

   h:form
     h:panelGrid
        h:inputText value=#{bean.text} 
           f:ajax event=keyup render=text count
   listener=#{bean.countListener}/
        /h:inputText
        h:outputText id=text value=#{bean.text} /
        h:outputText id=count value=#{bean.count} /
     /h:panelGrid
   /h:form

   java code:
   package general;

   import javax.faces.bean.ManagedBean;
   import javax.faces.event.AjaxBehaviorEvent;

   @ManagedBean(name = bean)
   public class Bean {
     private String text; // getter and setter
     private Integer count;

      public void countListener(AjaxBehaviorEvent event) {
             count = text.length();
          }

          public String getText() {
                  return text;
          }

          public void setText(String text) {
                  this.text = text;
          }

          public Integer getCount() {
                  return count;
          }

          public void setCount(Integer count) {
                  this.count = count;
          }

   }

   Thanks ahead.

   Daniel

   --
   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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/google-appengine-java?hl=en.

-- 
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: JSF2 f:ajax does not work for me... Any Ideas Why?

2010-09-24 Thread Daniel
I tried this too... but its the same.. does not work :/

On Sep 24, 6:15 pm, Chris (Google Employee) api.ch...@google.com
wrote:
 Hi Daniel,

 For a possible workaround, have you tried manually coding the
 JavaScript for the Ajax request call?

 For example, instead of:
 h:commandButton
   f:ajax render=foo/
 /h:commandButton

 ... manually coding the JavaScript for the Ajax request call would be:

 h:commandButton onclick=jsf.ajax.request(this,event,
 {render:'foo'});return false;/

 This was taken 
 from:http://andyschwartz.wordpress.com/2009/07/31/whats-new-in-jsf-2/#ajax...

 Also, is this the only JSF2 tag that you've encountered that does't
 appear to be working in App Engine?
 -Chris

 On Sep 24, 8:31 am, Daniel vedm...@gmail.com wrote:

  I tried also mojarra-2.0.3-FCS-binary.zip but without any luck also..
  no ajax for me :/

  On Sep 23, 9:22 pm, Daniel vedm...@gmail.com wrote:

   Hi
   this does not help... same behavior...

   i got my jsf jars from here 
   :http://javadocs.wordpress.com/2009/10/17/mojarra-jsf-2-0-rc2-and-goog...
   and followed the setting of web.xml from 
   herehttps://sites.google.com/a/wildstartech.com/adventures-in-java/Java-P...

   maybe you used different sources? if you do please let me know, also
   maybe you can post your web.xml ? might be i missed something...

   any other ideas are welcomed.

   Thanks ahead

   Daniel

   On Sep 23, 3:24 pm, Jaziel Leandro jaziel...@gmail.com wrote:

I have the same error few times ago.
Try this, make you Bean implements Serializable.

2010/9/23 Daniel vedm...@gmail.com

 I'm want to use the f:ajax tag of the JSF 2 on app engine... but
 without any luck

 I tried some very simple examples taken from

http://mkblog.exadel.com/2010/04/learning-jsf-2-ajax-in-jsf-using-faj...

 all of them works perfectly on local Tomcat (not GAE)

 But when i try the same on GAE, nothing works, im not getting any
 errors.. its just do nothing...
 Here the simplest example

 On each char type I'm supposed to sea the same char typed beneath and
 beneath it a counter of chars (text length) - again.. this works
 perfectly on tomcat server... (not GAE)

 Any ideas what am i missing?

 h:form
   h:panelGrid
      h:inputText value=#{bean.text} 
         f:ajax event=keyup render=text count
 listener=#{bean.countListener}/
      /h:inputText
      h:outputText id=text value=#{bean.text} /
      h:outputText id=count value=#{bean.count} /
   /h:panelGrid
 /h:form

 java code:
 package general;

 import javax.faces.bean.ManagedBean;
 import javax.faces.event.AjaxBehaviorEvent;

 @ManagedBean(name = bean)
 public class Bean {
   private String text; // getter and setter
   private Integer count;

    public void countListener(AjaxBehaviorEvent event) {
           count = text.length();
        }

        public String getText() {
                return text;
        }

        public void setText(String text) {
                this.text = text;
        }

        public Integer getCount() {
                return count;
        }

        public void setCount(Integer count) {
                this.count = count;
        }

 }

 Thanks ahead.

 Daniel

 --
 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.comgoogle-appengine-java%2B
  unsubscr...@googlegroups.com
 .
 For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.

-- 
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: JSF2 f:ajax does not work for me... Any Ideas Why?

2010-09-24 Thread Daniel
I tried this too... but its the same.. does not work :/

On Sep 24, 6:15 pm, Chris (Google Employee) api.ch...@google.com
wrote:
 Hi Daniel,

 For a possible workaround, have you tried manually coding the
 JavaScript for the Ajax request call?

 For example, instead of:
 h:commandButton
   f:ajax render=foo/
 /h:commandButton

 ... manually coding the JavaScript for the Ajax request call would be:

 h:commandButton onclick=jsf.ajax.request(this,event,
 {render:'foo'});return false;/

 This was taken 
 from:http://andyschwartz.wordpress.com/2009/07/31/whats-new-in-jsf-2/#ajax...

 Also, is this the only JSF2 tag that you've encountered that does't
 appear to be working in App Engine?
 -Chris

 On Sep 24, 8:31 am, Daniel vedm...@gmail.com wrote:

  I tried also mojarra-2.0.3-FCS-binary.zip but without any luck also..
  no ajax for me :/

  On Sep 23, 9:22 pm, Daniel vedm...@gmail.com wrote:

   Hi
   this does not help... same behavior...

   i got my jsf jars from here 
   :http://javadocs.wordpress.com/2009/10/17/mojarra-jsf-2-0-rc2-and-goog...
   and followed the setting of web.xml from 
   herehttps://sites.google.com/a/wildstartech.com/adventures-in-java/Java-P...

   maybe you used different sources? if you do please let me know, also
   maybe you can post your web.xml ? might be i missed something...

   any other ideas are welcomed.

   Thanks ahead

   Daniel

   On Sep 23, 3:24 pm, Jaziel Leandro jaziel...@gmail.com wrote:

I have the same error few times ago.
Try this, make you Bean implements Serializable.

2010/9/23 Daniel vedm...@gmail.com

 I'm want to use the f:ajax tag of the JSF 2 on app engine... but
 without any luck

 I tried some very simple examples taken from

http://mkblog.exadel.com/2010/04/learning-jsf-2-ajax-in-jsf-using-faj...

 all of them works perfectly on local Tomcat (not GAE)

 But when i try the same on GAE, nothing works, im not getting any
 errors.. its just do nothing...
 Here the simplest example

 On each char type I'm supposed to sea the same char typed beneath and
 beneath it a counter of chars (text length) - again.. this works
 perfectly on tomcat server... (not GAE)

 Any ideas what am i missing?

 h:form
   h:panelGrid
      h:inputText value=#{bean.text} 
         f:ajax event=keyup render=text count
 listener=#{bean.countListener}/
      /h:inputText
      h:outputText id=text value=#{bean.text} /
      h:outputText id=count value=#{bean.count} /
   /h:panelGrid
 /h:form

 java code:
 package general;

 import javax.faces.bean.ManagedBean;
 import javax.faces.event.AjaxBehaviorEvent;

 @ManagedBean(name = bean)
 public class Bean {
   private String text; // getter and setter
   private Integer count;

    public void countListener(AjaxBehaviorEvent event) {
           count = text.length();
        }

        public String getText() {
                return text;
        }

        public void setText(String text) {
                this.text = text;
        }

        public Integer getCount() {
                return count;
        }

        public void setCount(Integer count) {
                this.count = count;
        }

 }

 Thanks ahead.

 Daniel

 --
 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.comgoogle-appengine-java%2B
  unsubscr...@googlegroups.com
 .
 For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.

-- 
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: JSF2 f:ajax does not work for me... Any Ideas Why?

2010-09-24 Thread Daniel
I tried this too... but its the same.. does not work :/

On Sep 24, 6:15 pm, Chris (Google Employee) api.ch...@google.com
wrote:
 Hi Daniel,

 For a possible workaround, have you tried manually coding the
 JavaScript for the Ajax request call?

 For example, instead of:
 h:commandButton
   f:ajax render=foo/
 /h:commandButton

 ... manually coding the JavaScript for the Ajax request call would be:

 h:commandButton onclick=jsf.ajax.request(this,event,
 {render:'foo'});return false;/

 This was taken 
 from:http://andyschwartz.wordpress.com/2009/07/31/whats-new-in-jsf-2/#ajax...

 Also, is this the only JSF2 tag that you've encountered that does't
 appear to be working in App Engine?
 -Chris

 On Sep 24, 8:31 am, Daniel vedm...@gmail.com wrote:

  I tried also mojarra-2.0.3-FCS-binary.zip but without any luck also..
  no ajax for me :/

  On Sep 23, 9:22 pm, Daniel vedm...@gmail.com wrote:

   Hi
   this does not help... same behavior...

   i got my jsf jars from here 
   :http://javadocs.wordpress.com/2009/10/17/mojarra-jsf-2-0-rc2-and-goog...
   and followed the setting of web.xml from 
   herehttps://sites.google.com/a/wildstartech.com/adventures-in-java/Java-P...

   maybe you used different sources? if you do please let me know, also
   maybe you can post your web.xml ? might be i missed something...

   any other ideas are welcomed.

   Thanks ahead

   Daniel

   On Sep 23, 3:24 pm, Jaziel Leandro jaziel...@gmail.com wrote:

I have the same error few times ago.
Try this, make you Bean implements Serializable.

2010/9/23 Daniel vedm...@gmail.com

 I'm want to use the f:ajax tag of the JSF 2 on app engine... but
 without any luck

 I tried some very simple examples taken from

http://mkblog.exadel.com/2010/04/learning-jsf-2-ajax-in-jsf-using-faj...

 all of them works perfectly on local Tomcat (not GAE)

 But when i try the same on GAE, nothing works, im not getting any
 errors.. its just do nothing...
 Here the simplest example

 On each char type I'm supposed to sea the same char typed beneath and
 beneath it a counter of chars (text length) - again.. this works
 perfectly on tomcat server... (not GAE)

 Any ideas what am i missing?

 h:form
   h:panelGrid
      h:inputText value=#{bean.text} 
         f:ajax event=keyup render=text count
 listener=#{bean.countListener}/
      /h:inputText
      h:outputText id=text value=#{bean.text} /
      h:outputText id=count value=#{bean.count} /
   /h:panelGrid
 /h:form

 java code:
 package general;

 import javax.faces.bean.ManagedBean;
 import javax.faces.event.AjaxBehaviorEvent;

 @ManagedBean(name = bean)
 public class Bean {
   private String text; // getter and setter
   private Integer count;

    public void countListener(AjaxBehaviorEvent event) {
           count = text.length();
        }

        public String getText() {
                return text;
        }

        public void setText(String text) {
                this.text = text;
        }

        public Integer getCount() {
                return count;
        }

        public void setCount(Integer count) {
                this.count = count;
        }

 }

 Thanks ahead.

 Daniel

 --
 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.comgoogle-appengine-java%2B
  unsubscr...@googlegroups.com
 .
 For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.

-- 
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: JSF2 f:ajax does not work for me... Any Ideas Why?

2010-09-24 Thread Daniel
seems to be solved by removing primefaces-2.2.M1.jar

weird???

but works now...


On Sep 24, 7:56 pm, Daniel vedm...@gmail.com wrote:
 I tried this too... but its the same.. does not work :/

 On Sep 24, 6:15 pm, Chris (Google Employee) api.ch...@google.com
 wrote:

  Hi Daniel,

  For a possible workaround, have you tried manually coding the
  JavaScript for the Ajax request call?

  For example, instead of:
  h:commandButton
    f:ajax render=foo/
  /h:commandButton

  ... manually coding the JavaScript for the Ajax request call would be:

  h:commandButton onclick=jsf.ajax.request(this,event,
  {render:'foo'});return false;/

  This was taken 
  from:http://andyschwartz.wordpress.com/2009/07/31/whats-new-in-jsf-2/#ajax...

  Also, is this the only JSF2 tag that you've encountered that does't
  appear to be working in App Engine?
  -Chris

  On Sep 24, 8:31 am, Daniel vedm...@gmail.com wrote:

   I tried also mojarra-2.0.3-FCS-binary.zip but without any luck also..
   no ajax for me :/

   On Sep 23, 9:22 pm, Daniel vedm...@gmail.com wrote:

Hi
this does not help... same behavior...

i got my jsf jars from here 
:http://javadocs.wordpress.com/2009/10/17/mojarra-jsf-2-0-rc2-and-goog...
and followed the setting of web.xml from 
herehttps://sites.google.com/a/wildstartech.com/adventures-in-java/Java-P...

maybe you used different sources? if you do please let me know, also
maybe you can post your web.xml ? might be i missed something...

any other ideas are welcomed.

Thanks ahead

Daniel

On Sep 23, 3:24 pm, Jaziel Leandro jaziel...@gmail.com wrote:

 I have the same error few times ago.
 Try this, make you Bean implements Serializable.

 2010/9/23 Daniel vedm...@gmail.com

  I'm want to use the f:ajax tag of the JSF 2 on app engine... but
  without any luck

  I tried some very simple examples taken from

 http://mkblog.exadel.com/2010/04/learning-jsf-2-ajax-in-jsf-using-faj...

  all of them works perfectly on local Tomcat (not GAE)

  But when i try the same on GAE, nothing works, im not getting any
  errors.. its just do nothing...
  Here the simplest example

  On each char type I'm supposed to sea the same char typed beneath 
  and
  beneath it a counter of chars (text length) - again.. this works
  perfectly on tomcat server... (not GAE)

  Any ideas what am i missing?

  h:form
    h:panelGrid
       h:inputText value=#{bean.text} 
          f:ajax event=keyup render=text count
  listener=#{bean.countListener}/
       /h:inputText
       h:outputText id=text value=#{bean.text} /
       h:outputText id=count value=#{bean.count} /
    /h:panelGrid
  /h:form

  java code:
  package general;

  import javax.faces.bean.ManagedBean;
  import javax.faces.event.AjaxBehaviorEvent;

  @ManagedBean(name = bean)
  public class Bean {
    private String text; // getter and setter
    private Integer count;

     public void countListener(AjaxBehaviorEvent event) {
            count = text.length();
         }

         public String getText() {
                 return text;
         }

         public void setText(String text) {
                 this.text = text;
         }

         public Integer getCount() {
                 return count;
         }

         public void setCount(Integer count) {
                 this.count = count;
         }

  }

  Thanks ahead.

  Daniel

  --
  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.comgoogle-appengine-java%2B
   unsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.

-- 
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: JSF2 f:ajax does not work for me... Any Ideas Why?

2010-09-23 Thread Daniel
Hi
this does not help... same behavior...

i got my jsf jars from here :
http://javadocs.wordpress.com/2009/10/17/mojarra-jsf-2-0-rc2-and-google-app-engine-sdk-1-2-6/
and followed the setting of web.xml from here
https://sites.google.com/a/wildstartech.com/adventures-in-java/Java-Platform-Enterprise-Edition/JavaServer-Faces/sun-javaserver-faces-reference-implementation/configuring-jsf-20-to-run-on-the-google-appengine

maybe you used different sources? if you do please let me know, also
maybe you can post your web.xml ? might be i missed something...

any other ideas are welcomed.

Thanks ahead

Daniel

On Sep 23, 3:24 pm, Jaziel Leandro jaziel...@gmail.com wrote:
 I have the same error few times ago.
 Try this, make you Bean implements Serializable.

 2010/9/23 Daniel vedm...@gmail.com

  I'm want to use the f:ajax tag of the JSF 2 on app engine... but
  without any luck

  I tried some very simple examples taken from

 http://mkblog.exadel.com/2010/04/learning-jsf-2-ajax-in-jsf-using-faj...

  all of them works perfectly on local Tomcat (not GAE)

  But when i try the same on GAE, nothing works, im not getting any
  errors.. its just do nothing...
  Here the simplest example

  On each char type I'm supposed to sea the same char typed beneath and
  beneath it a counter of chars (text length) - again.. this works
  perfectly on tomcat server... (not GAE)

  Any ideas what am i missing?

  h:form
    h:panelGrid
       h:inputText value=#{bean.text} 
          f:ajax event=keyup render=text count
  listener=#{bean.countListener}/
       /h:inputText
       h:outputText id=text value=#{bean.text} /
       h:outputText id=count value=#{bean.count} /
    /h:panelGrid
  /h:form

  java code:
  package general;

  import javax.faces.bean.ManagedBean;
  import javax.faces.event.AjaxBehaviorEvent;

  @ManagedBean(name = bean)
  public class Bean {
    private String text; // getter and setter
    private Integer count;

     public void countListener(AjaxBehaviorEvent event) {
            count = text.length();
         }

         public String getText() {
                 return text;
         }

         public void setText(String text) {
                 this.text = text;
         }

         public Integer getCount() {
                 return count;
         }

         public void setCount(Integer count) {
                 this.count = count;
         }

  }

  Thanks ahead.

  Daniel

  --
  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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.

-- 
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] gae.encoded-pk not working on MySQL

2010-09-21 Thread Daniel Ruiz Giménez
Hi all,

I'm experiencing some problems using gae.encoded-pk on MySQL.

Reading the documentation (http://code.google.com/intl/en/appengine/
docs/java/datastore/creatinggettinganddeletingdata.html) I found that:

Encoded string keys allow you to write your application in a portable
manner...

but I can't find any information on how to achieve this. Consider this
sample code from the docs:

@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
@Extension(vendorName=datanucleus, key=gae.encoded-pk,
value=true)
private String encodedKey;

This will work on appengine, but if used on an alternative stack of
DataNucleus + MySQL, then it won't work (the automatic schema tool
ignored the extension, and attempts to create a varchar column with an
AUTO_INCREMENT attribute, which makes no sense).

Does anybody know how to achieve the desired behaviour?

Many thanks in advance!!

-- 
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] Channel API still not live...

2010-09-19 Thread Daniel Guermeur
Hello there,

Google announced Channel API for 1.3.6 but it is still not live in
1.3.7. It runs in dev mode but when deployed I get a 'feature not
implemented' exception.

Does anyone has any updated on this? Google team?

Thank you.
Daniel

-- 
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] App Engine Channel API release date on production?

2010-09-12 Thread Daniel Guermeur
Hello there,

I thought Channel API would be enabled with v1.3.6. We are now at
v1.3.7, and I get an error when trying it:

Uncaught exception from servlet
com.google.apphosting.api.ApiProxy$FeatureNotEnabledException: The
channel service is not enabled.

Could anyone share some info regarding its release?

Daniel

-- 
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] Qestion regarding getObjectById

2010-09-07 Thread Daniel
I've noticed that i can perform query using the getObjectById while
using the ID or the Key

pm.getObjectById(myClass.class, idString);
pm.getObjectById(myClass.class, keyString);

idString and keyString are different string values,

is it possible because of the fact that the id attribute is defined:

@PrimaryKey
@Persistent
private String id;

if i define the id Primary key, this allows me to use the
getObjectById with different values (with id value or with key value
of the same object to get this same object)

which way is better ? Using the id value or the key value?

-- 
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: Facebook API Integration

2010-08-21 Thread Luis Daniel Mesa Velasquez
I am doing it with a servletfilter to do the OAUTH with the graph
api... the servlet fliter does authentication and in my servlets i
call the static methods of the filter passing the tokens...

On Aug 20, 5:30 pm, Ahmed Shoeib ahmedelsayed.sho...@gmail.com
wrote:
 sure i need to know more about it
 i you can support an example explain it
 it will be very helpful

 On Aug 20, 6:23 am, Benjamin bsaut...@gmail.com wrote:



  I integrate my app engine apps with facebook without any third part
  api - just http, oauth and the facebook graph - let me know if you'd
  like to know more.

 http://developers.facebook.com/docs/api

  On Aug 18, 3:40 pm, Peter Simun si...@seges.sk wrote:

   This can helps youhttp://java.dzone.com/articles/efective-json-google-web

   Peer

   On 18. Aug, 13:05 h., Ahmed Shoeib ahmedelsayed.sho...@gmail.com
   wrote:

hi all ,

i want a simple application explain how to integrate facebook api
with my app engine application

best regards,
ahmed shoeib
java developer

-- 
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: Ecryption best practices (server side, client side, password handling)?

2010-08-01 Thread Luis Daniel Mesa Velasquez
I use both... but i guess it's just my case... my app is connected to
Facebook and since something in their API catches fire daily over
there, i decided to use one thing for something and another for the
rest... i have to do a HmacSHA256 verification to ensure the data
comes from FB and there's also the OpenGraph thing with token and code
trading... check GWT Crypto to encrypt client-side... use https (if
you can)... and verify the data comes from where you think it comes at
the server side... and remember that if someone has access to the
datastore it doesn't matter if you encrypt, hash or whatever... if
they delete the info, it's the same thing. Control the access to the
information and you'll be on the safeR side... nothing is perfect...

On Jul 31, 12:07 pm, Sven sven.ti...@googlemail.com wrote:
 Dear group,

 I want to extend a GWT/GAE application by offering the option to
 encrypt information entered by the user on client side in the
 database. The goal is to increase trust when storing potentially
 sensitive data, e.g. to prevent that people who have access to the DB
 (like me) have read access to the stored information.

 For client-side encryption using GWT I found this 
 post:http://www.mooreds.com/wordpress/archives/000529

 However, others do not even recommend to compute password hashs on the
 client and propose to do that on the 
 server:http://www.owasp.org/index.php/Hashing_Javahttp://stackoverflow.com/questions/1238628/md5-hash-for-password-stri...http://stackoverflow.com/questions/695813/how-could-you-encrypt-user-...

 From user's perspective, I would not be comfortable with transmitting
 my data unencrypted to the server (even using HTTPS), as the server-
 side may for example log my information (and my password!). Especially
 for the password-part I would feel unconfortable, as many people tend
 to reuse their passwords (please no discussion about this :-)).

 Currently, I see two options:
 a) Encrypt and decrypt the information on the client using JS/GWT.
 Pro: The password never leaves the browser, the unencrypted
 information never leaves the browser. Con: Depending on the size of
 the data the encryption/decryption may be slow; if loaded via HTTP,
 the JS code may be compromised, etc.
 b) Encrypt and decrypt the information on the server. Pro: Fast. Con:
 The information is transmitted unencrypted.

 What would be your recommendation?

 In case of server-side encryption, would it make sense to hash the
 password on client side and to use the hash to encrypt/decrypt? Or
 would that be a no-go?

 What happens if the user forgets his/her password? All data lost, I
 guess?

 I have no deep practical experience with cryptography, so I would
 appreciate any suggestions or pointers to resources in the web. My
 goal is not to have a bullet proof solution for highly sensitive
 information, but it should be an improvement compared to the current
 implementation (no HTTPs, no encryption).

 Thanks
 Sven

 PS: x-post Google App Engine for Java, Google Web Toolkit

-- 
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: Dance Dance Robot error / Channel API

2010-07-28 Thread Daniel Guermeur
Thanks Don. Including dev-channel-js.js works perfectly.

Daniel

On Jul 27, 10:14 am, Don Schwarz schwa...@google.com wrote:
 Sorry, to be clear, I meant that you should create an /_ah/channel directory
 at the top of your war and copy dev-channel-js.js so it is a file named
 'jsapi' in that /_ah/channel directory.  This is the path that will work
 automatically in the 1.3.6 DevAppServer and in prod when this feature
 launches publicly.

 If you name the script something else (as you've done), that will work fine
 for now but you'll need to remember to adjust the path later.



 On Mon, Jul 26, 2010 at 9:47 PM, GoSharp Lite gosharpl...@gmail.com wrote:
  Thanks, Don. It works like a charm after I include below line in html.
  script src=/_ah/channel/jsapi/dev-channel-js.js/script

  On Jul 26, 11:03 pm, Don Schwarz schwa...@google.com wrote:
   Yes, this feature isn't launched in the production server yet.

   You can try it out in the 1.3.5 DevAppServer, but it requires a slightly
   workaround:

   Extract the apphosting/tools/dev-channel-js.js file from
   appengine-api-1.0-sdk-1.3.5.jar and move it to /_ah/channel/jsapi in your
   war directory (as if it were a static file).

   Your HTML should then use script src=/_ah/channel/jsapi.  You should
  not
   referencehttp://talkgadget.google.com/talkgadget/channel.jsdirectly.
   That
   path will never work in the DevAppServer.  The dance-dance-robot sample
  will
   be updated when 1.3.6 is launched and this works in the DevAppServer
  without
   the above workaround.

   On Mon, Jul 19, 2010 at 10:13 PM, GoSharp Lite gosharpl...@gmail.com
  wrote:

I have the same error using dev server.

If you deploy your app to production server, below error log shows
channel service is not enable.

exception: com.google.apphosting.api.ApiProxy
$FeatureNotEnabledException: The channel service is not enabled.

It seems we have to patiently wait:)

On Jul 20, 10:36 am, Daniel Guermeur superco...@gmail.com wrote:
 Thanks for the tip about channel.js. This is what I needed.

 Now I get an error when pushing a message to a client. I get this:

 com.google.appengine.api.channel.ChannelFailureException: An
 unexpected error occurred.
 Caused by: com.google.apphosting.api.ApiProxy$ApplicationException:
 ApplicationError: 2:

 Here is the stack trace. Let me know of any ideas you might have.

 Thanks!
 Daniel

 SEVERE: Failed to push the message
 com.metadot.book.stalkrapp.shared.mess...@1010a3b to client channel-
 a4kt0t-stalkrappt...@example.com-1
 com.google.appengine.api.channel.ChannelFailureException: An
 unexpected error occurred.
         at

  com.google.appengine.api.channel.ChannelServiceImpl.sendMessage(ChannelServ 
  iceImpl.java:
 59)
         at

  com.metadot.book.stalkrapp.server.PushServer.sendMessageToOneUser(PushServe 
  r.java:
 82)
         at

  com.metadot.book.stalkrapp.server.FriendsServiceImpl.getFriend(FriendsServi 
  ceImpl.java:
 283)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
  Method)
         at

  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
 39)
         at

  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
  l.java:
 25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at

  com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime 
  .java:
 100)
         at
 com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
 562)
         at

  com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServi 
  ceServlet.java:
 188)
         at

  com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServi 
  ceServlet.java:
 224)
         at

  com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(Abstract 
  RemoteServiceServlet.java:
 62)
         at
  javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
         at
  javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
         at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
 511)
         at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1166)
         at

  com.metadot.book.stalkrapp.server.servlets.LoginFilter.doFilter(LoginFilter 
  .java:
 31)
         at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
         at

  com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFi 
  lter.java:
 51)
         at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
         at

  com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(Trans 
  actionCleanupFilter.java:
 43

[appengine-java] Re: Channel api / Dance dance robot: what is ApplicationError: 2:

2010-07-28 Thread Daniel Guermeur
Thanks Don. Works perfectly.

Here is a recap to summarize all the steps so others can do it too:

1. Extract the apphosting/tools/dev-channel-js.js file from
appengine-api-1.0-sdk-1.3.5.jar
2. Create a directory _ah/channel in your war directory
3. Rename dev-channel-js.js to jsapi and place it in _ah/channel dir.
4. In your main html file include this jsapi file with script src=/
_ah/channel/jsapi.


Daniel

-- 
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] Channel api / Dance dance robot: what is ApplicationError: 2:

2010-07-24 Thread Daniel Guermeur
Hello there,

I am trying out the Channel API with my own project and the Google
demo app Dance Dance Robot. In both cases I get ApplicationError 2
when trying to push a message.  There is no doc but all libraries are
available in the lastest GAE release. Here is the error:

com.google.appengine.api.channel.ChannelFailureException: An
unexpected error occurred.
Caused by: com.google.apphosting.api.ApiProxy$ApplicationException:
ApplicationError: 2:

See trace below.

What is ApplicationError2, how to fix it?

Any help / pointer would be appreciated.

Thanks.
Daniel

SEVERE: Failed to push the message
com.metadot.book.stalkrapp.shared.mess...@1010a3b to client channel-
a4kt0t-stalkrappt...@example.com-1
com.google.appengine.api.channel.ChannelFailureException: An
unexpected error occurred.
at
com.google.appengine.api.channel.ChannelServiceImpl.sendMessage(ChannelServ
iceImpl.java:
59)
at
com.metadot.book.stalkrapp.server.PushServer.sendMessageToOneUser(PushServe
r.java:
82)
at
com.metadot.book.stalkrapp.server.FriendsServiceImpl.getFriend(FriendsServi
ceImpl.java:
283)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
l.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime 
.java:
100)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
562)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServi
ceServlet.java:
188)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServi
ceServlet.java:
224)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(Abstract
RemoteServiceServlet.java:
62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
713)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
806)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
511)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1166)
at
com.metadot.book.stalkrapp.server.servlets.LoginFilter.doFilter(LoginFilter 
.java:
31)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFi
lter.java:
51)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(Trans
actionCleanupFilter.java:
43)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFile
Filter.java:
122)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
765)
at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
418)
at
com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEn
gineWebAppContext.java:
70)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at
com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:349)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
542)
at org.mortbay.jetty.HttpConnection
$RequestHandler.content(HttpConnection.java:938)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:
755)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:
218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:
404)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
409)
at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:582)
Caused by: com.google.apphosting.api.ApiProxy$ApplicationException:
ApplicationError: 2:
at
com.google.appengine.api.channel.dev.LocalChannelService.sendChannelMessage
(LocalChannelService.java:
91)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39

[appengine-java] Re: Dance Dance Robot error / Channel API

2010-07-19 Thread Daniel Guermeur
Thanks for the tip about channel.js. This is what I needed.

Now I get an error when pushing a message to a client. I get this:

com.google.appengine.api.channel.ChannelFailureException: An
unexpected error occurred.
Caused by: com.google.apphosting.api.ApiProxy$ApplicationException:
ApplicationError: 2:

Here is the stack trace. Let me know of any ideas you might have.

Thanks!
Daniel


SEVERE: Failed to push the message
com.metadot.book.stalkrapp.shared.mess...@1010a3b to client channel-
a4kt0t-stalkrappt...@example.com-1
com.google.appengine.api.channel.ChannelFailureException: An
unexpected error occurred.
at
com.google.appengine.api.channel.ChannelServiceImpl.sendMessage(ChannelServiceImpl.java:
59)
at
com.metadot.book.stalkrapp.server.PushServer.sendMessageToOneUser(PushServer.java:
82)
at
com.metadot.book.stalkrapp.server.FriendsServiceImpl.getFriend(FriendsServiceImpl.java:
283)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:
100)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
562)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
188)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
224)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
511)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1166)
at
com.metadot.book.stalkrapp.server.servlets.LoginFilter.doFilter(LoginFilter.java:
31)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
51)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
43)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
122)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
418)
at
com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
70)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:349)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
542)
at org.mortbay.jetty.HttpConnection
$RequestHandler.content(HttpConnection.java:938)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
409)
at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:582)
Caused by: com.google.apphosting.api.ApiProxy$ApplicationException:
ApplicationError: 2:
at
com.google.appengine.api.channel.dev.LocalChannelService.sendChannelMessage(LocalChannelService.java:
91)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.appengine.tools.development.ApiProxyLocalImpl
$AsyncApiCall.call

[appengine-java] App Engine integration with Google Apps Marketplace

2010-07-18 Thread Daniel Pascariu
Hi,

I'm trying to enable SSO for my App Engine app in order to put it on
the Google Marketplace.
Let's say that I have my GAE app running at www.example.com. When I
publish it to the Google Marketplace, a Google Apps user (say
us...@domain1.com) will be able to click on a link in the Google menu
pointing to my site - something like this:
http://www.example.com/home?from=googledomain=domain1.com

Now, acording to this docu (http://code.google.com/appengine/docs/java/
users/overview.html) I should use the Users API to authenticate the
user.
I assume I have to use  userService.createLoginURL method somehow and
use the domain domain1.com (which is passed as a parameter to my /
home servlet).

I have tried something like this:

SetString attributesRequest = new HashSetString();
attributesRequest.add(openid.mode=checkid_immediate);
attributesRequest.add(openid.ns=http://specs.openid.net/auth/2.0;);
attributesRequest.add(openid.return_to= + thisUrl);
userService.createLoginURL(thisUrl, domain1.com, https://
www.google.com/accounts/o8/id, attributesRequest);

The probem is that the login URL which I get works for google accounts
only (like gmail accounts) - I do not get any Google Apps page where a
user like us...@domain1.com could login :(

Does anybody know how I can get this working ? Or am I on the wrong
track ?

Many thanks for the help !!
Daniel

-- 
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: Dance Dance Robot error / Channel API

2010-07-17 Thread Daniel Guermeur
Yes it is in App Engine 1.3.5. Look in the jar. I've got the backend
working already. There is no doc, just classes.

Among other things here is what there is:

import com.google.appengine.api.channel.ChannelMessage;
import com.google.appengine.api.channel.ChannelService;
import com.google.appengine.api.channel.ChannelServiceFactory;

and it all works.

Daniel

On Jul 16, 6:42 pm, Rahul Ravikumar tikura...@gmail.com wrote:
 The Channel API for Google App Engine is not out yet!

 On Jul 15, 6:11 pm, Daniel Guermeur superco...@gmail.com wrote:



  Hello there,

  I am building a GWT+ GAE app based on Dance Dance Robot app, the demo
  Google IO demo app showcased at Google IO.

  I am using the Channel API (Java AppEngine 1.3.5) . I am almost there
  but there is one hick up on the GWT client side (Java):

  When running the app I get an error:
  ==
  - Uncaught exception escaped.
  com.google.core.client.JavaScriptException: (TypeError): $wnd.goog is
  undefined.
  ==

  This comes from the ChannelFactory.java on the client side. Here it
  is:

  public class ChannelFactory {
      public static final native Channel createChannel(String
  channelId) /*-{
        return new $wnd.goog.appengine.Channel(channelId);
      }-*/;

  }

  Again this is straight from the Dance Dance Robot demo app.

  I am pretty sure it is a stupid mistake on my part but can't find it.

  Any suggestion would be greatly appreciated.

  Daniel

-- 
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] Dance Dance Robot error / Channel API

2010-07-15 Thread Daniel Guermeur
Hello there,

I am building a GWT+ GAE app based on Dance Dance Robot app, the demo
Google IO demo app showcased at Google IO.

I am using the Channel API (Java AppEngine 1.3.5) . I am almost there
but there is one hick up on the GWT client side (Java):

When running the app I get an error:
==
- Uncaught exception escaped.
com.google.core.client.JavaScriptException: (TypeError): $wnd.goog is
undefined.
==

This comes from the ChannelFactory.java on the client side. Here it
is:

public class ChannelFactory {
public static final native Channel createChannel(String
channelId) /*-{
  return new $wnd.goog.appengine.Channel(channelId);
}-*/;
}

Again this is straight from the Dance Dance Robot demo app.

I am pretty sure it is a stupid mistake on my part but can't find it.

Any suggestion would be greatly appreciated.


Daniel

-- 
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: Problem persist JDO- one to many

2010-07-14 Thread Luis Daniel Mesa Velasquez
It's only required for bidirectional mapping but he has a Torneo in
the Equipo, i assumed it was bidirectional by reading that... but i
could have been biased in the assumption... I found all the info here
useful... but i think the DOCS should be updated. I know all this info
ALREADY IS in the docs at
http://code.google.com/appengine/docs/java/datastore/relationships.html#Owned_One_to_One_Relationships
but since there's a little doubt it should be repeated in
http://code.google.com/appengine/docs/java/datastore/relationships.html#Owned_One_to_Many_Relationships

On Jul 13, 12:17 am, Prashant nextprash...@gmail.com wrote:
 Yes, it worked without explicitly detaching fields with just  
 defaultFetchGroup
 set to true.

 btw,
 mappedBy property is required only for bi-directional mapping.

 --
 Prashantwww.claymus.com

-- 
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: PDF Files

2010-07-14 Thread Daniel
But it says that on Will it play in App Engine

That its incompatible:

iText
Version(s): ?
Status: INCOMPATIBLE

* iText relies on several classes not in the JRE class whitelist
including java.awt.Color and java.nio.MappedByteBuffer. A bug has been
filed at 
http://sourceforge.net/tracker/?func=detailatid=365255aid=2810312group_id=15255.

On Jul 15, 7:51 am, Shyam Visamsetty shyamsunder...@gmail.com wrote:
 Chris,

 Did you want to generate a PDF File on the GAE?
 If yes, you can use the iText library for generating the pdfs on the
 app engine. You can have a servlet to download the PDF file you
 generated.

 Thanks,
 Shyam Visamsetty

 On Jul 14, 1:36 pm, chrischelmi michelvo...@gmail.com wrote:

  Helle every body,
  I am working on a Google App Engine Project that consists of uploading
  PDF files and displaying it after.
  I use a Blob to store the PDF file
  i want to do a process to download this PDF file by giving the a
  specifics name.
  Is there a way to generaye PDF files with GAE?
  i have a process to display the PDF but i want to download it direcly
  from an URL.

-- 
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 Server Faces 2.0 does not works in GAE (for me)

2010-07-13 Thread Daniel
It looks fine to me... all ur settings and configs aresame as at my
web app i also took them from that web site

If i were u i would delete the project and build it from scratch.. its
probably some silly mistake... its not that u in the middle of the
project..
u just started it


should work


good luck

On Jul 13, 3:02 am, SammyBar sammy...@gmail.com wrote:
 Hi all,

 I'm trying to config my first Java Server Faces project with GAE. I
 have already configured my Eclipse following instructions published 
 athttps://sites.google.com/a/wildstartech.com/adventures-in-java/Java-P...,
 and also included the fix on the jsf-impl-gae.jar. I'm able to run my
 project in Eclipse without errors. The console displays INFO: The
 server is running athttp://localhost:/;. It looks everything is
 OK.
 But when I direct the browser to the above mentioned URL, I get a HTTP
 404 error /welcome.jsf not found
 I'm able to put a breakpoint in the index.jsp page at %
 response.sendRedirect(welcome.jsf); % It confirms me the app is
 working because the breakpoint is reached, but it looks like the
 server is unable to understand the welcome.xhtml file should be
 processed as welcome.jsf. Similarly by pointing the browser 
 tohttp://localhost:/welcome.xhtmlalso returns a 404 error. What is
 wrong with my configuration?

 Any hint is welcomed.
 Thanks in advance
 Sammy

 Follows the appengine-web.xml and web.xml files from my war/WEB-INF
 folder which are copies of the reccommended files published in the
 above mentioned site:

 --- appengine-web.xml
 
 ?xml version=1.0 encoding=utf-8?
 appengine-web-app xmlns=http://appengine.google.com/ns/1.0;
         applicationTestJSF/application
         version1/version
         sessions-enabledtrue/sessions-enabled

         !-- Configure java.util.logging --
         system-properties
                 property name=java.util.logging.config.file value=WEB-INF/
 logging.properties/
         /system-properties

 /appengine-web-app

 --- web.xml
 
 ?xml version=1.0 encoding=utf-8?
 web-app version=2.5 xmlns=http://java.sun.com/xml/ns/javaee;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   
 xsi:schemaLocation=http://java.sun.com/xml/ns/javaeehttp://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;
   display-name
     Wildstar Technologies, LLC. Google AppEngine JSF 2.0 Template
   /display-name
   description
     Template JSF 2.0 application configured to run on the Google
     AppEngine for Java.
   /description
   !-- * GAE 1.3.0 appears to handle server-side state saving.
 *  --
   context-param
     param-namejavax.faces.STATE_SAVING_METHOD/param-name
     param-valueserver/param-value
   /context-param
   context-param
   param-namejavax.faces.DEFAULT_SUFFIX/param-name
     param-value.xhtml/param-value
   /context-param
   !-- GAE Bug 1506 JSP 2.1 API but 2.0 Implementation --
   context-param
     param-namecom.sun.faces.expressionFactory/param-name
     param-valuecom.sun.el.ExpressionFactoryImpl/param-value
   /context-param
   context-param
     description
       Set this flag to true if you want the JavaServer Faces
       Reference Implementation to validate the XML in your
       faces-config.xml resources against the DTD. Default
       value is false.
     /description
     param-namecom.sun.faces.validateXml/param-name
     param-valuetrue/param-value
   /context-param
   !-- * Accommodate Single-Threaded Requirement of Google
 AppEngine  --
   context-param
     description
       When enabled, the runtime initialization and default
 ResourceHandler
       implementation will use threads to perform their functions. Set
 this
       value to false if threads aren't desired (as in the case of
 running
       within the Google Application Engine).

       Note that when this option is disabled, the ResourceHandler will
 not
       pick up new versions of resources when ProjectStage is
 development.
     /description
     param-namecom.sun.faces.enableThreading/param-name
     param-valuefalse/param-value
   /context-param
   !-- Faces Servlet --
   servlet
     servlet-nameFaces Servlet/servlet-name
     servlet-classjavax.faces.webapp.FacesServlet/servlet-class
     load-on-startup1/load-on-startup
   /servlet
   servlet-mapping
     servlet-nameFaces Servlet/servlet-name
     url-pattern/faces/*/url-pattern
     url-pattern*.jsf/url-pattern
   /servlet-mapping
   session-config
     session-timeout30/session-timeout
   /session-config
   welcome-file-list
     welcome-fileindex.jsp/welcome-file
     welcome-fileindex.xhtml/welcome-file
     welcome-fileindex.html/welcome-file
   /welcome-file-list
 /web-app

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

[appengine-java] I cannot access the url of my deployed application? getting Not Found

2010-07-13 Thread Daniel
Hi

I got no firewall on the PC and i can log in into the https://
appengine.google.com/dashboard?app_id=*

Than when i browse to Administration - Versions  i click on the link
of the application and getting immediate Not Found it looks like it
doesn't even try to surf to the web page

tried in FF and IE same result...

Am im missing something?

there is no trace in the logs either... so its not an application
error..

It used to work and suddenly starting couple of days ago, it
stopped.

What can i do?

-- 
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: JDO Collection of Serializables

2010-07-11 Thread Luis Daniel Mesa Velasquez
Are lists @Persistent by default? or is the @Element doing it for you?

On Jul 7, 12:46 pm, laserjim laser...@gmail.com wrote:
 Hey,

 I've attached some example code for reference:

 public class FooObject implements Serializable
 {
     private final String name;
     public FooObject(String name)
     {
         this.name = name;
     }
     public String toString()
     {
         return name;
     }

 }

 @PersistenceCapable
 public class Entity
 {
     @Element(serialized=true)
     ListFooObject foos = new ArrayListFooObject();

     public void addFoo(FooObject foo)
     {
         foos.add(foo);
     }
     public ListFooObject getFoos()
     {
         return foos;
     }

 }

 Please let me know if you see the problem.

 Thanks!

 On Jul 7, 10:30 am, laserjim laser...@gmail.com wrote:



  Hey,

  I agree that your comments above are true for serialized fields, but I
  can't find any documentation indicating such a behavior for
  collections (I assume supported collections here, as described in
  dataclasses#Collections).  My understanding is that a collection
  should behave correctly (inserts, deletes, etc) unless the list its
  self is serialized.  Can you provide a counter-example?

  With regards to the article Max Ross wrote (very good article by the
  way), the trick he used (where he made a copy in order to change the
  reference) was intended to dirty the state when a member is
  modified.  My FooObjects are immutable, so I don't think this applies
  to me.  Max Ross' article is completely consistent with my
  understanding of the documentation, but it's entirely possible I
  missed something, so let me know if this doesn't sound right to you.

  I BELIEVE the issue I'm running into is rooted in the exception I get
  when trying to persist a populated instance of the list: FooObject is
  not a supported property type.  I'm just not understanding why it
  isn't supported.  I would have expected that any serializable object
  would be permitted, especially if the @Element(serialized=true)
  annotation is specified.

  Basically, I'm looking for a code fragment that demonstrates the
  persistence of a collection of (more than one) non-standard
  serializable objects.

  Any ideas?

  Thanks!

  On Jul 7, 5:05 am, l.denardo lorenzo.dena...@gmail.com wrote:

   Hello,
   I guess your problem is the behavior of serialized fields (including
   collections of them, as far as I know), which is explained in Max
   Ross's post.
   Or something related to that.

   Anyway, some property fields are marked as updated and hence saved
   in the datastore only if you update the reference to the field, and
   they're not updated if you just use modifiers to operate on them.
   In practice, something like

    ArrayListFoo list = retrieve from datastore
   list.add(Foo foo)
   close persistence manager

   Does not modify the list in the datastore, so if it's saved as an
   empty list at creation it remains empty.
   Doing

    ArrayListFoo list = retrieve from datastore
    ArrayList copy = new ArrayList(list);
    copy.add(Foo foo)
    list = copy;
   close PM

   Usually makes everything work, since the original list field is marked
   as updated and persisted.
   As far as I know this is true both for serialized fields and for many
   collections.

   Regards
   Lorenzo

   On Jul 7, 1:28 pm, laserjim laser...@gmail.com wrote:

Hello Lorenzo,

Thanks, but perhaps my question wasn't clear.  I'm trying to make a
list of serialized objects, NOT a serialized list of objects.

For instance, assuming FooObject implements Serializable...

@Element(serialized=true)
ListFooObject foos = new ArrayListFooObject();

Unfortunately, the list is always empty.  Not quite sure why.

Thanks!

On Jul 7, 2:59 am, l.denardo lorenzo.dena...@gmail.com wrote:

 If you are using a serialized field you must add the serialized=true
 clause to your annotation

 @Persistent(serialized=true)
 MySerializableObject serializable;

 Also notice that JDO does not automatically detect if you update only
 the inner fields of the object you save, so you must substitute it
 with a copy to have it persisted.
 See this post for a very good overview and an explanation of the fact
 above:

http://groups.google.com/group/google-appengine-java/browse_thread/th...

 Regards
 Lorenzo

 On Jul 7, 1:33 am, laserjim laser...@gmail.com wrote:

  Hello,

  I'm still trying to persist a list of serializable objects. I would
  expect this to be a standard collection as described 
  here:http://code.google.com/appengine/docs/java/datastore/dataclasses.html...

  FooObject is serializable, but my attempt gave me an exception:
  FooObject is not a supported property type.

  Everything works as expected if I replace my serializable class
  (FooObject) with String.

  How can I persist my list of FooObjects using JDO?

  Thanks!


[appengine-java] How can i invalidate the session when user log in out from my app using the google log out link?

2010-07-09 Thread Daniel
Hi i got a JSF 2 web app, with the google login system, the thing is
that when the user click on the log out  (using the createLogoutURL
of the UserService class)

the session isnt being invalidated and the next user that doing login
from the same browser gets the previous user session.. and all the
data that was stored by the first user being seen by the next user

Maybe its possible to create a new session upon each user login...?


Any ideas?

-- 
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] TO GOOGLE GAE Java team: Book author looking for early access to next release (java)

2010-07-01 Thread Daniel Guermeur
Hello there

I am finishing a book on GWT + GAE with Packtpub. I would like to
include a chapter on **Browser Push (Comet) communication** feature.
This feature is 'on deck' as indicated on the GAE roadmap (http://
code.google.com/appengine/docs/roadmap.html). To write this chapter, I
would like to have an early access to the upcoming GAE Java release.

Could someone at Google help me with this?

Thank you so much.

Daniel

-- 
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] Spring 3.0.2 wants to use blacklisted javax.naming.Context when using factory-method ...workaround?

2010-05-21 Thread Daniel Kvasnicka jr.
Dear all,

I'm working on an app (JSF 2.0, Spring 3.0.2) and when I deploy it to
GAE, it dies on first request with this:

java.lang.IllegalArgumentException: Cannot find class
[javax.naming.Context]
at
org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java:
294)
at org.springframework.core.LocalVariableTableParameterNameDiscoverer
$LocalVariableTableVisitor.resolveMember(LocalVariableTableParameterNameDiscoverer.java:
229)
at org.springframework.core.LocalVariableTableParameterNameDiscoverer
$LocalVariableTableVisitor.visitEnd(LocalVariableTableParameterNameDiscoverer.java:
219)
at org.springframework.asm.ClassReader.accept(Unknown Source)
at org.springframework.asm.ClassReader.accept(Unknown Source)
at
org.springframework.core.LocalVariableTableParameterNameDiscoverer.inspectClass(LocalVariableTableParameterNameDiscoverer.java:
114)
at
org.springframework.core.LocalVariableTableParameterNameDiscoverer.getParameterNames(LocalVariableTableParameterNameDiscoverer.java:
71)
at
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:
447)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:
973)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:
879)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:
485)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:
456)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:291)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:
222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:
288)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:
190)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:
563)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:
872)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:
423)
at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:
276)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:
197)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:
47)
at
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:
548)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:
1250)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:
517)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
467)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
50)
at
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.createHandler(AppVersionHandlerMap.java:
191)
at
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.getHandler(AppVersionHandlerMap.java:
168)
at
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:
123)
at
com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:
250)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:5838)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:5836)
at
com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java:
24)
at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
398)
at com.google.net.rpc.impl.Server$2.run(Server.java:852)
at
com.google.tracing.LocalTraceSpanRunnable.run(LocalTraceSpanRunnable.java:
56)
at
com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan(LocalTraceSpanBuilder.java:
576)
at com.google.net.rpc.impl.Server.startRpc(Server.java:807)
at com.google.net.rpc.impl.Server.processRequest(Server.java:369)
at
com.google.net.rpc.impl.ServerConnection.messageReceived(ServerConnection.java:
442)
at
com.google.net.rpc.impl.RpcConnection.parseMessages(RpcConnection.java:
319)
at

[appengine-java] Re: Spring 3.0.2 wants to use blacklisted javax.naming.Context when using factory-method ...workaround?

2010-05-21 Thread Daniel Kvasnicka jr.
Well, problem solved. GAE just does not like when you leave too much
magic on Spring. I wanted to setup everything using Spring instead of
the PMF.java file described in GAE docs. So now I use the PMF.java
instead and retrieve the PM from it using Spring and the error is
gone.

This is the non-working PMF.java replacement, in case anyone cares:

bean id=persistenceManagerFactory class=javax.jdo.JDOHelper
factory-method=getPersistenceManagerFactory lazy-init=true

constructor-arg value=transactions-optional /
/bean

bean id=persistenceManager factory-
bean=persistenceManagerFactory
factory-method=getPersistenceManager scope=request destroy-
method=close

aop:scoped-proxy /
/bean

This is good, because you don't have to have a single line of Java
code to produce a PM.

Daniel

On May 21, 5:59 pm, Daniel Kvasnicka jr.
daniel.kvasnicka...@gmail.com wrote:
 Dear all,

 I'm working on an app (JSF 2.0, Spring 3.0.2) and when I deploy it to
 GAE, it dies on first request with this:

 java.lang.IllegalArgumentException: Cannot find class
 [javax.naming.Context]
         at
 org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java:
 294)
         at org.springframework.core.LocalVariableTableParameterNameDiscoverer
 $LocalVariableTableVisitor.resolveMember(LocalVariableTableParameterNameDis 
 coverer.java:
 229)
         at org.springframework.core.LocalVariableTableParameterNameDiscoverer
 $LocalVariableTableVisitor.visitEnd(LocalVariableTableParameterNameDiscover 
 er.java:
 219)
         at org.springframework.asm.ClassReader.accept(Unknown Source)
         at org.springframework.asm.ClassReader.accept(Unknown Source)
         at
 org.springframework.core.LocalVariableTableParameterNameDiscoverer.inspectC 
 lass(LocalVariableTableParameterNameDiscoverer.java:
 114)
         at
 org.springframework.core.LocalVariableTableParameterNameDiscoverer.getParam 
 eterNames(LocalVariableTableParameterNameDiscoverer.java:
 71)
         at
 org.springframework.beans.factory.support.ConstructorResolver.instantiateUs 
 ingFactoryMethod(ConstructorResolver.java:
 447)
         at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor 
 y.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:
 973)
         at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor 
 y.createBeanInstance(AbstractAutowireCapableBeanFactory.java:
 879)
         at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor 
 y.doCreateBean(AbstractAutowireCapableBeanFactory.java:
 485)
         at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor 
 y.createBean(AbstractAutowireCapableBeanFactory.java:
 456)
         at org.springframework.beans.factory.support.AbstractBeanFactory
 $1.getObject(AbstractBeanFactory.java:291)
         at
 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getS 
 ingleton(DefaultSingletonBeanRegistry.java:
 222)
         at
 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abs 
 tractBeanFactory.java:
 288)
         at
 org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstr 
 actBeanFactory.java:
 190)
         at
 org.springframework.beans.factory.support.DefaultListableBeanFactory.preIns 
 tantiateSingletons(DefaultListableBeanFactory.java:
 563)
         at
 org.springframework.context.support.AbstractApplicationContext.finishBeanFa 
 ctoryInitialization(AbstractApplicationContext.java:
 872)
         at
 org.springframework.context.support.AbstractApplicationContext.refresh(Abst 
 ractApplicationContext.java:
 423)
         at
 org.springframework.web.context.ContextLoader.createWebApplicationContext(C 
 ontextLoader.java:
 276)
         at
 org.springframework.web.context.ContextLoader.initWebApplicationContext(Con 
 textLoader.java:
 197)
         at
 org.springframework.web.context.ContextLoaderListener.contextInitialized(Co 
 ntextLoaderListener.java:
 47)
         at
 org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:
 548)
         at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
         at
 org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:
 1250)
         at
 org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:
 517)
         at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
 467)
         at
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
 50)
         at
 com.google.apphosting.runtime.jetty.AppVersionHandlerMap.createHandler(AppV 
 ersionHandlerMap.java:
 191)
         at
 com.google.apphosting.runtime.jetty.AppVersionHandlerMap.getHandler(AppVers 
 ionHandlerMap.java:
 168)
         at
 com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceReques 
 t(JettyServletEngineAdapter.java:
 123

[appengine-java] JSF 2 on GAE getting java.io.NotSerializableException: javax.faces.component.html.HtmlSelectManyListbox after trying to run from production

2010-02-28 Thread Daniel
)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at
com.google.apphosting.runtime.jetty.SessionManager.serialize(SessionManager.java:
358)
... 39 more


any idea what i should add to fix this problem?

thx ahead!

Daniel

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



Re: [appengine-java] Re: First access to a jsp takes a while

2010-02-14 Thread Daniel Benamy
I think google just turned on precompilation in 1.3.1.

On Sun, Feb 14, 2010 at 8:31 AM, Eduardo Ramírez edu.ky...@gmail.com wrote:

   Hi,

   I think that this extra time you're seeing is the time expended in
 compiling the JSP, which occurs the first time a particular JSP is accessed,
 as you can see in: http://en.wikipedia.org/wiki/JavaServer_Pages_compiler

   You can google around for some precompilation techniques for your JSP if
 you need it.

 --
 Eduardo Ramírez
 http://kynes.frenopatico.net

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


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



Re: [appengine-java] Seeing owned/child entities in the datastore viewer

2010-02-08 Thread Daniel Benamy
Thanks for the reply!

http://code.google.com/p/googleappengine/issues/detail?id=2745

Dan

On Mon, Feb 8, 2010 at 2:48 PM, Ikai L (Google) ika...@google.com wrote:
 Sounds like a pretty cool feature. Go ahead and add it to our feature
 request list:
 http://code.google.com/p/googleappengine/issues/list?can=2q=datastore+viewer

 On Tue, Feb 2, 2010 at 8:10 PM, Daniel Benamy dben...@gmail.com wrote:

 Hi,

 I'm trying to find a way to see the relationships between entities in
 the data store viewer. If I have:
 class A {
    B foo;
 }
 and I'm looking at an instance of A in the data store viewer, is there
 any way for me to find its B? I feel like this should be pretty simple
 and maybe I'm just missing something dumb but I've searched a bunch
 and can't figure this out. I know I can work backwards and find a
 parent from its child by decoding its key. But my app can obviously go
 the other way and it would make my life easier if I could too. Can
 anyone help?

 Thanks,
 Dan

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




 --
 Ikai Lan
 Developer Programs Engineer, Google App Engine
 http://googleappengine.blogspot.com | http://twitter.com/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-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.


-- 
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] Seeing owned/child entities in the datastore viewer

2010-02-02 Thread Daniel Benamy
Hi,

I'm trying to find a way to see the relationships between entities in
the data store viewer. If I have:
class A {
B foo;
}
and I'm looking at an instance of A in the data store viewer, is there
any way for me to find its B? I feel like this should be pretty simple
and maybe I'm just missing something dumb but I've searched a bunch
and can't figure this out. I know I can work backwards and find a
parent from its child by decoding its key. But my app can obviously go
the other way and it would make my life easier if I could too. Can
anyone help?

Thanks,
Dan

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



Re: [appengine-java] Re: Class XXX has multiple relationship fields of type YYYY

2010-01-16 Thread Daniel Benamy
One more thing- I get this error the first time I hit this code after
idling or starting up, but subsequent runs work ok.
Dan

On Sat, Jan 16, 2010 at 2:51 AM, Daniel Benamy dben...@gmail.com wrote:
 I think I'm hitting this check since updating to 1.2.8. I've got
 something like:
 class A {
  B bVar;
  ListB bList;
 }
 Should I be getting this error? I haven't noticed a problem with my
 app using this setup.
 Thanks!
 Dan

 On Dec 5 2009, 12:52 am, Max Ross (Google) maxr
 +appeng...@google.com wrote:
 SDK 1.2.8 contains a new check that detects if one of your JDO or JPA model
 objects has two relationship fields of the same type.  For example:

 class A {
   ListB bList;
   ListB anotherBList;

 }

 Unfortunately I was a little too aggressive with this check, so the
 following also run afoul of the check:

 abstract class B {}

 class C extends B {}
 class D extends B {}

 class A {
   ListC cList:
   ListD dList;

 }

 If you get an exception that says

 Class XXX has multiple relationship fields of type .  This is not yet
 supported.

 and your class hierarchy resembles the one above, you can disable this check
 by with the following config property:

 property name=datanucleus.appengine.multipleRelationsOfSameTypeAreErrors
 value=true/

 We'll get this fixed shortly.

 Sorry for the trouble,
 Max

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




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




Re: [appengine-java] Domain setup using Google Apps

2009-12-30 Thread Daniel Louis
Yeah, it is possible...

2009/12/23 Marcel Overdijk marceloverd...@gmail.com

 I own the footdex.com Google Apps domain. I've bought this some time
 ago to host a GAE application on it.
 I now finally added the domain using in GAE admin console, but all I
 can do is attach it to a subdomain of footdex.com. I just want
 footdex.com to be the GAE app not a subdomain.
 Is this possible?


 Cheers,
 Marcel

 --

 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.





-- 
DCBI(AirFly23)

--

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: Wanna share a forum for GAE developers i made

2009-12-21 Thread Daniel
great!

tx

On Dec 21, 6:12 pm, nmelen...@getsense.com.ar
nmelen...@getsense.com.ar wrote:
 Hi there,
 I usually write code to anwer something or to make a question in the list,
 but it is difficult to read
 because it is no formatted and the syntax isn,t highlight.

 So, i wanna share with the community  a forum for GAE developers,  where the
 main feature is that posts have  java syntax highlighting, also
 files can be uploaded and screenshots too.

 www.gaeforums.com

 Enjoy

 Regards,
 NM

--

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] plz ignore my previous post... my mistake... about the actionlistener.... sorry....

2009-11-12 Thread Daniel
sorry shit happens :)

--

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




  1   2   >