[appengine-java] min. charge under new pricing

2011-09-05 Thread senderj
I read many here trying to keep their apps free by reducing instance
and storage. But I think I read the FAQ of the new pricing that there
is a min of $9 per app. So as long as I own an app, even if it is
totally idle (no request at all), I still need to pay $9? Or I
misunderstood the paragraph?

-- 
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] sending pdf

2011-09-05 Thread Vik
Hie

Has anyone successful in creating a pdf on the fly and email it on GAE ? I
tried previously suggested solutions but nothing works.

Thankx and Regards

Vik
Founder
http://www.sakshum.org
http://blog.sakshum.org

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



[appengine-java] Re: threads per instance (Java)

2011-09-05 Thread James Cooper
Thanks John, that's the sort of thing I was looking for.

-- James

-- 
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/-/qAolzIBZiZsJ.
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: URLFetch Http Method DELETE returns http response 400

2011-09-05 Thread Simon Knott
You may want to raise a Production issue, if this is happening after you've 
deployed the code:
http://code.google.com/p/googleappengine/issues/entry?template=Production%20issue

-- 
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/-/DoZ6hWGXLgkJ.
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: URLFetch Http Method DELETE returns http response 400

2011-09-05 Thread Nischal
Anything on this? The end URLs are facebook graph API urls. When I use the 
apache library, the DELETE method works fine but URLFetch is returning error 
code 400.

-- 
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/-/x5vVCJSC3ScJ.
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: URLFetch Http Method DELETE returns http response 400

2011-09-05 Thread Nischal
Haven't tried it on production yet, but it isn't working in development... 
Let me try and see if I get the same error in production as well...

-- 
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/-/Jd8Oun0pah4J.
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] The JavaScript file is not found to the JSF2 application that has been deployed

2011-09-05 Thread Minehiko Ohya
  Even if the application that works normally in the local is deployed
to the App engine of Google, it doesn't work normally on the server. I
found that the up-loaded JavaScript file wasn't found from the log of
the Administration Console, and that it didn't work normally. Please
inform me if you know something about like this problem.
  The situation of this problem is as follows.
(1)The page is composed of the templating and composite components by
using MyFaces.
(2)It tries to include the JavaScript file in the template by the
following tag descriptions.
h:outputScript library=javascript name=JavaScript file name
target=head /
(3)Arrangement of the JavaScript file of the deployed war directory is
as follows.
war
resources
javascript
JavaScript file
(4)The log of the Administration Console is as follows.
org.apache.myfaces.renderkit.html.HtmlScriptRenderer encodeEnd:
Resource referenced by resourceName [JavaScript file name] and
libraryName javascript not found in call to
ResourceHandler.createResource. It will be silenty ignored.
(5)It has been confirmed that the above application of the war
directory works normally by using the GAE Java SDK plug-in in eclipse.
(6)The main environments are as follows.
GAE Java SDK 1.5.2 plug-in
appengine-java-sdk-1.5.2
MyFaces 2.0.8
el-api-1.1.jar
el-impl-1.1.jar
Java JDK 1.6.0_23
eclipse3.6.2

-- 
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] The *real* cost of the billing changes

2011-09-05 Thread James Briant
The real cost: *My professional credibility.*

That is something that is of immeasurable value and is now in the toilet. I 
do not see how it is recoverable and the loss to me is far beyond the 
not-inconsequential costs of migrating to EC2, Heroku (oh look, it runs java 
as a few days ago), Rackspace or Linode.

I have spent the last year or so being a *very* vocal advocate of GAE. I 
have advocated to start-ups in the San Diego community and at events like 
Start Up Weekend, that teams use GAE: we're starting from scratch, so we *
can* write our apps to follow the strange rules of GAE. I did so on the 
rational and reasonable belief that we had to write the apps this way 
because they allowed google to run our apps more efficiently than if we just 
spin up Tomcat. I assumed that there was secret sauce. I assumed that Google 
had done what Google does: looked at the data and done the math. Instead, it 
looks to me that they just thought of some ideas that *might* make things 
more efficient, but guessed wrong.
*
*Myself, and others who listened to me, have spent man-years writing 
software with onerous rules for not only zero benefit, but in fact vendor 
lock-in to higher costs. And while it will be possible to recover our dollar 
costs by migrating our apps to EC2, Heroku, etc, *I will not be able to 
recover my credibility*.

