[appengine-java] Re: Google App Engine + Struts1 - problem with session

2010-11-26 Thread Amit Pandey
I think you need to implement Serializable interface in your UserBean
class.

-- 
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: mapreduce - passing filters

2010-11-26 Thread Nacho Coloma
Hi Vaclav,

Thanks for chiming in. I am aware about audao, but did not consider it
because I wanted to keep the list of new dependencies as small as possible.
Specifically in the case of ANTLR there are backwards-incompatible changes
between 2.7 and 3.0, which would force to jarjar them into
appengine-mapreduce.

This would be a lot of complexity for such a tiny feature, where Fred's
approach is simpler. Anyway, I think it would make a great addition into
audao, where a Filter implementation based on the GSQL parser should be easy
to implement.

-- Nacho.

On Thu, Nov 25, 2010 at 8:50 AM, Vaclav Bartacek 
vaclav.barta...@spolecne.cz wrote:

 Hi,

 the open-source Java GQL parser (based on ANTLR) you can found here:
 http://code.google.com/p/audao/wiki/ExtendedGQLParser

 Vaclav

 On Nov 24, 7:46 pm, Nacho Coloma icol...@gmail.com wrote:
   One other thought: instead of adding a GQL interpreter, you might just
 
  add a hook for loading a class provided by the user. That class would
 
   implement a Filter interface with a method that takes a Configuration
   and returns a Query object so in your example, mailing and timestamp
   would get passed in as Configuration parameters and a query object
   corresponding to the GQL statement you put would be built by a Filter
   class provided by the user. It would act kind of like a templating
   language for building queries. Make sense/sound like a good idea?
 
  Actually, Filter would be simpler to implement and GQL can be added later
 as
  a concrete Filter implementation if someone is still missing it (I doubt
  it). It also solves the problem of specifying the type of arguments.
 
  BTW, arguments should be passed in as request parameters, not
 configuration
  attributes (like timestamp greater than or process all comments by
 user
  X for example). This means that Filter may need encapsulated access to
 some
  methods of  AppEngineJobContext.request.
 
  It seems that it can be implemented in a couple of hours. I will still
 wait
  for 1.4.0, though.
 
  On Nov 18, 7:01 am, Nacho Coloma icol...@gmail.com wrote:
 
 I'm not entirely sure I understand
 
the scope of the proposed patch. Are you thinking about adding
 filters
 
 at the DatastoreRecordReader level? It's not entirely clear to me
 that
 that provides a benefit over just applying the filter at the start
 of
 the map() function. Totally willing to believe I'm missing
 something,
 though.
 
The map() filter runs against your quota. This is OK for once-only
 tasks
such as schema upgrades, but Mappers can also be used for repetitive
   tasks
such as mailing, data cleanup, etc. For these cases, being able to
 work
   on a
subset of data is important (process only user accounts with mailing
enabled, for example).
 
The biggest problem to resolve is how to specify the filter clause in
mapreduce.xml. I am considering implementing a GQL parser as simple
 as
possible, and inject servlet request parameters. Something like:
 
property
namemapreduce.mapper.inputformat.datastoreinputformat.query/name
valueselect * from users where mailing=:value1 and
timestamp=:value2/value
/property
 
This implies porting the GQL implementation from python to Java, or
implementing an ANTLR-based parser. I feel like I am reinventing the
   wheel,
so any suggestion to use something that exists (or aim to a simpler
   design)
is welcome.
 
On a logistical note, for nontrivial contributions, we require a CLA
 
 from either you or your employer (depending on who owns the
 copyright
 for your work) before we can accept significant contributions. The
 relevant forms are at:
http://code.google.com/legal/individual-cla-v1.0.html
 andhttp://code.google.com/legal/corporate-cla-v1.0.html. Feel free
 to
 email me privately if this is an issue.
 
No problem with that.
 
Regards,
 
Nacho.
 
   --
   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
 google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.



-- 
You 

[appengine-java] criteria for YAML parser

2010-11-26 Thread Andrey Somov
Hi,

