[appengine-java] Re: How can I keep the data saved in JDO datastore?

2010-10-28 Thread l.denardo
Data are persistent across deploys.
You only need to keep the same name for the entities and have
compatible models.
If you cannot see old data, probably you have done changes to your
data model. Anyway, you should be able to see your application data
from the admin console (datastore viewer). This can help you determine
whether you are having trouble with data persistence or with changes
in your data model. You should see all your previously existing
entities.

If you mean "update local data to live servers", so you can use data
you produced on your local machine to initialize your app, there's a
tool called bulk loader. I never used it but there's an interesting
post on Ikai Lan's blog
http://ikaisays.com/2010/06/10/using-the-bulkloader-with-java-app-engine/


Regards
Lorenzo

On Oct 28, 2:23 am, qiwawa  wrote:
> Is this a non-issue at all? Anyone?
> Thank you.
>
> On Oct 26, 7:37 pm, qiwawa  wrote:
>
> > I wanted to keep the data when upgrading my app to a new version. How
> > can I do this?
>
> > Each time I upgrade it it looks like my data was lost. There is no way
> > in admin area that i can back up my data before upgrade.
>
> > Thanks.
>
> > Q

-- 
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] Text enclosed with

2010-10-28 Thread Cyrille Vincey
You should use the method Text.getValue()

From:  Michael Boswell 
Reply-To:  
Date:  Wed, 27 Oct 2010 17:38:48 -0700 (PDT)
To:  
Subject:  [appengine-java] Text enclosed with 

I have a com.google.appengine.api.datastore.Text object stored in the
datastore, when examined through the datastore viewer, it reads as it should
e.g. 'this is a test'

I retrieve it with a

public Text getData() {
return data;
} 

then write it out with getWriter, however I'm getting 
instead of just 'this is a test'

Sure I'm doing something daft! I'm rather new to java.

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


-- 
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] mapreduce job is not aborted

2010-10-28 Thread Cyrille Vincey
"Abort" button doesn't work indeed.
When I want to abort a mapreduce job, I directly mapreduce-related entities
in the datastore viewer : MapReduceStat and ShardDontKnowWhat.
 

From:  aswath satrasala 
Reply-To:  
Date:  Thu, 28 Oct 2010 11:03:52 +0530
To:  
Subject:  [appengine-java] mapreduce job is not aborted

Hello,
On my app-id vs-accounting.appspot.com  ,
I started a mapreduce job.  It did not run, because the Entity did not had
decreasing index.  The status is now showing with the link abort
 
After clicking on the abort, the job is not aborted.  I look at the logs,
and it is continuously performing something every minute.
Can you help me in aborting the job.

Regards
Aswath
http://vs-accounting.appspot.com


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


-- 
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] mapreduce job is not aborted

2010-10-28 Thread Cyrille Vincey
Š I directly DELETE Š
(makes more sense with all the words)

From:  Cyrille Vincey 
Date:  Thu, 28 Oct 2010 09:56:51 +0200
To:  
Subject:  Re: [appengine-java] mapreduce job is not aborted

"Abort" button doesn't work indeed.
When I want to abort a mapreduce job, I directly mapreduce-related entities
in the datastore viewer : MapReduceStat and ShardDontKnowWhat.
 

From:  aswath satrasala 
Reply-To:  
Date:  Thu, 28 Oct 2010 11:03:52 +0530
To:  
Subject:  [appengine-java] mapreduce job is not aborted

Hello,
On my app-id vs-accounting.appspot.com  ,
I started a mapreduce job.  It did not run, because the Entity did not had
decreasing index.  The status is now showing with the link abort
 
After clicking on the abort, the job is not aborted.  I look at the logs,
and it is continuously performing something every minute.
Can you help me in aborting the job.

Regards
Aswath
http://vs-accounting.appspot.com


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


-- 
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: Text enclosed with

2010-10-28 Thread Michael
Yes that works! Thank you - I did see this method, but it says it
returns a String, which I thought would be back to the less than 500
characters

On Oct 28, 8:52 am, Cyrille Vincey  wrote:
> You should use the method Text.getValue()
>

-- 
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] Change namespace on existing entities

2010-10-28 Thread aswath satrasala
Hello,
I have an multi-tenant app-id, and I have designed on partitioning the
entities based on  url parameters.  I am not using the namespace yet.