*How Google can make this right*

I put a lot of effort into learning the GAE Way. *That investment needs to 
pay off.* If the hoops we had to jump through turned out to be the wrong 
hoops, tell us what the right hoops are. There *is* an *engineering*solution to 
efficient (low cost), scalable app hosting. I bet my reputation 
on it. The GAE team needs to make that happen, not throw in the towel. If 
that means we need quota for things like RAM, fine. 


-- 
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/-/mJlqNCC4YK4J.
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] New free Datastore backup tool announcement

2011-09-05 Thread Eli
Hello all!

I'd like to introduce you to our newly released App Engine Datastore
backup tool: DatastoreBackup.
We all wanted it for a long time.
Get it at:
http://www.datastorebackup.com

It can do incremental backups, compression and lots more.

Go get it!

Eli,
http://www.datastorebackup.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-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: Loading requests timeout with DeadlineExceededException while reading classes

2011-09-05 Thread Eugene Goncharov
We've get the same issue today on our app engine application. 
Currently we can see a lot of DeadlineExceededExceptions during the startup 
of app engine instances.


Is there any news on how to resolve it?

-- 
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/-/OGJs3JWBGUUJ.
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 to sighn in google account with eclipse plugin??

2011-09-05 Thread justniik


hi sir this is nikesh,
when i want to sign in google account with eclipse plugin showign some error

*an error occured while trying to sign in: 400 bad request.see the error log 
for more details..

this is my error log*

!ENTRY com.google.gdt.eclipse.login 4 0 2011-09-01 00:34:54.819
!MESSAGE Could not sign in
!STACK 0
com.google.api.client.http.HttpResponseException: 400 Bad Request
at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:209)
at 
com.google.api.client.auth.oauth.AbstractOAuthGetToken.execute(AbstractOAuthGetToken.java:64)
at 
com.google.gdt.eclipse.login.GoogleLogin.authorizeStep1(GoogleLogin.java:535)
at com.google.gdt.eclipse.login.GoogleLogin.logIn(GoogleLogin.java:416)
at com.google.gdt.eclipse.login.GoogleLogin.logIn(GoogleLogin.java:379)
at 
com.google.gdt.eclipse.login.ui.LoginTrimContribution$1.mouseUp(LoginTrimContribution.java:90)
at 
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:213)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3540)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3161)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at 
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at 
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at 
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at 
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)



*thank you..*

-- 
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/-/eiRlN7kdXVMJ.
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] Access to gmail

2011-09-05 Thread Wojciech Mąka
Is there any way to read messages from gmail in GAE ? why there is no 
appropriate API for that ? 

-- 
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/-/k9VB9INIz7UJ.
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 to deploy apps on google apps engine??

2011-09-05 Thread justniik
Hi this is justniik,
i'm try to deploye my apps on terminal...in ubuntu...
but it can't deploye 
showing some error..

thank you..

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



appcfg4253931571244302675.log
Description: Binary data


[appengine-java] Problem ClassNotFoundException

2011-09-05 Thread Guilherme Souza
Hi Guys,

I've starting to study GAE and i was following the steps and when i
runed the hello world at tomcat, i get the ClassNotFoundException.

My question is, What directory i must create my aplication? I've
created at /var/lib/tomcat6/webapps.

Tks for 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-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] No able create local_db.bin anymore

2011-09-05 Thread Arthas Woon
Hi,

Some one pls help, my gae local server now not able create the local_db.bin 
anymore...

previously is running well, but after i try delete the local_db.bin and the 
xml, now every time startup and will show the message :

...appengine-generated\local_db.bin, does not exist. It will be 
created.

but it does not create when i check the folder inside.

I had try create other entity to store, still same...not work

I had try remove the server, and configure again the newly download SDK 
server, still not work, but it does not coz application come out any error, 
just the data didnt store, and didnt create the local_db.bin



how come like that
i am using java, jpa EntityManager to store data..(it work prefect 
before i delete local_db.bin, but after..delete, sad)