recently AppEngine introduced a YAML parser in its code. YamlBeans has
been chosen.

I tried to find some discussions, blog post, anything about the
criteria of the decision, but I could not find any. It would be really
helpful to know why YamlBeans and not SnakeYAML or other available java
libraries ? Were there any requirements YamlBeans met but others didn't?

I will try to summarise the strong points of SnakeYAML comparing to
YamlBeans:



- SnakeYAML tries to stay as close as possible to PyYAML. At the moment
it is guaranteed that any document valid for SnakeYAML is valid for
PyYAML and vice versa. It makes very easy to exchange the same document
between Java and Python. (even the problems are respected, see:
http://sourceforge.net/mailarchive/forum.php?thread_name=4C76B74C.7050009%40rhythm.comforum_name=yaml-core)




- Informative error reporting is very important. SnakeYAML shows line
and column number in case of invalid YAML document.




- SnakeYAML is used by a number of projects like Maven, Cassandra etc
(http://code.google.com/p/snakeyaml/wiki/Usage)
- SnakeYAML implements the full 1.1 YAML specification. SnakeYAML tries
to follow the YAML recommendation in the parser implementation
(http://yaml.org/spec/1.1/#id859333)

- SnakeYAML has a bigger user community. Activity at Google Code: High.
Mailing list is much bigger (number of messages 296 vs 46). A lot of
discussion takes place at the issues (97 vs 4). There is some info at
the Stackoverflow:
http://stackoverflow.com/questions/450399/which-java-yaml-library-should-i-use

- SnakeYAML has more commiters and the source is regularly maintained.
There is a snapshot version deployed at Sonatype
(https://oss.sonatype.org/content/groups/public/org/yaml/snakeyaml/)




- SnakeYAML has 96% (!) code coverage (reported by cobertura:
http://snakeyamlrepo.appspot.com/releases/1.7/site/cobertura/index.html).
It makes the code very stable




- SnakeYAML maintains a comprehensive documentation and wiki.
(YamlBeans does not have any wiki). Some more comparison can be found
here: http://code.google.com/p/snakeyaml/wiki/Comparison




- SnakeYAML has many unique features which can be used in future
releases of AppEngine


The feedback may be very important to further improve other YAML
parsers. Knowing strong points of YAML parsers helps the whole user
community to come to the proper conclusion.

Feel free to ask support from the SnakeYAML community if AppEngine
decides to migrate :)

-

Andrey

-- 
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] started to transition my Google Apps accounts; GAE account gives Unauthorized

2010-11-26 Thread Thijs Brobbel
Hey all,

As you may know, Google is migrating Google Apps domains to a new
infrastructure and as of a few days, they're offering admins to
transition their user base to this new infrastructure on their own
request. I already migrated my own account (domain admin), to start
testing (Web Albums using Picasa is a requested feature f.e.). Except
for using two Gmail accounts concurrently, a regular Gmail, and a
custom domain, things are working smoothly.

However, logging into my GAE account on appspot isn't working anymore.
Now, I get a page with a title saying Unauthorized (401), which
tells me:

Unauthorized
You are not authorized to access this application.
Return to Applications screen »

Note: I know I need to access my custom GAE page using the custom
login page @ https://appengine.google.com/a/YOURDOMAIN.COM/, which
is what I'm doing.

It seems that the new infrastructure is breaking things here and
there... Anyone also running into this? of maybe, any Googlers (or G-
men, if you will) watching...

Cheers,
Thijs

-- 
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] Launch Default Email Client

2010-11-26 Thread Kris
Hi,

I am semi-new to software development and to GAE, so please take it
easy on me!!  I have what is hopefully a simple question.  I have
developed an app that currently stores a list of customers in the
datastore and one of the values of each customer is an email address.
I am displaying the list of customers to the user and was wondering if
it was possible to have it where clicking on the email address would
launch the default email client of the users desktop and populate the
TO field with the email address.  Can someone point me towards a
library that might work?  Thanks in advance for the help!

-- 
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: Install plugin failed. Missing Requirement. Eclipse Helios SR1.

2010-11-26 Thread sharper
You'll need to get the Web Tools Platform (WTP). The easiest way of
getting this is to Download the Eclipse IDE for Java EE developers
edition here:

http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/heliossr1

Don't forget to download a JDK to avoid problems down the line.


On Nov 16, 12:50 pm, KevinLippiatt kevin.lippi...@googlemail.com
wrote:
 I am unable to install the Google Plugin for Eclipse.
 I have Eclipse Helios SR1.

 Cannot complete the install because one or more required items could
 not be found.
   Software being installed: Google Plugin for Eclipse 3.6
 1.4.0.v201010280102
 (com.google.gdt.eclipse.suite.e36.feature.feature.group
 1.4.0.v201010280102)
   Missing requirement: Google Plugin for Eclipse 3.6
 1.4.0.v201010280102
 (com.google.gdt.eclipse.suite.e36.feature.feature.group
 1.4.0.v201010280102) requires 'org.eclipse.jst.server.core 0.0.0' but
 it could not be found

-- 
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] Using JAIN-SIP

2010-11-26 Thread SIPuser
Hello,

I like to implement SIP entities that uses JAIN-SIP. Does GAE supports
JAIN-SIP at this moment?

Salekul

-- 
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: Google App Engine with MySQL Database.

2010-11-26 Thread Shawn Brown
 Why use the JDO/JPA?

You don't need to use those.

For appengine you need to use BigTable.

 JDO/JPA is one way to use BigTable.

There are others (that are easier to use but may not have the same portability):

http://code.google.com/p/objectify-appengine/
http://sites.google.com/site/slim3appengine/slim3-datastore
http://code.google.com/p/twig-persist/

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] Re: Launch Default Email Client