For example,

Tenant {
@Id name+email;
}

class Party {
  @Long id
  Key tenantKey;  // partitioning/filtering
  String fname
}

Now, I am planning to use the NamespaceManager for the Party entities.  I
want to use the mapreduce and apply the namespace on the existing Party
entities.
Can a namespace be changed from empty to certain value on the existing
entity.

-Aswath
http://vs-accounting.appspot.com

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



Re: [appengine-java] mapreduce job is not aborted

2010-10-28 Thread aswath satrasala
thanks Cyrille, no jobs are now running.

-Aswath

On Thu, Oct 28, 2010 at 1:28 PM, Cyrille Vincey  wrote:

> … I directly DELETE …
> (makes more sense with all the words)
>
> From: Cyrille Vincey 
> Date: Thu, 28 Oct 2010 09:56:51 +0200
>
> To: 
> Subject: Re: [appengine-java] mapreduce job is not aborted
>
> "Abort" button doesn't work indeed.
> When I want to abort a mapreduce job, I directly mapreduce-related entities
> in the datastore viewer : MapReduceStat and Shard*DontKnowWhat*.
>
>
> From: aswath satrasala 
> Reply-To: 
> Date: Thu, 28 Oct 2010 11:03:52 +0530
> To: 
> Subject: [appengine-java] mapreduce job is not aborted
>
> Hello,
> On my app-id vs-accounting.appspot.com, I started a mapreduce job.  It did
> not run, because the Entity did not had decreasing index.  The status is now
> showing with the link abort
> After clicking on the abort, the job is not aborted.  I look at the logs,
> and it is continuously performing something every minute.
> Can you help me in aborting the job.
>
> Regards
> Aswath
> http://vs-accounting.appspot.com
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>

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



[appengine-java] Re: Change namespace on existing entities

2010-10-28 Thread Didier Durand
Hi,

http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/NamespaceManager.html
says

"When a namespace aware class (e.g., Key, Query and MemcacheService)
is constructed, it determines which namespace will be used by calling
get() if it is otherwise unspecified. If get() returns null, the
current namespace is unset and these APIs will use the empty ("")
namespace in its place. "

So, I would guess that you have to recreate / copy your entities after
having set namespace via NameSpaceManager.set() if you want to move
them into a new namespace

regards
didier

On Oct 28, 11:34 am, aswath satrasala 
wrote:
> Hello,
> I have an multi-tenant app-id, and I have designed on partitioning the
> entities based on  url parameters.  I am not using the namespace yet.
>
> For example,
>
> Tenant {
> @Id name+email;
>
> }
>
> class Party {
>   @Long id
>   Key tenantKey;  // partitioning/filtering
>   String fname
>
> }
>
> Now, I am planning to use the NamespaceManager for the Party entities.  I
> want to use the mapreduce and apply the namespace on the existing Party
> entities.
> Can a namespace be changed from empty to certain value on the existing
> entity.
>
> -Aswathhttp://vs-accounting.appspot.com

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



[appengine-java] Access to Subversion (SVN) from App Engine

2010-10-28 Thread Didier Durand
Hi there,

I would like to be able to use SVN from Google App Engine to retrieve
files from the repository, check changes, make diffs, etc...

I used SvnKit from a regular JVM on a server: that would satisfy my
needs

But, according to 
http://old.nabble.com/Google-App-Engine-Support-td28219433.html
, I understand that the use of raw sockets by SvnKit makes it unsable
on Google App Engine as GAE restricts network access to http.

a) Has somebody tried SvnKit on Google App Engine and can confirm the
issue ?
b) Is there any other proper way to access SVN from App Engine ?

Thanks,
didier

-- 
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] Access to Subversion (SVN) from App Engine

2010-10-28 Thread Paul Hammant
I'm interested in this too.  Though not quite in the same way as you.

I wish for the provision of GoogleCode's Svn-on-Bigtable capability through
the AppEngine platform.  I want to do PUTs to an AppSpot app that could (if
my servlet is so configured) fall through to an underlying Subversion
provision.

- Paul


On Thu, Oct 28, 2010 at 7:10 AM, Didier Durand wrote:

> Hi there,
>
> I would like to be able to use SVN from Google App Engine to retrieve
> files from the repository, check changes, make diffs, etc...
>
> I used SvnKit from a regular JVM on a server: that would satisfy my
> needs
>
> But, according to
> http://old.nabble.com/Google-App-Engine-Support-td28219433.html
> , I understand that the use of raw sockets by SvnKit makes it unsable
> on Google App Engine as GAE restricts network access to http.
>
> a) Has somebody tried SvnKit on Google App Engine and can confirm the
> issue ?
> b) Is there any other proper way to access SVN from App Engine ?
>
> Thanks,
> didier
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

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



Re: [appengine-java] mapreduce job is not aborted

2010-10-28 Thread aswath satrasala
Hello Cyrille,
I am looking at the logs, and I am seeing some requests in the logs every 1
hour.
mapreduce/mapperCallback

Uncaught exception from servlet
java.lang.RuntimeException: Couldn't find MR with job ID: job_1288164365012_0001
at 
com.google.appengine.tools.mapreduce.AppEngineJobContext.getConfigurationFromRequest(AppEngineJobContext.java:157)
at 
com.google.appengine.tools.mapreduce.AppEngineJobContext.(AppEngineJobContext.java:110)


Aswath
On Thu, Oct 28, 2010 at 3:07 PM, aswath satrasala <
aswath.satras...@gmail.com> wrote:

> thanks Cyrille, no jobs are now running.
>
> -Aswath
>
>
> On Thu, Oct 28, 2010 at 1:28 PM, Cyrille Vincey  wrote:
>
>> … I directly DELETE …
>> (makes more sense with all the words)
>>
>> From: Cyrille Vincey 
>> Date: Thu, 28 Oct 2010 09:56:51 +0200
>>
>> To: 
>> Subject: Re: [appengine-java] mapreduce job is not aborted
>>
>> "Abort" button doesn't work indeed.
>> When I want to abort a mapreduce job, I directly mapreduce-related
>> entities in the datastore viewer : MapReduceStat and Shard*DontKnowWhat*.
>>
>>
>> From: aswath satrasala 
>> Reply-To: 
>> Date: Thu, 28 Oct 2010 11:03:52 +0530
>> To: 
>> Subject: [appengine-java] mapreduce job is not aborted
>>
>> Hello,
>> On my app-id vs-accounting.appspot.com, I started a mapreduce job.  It
>> did not run, because the Entity did not had decreasing index.  The status is
>> now showing with the link abort
>> After clicking on the abort, the job is not aborted.  I look at the logs,
>> and it is continuously performing something every minute.
>> Can you help me in aborting the job.
>>
>> Regards
>> Aswath
>> http://vs-accounting.appspot.com
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine for Java" group.
>> To post to this group, send email to
>> google-appengine-j...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine-java+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine-java?hl=en.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine for Java" group.
>> To post to this group, send email to
>> google-appengine-j...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine-java+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine-java?hl=en.
>>
>
>

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



[appengine-java] Re: uploaded file how to view in browser

2010-10-28 Thread prabu

Hii
   Thanks to all
It's working fine response.setContentType("application/pdf");

-- 
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] mapreduce job is not aborted

2010-10-28 Thread Cyrille Vincey
Have you looked into your taskqueue if some tasks related to your mapreduce
job are still queued ?

From:  aswath satrasala 
Reply-To:  
Date:  Thu, 28 Oct 2010 17:59:34 +0530
To:  
Subject:  Re: [appengine-java] mapreduce job is not aborted

Hello Cyrille,
I am looking at the logs, and I am seeing some requests in the logs every 1
hour.
mapreduce/mapperCallback
Uncaught exception from servlet

java.lang.RuntimeException: Couldn't find MR with job ID:
job_1288164365012_0001
 at 
com.google.appengine.tools.mapreduce.AppEngineJobContext.getConfigurationFro
mRequest(AppEngineJobContext.java:157)
 at 
com.google.appengine.tools.mapreduce.AppEngineJobContext.(AppEngineJob
Context.java:110)

Aswath
On Thu, Oct 28, 2010 at 3:07 PM, aswath satrasala
 wrote:
> thanks Cyrille, no jobs are now running.
> 
> -Aswath
> 
> 
> On Thu, Oct 28, 2010 at 1:28 PM, Cyrille Vincey  wrote:
>> Š I directly DELETE Š
>> (makes more sense with all the words)
>> 
>> From:  Cyrille Vincey 
>> Date:  Thu, 28 Oct 2010 09:56:51 +0200
>> 
>> To:  
>> Subject:  Re: [appengine-java] mapreduce job is not aborted
>> 
>> "Abort" button doesn't work indeed.
>> When I want to abort a mapreduce job, I directly mapreduce-related entities
>> in the datastore viewer : MapReduceStat and ShardDontKnowWhat.
>>  
>> 
>> From:  aswath satrasala 
>> Reply-To:  
>> Date:  Thu, 28 Oct 2010 11:03:52 +0530
>> To:  
>> Subject:  [appengine-java] mapreduce job is not aborted
>> 
>> Hello,
>> On my app-id vs-accounting.appspot.com  , I
>> started a mapreduce job.  It did not run, because the Entity did not had
>> decreasing index.  The status is now showing with the link abort
>>  
>> After clicking on the abort, the job is not aborted.  I look at the logs, and
>> it is continuously performing something every minute.
>> Can you help me in aborting the job.
>> 
>> Regards
>> Aswath
>> http://vs-accounting.appspot.com
>> 
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine for Java" group.
>> To post to this group, send email to google-appengine-j...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine-java+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine-java?hl=en.
>> -- 
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine for Java" group.
>> To post to this group, send email to google-appengine-j...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine-java+unsubscr...@googlegroups.com
>>  .
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine-java?hl=en.
> 


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


-- 
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] blockstore on 1.3.8 httpservlet 404

2010-10-28 Thread asianCoolz
hi, i follow tutorial sample code at 
http://code.google.com/appengine/docs/java/blobstore/overview.html
, but when i try upload file , i get

HTTP ERROR 404

Problem accessing /upload. Reason:

NOT_FOUND

Powered by Jetty://


my web.xml



http://java.sun.com/dtd/web-app_2_3.dtd";>

http://www.w3.org/2001/XMLSchema-instance";
   xmlns="http://java.sun.com/xml/ns/javaee";
   xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
   xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
   http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; version="2.5">


  



  
Upload
com.testtestonly.server.testonly.Upload
  

  
Serve
com.testtestonly.server.testonly.Serve
  




  
greetServlet
com.user.cms.server.GreetingServiceImpl
  






  
Upload
/upload
  

  
Serve
/serve
  


greetServlet
/cmsui/greet
  


  
CMSUI.html
  








anything i did wrong?

-- 
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] blockstore on 1.3.8 httpservlet 404

2010-10-28 Thread asianCoolz
hi, i follow tutorial sample code at 
http://code.google.com/appengine/docs/java/blobstore/overview.html
, but when i try upload file , i get

HTTP ERROR 404

Problem accessing /upload. Reason:

NOT_FOUND

Powered by Jetty://


my web.xml



http://java.sun.com/dtd/web-app_2_3.dtd";>

http://www.w3.org/2001/XMLSchema-instance";
   xmlns="http://java.sun.com/xml/ns/javaee";
   xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
   xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
   http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; version="2.5">


  



  
Upload
com.testtestonly.server.testonly.Upload
  

  
Serve
com.testtestonly.server.testonly.Serve
  




  
greetServlet
com.user.cms.server.GreetingServiceImpl
  






  
Upload
/upload
  

  
Serve
/serve
  


greetServlet
/cmsui/greet
  


  
CMSUI.html
  








anything i did wrong?

-- 
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: 1.3.8 Console Logging Issue

2010-10-28 Thread madein
Hi,
is anyone from App Engine team is aware of this?
I can raise new issue in the bugtracer (http://code.google.com/p/
googleappengine/issues/list) but at this moment AppEngine has 1596
registered defects. Is there a point in registering another one, maybe
you could fix this skipping the red tape?

br,
M.