pls help.urgent..



-- 
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/-/kvu93Ozf3ysJ.
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] Writing test-classes with jdo

2011-09-05 Thread mr.dc
I'm currently trying to create a test class but somehow it fails.
Here is a little example:

PersistenceManager pm = 
getPersistenceManagerFactory().getPersistenceManager();
pm.currentTransaction().begin();
UserJDO userj = new UserJDO();
userj.setKey(dummy);
String key = pm.makePersistent(userj).getKey();
pm.currentTransaction().commit();
pm.close();

pm = getPersistenceManagerFactory().getPersistenceManager();
UserJDO usr=(UserJDO)pm.getObjectById(key);

My problem is that it fails at the line with getObjectById.
Normaly the Object should be stored on my datastore but somehow this does 
not work during tests.
(although same code works if i test it through my browser)
I really don't get what i'm doing wrong.
I already searched through the web and found a site that described it: 
http://blog.appenginefan.com/2009/05/jdo-and-unit-tests.html
I'm using the functions described there because the normal way didn't 
work,too.(JDOHelper.getPersistenceManagerFactory(transactions-optional).getPersistenceManager()
 
produced the same problem)
It's important for me to have some test classes to test my programmed stuff 
before deployment.

If its possible it would be best if i somehow could test methods against 
existing data but without changing anything on my local test database.

Hope someone can help me with this.

-- 
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/-/5Kbg20jxRz0J.
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 to send an attachment?

2011-09-05 Thread yangyang
I have following the sample code, and it works somehow.  But not as I
expected: (dummy code are omitted.)

Multipart mp = new MimeMultipart();
MimeBodyPart attachment = new MimeBodyPart();
byte[] attachmentData = htmlh1hello worldh/1/
html.getBytes();
ByteArrayDataSource src = new ByteArrayDataSource
(attachmentData, application/html);
attachment.setDataHandler(new DataHandler(src));
attachment.setFileName(news.html);
mp.addBodyPart(attachment);
message.setContent(mp);
Transport.send(message);


I have use the same code in my local console test code, it will send
out the file as a real attachment.
But if I drop this code to GAE, then there will be no attachment
present, instead, the main content itself will be the HTML escaped
original data.


I guess the implementation on GAE are using some automatically escape
process to be secure.

But why the attachment itself is send as the main body?  How can I
send out a attachment?  Thanks!

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Loading requests timeout with DeadlineExceededException while reading classes

2011-09-05 Thread Eugene Goncharov
I've tried to jar all the classes from WEB-INF/classes folder, but the 
exceptions still there. For now I've come to the situation where I have no 
instances up and running because even one instance cannot start.

-- 
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/-/IlY3bPPP3rMJ.
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] Data updated using key is not shown when searched through other attribute

2011-09-05 Thread kt
Hi,
Here is my situation:
1. Store an entity with 5 properties.
2. Update one property of an entity by looking up the entitiy using it's 
key.
3. Now search the database for all saved entities using a property based 
search.
When I look at the property I updated in step 2 in the same entity returned 
from step 3, sometimes I see the updated data sometimes I see the old data. 
A subsequent query returns the updated data.
 
It appears that the data updates are sometimes not immediately shown if the 
entity is returned using a query other than the key based query.
 
What am I doing wrong?
 

-- 
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/-/4AwEyODbTZUJ.
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] can we use jxl in google app engine application?

2011-09-05 Thread Sawan Darekar
can we use jxl in google app engine application?
jxl java excel api

-- 
Thanks  Regards,
Sawan Darekar. (Trainee Software Developer)
AlphaBricks Technologies Pvt. Ltd.
Pune, India

www.alphabricks.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-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] Is there any way to generate excel file in google app engine application?

2011-09-05 Thread raj
Is there any way to generate excel file in google app engine
application?

i want to generate excel file on click of button so how it can be done
on google app engine application..

Thanks in advanced

-- 
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: threads per instance (Java)

2011-09-05 Thread de Witte
I don't get a higher number than 11 due the limitation of 1000 requests per 
minute.

http://code.google.com/intl/nl/appengine/forum/?place=forum/google-appengine