2010-11-26 Thread Didier Durand
Hi,

Just using a mailto url in the html of your page (or inserted via a
HTML() widget of GWT) should do it: see
http://email.about.com/od/mailtoemaillinks/a/mailto_elements.htm.
didier

On Nov 26, 8:50 am, Kris ksba...@gmail.com wrote:
 Hi,

 I am semi-new to software development and to GAE, so please take it
 easy on me!!  I have what is hopefully a simple question.  I have
 developed an app that currently stores a list of customers in the
 datastore and one of the values of each customer is an email address.
 I am displaying the list of customers to the user and was wondering if
 it was possible to have it where clicking on the email address would
 launch the default email client of the users desktop and populate the
 TO field with the email address.  Can someone point me towards a
 library that might work?  Thanks in advance for the help!

-- 
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: Launch Default Email Client

2010-11-26 Thread Kris Barnes


Thanks!  That did the trick.

-- Kris Barnes


On Saturday, November 27, 2010 at 12:13 AM, Didier Durand wrote:

Hi,Just using a mailto url in the html of your page (or inserted 
via aHTML() widget of GWT) should do it: 
seehttp://email.about.com/od/mailtoemaillinks/a/mailto_elements.htm.didierOn 
Nov 26, 8:50 am, Kris ksba...@gmail.com wrote: Hi, I am semi-new to software 
development and to GAE, so please take it easy on me!!  I have what is 
hopefully a simple question.  I have developed an app that currently stores a 
list of customers in the datastore and one of the values of each customer is an 
email address. I am displaying the list of customers to the user and was 
wondering if it was possible to have it where clicking on the email address 
would launch the default email client of the users desktop and populate the TO 
field with the email address.  Can someone point me towards a library that 
might work?  Thanks in advance for the help!-- You received this message 
because you are subscribed to the Google Groups Google App Engine for Java 
group.To post to this group, send ema
il 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] Re: Using JAIN-SIP

2010-11-26 Thread Robert Lancer
As long as it has no dependencies which are on the white list
http://code.google.com/appengine/docs/java/jrewhitelist.html it should
work.

On Nov 25, 8:44 am, SIPuser sale...@gmail.com wrote:
 Hello,

 I like to implement SIP entities that uses JAIN-SIP. Does GAE supports
 JAIN-SIP at this moment?

 Salekul

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