On 27 Paź, 02:03, Raymond  wrote:
> I'm facing the same issue too.
>
> On Oct 26, 11:47 am, Dan Dubois  wrote:
>
> > I am getting the same problem but still on GWT 2.0.3. It must be an
> > app engine java dev server problem.
>
> > On Oct 25, 6:04 am, vvorski  wrote:
>
> > > Same here with python on a Mac. Have heard reports of same with Java
> > > on windows. Seems to be a global1.3.8problem?
>
> > > V/.
>
> > > On Oct 24, 9:04 pm, jt  wrote:
>
> > > > Hello,
>
> > > > I upgraded my project from 1.3.4 to1.3.8. After the upgrade, the
> > > > console fails to log. If I switch back to 1.3.4, the console logs
> > > > properly.
>
> > > > I am on a 64-bit Windows Vista environment, running Eclipse 3.4.2 w/
> > > > (MyEclipse and Instantiations GWT tools)
>
> > > > 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] java.util.HashMap for field not marked persistent

2010-10-28 Thread kapliars
Hi there, I'm trying my first attempt on GAE and face wierd exception
(I'm new to JDO too):

I have a data class with a map field, intended to be used internally:

@PersistenceCapable(identityType=IdentityType.APPLICATION)
public class ElementAnalysis {
...
//not persistent
private Map amounts = new HashMap();

}

then I try to save it


@Override
public Long save(ElementAnalysis analysis) {
PersistenceManager pm =
ManagerFactory.get().getPersistenceManager();
try {
pm.currentTransaction().begin();
pm.makePersistent(analysis);
pm.currentTransaction().commit();
return analysis.getKey();
} finally {
if (pm.currentTransaction().isActive()) {
pm.currentTransaction().rollback();
}
pm.close();
}

}


and suddenly I see:

 [java] WARNING: /upload
 [java] java.lang.IllegalArgumentException: amounts:
java.util.HashMap is not a supported property type.
 [java] at
com.google.appengine.api.datastore.DataTypeUtils.checkSupportedSingleValue(DataTypeUtils.java:
184)
 [java] at
com.google.appengine.api.datastore.DataTypeUtils.checkSupportedValue(DataTypeUtils.java:
157)
 [java] at
com.google.appengine.api.datastore.DataTypeUtils.checkSupportedValue(DataTypeUtils.java:
123)
 [java] at
com.google.appengine.api.datastore.Entity.setProperty(Entity.java:280)
 [java] at
org.datanucleus.store.appengine.DatastoreFieldManager.storeObjectField(DatastoreFieldManager.java:
843)
 [java] at
org.datanucleus.state.AbstractStateManager.providedObjectField(AbstractStateManager.java:
1037)
 [java] at
ru.sponsite.doctor.domain.ElementAnalysis.jdoProvideField(ElementAnalysis.java)
 [java] at
ru.sponsite.doctor.domain.ElementAnalysis.jdoProvideFields(ElementAnalysis.java)
 [java] at
org.datanucleus.state.JDOStateManagerImpl.provideFields(JDOStateManagerImpl.java:
2715)
 [java] at
org.datanucleus.store.appengine.DatastorePersistenceHandler.insertPreProcess(DatastorePersistenceHandler.java:
341)
 [java] at
org.datanucleus.store.appengine.DatastorePersistenceHandler.insertObjects(DatastorePersistenceHandler.java:
251)

What am I doing wrong?

-- 
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: 1.3.8 Console Logging Issue

2010-10-28 Thread Luis
Same problem for me.

Any solution?

On 27 oct, 02:03, Raymond  wrote:
> I'm facing the same issue too.
>
> On Oct 26, 11:47 am, Dan Dubois  wrote:> I am getting the 
> same problem but still on GWT 2.0.3. It must be an
> > app engine java dev server problem.
>
> > On Oct 25, 6:04 am, vvorski  wrote:
>
> > > Same here with python on a Mac. Have heard reports of same with Java
> > > on windows. Seems to be a global1.3.8problem?
>
> > > V/.
>
> > > On Oct 24, 9:04 pm, jt  wrote:
>
> > > > Hello,
>
> > > > I upgraded my project from 1.3.4 to1.3.8. After the upgrade, the
> > > > console fails to log. If I switch back to 1.3.4, the console logs
> > > > properly.
>
> > > > I am on a 64-bit Windows Vista environment, running Eclipse 3.4.2 w/
> > > > (MyEclipse and Instantiations GWT tools)
>
> > > > 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] appengine-tools-api.jar not found

2010-10-28 Thread Muki
Hi guys!

I just switched from the Python SDK to Java for a project and I
downloaded the newest SDK (1.3.8). However whenever I run
dev_appserver.sh it says that it can't find the appengine-tools-
api.jar. When I try to find it on my machine I can't seem to be able
to locate it either. Where do I get it? How? Has this been deprecated
and not changed in the tutorial yet?