private static SetString threads = new HashSetString(18);
.
.
.
Thread thread = Thread.currentThread();

if(thread != null) {
String name = +thread.getId() + : + thread.getName();

synchronized(YourClassName.class) {
threads.add(name);
log.info(active requests :+threads.size());
}
}

-- 
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/-/F2jTZU8P0xQJ.
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] Is there a way to define a Field as non-Index using JDO?

2011-09-05 Thread Gerald Tan
Is there a way to define a Field as non-Index using JDO?
I'm thinking the only way seems to be using Text instead of String... but 
that would involve quite a lot of work updating the entire datastore

-- 
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/-/00Iyx7eibU4J.
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] how to deploy apps on google apps engine??

2011-09-05 Thread Bruno Fuster
I think you need to change your app-id to justniik, not
www.justniik.appspot.com

On Fri, Sep 2, 2011 at 9:20 AM, justniik justn...@gmail.com wrote:

 Hi this is justniik,
 i'm try to deploye my apps on terminal...in ubuntu...
 but it can't deploye 
 showing some error..

 thank you..

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




-- 
Bruno Fuster

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



Re: [appengine-java] Access to gmail

2011-09-05 Thread Raphael André Bauer
2011/8/31 Wojciech Mąka woj...@gmail.com:
 Is there any way to read messages from gmail in GAE ? why there is no
 appropriate API for that ?
GMail uses IMAP and there is official API support for a lot of
proprietary GMail stuff:
http://code.google.com/apis/gmail/docs/

Best,

Raphael


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




-- 
inc: http://ars-machina.raphaelbauer.com
tech: http://ars-codia.raphaelbauer.com
web: http://raphaelbauer.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-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] how to deploy apps on google apps engine??

2011-09-05 Thread nikesh pathak
Hello sir,
 very thanks for your help...i'm sucessfully upload testing application

On Mon, Sep 5, 2011 at 10:39 PM, Bruno Fuster brunofus...@gmail.com wrote:

 I think you need to change your app-id to justniik, not
 www.justniik.appspot.com


 On Fri, Sep 2, 2011 at 9:20 AM, justniik justn...@gmail.com wrote:

 Hi this is justniik,
 i'm try to deploye my apps on terminal...in ubuntu...
 but it can't deploye 
 showing some error..

 thank you..

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




 --
 Bruno Fuster


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



Re: [appengine-java] Is there a way to define a Field as non-Index using JDO?

2011-09-05 Thread Marcelo Liberato
Yes, just add this annotation to the field:

@Extension(vendorName = datanucleus, key = gae.unindexed, value=true)

-- 
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: can we use jxl in google app engine application?

2011-09-05 Thread Marcelo Liberato
I dont know about jxl, but you can use Apache POI: http://poi.apache.org/

On Sep 5, 7:25 am, Sawan Darekar sawan.dare...@alphabricks.com
wrote:
 can we use jxl in google app engine application?
 jxl java excel api

 --
 Thanks  Regards,
 Sawan Darekar. (Trainee Software Developer)
 AlphaBricks Technologies Pvt. Ltd.
 Pune, India

 www.alphabricks.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-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: How to create excel file in servlet for google app engine application?

2011-09-05 Thread Marcelo Liberato
You should try Apache POI: http://poi.apache.org/

On Sep 5, 7:24 am, Sawan Darekar sawan.dare...@alphabricks.com
wrote:
 i am developing cloud application which is hosted on google app engine and
 in this i want to *generate excel file* on click of button through servlet.

 i have done it on local machine but when i deploy my application on app
 engine it shows error HTTP Error 500 Internal server error

 i am using *jxl java api* for generating excel file

 code that i have used is here

 try
 {

   //i have used following content type but didn't worked.

   //response.setContentType(application/vnd.ms-excel);

   //response.setContentType(application/x-ms-excel);

   response.setContentType(application/CSV);

   WritableWorkbook w = Workbook.createWorkbook(response.getOutputStream());

   WritableSheet s = w.createSheet(Demo, 0);

   Label label = new Label(0, 2, A label record);

   s.addCell(label);

   w.write();

   w.close();}

 catch (Exception e)
 {

       response.getOutputStream().println(Exception :+e);}

 finally
 {

 }

 --
 Thanks  Regards,
 Raj

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: How to send an attachment?

