[appengine-java] EL update or CL fix

2010-10-10 Thread alesj
It's been a while since I reported this odd ClassLoading (and EL)
behavior:
* 
http://groups.google.com/group/google-appengine-java/browse_thread/thread/e9c9578f034dd1f9

Any plans on fixing this?
Or, are there perhaps valid reasons why EL is included in GAE
distribution AND loaded by the app's CL?

-- 
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: EL update or CL fix

2010-10-10 Thread alesj
Related post:
* 
http://groups.google.com/group/google-appengine-java/browse_thread/thread/67c8c345d386eaec

-- 
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: OpenID Development server

2010-10-10 Thread Fabrizio Accatino
I have no problem opening an issue. But actually I don't understand if I
have a problem/wrong_configuration or App Engine has a bug.
I'm waiting for a reply from Google guys...  :)

fabrizio

2010/10/9 ArtemGr artem...@gmail.com

 OpenID support is still experimental, there are several open issues
 concerning it. If you feel you encountered a new problem, maybe you
 should file an issue!



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-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] Task queue with HTTP POST not working.

2010-10-10 Thread apple
I followed the codes in GAE document to make a simple task queue:

Queue queue = QueueFactory.getDefaultQueue();
queue.add(TaskOptions.Builder.method(TaskOptions.Method.GET).url(/
security));

This works perfectly.

However, if I changed method to HTTP POST:

Queue queue = QueueFactory.getDefaultQueue();
 
queue.add(TaskOptions.Builder.method(TaskOptions.Method.POST).url(/
security));

The task is not executed.

What's wrong in my code?

-- 
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] Task queue with HTTP POST not working.

2010-10-10 Thread andy stevko
Does your servlet respond to POST requests?
On Oct 10, 2010 10:28 AM, apple apple...@gmail.com wrote:
 I followed the codes in GAE document to make a simple task queue:

 Queue queue = QueueFactory.getDefaultQueue();
 queue.add(TaskOptions.Builder.method(TaskOptions.Method.GET).url(/
 security));

 This works perfectly.

 However, if I changed method to HTTP POST:

 Queue queue = QueueFactory.getDefaultQueue();

 queue.add(TaskOptions.Builder.method(TaskOptions.Method.POST).url(/
 security));

 The task is not executed.

 What's wrong in my code?

 --
 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] AppEngine + Google Data APIs + OAuth

2010-10-10 Thread Saqib Ali
Hello All,

I noticed that there is not a lot of material (in fact none) on the
web for creating an app in App Engine that uses Google Data APIs and
OAuth for Authorization to the APIs. So I started working on a Google
Doc to document this process, which now has turned into a Google Site:
https://sites.google.com/site/oauthforapi/(still in progress)

I am looking for:
1) Suggestions to improve this step-by-step;
2) Few people to review this guide;
3) Direct contributors to add content to the guide. I will add these
folks as contributors to the Google Site.

Next, I am working on sample code that uses this stack.

Saqib

-- 
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] API CRUD interface for application ?

2010-10-10 Thread Maxim Veksler
Hello,

The application we run is a backend online service and has no GUI.
We some how need to be able to upload new content / update existing
datastore entity records.

The database model is relatively simple: 1 to many relationships on all of
the kinds.

I would be happy to use learn about a library / some API configuration
option to expose an interface so that external code can do the CRUD logic.
Is there any support for this in GAE / other library that runs on GAE?


If this plays any role in your suggestions:
We're super focused on response times so: We currently use low level data
store API.
I actually tried Objectify but found even it to be an over kill for our
needs.
I also deleted all the jars the were added by GAE eclipse plugin but are not
used by the code.

Actually the list of jars used by the application consists of:

ls war/WEB-INF/lib/
appengine-api-1.0-sdk-1.3.7.jar  appengine-jsr107cache-1.3.7.jar
 jackson-core-asl-1.6.0.jarjsr107cache-1.1.jar
appengine-api-labs-1.3.7.jar EyeViewUtils-1.0.1-SNAPSHOT.jar
 jackson-mapper-asl-1.6.0.jar  log4j-1.2.16.jar



Any recommendations / personal experience with this issue / pointers about
correct design of the interface / what technology to use and co. are highly
welcome and appreciated.

Thank you,
Maxim.

-- 
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: App Engine and IP Addresses

2010-10-10 Thread Maxim Veksler
Exactly.

Use https://addons.mozilla.org/en-US/firefox/addon/6647/ to see what headers
your browser send as part of the HTTP GET request and emulate them in C
code.

Should work :).