Best,

Muki

-- 
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] Is it ok to change the package of a model class?

2010-10-28 Thread Tapir
I want to refactor the src paths.

-- 
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] Blobstore doesn't redirect

2010-10-28 Thread Carlos Gama
People

I have a problem with de blobstore, the engine doesn't redirect to my
servlet after the upload.
My form is submitted and the upload is done, i can see the file in
blob viewer. but the path that i put
blobstoreService.createUploadUrl("/admin") doens't is called.

In the browser the addres stay ..._ah/upload/
AMmfu6ZDRircPmKwV7gU97XKIvUt5oyp9nN7mUfnD4Ik-
m5Cnfd_SFYNdGfgN3w5hsIxNfObrP7UYYhcEkGDO419L0yFEdeAWvWjODwEgrrukZ9rcFEhRCU/
ALBNUaYATMi3n4feeipn8tLdc4gANJjjJZozX8je/

In the log:
Invalid HTTP response code (200) for Blob upload. Valid codes are 301,
302, and 303.

Locally works fine, anyone can help me?

-- 
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] datastore viewer's GQL

2010-10-28 Thread Ikai Lan (Google)
I'm guessing this is a custom rolled User object. Here's how you'd likely do
it:

SELECT * FROM User where __key__=KEY('User', 100100)

--
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 Wed, Oct 27, 2010 at 6:58 PM, pman  wrote:

> i have following record in the datastore.
>
> datastore ABC
> ===
> ID/Name title   message user
> ===
>
> and the user is the object.
>
>
> how to run GQL to filter a particular user's record - user
> (ag1udW1iZXJzaaD9wejAxcgsLEgRVc2VyGOkHKK
> User: id=100100)
>
> ??
>
> select * from ABC where user = User(100100) (not working).
>
>
> any 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.
>
>

-- 
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] appengine-tools-api.jar not found

2010-10-28 Thread Ikai Lan (Google)
Strange, if you unzip the download, it should just be here:

appengine-java-sdk-1.3.8/lib

Did you download the file from here?

http://googleappengine.googlecode.com/files/appengine-java-sdk-1.3.8.zip

--
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 Wed, Oct 27, 2010 at 7:00 PM, Muki  wrote:

> Hi guys!
>
> I just switched from the Python SDK to Java for a project and I
> downloaded the newest SDK (1.3.8). However whenever I run
> dev_appserver.sh it says that it can't find the appengine-tools-
> api.jar. When I try to find it on my machine I can't seem to be able
> to locate it either. Where do I get it? How? Has this been deprecated
> and not changed in the tutorial yet?
>
> Best,
>
> Muki
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

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



Re: [appengine-java] Is it ok to change the package of a model class?

2010-10-28 Thread Ikai Lan (Google)
It should be. Kind names don't include the full package name. I'm assuming
you're using JDO/JPA?

--
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 Wed, Oct 27, 2010 at 1:21 PM, Tapir  wrote:

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

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



Re: [appengine-java] appengine-tools-api.jar not found

2010-10-28 Thread Filip Muki Dobranic
yup. I just realized that somehow I had a corrupt archive and it just didn't
extract everything. all is working fine now. thanks anyway and sorry for
littering the list. :)

m

On Thu, Oct 28, 2010 at 11:58 AM, Ikai Lan (Google) <
ikai.l+gro...@google.com > wrote:

> Strange, if you unzip the download, it should just be here:
>
> appengine-java-sdk-1.3.8/lib
>
> Did you download the file from here?
>
> http://googleappengine.googlecode.com/files/appengine-java-sdk-1.3.8.zip
>
> --
> 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 Wed, Oct 27, 2010 at 7:00 PM, Muki  wrote:
>
>> Hi guys!
>>
>> I just switched from the Python SDK to Java for a project and I
>> downloaded the newest SDK (1.3.8). However whenever I run
>> dev_appserver.sh it says that it can't find the appengine-tools-
>> api.jar. When I try to find it on my machine I can't seem to be able
>> to locate it either. Where do I get it? How? Has this been deprecated
>> and not changed in the tutorial yet?
>>
>> Best,
>>
>> Muki
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine for Java" group.
>> To post to this group, send email to
>> google-appengine-j...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine-java+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine-java?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>