2011-09-05 Thread Marcelo Liberato
I've successfully sent attachments using this lib:

http://code.google.com/p/app-engine-workarounds

But make sure to apply the patches (fix for plain/text attachments and
attachment's file names) I provided here (It's on the issue tracker
for a long time):

http://code.google.com/p/app-engine-workarounds/issues/detail?id=3
http://code.google.com/p/app-engine-workarounds/issues/detail?id=4


On Sep 3, 1:25 pm, yangyang yangguo...@gmail.com wrote:
 I have following the sample code, and it works somehow.  But not as I
 expected: (dummy code are omitted.)

                         Multipart mp = new MimeMultipart();
                         MimeBodyPart attachment = new MimeBodyPart();
                         byte[] attachmentData = htmlh1hello worldh/1/
 html.getBytes();
                         ByteArrayDataSource src = new ByteArrayDataSource
                                         (attachmentData, application/html);
                         attachment.setDataHandler(new DataHandler(src));
                         attachment.setFileName(news.html);
                         mp.addBodyPart(attachment);
                         message.setContent(mp);
                         Transport.send(message);

 I have use the same code in my local console test code, it will send
 out the file as a real attachment.
 But if I drop this code to GAE, then there will be no attachment
 present, instead, the main content itself will be the HTML escaped
 original data.

 I guess the implementation on GAE are using some automatically escape
 process to be secure.

 But why the attachment itself is send as the main body?  How can I
 send out a attachment?  Thanks!

 Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Is there any way to generate excel file in google app engine application?

2011-09-05 Thread datanucleus
Use DataNucleus Excel plugin perhaps, and Apache POI ... assuming GAE
restrictions on classes don't prevent it.

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



Re: [appengine-java] Data updated using key is not shown when searched through other attribute

2011-09-05 Thread jemtan
Are you seeing this on production or development? You should not see this behaviour on production just on local dev.Hth-- Sent from my HP TouchPadOn Sep 5, 2011 12:56 PM, kt kanutripa...@cypatterns.com wrote: Hi,
Here is my situation:
1. Store an entity with 5 properties.
2. Update one property of an entity by looking up the entitiy using it's key.
3. Now search the database for all saved entities using a property based search.
When I look at the property I updated in step 2 in the same entity returned from step 3, sometimes I see the updated data sometimes I see the old data. A subsequent query returns the updated data.

It appears that the data updates are sometimes not immediately shown if the entity is returned using a query other than the key based query.

What am I doing wrong?




-- 
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/-/4AwEyODbTZUJ. 
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.




Re: [appengine-java] Re: Loading requests timeout with DeadlineExceededException while reading classes

2011-09-05 Thread jemtan
Are you using spring or similar IOC container based framework?-- Sent from my HP TouchPadOn Sep 5, 2011 12:56 PM, Eugene Goncharov eugene.goncha...@teamdev.com wrote: I've tried to jar all the classes from WEB-INF/classes folder, but the exceptions still there. For now I've come to the situation where I have no instances up and running because even one instance cannot start.



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




Re: [appengine-java] Problem ClassNotFoundException

2011-09-05 Thread jemtan
This sounds like basic java issue rather than anything related to gaej. But you need a src folder and your class need to be there based on its package name structure.-- Sent from my HP TouchPadOn Sep 5, 2011 12:56 PM, Guilherme Souza souza.guilherm...@gmail.com wrote: Hi Guys,

I've starting to study GAE and i was following the steps and when i
runed the "hello world" at tomcat, i get the ClassNotFoundException.

My question is, What directory i must create my aplication? I've
created at "/var/lib/tomcat6/webapps".

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




Re: [appengine-java] New free Datastore backup tool announcement

2011-09-05 Thread jemtan
I see pro edition, do you have a free version?-- Sent from my HP TouchPadOn Sep 5, 2011 12:56 PM, Eli e...@datastorebackup.com wrote: Hello all!

I'd like to introduce you to our newly released App Engine Datastore
backup tool: DatastoreBackup.
We all wanted it for a long time.
Get it at:
http://www.datastorebackup.com