On Sat, Oct 9, 2010 at 11:45 PM, Peter Ondruska peter.ondru...@gmail.comwrote:

 When connecting to IP address you need to use HTTP host header so that
 GAE knows which application/virtual server you want.

 On Oct 9, 6:26 pm, Benjamin bsaut...@gmail.com wrote:
  I've been working on a challenge over the past couple of days and I
  could really use a knowledge transfer on App Engine, Domains and IP
  addresses. I seem to be missing something.
 
  I'm trying to write a library for Arduino Micro-controllers to do HTTP
  Posts to a servlet hosted on appengine. For example The URL of the
  servlet is
 
  http://nimbits1.appspot.com/service/currentvalue?point=testformat=json
 
  Do to limitations on the Arduino device, i need to get an IP Address
  that will resolve to nimbits1.appspot.com first, before doing my post
  to /service/currentvalue?point=testformat=json
 
  I have the C code to request an IP from DNS of a domain which works
  without a problem. So far so good. My problem is my requests seem to
  hit a brick wall when I try to use the IP instead of the Domain in my
  requests.
 
  Let's say I ping nimbits1.appspot.com - I get 74.125.113.121 or
  72.14.204.141 back from the DNS Server. This takes me to Google
  servers, but not my app. I'm guessing that the server want the
  subdomain in the request but i'm not provided one.
 
  I registered a new domain: nimbits.org on godaddy and followed Nick
  Johnson's fine tutorial on mapping naked domains to have nimbits.org
  redirect to nimbits1.appspot.com (As a permanent redirect without
  masking)
 
  http://blog.notdot.net/2009/12/Naked-domains-on-App-Engine
 
  if i navigate tohttp://nimbits.org I redirect ok tohttp://
 nimbits1.appspot.com
 
  Further, if i do a wget in a linux terminal I can see the IP's i'm
  resolving to:
 
  benja...@ben-ubws01:~$ wget nimbits.org
  --2010-10-09 12:20:43--  http://nimbits.org/
  Resolving nimbits.org... 64.202.189.170
  Connecting to nimbits.org|64.202.189.170|:80... connected.
  HTTP request sent, awaiting response... 301 Moved Permanently
  Location:http://nimbits1.appspot.com[following]
  --2010-10-09 12:20:44--  http://nimbits1.appspot.com/
  Resolving nimbits1.appspot.com... 64.233.169.141
  Connecting to nimbits1.appspot.com|64.233.169.141|:80... connected.
  HTTP request sent, awaiting response... 200 OK
  Length: unspecified [text/html]
  Saving to: `index.html.10'
 
  [ =   ] 3,376   --.-K/s   in
  0.003s
 
  2010-10-09 12:20:44 (1.18 MB/s) - `index.html.10' saved [3376]
 
  If i try and navigate to any of the above IP Addresses i.ehttp://
 64.233.169.141
  I endup on google or godaddy, but not my app.
 
  Any help would be greatly appriciated. I may have to resort to having
  users point their arduino to an internal web server that can forward
  the request, but having arduino devices post directly to app engine
  would be very cool.
 
  -Ben

 --
 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] Why is guestbook-example-fts (full text search) example working but mine is not?

2010-10-10 Thread arny
Hi,

I'm really confused about the AppEngine database index limits.

My project is using 15 tokens to index some content.
I'm using the index then to self-join it up to 3 times.
Then my index looks like this: isOnline ▲ , searchIndex ▲ ,
searchIndex ▲ , searchIndex ▲ , normalizedName ▲

isOnline = boolean
searchIndex = list (max 15 items)
normalizedName = string

Now as soon I add another searchIndex or another property to the
indexes I get an error when AppEngine is trying to build the indexes.

-- BUT --

Then again I'm looking at the 
http://code.google.com/p/guestbook-example-appengine-full-text-search/
example which was mentioned by Googles AppEngine Team.
This project is using 200 tokens to index! and self-joining it up to 5
times!

How is that possible and what I am doing wrong?
I need at least one more property to be added to the index.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-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: Remove properties from existing data

2010-10-10 Thread arny
Both information were very helpful!
Problem solved.
Thanks!

On Oct 7, 7:16 pm, Ikai Lan (Google) ikai.l+gro...@google.com
wrote:
 An easy way to iterate over all your entities is with the Mapper API:

 http://googleappengine.blogspot.com/2010/07/introducing-mapper-api.html

 --
 Ikai Lan
 Developer Programs Engineer, Google App Engine
 Blogger:http://googleappengine.blogspot.com
 Reddit:http://www.reddit.com/r/appengine
 Twitter:http://twitter.com/app_engine

 On Thu, Oct 7, 2010 at 10:11 AM, Didier Durand durand.did...@gmail.comwrote:



  Hello,

  You have to go down to low-level datastore api to do that: see
  Entity.removeProperty()

  See
 http://code.google.com/appengine/docs/java/javadoc/com/google/appengi...

  didier

  On Oct 7, 2:06 pm, arny arny...@googlemail.com wrote:
   Hello,

   I've been looking for a way to remove unused properties from existing
   data for a while but could not find the right information yet.
   Everyone is talking about what should not be done, but no one is
   giving any ideas how to remove.

   So I can't set NULL, since it's a value as well and gets stored.
   So how to get rid of unused properties then?

   On python there is delattr to remove a property completely.
   On Java there is ... ?

   Thanks

  --
  You received this message because you are subscribed to the Google Groups
  Google App Engine for Java group.
  To post to this group, send email to
  google-appengine-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] ClassCastException: String to Collection