-- 
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 keep the data saved in JDO datastore?

2010-10-28 Thread qiwawa
Thanks Lorenzo. I'd prefer if Google AE can provide a way for us to
back up the data and restore it back.

An export/import tool will be the most useful and make me feel better
that my data is safe.

Is there a way to back it up?

Thanks again.

Q

On Oct 28, 3:14 am, "l.denardo"  wrote:
> Data are persistent across deploys.
> You only need to keep the same name for the entities and have
> compatible models.
> If you cannot see old data, probably you have done changes to your
> data model. Anyway, you should be able to see your application data
> from the admin console (datastore viewer). This can help you determine
> whether you are having trouble with data persistence or with changes
> in your data model. You should see all your previously existing
> entities.
>
> If you mean "update local data to live servers", so you can use data
> you produced on your local machine to initialize your app, there's a
> tool called bulk loader. I never used it but there's an interesting
> post on Ikai Lan's 
> bloghttp://ikaisays.com/2010/06/10/using-the-bulkloader-with-java-app-eng...
>
> Regards
> Lorenzo
>
> On Oct 28, 2:23 am, qiwawa  wrote:
>
> > Is this a non-issue at all? Anyone?
> > Thank you.
>
> > On Oct 26, 7:37 pm, qiwawa  wrote:
>
> > > I wanted to keep the data when upgrading my app to a new version. How
> > > can I do this?
>
> > > Each time I upgrade it it looks like my data was lost. There is no way
> > > in admin area that i can back up my data before upgrade.
>
> > > Thanks.
>
> > > Q

-- 
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: Newly deployed app doesn’t se em always reflected on the server.

2010-10-28 Thread nnhobbit
Is version number change necessary? If I deploy it with the same
version number, shouldn’t the old one simply be replaced?

The page is not cached and I’m not behind any proxy. I’m now thinking
it’s more likely there’s a zombie process running?


On Oct 16, 10:12 am, Benjamin  wrote:
> are you changing the version number? You'd need to go to the console
> and change the version that's being served.
>
> Maybe you're caching behind a proxy or viewing a cached version on
> your end? try loading the url in a browser and hit F5
>
> On Oct 15, 4:21 pm, nnhobbit  wrote:
>
> > I deployed an app, in which an URL was originally serving simply a
> > “hello”. Later I changed the content served from that URL to something
> > else and deployed it again. However the new content did not show up
> > and the page still showed the original “hello”.
>
> > Another (possibly related) issue I'm experiencing is that an URL that
> > was removed from my code remained accessible for about a day or so
> > after the new code was deployed. (The issue could be either from the
> > delayed deployment or some sort of cache?)
>
> > p.s. everything is working as expected on devel environment.
> > p.s. admin console shows successful deployment.
>
> > Anyone encountered similar issues? Any suggestions?
>
> > 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: Newly deployed app doesn’t se em always reflected on the server.

2010-10-28 Thread nnhobbit
Is version number change necessary? If I deploy it with the same
version number, shouldn’t the old one simply be replaced?

The page is not cached and I’m not behind any proxy. I’m now thinking
it’s more likely there’s a zombie process running?


On Oct 16, 10:12 am, Benjamin  wrote:
> are you changing the version number? You'd need to go to the console
> and change the version that's being served.
>
> Maybe you're caching behind a proxy or viewing a cached version on
> your end? try loading the url in a browser and hit F5
>
> On Oct 15, 4:21 pm, nnhobbit  wrote:
>
> > I deployed an app, in which an URL was originally serving simply a
> > “hello”. Later I changed the content served from that URL to something
> > else and deployed it again. However the new content did not show up
> > and the page still showed the original “hello”.
>
> > Another (possibly related) issue I'm experiencing is that an URL that
> > was removed from my code remained accessible for about a day or so
> > after the new code was deployed. (The issue could be either from the
> > delayed deployment or some sort of cache?)
>
> > p.s. everything is working as expected on devel environment.
> > p.s. admin console shows successful deployment.
>
> > Anyone encountered similar issues? Any suggestions?
>
> > 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.



Re: [appengine-java] datastore viewer's GQL

2010-10-28 Thread pman
thx - it work.

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