It can do incremental backups, compression and lots more.

Go get it!

Eli,
http://www.datastorebackup.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-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] Re: Data updated using key is not shown when searched through other attribute

2011-09-05 Thread Simon Knott
I strongly suggest you read the documentation about the datastore around 
querieshttp://code.google.com/appengine/docs/python/datastore/queries.html- 
what you're experiencing is the eventual consistency of queries, which can 
occur in Production and is highlighted in the development environment.

-- 
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/-/C8VYwuqhWugJ.
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] The JavaScript file is not found to the JSF2 application that has been deployed

2011-09-05 Thread jemtan
Gaej preview edition: even if your app works on your local dev server, it does not mean that it will work exactly the same once you deploy it on the cloud.I believe that gaej team is working hard day and night in making dev behaviour the same as production.-- Sent from my HP TouchPadOn Sep 5, 2011 12:56 PM, Minehiko Ohya map1...@gmail.com wrote:   Even if the application that works normally in the local is deployed
to the App engine of Google, it doesn't work normally on the server. I
found that the up-loaded _javascript_ file wasn't found from the log of
the Administration Console, and that it didn't work normally. Please
inform me if you know something about like this problem.
  The situation of this problem is as follows.
(1)The page is composed of the templating and composite components by
using MyFaces.
(2)It tries to include the _javascript_ file in the template by the
following tag descriptions.
h:outputScript library="_javascript_" name="_javascript_ file name"
target="head" /
(3)Arrangement of the _javascript_ file of the deployed war directory is
as follows.
war
resources
_javascript_
_javascript_ file
(4)The log of the Administration Console is as follows.
org.apache.myfaces.renderkit.html.HtmlScriptRenderer encodeEnd:
Resource referenced by resourceName [_javascript_ file name] and
libraryName _javascript_ not found in call to
ResourceHandler.createResource. It will be silenty ignored.
(5)It has been confirmed that the above application of the war
directory works normally by using the GAE Java SDK plug-in in eclipse.
(6)The main environments are as follows.
GAE Java SDK 1.5.2 plug-in
appengine-java-sdk-1.5.2
MyFaces 2.0.8
el-api-1.1.jar
el-impl-1.1.jar
Java JDK 1.6.0_23
eclipse3.6.2

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




Re: [appengine-java] Data updated using key is not shown when searched through other attribute

2011-09-05 Thread kt
Yes, it is in local, eclipse (Helios) + AppEngine plugin. I have not reached 
production yet.
Are you saying it may happen in dev, but not in prod? So I dont need to 
worry about it?

-- 
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/-/Y578Lg-eOncJ.
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] Data updated using key is not shown when searched through other attribute

2011-09-05 Thread jemtan
Yes, I have the same issue. I think it starts around SDK 1.5.2 release. The behaviour is a bit stable prior to that release.I googled, but I didn't find any issue/discussion about this. But if you found one , please let me know.-- Sent from my HP TouchPadOn Sep 5, 2011 4:55 PM, kt kanutripa...@cypatterns.com wrote: Yes, it is in local, eclipse (Helios) + AppEngine plugin. I have not reached production yet.
Are you saying it may happen in dev, but not in prod? So I dont need to worry about it?



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




Re: [appengine-java] Data updated using key is not shown when searched through other attribute

2011-09-05 Thread Simon Knott
There isn't an issue because it was designed in - see the SDK release 
noteshttp://code.google.com/p/googleappengine/wiki/SdkReleaseNotesfor 1.5.1

The eventual consistency of queries can and will happen in Production - if 
you are using the High Replication datastore in Production, read all of the 
Java 
documentation http://code.google.com/appengine/docs/java/datastore/hr/before 
you start coding, as there are significant gotchas if you develop 
blind.

-- 
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/-/q7NvPTnckXIJ.
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] Data updated using key is not shown when searched through other attribute

2011-09-05 Thread kt
Thanks Simon and J.
I read through the links Simon shared. Yes, I am using the default database 
configuration which is HRD. I see that for most queries it provides eventual 
consistency. However it has come as a suprise to me that when I test, I hit 
upon nconsistency once in 5 times. That's like 20% inconsistent. It is huge 
percentage.
I m wondering if there is a way to configure the database to increase 
consistency at the expense of something else.