2010-10-10 Thread decitrig
I have an object Vendor with a field that is a SetVendorCategory,
and VendorCategory has a String name and a Key which I set with the
value of name.


When I fill a Vendor object with some VendorCategories and try to
persist them, I get



java.lang.ClassCastException: java.lang.String cannot be cast to
java.util.Collection
at
org.datanucleus.store.mapped.mapping.CollectionMapping.postInsert(CollectionMapping.java:91)
at
org.datanucleus.store.appengine.DatastoreRelationFieldManager.runPostInsertMappingCallbacks(DatastoreRelationFieldManager.java:217)
at
org.datanucleus.store.appengine.DatastoreRelationFieldManager.access$200(DatastoreRelationFieldManager.java:48)
at
org.datanucleus.store.appengine.DatastoreRelationFieldManager$1.apply(DatastoreRelationFieldManager.java:116)
at
org.datanucleus.store.appengine.DatastoreRelationFieldManager.storeRelations(DatastoreRelationFieldManager.java:81)
at
org.datanucleus.store.appengine.DatastoreFieldManager.storeRelations(DatastoreFieldManager.java:955)
at
org.datanucleus.store.appengine.DatastorePersistenceHandler.storeRelations(DatastorePersistenceHandler.java:546)
at
org.datanucleus.store.appengine.DatastorePersistenceHandler.insertPostProcess(DatastorePersistenceHandler.java:304)
at
org.datanucleus.store.appengine.DatastorePersistenceHandler.insertObjects(DatastorePersistenceHandler.java:256)
at
org.datanucleus.store.appengine.DatastorePersistenceHandler.insertObject(DatastorePersistenceHandler.java:240)
at
org.datanucleus.state.JDOStateManagerImpl.internalMakePersistent(JDOStateManagerImpl.java:3185)
at
org.datanucleus.state.JDOStateManagerImpl.makePersistent(JDOStateManagerImpl.java:3161)
at
org.datanucleus.ObjectManagerImpl.persistObjectInternal(ObjectManagerImpl.java:1298)
at
org.datanucleus.ObjectManagerImpl.persistObject(ObjectManagerImpl.java:1175)
at
org.datanucleus.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:669)
at
org.datanucleus.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:694)
at
com.engayged.server.VendorServiceImpl.saveNewVendor(VendorServiceImpl.java:75)
at
com.engayged.server.VendorServiceImplTest.addNewVendorAddsCategory(VendorServiceImplTest.java:74)
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
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)


I can't even figure out how to start debugging this, can anyone 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: How can i allow user to download a zip file?

2010-10-10 Thread Bit Liner
And how to add a folder to the zip file?



On 16 Set, 10:32, Crll Vnc crll...@gmail.com wrote:
 Indeed, it works, with ZipInputStream.
 Here is a piece of code I use in my zipped file upload servlet :

 [...]
              CheckedInputStream csumi = new
 CheckedInputStream(req.getInputStream(), new CRC32());
             ZipInputStream zin = new ZipInputStream(new
 BufferedInputStream(csumi));

             @SuppressWarnings(unused)
             ZipEntry ze;
             StringBuffer buf = new StringBuffer();

             while ((ze = zin.getNextEntry()) != null) {
                   int x;

                   while ((x = zin.read()) != -1) {
                       char c = (char) x;
                       buf.append(c);
                   }
             }
             zin.close();
             s = buf.toString();
 [...]

 Bye.

 On 15/09/10 22:51, Guillaume Laforge glafo...@gmail.com wrote:

  Hi,

  Have you looked at Java's ZipOutputStream?
 http://download.oracle.com/javase/1.4.2/docs/api/java/util/zip/ZipOut...
  .html

  Since you can't create files on the file system, I suspect the approach of
  streaming the zip through a ZipOutputStream would be the most plausible one.
  That and you set a content-disposition header of myfilename.zip.
  And I hope it'll work :-)

  Guillaume

  PS: I've never tried that, but that's what I'd investigate first.

  On Wed, Sep 15, 2010 at 03:19, Bit Liner bitli...@gmail.com wrote:
  My app creates dinamically two files so that then the users can
  download these files in one zip file.

  But i have problem in implementing this operations.

  Some suggestion to help me?
  Library, if gae supports this operations, etc.

  (i have tried to use gaeVfs, but i have met problems: i cannot write
  the content of a file on the response, so i can download the file but
  its content is empty )

  --
  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
  mailto:google-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: Task queue with HTTP POST not working.

2010-10-10 Thread apple
No.

Thank you Andy. I forgot all my codes are inside doGet() function.

What a silly mistake I did.

On 10月11日, 上午2時09分, andy stevko andy.ste...@gmail.com wrote:
 Does your servlet respond to POST requests?

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