-- 
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/-/0Vgh12IvNKoJ.
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] Data updated using key is not shown when searched through other attribute

2011-09-05 Thread Simon Knott
Have a read of the Development Server 
infohttp://code.google.com/appengine/docs/java/tools/devserver.html - 
this explains how to set it from both the command line or through the 
Eclipse plug-in GUI.

-- 
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/-/XlnoVikZYTgJ.
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] Found a jar file too large to upload:appengine-api-1.0-sdk-1.3.7.jar. Consider using --enable_jar_splitting.

2011-09-05 Thread Vinny
Hmm, I'm also running into a similar problem when I do : gradlew gaeUpload


0% Created staging directory at:
'/var/folders/6m/75lpq6vd7wvbxsh4v_r8d26wgp/T/appcfg7489424692798496757.tmp'
5% Scanning for jsp files.

java.lang.IllegalStateException: Found a file too large to upload:
/var/folders/6m/75lpq6vd7wvbxsh4v_r8d26wgp/T/appcfg7489424692798496757.tmp/WEB-INF/lib/8d67397b9545e4de135350fba766ce594232efa1.
 Must be under 1000 bytes.

Unable to update app: Found a file too large to upload:
/var/folders/6m/75lpq6vd7wvbxsh4v_r8d26wgp/T/appcfg7489424692798496757.tmp/WEB-INF/lib/8d67397b9545e4de135350fba766ce594232efa1.
 Must be under 1000 bytes.
Please see the logs
[/var/folders/6m/75lpq6vd7wvbxsh4v_r8d26wgp/T/appcfg4661335909829942945.log]
for further information.


--
biz: http://www.linkedin.com/in/vincentstoessel/
personal: http://xaymaca.tumblr.com/



On Tue, Dec 7, 2010 at 5:18 PM, sumi sumi...@gmail.com wrote:
 I just now started to get this error while deploying to app engine.
 This project was deployed without this error with the same jar until
 last night without any problem. I tried using the --
 enable_jar_splitting but the error is still coming..any help is
 appreciated..

 --
 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] Re: Retrieving keys involving corresponding entities in transaction

2011-09-05 Thread Mauricio Aristizabal
Nichole, thanks for your response.  No, i'm certain I didn't.  In fact, the 
problem is happening again somewhere else so I can review and make certain 
of it.  I am hoping it's just an issue with the SDK and it will behave 
correctly in production.  Another thing is that it's random: I will get the 
error 2 to 10 times straight, and the next time it will work.

I'm using 1.5.2  Here are the details now:


[finder query]

 public static ListKey findConversationKeysForCommentVisibleRanked(Key 
key, Integer convsToDisplay) {

  Query query = entityManager()

 .createQuery(SELECT key FROM Conversation o WHERE o.commentKey = 
:commentKey AND status  +

  IN (' + ConversationStatus.DEFAULT.name() + ', ' + ConversationStatus.
PRIORITIZED.name() + ')  +

  order by rank ASC).setParameter(commentKey, key);

  if (convsToDisplay != null) {

 query.setMaxResults(convsToDisplay);

 }

  return query.getResultList();

}


 [domain logic]

ListKey convKeys = 
findConversationKeysForCommentVisibleRanked(this.commentKey, null);

int numConvs = convKeys.size();

// find current and new position, all based just on entity's (this) key and 
the key list from query

this.setRank(newRank);

this.entityManager.merge(this);


[exception I get, redacted]

WARNING: Request completed without committing or rolling back transaction 
with id 2.  Transaction will be rolled back.

2011-09-05 23:26:36,859 [971889075@qtp-1108447-0] DEBUG 
org.springframework.orm.jpa.EntityManagerFactoryUtils - Could not close JPA 
EntityManager

javax.persistence.PersistenceException: Illegal argument

at 
org.datanucleus.jpa.NucleusJPAHelper.getJPAExceptionForJDOException(NucleusJPAHelper.java:214)

at org.datanucleus.jpa.EntityManagerImpl.close(EntityManagerImpl.java:157)

at 
org.datanucleus.store.appengine.jpa.DatastoreEntityManager.close(DatastoreEntityManager.java:62)

Caused by: java.lang.IllegalArgumentException: can't operate on multiple 
entity groups in a single transaction. found both Element {

  type: Conversation

  id: 38

}

 and Element {

  type: Conversation

  id: 34

}


 

-- 
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/-/EsdXzHj_cAUJ.
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: Retrieving keys involving corresponding entities in transaction

2011-09-05 Thread Mauricio Aristizabal
Forgot to add: entity 38 is the one being updated, entity 34 is the one for 
the first key in the returned list.  May or may not be significant.

-- 
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/-/RR8XpgLr1QMJ.
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: min. charge under new pricing

2011-09-05 Thread senderj
Can anyone confirm that there is a min of $9 no matter what?

On Sep 5, 6:06 pm, senderj send...@hotmail.com wrote:
 I read many here trying to keep their apps free by reducing instance
 and storage. But I think I read the FAQ of the new pricing that there
 is a min of $9 per app. So as long as I own an app, even if it is
 totally idle (no request at all), I still need to pay $9? Or I
 misunderstood the paragraph?

-- 
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: min. charge under new pricing

2011-09-05 Thread senderj
The reason I need to check is that this $9 is NOT in the estimation
bill. It's misleading.

On Sep 6, 8:56 am, senderj send...@hotmail.com wrote:
 Can anyone confirm that there is a min of $9 no matter what?

 On Sep 5, 6:06 pm, senderj send...@hotmail.com wrote:



  I read many here trying to keep their apps free by reducing instance
  and storage. But I think I read the FAQ of the new pricing that there
  is a min of $9 per app. So as long as I own an app, even if it is
  totally idle (no request at all), I still need to pay $9? Or I
  misunderstood the paragraph?- Hide quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: min. charge under new pricing

2011-09-05 Thread John Patterson
You are right: 9 bucks is the minimum *if *you want to be able to 
automatically scale beyond the free limits.  Your app is either free to run 
(under 50,000 datastore ops a day etc) or at least 9 dollars a month. 
 Nothing in-between.  Its the fear of showing a quota error page to users 
that will force many small sites to pay this scaling fee.

-- 
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/-/DJ5D68t_XzUJ.
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: The JavaScript file is not found to the JSF2 application that has been deployed

2011-09-05 Thread John Patterson
Do you have caching set up for static files in your appengine-web.xml?  This 
can mean that when you deploy a new version the old scripts are still served 
for a while.  You can verify what scripts are available on the server by 
requesting them directly in your browser.

-- 
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/-/hKcDVj5oMsAJ.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: How to create excel file in servlet for google app engine application?

2011-09-05 Thread Didier Durand
Hi,

Another way to do it is to use the spreadsheet api of Google Docs and
send your users there (they can retrieve the web spreadsheet as a file
if needed)

See http://code.google.com/apis/spreadsheets/

regards

didier

On Sep 5, 7:57 pm, Marcelo Liberato mliber...@gmail.com wrote:
 You should try Apache POI:http://poi.apache.org/

 On Sep 5, 7:24 am, Sawan Darekar sawan.dare...@alphabricks.com
 wrote:

  i am developing cloud application which is hosted on google app engine and
  in this i want to *generate excel file* on click of button through servlet.

  i have done it on local machine but when i deploy my application on app
  engine it shows error HTTP Error 500 Internal server error

  i am using *jxl java api* for generating excel file

  code that i have used is here

  try
  {

    //i have used following content type but didn't worked.

    //response.setContentType(application/vnd.ms-excel);

    //response.setContentType(application/x-ms-excel);

    response.setContentType(application/CSV);

    WritableWorkbook w = Workbook.createWorkbook(response.getOutputStream());

    WritableSheet s = w.createSheet(Demo, 0);

    Label label = new Label(0, 2, A label record);

    s.addCell(label);

    w.write();

    w.close();}

  catch (Exception e)
  {

        response.getOutputStream().println(Exception :+e);}

  finally
  {

  }

  --
  Thanks  Regards,
  Raj



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