Re: [google-appengine] Decoding a file created with the filesystem API

2012-03-05 Thread Kayode Odeyemi
On Mon, Mar 5, 2012 at 5:28 PM, Jeff Schnitzer  wrote:

> On Mon, Mar 5, 2012 at 12:20 PM, Kayode Odeyemi  wrote:
>
>>
>> In my use case, I just needed the files to be stored temporarily using
>> the filesystem api (just for UI purposes). To permanently save the uploaded
>> file, I implemented the blobstore api. This way I don't have to worry about
>> whether the files will be available in the saved directory forever.
>>
>
> This may be a significant part of your misunderstanding.  There is no
> local filesystem you can write to.  The Files API lets you write to the
> Blobstore or Google Storage, that's it.  All writes are "permanent" until
> you delete them.
>

So whether the files are written using the Files API or directly uploaded
to the blobstore, the blobstore still reside on disk?

(Please accept my misunderstanding - It is better to get to understand this
once and for all )

-- 
Odeyemi 'Kayode O.
http://ng.linkedin.com/in/kayodeodeyemi. t: @charyorde blog:
http://sinati.com/tree/java-cheat-sheet

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



Re: [google-appengine] Decoding a file created with the filesystem API

2012-03-05 Thread Kayode Odeyemi
2012/3/5 Ronoaldo José de Lana Pereira 

> Jeff is right, I was actually assuming this behavior by reading this info
> from javadoc: "If you wish to stop serving the URL, delete the underlying
> blob key. This takes up to 24 hours to take effect. ". But this don't
> explicitly states that they will be available forever. Anyway, we are using
> them for about a year ago.
>

In my use case, I just needed the files to be stored temporarily using the
filesystem api (just for UI purposes). To permanently save the uploaded
file, I implemented the blobstore api. This way I don't have to worry about
whether the files will be available in the saved directory forever.

-- 
Odeyemi 'Kayode O.
http://ng.linkedin.com/in/kayodeodeyemi. t: @charyorde blog:
http://sinati.com/tree/java-cheat-sheet

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



Re: [google-appengine] Decoding a file created with the filesystem API

2012-03-02 Thread Kayode Odeyemi
On Thu, Mar 1, 2012 at 11:25 PM, Jeff Schnitzer  wrote:

> On Thu, Mar 1, 2012 at 3:34 PM, Kayode Odeyemi  wrote:
>
>> To store upload images as blob using the filesystem api. Then be able
>> to access the raw image files via a file/url resource path when
>> wrapped around >
>
> Forget file paths.  The only thing that matters is 1) getting your blob
> into the blobstore, and 2) calling getServingUrl().
>
> I got it resolved with this:

FileService fileService = FileServiceFactory.getFileService();
AppEngineFile writableFile =
fileService.createNewBlobFile(request.getParameter("qqfile"));
FileWriteChannel writeChannel = null;
try {
byte[] buffer = new byte[4096]; // 4MB
lock = true;
writeChannel = fileService.openWriteChannel(writableFile,
lock);
// increase the buffer size as you are reading from the
// input stream. Read the input stream into buffer
for (int n; (n = stream.read(buffer)) != -1; ){
writeChannel.write(ByteBuffer.wrap(buffer));
}
} finally {
writeChannel.closeFinally();
}

BlobKey blobKey = fileService.getBlobKey(writableFile);
ImagesService imagesService = ImagesServiceFactory.getImagesService();

// produces something like
http://localhost:/_ah/img/SU52WMsoCRP3kqAvQqVW3g
String imageUrl = imagesService.getServingUrl(blobKey);

Cool stuff!

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



-- 
Odeyemi 'Kayode O.
http://ng.linkedin.com/in/kayodeodeyemi. t: @charyorde blog:
http://sinati.com/tree/java-cheat-sheet

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



Re: [google-appengine] Decoding a file created with the filesystem API

2012-03-01 Thread Kayode Odeyemi
To store upload images as blob using the filesystem api. Then be able
to access the raw image files via a file/url resource path when
wrapped around  wrote:
> What are you trying to do?
>
> Jeff
>
> On Thu, Mar 1, 2012 at 2:29 PM, Kayode Odeyemi  wrote:
>
>> 2012/3/1 Ronoaldo José de Lana Pereira 
>>
>>> Hello Odeyemi,
>>>
>>> If I got your problem right, yes, you can use the Files API to create an
>>> image blob, then use the ImageService to create a dedicated URL to serve
>>> that image as Jeff said. You can safely cache the generated URL, it will
>>> be
>>> available as long as you don't delete de blob.
>>>
>>> Double check that you called the closeFinally as documented here when
>>> creating the blob, and use the method
>>> getBlobKey<http://code.google.com/intl/en/appengine/docs/java/javadoc/com/google/appengine/api/files/FileService.html#getBlobKey%28com.google.appengine.api.files.AppEngineFile%29>from
>>> the Files api to get the blob key after you finalize your file. You
>>> can then use this to call the ImageService.getServingUrl(). This proccess
>>> works for both your unit tests and the local dev server.
>>>
>>> I think I implemented this just exactly the way you guys described it:
>>
>> Here's the code I'm working it:
>>
>> @RequestMapping(method=RequestMethod.POST)
>> public void handleFileRequest(HttpServletRequest request,
>> HttpServletResponse response) throws Exception {
>> Assert.notNull(request, "HttpServletRequest required");
>>
>> // get the POST data
>> Map files = request.getParameterMap();
>> Iterator iter = files.values().iterator();
>> List gg = new ArrayList();
>> while(iter.hasNext()) {
>> gg.add(iter.next());
>> }
>>
>> log.log(Level.INFO, "Parameter values are {0}",
>> request.getParameter("qqfile"));
>>
>> InputStream stream = request.getInputStream();
>> FileService fileService = FileServiceFactory.getFileService();
>> AppEngineFile writableFile = null;
>>
>> for(Object s : gg) {
>> writableFile = fileService.createNewBlobFile(s.toString());
>> }
>> //writableFile =
>> fileService.createNewBlobFile(request.getParameter("qqfile"));
>>
>> // Open a channel to write to it
>> boolean lock = false;
>> FileWriteChannel writeChannel =
>> fileService.openWriteChannel(writableFile, lock);
>> ByteBuffer buffer = ByteBuffer.allocateDirect(stream.available());
>> lock = true;
>> writeChannel = fileService.openWriteChannel(writableFile, lock);
>> writeChannel.write(buffer);
>> writeChannel.closeFinally();
>>
>> // get the created files path and pass to PrintWriter
>> // Now read from the file using the Blobstore API
>> BlobKey blobKey = fileService.getBlobKey(writableFile);
>> BlobstoreService blobStoreService =
>> BlobstoreServiceFactory.getBlobstoreService();
>>
>> // MAX_BLOB_FETCH_SIZE = 1015808
>> String segment = new String(blobStoreService.fetchData(blobKey,
>> 30, 1024));
>>
>> ImagesService imagesService =
>> ImagesServiceFactory.getImagesService();
>> String imageUrl = imagesService.getServingUrl(blobKey);
>> log.log(Level.INFO, "Imgae url is {0}", imageUrl);
>>
>> response.setContentType("application/json; charset=UTF-8");
>> PrintWriter out = response.getWriter();
>> out.write("{\"result1\" : " + '\"' + writableFile.getFullPath() +
>> '\"' + "}");
>>
>> When the file was sent, it wasn't sent with the full path to the file. I
>> only got the filename + extension. Something like: file-name.jpg. So I
>> just
>> simply used that to create the new blob file.
>>
>> Perhaps I might be doing something wrong. I stand to be corrected.
>>
>> Thanks
>>
>>>
>>> Em quinta-feira, 1 de março de 2012 14h19min41s UTC-3, drecute escreveu:
>>>
>>>> On Thu, Mar 1, 2012 at 3:03 PM, Jeff Schnitzer
>>>> wrote:
>>>>
>>>>> Look at the documentation for the images service.  There is a method
>>>>> that gives you a serving url directly to the CDN.
>>>>>
>>>>> Warning:  Thi

Re: [google-appengine] Decoding a file created with the filesystem API

2012-03-01 Thread Kayode Odeyemi
On Thu, Mar 1, 2012 at 3:03 PM, Jeff Schnitzer  wrote:

> Look at the documentation for the images service.  There is a method that
> gives you a serving url directly to the CDN.
>
> Warning:  This method has a surprising amount of latency, you probably
> want to cache the value in memcache for a reasonable duration.
>
> Can the Image Service work with the filesystem where the blob is stored?
Everytime I try to retrieve it using the method you mentioned
getServingUrl(blobkey), I get the error:

[java] java.lang.IllegalArgumentException: Failed to read image
[java] at
com.google.appengine.api.images.ImagesServiceImpl.getServingUrl(ImagesServiceImpl.java:222)


Also, I'm think this action is not possible on the dev server.

>
> On Thu, Mar 1, 2012 at 7:42 AM, Kayode Odeyemi  wrote:
>
>> Hi everyone,
>>
>> I have images uploaded to the blobstore using filesystem API. The files
>> have been uploaded successfully and I can see the blobs in the respective
>> directory.
>>
>> But then, how do I decode these files such that when sent back to the
>> client or retrieved using the blobstore API, I'm able to get an image?
>> Right now /blobstore/writable:xxx is not useful for me because when I wrap
>> the path in , it doesn't give me an
>> image.
>>
>> Any help is appreciated.
>>
>> Thanks
>>
>>
>> --
>> Odeyemi 'Kayode O.
>> http://ng.linkedin.com/in/kayodeodeyemi. t: @charyorde blog:
>> http://sinati.com/tree/java-cheat-sheet
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine" group.
>> To post to this group, send email to google-appengine@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appengine@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>



-- 
Odeyemi 'Kayode O.
http://ng.linkedin.com/in/kayodeodeyemi. t: @charyorde blog:
http://sinati.com/tree/java-cheat-sheet

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



[google-appengine] Decoding a file created with the filesystem API

2012-03-01 Thread Kayode Odeyemi
Hi everyone,

I have images uploaded to the blobstore using filesystem API. The files
have been uploaded successfully and I can see the blobs in the respective
directory.

But then, how do I decode these files such that when sent back to the
client or retrieved using the blobstore API, I'm able to get an image?
Right now /blobstore/writable:xxx is not useful for me because when I wrap
the path in , it doesn't give me an
image.

Any help is appreciated.

Thanks

-- 
Odeyemi 'Kayode O.
http://ng.linkedin.com/in/kayodeodeyemi. t: @charyorde blog:
http://sinati.com/tree/java-cheat-sheet

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



Re: [google-appengine] Re: Prerelease SDK 1.5.5 available for download!

2011-10-10 Thread Kayode Odeyemi
Just echoing Raphael Nunes:

Will Python 2.7 support multi-thread?

On Mon, Oct 10, 2011 at 7:19 PM, Deepak Singh wrote:

> Hi,
>
> So will it be by default 60 sec for all urlfetch or do we need to
> explicitly set this deadline parameter ?
> If yes, then how to set the 60 sec timeout parameter.
>
> Thanks
> Deepak
>
>
> On Mon, Oct 10, 2011 at 10:59 PM, Ikai Lan (Google) wrote:
>
>> As far as I know you shouldn't have to change SDK versions for the new
>> deadline to work.
>>
>> --
>> Ikai Lan
>> Developer Programs Engineer, Google App Engine
>> plus.ikailan.com | twitter.com/ikai
>>
>>
>>
>> On Wed, Oct 5, 2011 at 6:21 AM, Mathieu Clavel wrote:
>>
>>> Hi,
>>>
>>> For Java, "We have increased the URLFetch maximum deadline from 10
>>> seconds to 60 seconds."
>>> Will the new limit be usable from previous sdk version on appengine, or
>>> must there be a version migration ?
>>>
>>>
>>> Regards,
>>>
>>> Mathieu CLAVEL
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google App Engine" group.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msg/google-appengine/-/yNIVZlSFcBYJ.
>>>
>>> To post to this group, send email to google-appengine@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> google-appengine+unsubscr...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-appengine?hl=en.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine" group.
>> To post to this group, send email to google-appengine@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appengine@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>



-- 
Odeyemi 'Kayode O.
http://www.sinati.com. t: @charyorde

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



Re: [google-appengine] What do you want to see answered in Greg's pricing FAQ?

2011-05-13 Thread Kayode Odeyemi
how does the instance work? If I have multiple modules in one app, how
many instance is that? Or does it just mean that for as long as my app
is a singleton, no matter the amount of modules I have, it is still a
single instance.

At what point is Google distributing my app unto more than one server,
which will definitely cause more than one instance? Is it possible to
control the instances created? I mean like force App Engine to manage
resources within a fixed number of instances instead of trying to be
so perfect (unmanaged) that it costs me lots of money.

Greg, I'll be looking forward to your answers on these FAQs because
I'll be giving a talk on Google App Engine at upcoming CloudCamp
event.

Regards

On 5/12/11, Kenneth  wrote:
> Greg mentioned he was putting together an FAQ so let's help him out!
>
> If you're going to answer this just put in your question into a single line,
> let's not try and answer them here or give opinions, there's plenty of other
> threads for that. I do understand that Google doesn't have answers to some
> these.
>
> Here's my list:
>
> 1) What is the time granularity of the instance pricing?  ie if I have an
> instance up for 5 minutes, what am I charged, $0.08 / 60*5?
> 2) Will I be able to tune the scheduler myself, ie set it to performance or
> low cost,  Will I be able to limit the min or max number of instances
> created (with the obvious impact on user experience)?
> 3) Python concurrency, will this require any code changes, do you have any
> estimates based on your testing of the number of well behaved requests per
> second a single instance will be able to handle for a given framework?
> 4) Database charges, when can you give us more details over what Max gave in
> the other thread, are you charging for deletes, what do you expect the ratio
> to be between the new pricing metric and the Datastore API calls metric we
> have today?
> 5) Will you be charging differently for instances that use different amounts
> of memory, since this seems to be the cost that you're going after that
> isn't charged for in the current model.
>
> Thanks,
> Kenneth
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appengine@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>


-- 
Odeyemi 'Kayode O.
http://www.sinati.com. t: @charyorde

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



Re: [google-appengine] Re: The aftermath of Garage48 Lagos. GWT and GAE rules

2011-05-11 Thread Kayode Odeyemi
Thanks Sasha, that is really encouraging.

Because the thought about the app is towards less seriousness on the part
of the user, that is, it is not really a financial management software per
se. So,
the issue of 419 does not apply to this app. The app doesn't ask for credit
card information or any kind of sensitive information that will make you
insecure.
The reason behind it is that, here in Africa, people love to flaunt what
they've
just purchased. They like to talk about it, share with friends etc. Also,
there's
this lackadaisical attitude towards spending, as people don't always have
control on
what they spend their money on. Hence, they can't track it.

Just recently I was talking to an advertising practitioner, and his interest
in this
app is about the figures and social integration. He said he will like to see
if this
app would be able to solve the problem of who buys what, where and what
price.
He said if the figures can be so accurate, then it will be a great medium
for
advertisers, since they want to see information about how users consume
their brands.
But that won't be feasible unless we have the user base.

One way we believe we can build a huge traction is via the mobile devices.
In Nigeria
for example, 60% of internet penetration is on the mobile device. This is
currently gaining
lots of attention even from US investors especially in the business of
mobile payment.
So for us, making the app free, easy to use and fun is a top priority.

Because of the uncertainty, we intend to make sure the app solves a problem
and then
we watch user usage trends, conduct surveys, just to be able to get exactly
what users
will want to see added to the app. This way we believe, we will get answers
to solving
key business issues, hence, build business relationships.

Thank you for the time. I truly appreciate.

Kind regards

On Wed, May 11, 2011 at 12:15 AM, Sasha  wrote:

> It is really unfortunate that 419 is the first topic to come up when a
> Nigerian developer surfaces... especially if this is discouraging
> developers who are trying to do something productive instead of
> scamming.
>
> I'm not sure that the 419 reputation is even the biggest barrier to
> selling a service like this to the West. For example, an app for
> balance/budget tracking is unlikely to compete with complimentary
> services provided by most banks and financial institutions which not
> only offer similar services, but which automatically update based on
> card usage and therefore do not require any data entry. For free,
> without ads. Add the confidence problem that Brandon mentioned, and I
> have to agree that it would be very tough to do and require a lot of
> thought.
>
> Based on the description, and not knowing about how everything works
> in Lagos, I think this could become a great concept for developing and
> emerging economies in places like urban Africa and India. In many
> places (especially outside the biggest cities, but even in them) it
> can be much harder to get information on product availability and
> prices than it is in the West. You don't get Yellow Pages booklets
> distributed everywhere, for example, and Yelp's coverage is pretty
> bad ;) Also, most transactions are likely to be in cash rather than on
> credit cards or checking accounts, so there is not much reason to
> focus on downloading or scraping financial data. Many local businesses
> are not going to have an easy way to reach buyers. So in many ways the
> idea of using crowd-sourcing is very interesting and I would be
> concerned with how to build a user base willing to send information
> (given somewhat limited internet access and saturation of smartphones
> with data service) as well as how the service will actually make
> money. I think this means a lot of non-technical footwork and building
> business relationships, even if you get a great technical product
> which is widely accessible.
>
> Best of luck!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appengine@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>


-- 
Odeyemi 'Kayode O.
http://www.sinati.com. t: @charyorde

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



Re: [google-appengine] Re: The aftermath of Garage48 Lagos. GWT and GAE rules

2011-05-09 Thread Kayode Odeyemi
Simply, you have a budget and you want to track what you used that
money for. It's got other features such as the ability to share what
you bought from a particular store with some of your friends who will
like to buy the same stuff. So in general it gives you an opportunity
to know which store has a particular item and at what price. So with a
feature such as top expenses we can know a retail store which is doing
well, hence, will have more patronage from the public. The best store
will also enjoy ad placement on the app. This makes it competitive as
they will all want to be listed on top.

The app is nowhere near an alpha release.

I'll love to hear your opinion.

Regards

On 5/9/11, Jay Young  wrote:
> You might want to explain what the app actually does to help draw people's
> interest.  What's it do for me?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appengine@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>


-- 
Odeyemi 'Kayode O.
http://www.sinati.com. t: @charyorde

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



[google-appengine] The aftermath of Garage48 Lagos. GWT and GAE rules

2011-05-09 Thread Kayode Odeyemi
Hello all,

Garage48 code sprint just ended in Lagos, Nigeria. I was part of a team on
the idea MyCash.

The implementation is GWT, hosted on GAE. Here is the link:
http://mycashg48.appspot.com/. The application
is currently using Activity and Place MVP, Federated API, ClientBundle and
an implementation of SpringMVC 3.

Please, I'm hoping to receive some critique on the idea. We want to improve
it as the Panel says it
was a great idea. My team was 2nd runners up at the competition.

Looking forward to hearing from you guys.

Kind regards

-- 
Odeyemi 'Kayode O.
http://www.sinati.com

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



[google-appengine] java.lang.NoClassDefFoundError: javax/jdo/spi/Detachable and java.io.IOException CreateProcess error=87, The parameter is incorrect

2011-05-04 Thread Kayode Odeyemi
Firstly, about 2 weeks ago I started receiving the exception, CreateProcess
error=87, The parameter is incorrect. This occurs when I try to run my app
on devmode on Google App Engine. I have searched all over the internet and I
was able to solve this by adding useexternalfile="yes" to ant build.xml at
the javadoc target. But, this was solved only when I'm not running in
devmode. That is, I'm running the app directly at
http://localhost:/[app-name]. The error is below;

java.io.IOException: Cannot run program
"C:\Java\jdk1.6.0_06\jre\bin\java.exe" (in directory
"D:\AllData\netBeans_Projects\Listings"): CreateProcess error=87, The
parameter is incorrect
at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
at java.lang.Runtime.exec(Runtime.java:593)
at
org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:827)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:445)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:459)
at org.apache.tools.ant.taskdefs.Java.fork(Java.java:791)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:214)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
at
org.datanucleus.enhancer.tools.EnhancerTask.execute(EnhancerTask.java:100)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor233.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

Secondly, I have gotten my app up to advanced stage where I am adding maps,
extensive use of GWT for DOM Manipulation to improve UI etc, but when I try
to build my app, I get the error below;

[ERROR] Unexpected
java.lang.NoClassDefFoundError: javax/jdo/spi/Detachable
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at
com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotationValue(TypeOracleMediator.java:710)
at
com.google.gwt.dev.javac.TypeOracleMediator.createAnnotation(TypeOracleMediator.java:442)
at
com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotation(TypeOracleMediator.java:608)
at
com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotations(TypeOracleMediator.java:623)
at
com.google.gwt.dev.javac.TypeOracleMediator.resolveClass(TypeOracleMediator.java:768)
at
com.google.gwt.dev.javac.TypeOracleMediator.addNewUnits(TypeOracleMediator.java:385)
at
com.google.gwt.dev.javac.CompilationState.assimilateUnits(CompilationState.java:165)
at
com.google.gwt.dev.javac.CompilationState.(CompilationState.java:82)
at
com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:392)
at
com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:275)
at
com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:299)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:529)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:466)
at com.google.gwt.dev.Compiler.run(Compiler.java:205)
at com.google.gwt.dev.Compiler.run(Compiler.java:177)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:149)
at
com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
at
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:81)
at com.google.gwt.dev.Compiler.main(Compiler.java:156)
Caused by: java.lang.ClassNotFoundException: javax.jdo.spi.Detachable
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.Cl

[google-appengine] How to resolve Object Manager has been closed error

2011-04-18 Thread Kayode Odeyemi
Hello,

I'll appreciate if someone can point me to a tutorial or best practice on
how to close
JDO connection. I constantly get javax.jdo.JDOUserException: Object Manager
has been closed error
whenever I include the finally block. My code is below:

public static List findAgentEntityByString(String id) {
List agententity = new ArrayList();
if (id == null) {
  return null;
}
try {
Query q = pm.newQuery("select id from " +
AgentEntity.class.getName());
agententity = (List) q.execute();
} catch(Exception ex) {
log.warning(ex.getMessage());
}
return agententity;
  }

Regards

-- 
Odeyemi 'Kayode O.
http://www.sinati.com

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



[google-appengine] Re: Unit Testing of DAOs locally on App Engine

2011-04-10 Thread Kayode Odeyemi
Can somebody help me please?

On Fri, Apr 8, 2011 at 5:33 PM, Kayode Odeyemi  wrote:

> I am hoping David Chandler can help here as regards his post at
> http://turbomanage.wordpress.com/2009/10/19/unit-testing-the-appengine-datastore-with-jdo/.
> I have added aeftools.jar to my project classpath, but the test keeps
> failing with the error:
>
> warning: FAILED: No tests found
> junit.framework.AssertionFailedError
>
> Initially, I added just the 3 classes in
> com.appenginefan.toolkit.unittests, as well as appengine-testing.jar to my
> classpath, but the compiler keeps reporting a NoClassFound on
> "com.google.appengine.tools.development.ApiProxyLocalImpl".
>
> Please I need help on this as I really can't query the datastore and
> blobstore without a unit test.
>
> Here's my test class:
>
> public class UserEntityJDOTest extends BaseTest {
>
>
> @Test
> public void testFindUserByEmail(String email) {
>
> UserEntityDAOImpl userentityDAO = new UserEntityDAOImpl();
> email = "t...@gmail.com";
> PersistenceManager manager = newPersistenceManager();
> // run a query
> UserEntity expectedemail = manager.getObjectById(UserEntity.class,
> email);
> assertEquals(expectedemail, userentityDAO.findUserByEmail(email));
> manager.close();
> fail("The test case is a prototype.");
> }
> }
>
> Regards
> --
> Odeyemi 'Kayode O.
> http://www.sinati.com
>
>


-- 
Odeyemi 'Kayode O.
http://www.sinati.com

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



[google-appengine] Unit Testing of DAOs locally on App Engine

2011-04-08 Thread Kayode Odeyemi
I am hoping David Chandler can help here as regards his post at
http://turbomanage.wordpress.com/2009/10/19/unit-testing-the-appengine-datastore-with-jdo/.
I have added aeftools.jar to my project classpath, but the test keeps
failing with the error:

warning: FAILED: No tests found
junit.framework.AssertionFailedError

Initially, I added just the 3 classes in com.appenginefan.toolkit.unittests,
as well as appengine-testing.jar to my classpath, but the compiler keeps
reporting a NoClassFound on
"com.google.appengine.tools.development.ApiProxyLocalImpl".

Please I need help on this as I really can't query the datastore and
blobstore without a unit test.

Here's my test class:

public class UserEntityJDOTest extends BaseTest {


@Test
public void testFindUserByEmail(String email) {

UserEntityDAOImpl userentityDAO = new UserEntityDAOImpl();
email = "t...@gmail.com";
PersistenceManager manager = newPersistenceManager();
// run a query
UserEntity expectedemail = manager.getObjectById(UserEntity.class,
email);
assertEquals(expectedemail, userentityDAO.findUserByEmail(email));
manager.close();
fail("The test case is a prototype.");
}
}

Regards
-- 
Odeyemi 'Kayode O.
http://www.sinati.com

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



Re: [google-appengine] How to read byte by byte from a Datastore Entity Object

2011-04-07 Thread Kayode Odeyemi
Here is my summary after series of trials

1. I can't use the Blobstore api because I'm using GWT for the view
2. From my understanding of the Fileservice API, it requires that I need to
have gotten the bytes
of the data before it can be written to the FileWriteChannel. One option is
through the Blobstore
 API, but like I said, I'm unable to use Blobstore with GWT. Though it is
possible via RPC, but its
implementation will allow a refresh to another url such as /serve?blob-key.
This will break my
design design pattern as all I want is that after the upload, the user
remains on the same GWT Place.
I don't know how to do this. I need help.
3. I tried to the following code, but i wasn't able to persist the bytes in
the buffer:

protected void doPost(HttpServletRequest request, HttpServletResponse
response) throws IOException, ServletException {

HttpSession session = request.getSession();
log.info(request.toString());

try {
  ServletFileUpload upload = new ServletFileUpload();
  response.setContentType("multipart/form-data");

  FileItemIterator iterator = upload.getItemIterator(request);
  while (iterator.hasNext()) {
FileItemStream item = iterator.next();
InputStream stream = item.openStream();
log.info("logging stream " + stream.toString());

if (item.isFormField()) {
  log.warning("Got a form field: " + item.getFieldName());
} else {
  log.warning("Got an uploaded file: " + item.getFieldName() +
  ", name = " + item.getName());

  int len;
  byte[] buffer = new byte[10];
  len = stream.read(buffer, 0, buffer.length);
  ListingFile listingfile = new ListingFile();
  listingfile.setTitle(item.getName());
  listingfile.setImageType(item.getContentType());
  listingfile.setImage(buffer); // setImage holds byte[] in the
Entity. Couldn't be persisted

  PersistenceManager pm = PMF.get().getPersistenceManager();
try {
pm.makePersistent(listingfile);
}
finally {
pm.close();
}
}
  }
} catch (Exception ex) {
  throw new ServletException(ex);
}
}

Regards

On Thu, Apr 7, 2011 at 5:48 AM, Robert Kluin  wrote:

> Hi,
>  You can't stream data from App Engine.  The response is buffered
> until your servlet returns before sending the response.
>http://code.google.com/appengine/docs/java/runtime.html#Responses
>
>  You might want to look at using the Blobstore.  As Simon mentioned,
> check out the FileService, perhaps it would be useful for building the
> blobs.
>
>
> Robert
>
>
>
>
>
> On Wed, Apr 6, 2011 at 08:23, Kayode Odeyemi  wrote:
> > Hello,
> > In a nutshell, since GAE cannot write to a filesystem, I have decided to
> > persist my data into the
> > datastore (using JDO). Now, I will like to retrieve the data byte by byte
> > and pass it to the client
> > as an input stream. There's code from the gwtupload library (see below)
> > which breaks on GAE
> > because it writes to the system filesystem. I'll like to be able to
> provide
> > a GAE ported solution.
> >
> > public static void copyFromInputStreamToOutputStream(InputStream in,
> > OutputStream out) throws IOException {
> > byte[] buffer = new byte[10];
> > while (true) {
> >   synchronized (buffer) {
> > int amountRead = in.read(buffer);
> > if (amountRead == -1) {
> >   break;
> > }
> > out.write(buffer, 0, amountRead);
> >   }
> > }
> > in.close();
> > out.flush();
> > out.close();
> >   }
> > One work around I have tried (didn't work) is to retrieve the data from
> the
> > datastore as a resource like this:
> > InputStream resourceAsStream = null;
> > PersistenceManager pm = PMF.get().getPersistenceManager();
> > try {
> > Query q = pm.newQuery(ImageFile.class);
> > lf  = q.execute();
> > resourceAsStream =
> getServletContext().getResourceAsStream((String)
> > pm.getObjectById(lf));
> > } finally {
> >   pm.close();
> > }
> > if (lf != null) {
> >   response.setContentType(receivedContentTypes.get(fieldName));
> >   copyFromInputStreamToOutputStream(resourceAsStream,
> > response.getOutputStream());
> > }
> > I welcome your suggestions.
> > Regards
> > --
> > Odeyemi 'Kayode O.
> > http://www.sinati.com
> >
> > --
> > You received this message because you are subscribed to the Google Groups

[google-appengine] How to read byte by byte from a Datastore Entity Object

2011-04-06 Thread Kayode Odeyemi
Hello,

In a nutshell, since GAE cannot write to a filesystem, I have decided to
persist my data into the
datastore (using JDO). Now, I will like to retrieve the data byte by byte
and pass it to the client
as an input stream. There's code from the gwtupload library (see below)
which breaks on GAE
because it writes to the system filesystem. I'll like to be able to provide
a GAE ported solution.


public static void copyFromInputStreamToOutputStream(InputStream in,
OutputStream out) throws IOException {
byte[] buffer = new byte[10];
while (true) {
  synchronized (buffer) {
int amountRead = in.read(buffer);
if (amountRead == -1) {
  break;
}
out.write(buffer, 0, amountRead);
  }
}
in.close();
out.flush();
out.close();
  }

One work around I have tried (didn't work) is to retrieve the data from the
datastore as a resource like this:

InputStream resourceAsStream = null;
PersistenceManager pm = PMF.get().getPersistenceManager();
try {
Query q = pm.newQuery(ImageFile.class);
lf  = q.execute();
resourceAsStream = getServletContext().getResourceAsStream((String)
pm.getObjectById(lf));
} finally {
  pm.close();
}
if (lf != null) {
  response.setContentType(receivedContentTypes.get(fieldName));
  copyFromInputStreamToOutputStream(resourceAsStream,
response.getOutputStream());

}

I welcome your suggestions.

Regards

-- 
Odeyemi 'Kayode O.
http://www.sinati.com

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



[google-appengine] Springmvc on appengine error Failed to compile jsp files

2011-03-30 Thread Kayode Odeyemi
Hello,

I have read these threads and also follow the instructions on how to resolve
this. But it is not working for me. Though my case is peculiar to spring-mvc
and I'm hoping I will get some help here. Below is the full error stack
after running the appcfg script:

Reading application configuration data...
Mar 30, 2011 7:11:55 PM
com.google.apphosting.utils.config.AppEngineWebXmlReader
 readAppEngineWebXml
INFO: Successfully processed
AllData/netBeans_Projects/Listings/web\WEB-INF/appe
ngine-web.xml
Mar 30, 2011 7:11:55 PM
com.google.apphosting.utils.config.AbstractConfigXmlRead
er readConfigXml
INFO: Successfully processed
AllData/netBeans_Projects/Listings/web\WEB-INF/web.
xml
Beginning server interaction for opevel-listings...
0% Creating staging directory
5% Scanning for jsp files.
8% Compiling jsp files.

Error Details:
Mar 30, 2011 7:11:59 PM org.apache.jasper.JspC processFile
INFO: Built File: \redirect.jsp
Exception in thread "main" org.apache.jasper.JasperException: The absolute
uri:
http://www.springframework.org/tags/form cannot be resolved in either
web.xml or
 the jar files deployed with this application
at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorH
andler.java:51)
at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.j
ava:409)
at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.j
ava:116)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(Tag
LibraryInfoImpl.java:315)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoIm
pl.java:148)
at
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:38
6)
at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:449)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1396)
at org.apache.jasper.compiler.Parser.parse(Parser.java:130)
at
org.apache.jasper.compiler.ParserController.doParse(ParserController.
java:255)
at
org.apache.jasper.compiler.ParserController.parse(ParserController.ja
va:103)
at
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:185)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:347)
at org.apache.jasper.JspC.processFile(JspC.java:1192)
at org.apache.jasper.JspC.execute(JspC.java:1341)
at
com.google.appengine.tools.development.LocalJspC.main(LocalJspC.java:
18)
Error while executing: C:\Java\jdk1.6.0_06\jre\bin\java.exe -classpath
/D:/appen
gine-java-sdk-1.4.2/lib/impl/appengine-api-labs.jar;/D:/appengine-java-sdk-1.4.2
/lib/impl/appengine-api-stubs.jar;/D:/appengine-java-sdk-1.4.2/lib/impl/appengin
e-api.jar;/D:/appengine-java-sdk-1.4.2/lib/impl/appengine-local-runtime.jar;D:\a
ppengine-java-sdk-1.4.2\lib\shared\appengine-local-runtime-shared.jar;D:\appengi
ne-java-sdk-1.4.2\lib\shared\el-api.jar;D:\appengine-java-sdk-1.4.2\lib\shared\j
sp\repackaged-appengine-ant-1.7.1.jar;D:\appengine-java-sdk-1.4.2\lib\shared\jsp
\repackaged-appengine-ant-launcher-1.7.1.jar;D:\appengine-java-sdk-1.4.2\lib\sha
red\jsp\repackaged-appengine-jasper-6.0.29.jar;D:\appengine-java-sdk-1.4.2\lib\s
hared\jsp\repackaged-appengine-jasper-el-6.0.29.jar;D:\appengine-java-sdk-1.4.2\
lib\shared\jsp\repackaged-appengine-tomcat-juli-6.0.29.jar;D:\appengine-java-sdk
-1.4.2\lib\shared\jsp-api.jar;D:\appengine-java-sdk-1.4.2\lib\shared\servlet-api
.jar;D:\appengine-java-sdk-1.4.2\lib\shared\tools.jar;C:\DOCUME~1\ADMINI~1\LOCAL
S~1\Temp\appcfg56538.tmp\WEB-INF\classes;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\appc
fg56538.tmp\WEB-INF\lib\repackaged-appengine-ant-1.7.1.jar;C:\DOCUME~1\ADMINI~1\
LOCALS~1\Temp\appcfg56538.tmp\WEB-INF\lib\repackaged-appengine-ant-launcher-1.7.
1.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\appcfg56538.tmp\WEB-INF\lib\repackaged-
appengine-jakarta-jstl-1.1.2.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\appcfg56538.
tmp\WEB-INF\lib\repackaged-appengine-jakarta-standard-1.1.2.jar;C:\DOCUME~1\ADMI
NI~1\LOCALS~1\Temp\appcfg56538.tmp\WEB-INF\lib\repackaged-appengine-jasper-6.0.2
9.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\appcfg56538.tmp\WEB-INF\lib\repackaged-
appengine-jasper-el-6.0.29.jar;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\
appcfg56538.tm
p\WEB-INF\lib\repackaged-appengine-jasper-jdt-6.0.29.jar;C:\DOCUME~1\ADMINI~1\LO
CALS~1\Temp\appcfg56538.tmp\WEB-INF\lib\repackaged-appengine-tomcat-juli-6.0.29.
jar; com.google.appengine.tools.development.LocalJspC -uriroot
C:\DOCUME~1\ADMIN
I~1\LOCALS~1\Temp\appcfg56538.tmp -p org.apache.jsp -l -v -webinc
C:\DOCUME~1\AD
MINI~1\LOCALS~1\Temp\appcfg56538.tmp\WEB-INF\generated_web.xml -d
C:\DOCUME~1\AD
MINI~1\LOCALS~1\Temp\appcfg56538.tmp\WEB-INF\classes -compile -javaEncoding
UTF-
8


com.google.appengine.tools.admin.JspCompilationException: Failed to compile
jsp
files.
Unable to update app: Failed to compile jsp files.
Please see the logs [C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\appcfg56537.log] for
fur
ther information.

How can I resolve this?.

Regards


Re: [google-appengine] Re: What is the difference between Blobstore and Google Storage for Developers

2011-02-25 Thread Kayode Odeyemi
You might want to see this:
http://www.ibm.com/developerworks/java/library/j-gaestorage/index.html

On Fri, Feb 25, 2011 at 6:32 AM, 风笑雪  wrote:

> I just write down something I remembered, there may be more different
> between them.
>
> Google Storage is a little expensive than Blobstore ($0.15/GB or $0.30/GB
> vs $0.12/GB), but some account has a promotion (100 GB of data storage
> monthly at no charge).
> http://code.google.com/apis/storage/docs/overview.html#pricing
> 
> http://code.google.com/appengine/docs/billing.html#Billable_Quota_Unit_Cost
>
> --
> keakon
>
> My blog(Chinese): www.keakon.net
> Blog source code: https://bitbucket.org/keakon/doodle/
>
>
>
> On Fri, Feb 25, 2011 at 1:06 PM, roberto.cr  wrote:
>
>> are those the only differences? how does pricing compare?
>> I'm also interested
>>
>> On Feb 25, 1:20 am, 风笑雪  wrote:
>> > 1. You can't manipulate Blobstore files.
>> > 2. You have more access control with the files in Google Storage.
>> > 3. Blobstore can server different size of a certain image without
>> > store several copies.
>> >
>> > --
>> > keakon
>> >
>> > My blog(Chinese):www.keakon.net
>> > Blog source code:https://bitbucket.org/keakon/doodle/
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > On Fri, Feb 25, 2011 at 11:38 AM, zixzigma  wrote:
>> > > on GAE Roadmap page [1],
>> > > I noticed one of the planned features is integration with "Google
>> Storage
>> > > (for Developers)".
>> >
>> > > we can store Blobs in Blobstore, we can store Buckets in Google
>> Storage !
>> > > I am a bit confused and don't know how this compares to Blobstore.
>> > > is this a redundant service, what are the scenarios that one would
>> chose
>> > > one over the other ?
>> >
>> > > do you have any idea ?
>> >
>> > > Thank You
>> >
>> > > [1]http://code.google.com/appengine/docs/roadmap.html
>> >
>> > > --
>> > > You received this message because you are subscribed to the Google
>> Groups
>> > > "Google App Engine" group.
>> > > To post to this group, send email to
>> google-appengine@googlegroups.com.
>> > > To unsubscribe from this group, send email to
>> > > google-appengine+unsubscr...@googlegroups.com.
>> > > For more options, visit this group at
>> > >http://groups.google.com/group/google-appengine?hl=en.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine" group.
>> To post to this group, send email to google-appengine@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appengine@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>



-- 
Odeyemi 'Kayode O.

B.Sc(Hons) Econs, Application Developer & Systems Engineer (Sun Certified
Professional),
Oracle Certified Associate, Solaris Systems Administrator, Drupal Developer

Website: http://sinati.com 
Socialize with me: http://profile.to/charyorde, http://twitter.com/charyorde,

http://www.google.com/profiles/dreyemi
Skype:drecute

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



Re: [google-appengine] Re: Where is it advisable to put JPA mapped Entity classes?

2011-02-21 Thread Kayode Odeyemi
You are right about Objectify Jeff. I tried it and it's slick and
simple. What I noticed about it is that it is heavily tied to JDO kind
of persistence behaviour. I'm just curios about the JPA bit. I'll dig
in more to see what I can find.

Kind regards

On 2/21/11, Jeff Schwartz  wrote:
> One more thing... Objectify's attibutes are GWT friendly so the same pojos
> used on the server can also be sent to the client via serialization and used
> there as well via the shared folder of course.
>
> Jeff
>
> On Mon, Feb 21, 2011 at 9:04 AM, Jeff Schwartz
> wrote:
>
>> Hi Kayode,
>>
>> The reason I recommend Objectify is because it eliminates the impedance
>> mismatch that I experienced when first using JPA with App Engine. I found
>> JPA's symantics too SQL oriented and therein lies the mismatch because
>> Datastore is not SQL. Objectify's symantics are very close to the low
>> level
>> Datastore API as it is really a very thin wrapper & doesn't try to hide
>> the
>> fact that the Datastore isn't SQL.
>>
>> I then tried the low level API and I liked it and was very productive with
>> it but it lacked one thing that I really wanted which was the ability to
>> use
>> Pojos to define my schemas. Objectify not only allowed me to use Pojos but
>> it also provides for the use of DAOs which makes organizing service level
>> apis very easy.
>>
>> Don't get me wrong, there's nothing wrong with using JPA/JDO, it just
>> wasn't my cup of tea as they say :)
>>
>> Good luck.
>>
>> Jeff
>>
>>
>> On Mon, Feb 21, 2011 at 8:54 AM, Kayode Odeyemi  wrote:
>>
>>> Thanks once again Jeff.
>>>
>>> I tried Objectify with a small project. Works fine. But nonetheless,
>>> I'm still keen on getting my initial try with GWT/JPA/GAE compile and
>>> run successfully. At the moment, I have no external library that
>>> requires inclusion.
>>>
>>> I see some GWT/JPA samples from the book Google Web Toolkit 2
>>> Application Development Cookbook
>>> (http://www.packtpub.com/article/working-entities-google-web-toolkit).
>>> Let me see what I can get from it.
>>>
>>> Thanks
>>>
>>> On 2/21/11, Jeff Schwartz  wrote:
>>> > Did you inherit the needed libs as well? For instance, I use Objectify
>>> so I
>>> > import the Objectify lib as:
>>> >
>>> > 
>>> >
>>> > You would need to do similarly for any other libs you are using.
>>> >
>>> > Jeff
>>> >
>>> >
>>> >
>>> > On Mon, Feb 21, 2011 at 7:22 AM, Kayode Odeyemi 
>>> wrote:
>>> >
>>> >> Thanks Lorenzo
>>> >>
>>> >> Could this be a reason why my Persistence-aware Entities cannot be
>>> >> compiled even after placing them under client package? I did relocate
>>> >> the Entities, placed my DTOs in shared package as well as added to my
>>> >> module file this:
>>> >> 
>>> >>
>>> >>
>>> >>
>>> >> or does it have to be:
>>> >>
>>> >> 
>>> >> 
>>> >>
>>> >> But in as much as compile was successful, I still get the errors:
>>> >>
>>> >>  The import javax.persistence cannot be resolved
>>> >> [ERROR] Line 10: The import javax.persistence cannot be
>>> resolved
>>> >> [ERROR] Line 18: Entity cannot be resolved to a type
>>> >> [ERROR] Line 21: Id cannot be resolved to a type
>>> >> [ERROR] Line 22: GeneratedValue cannot be resolved to a type
>>> >> [ERROR] Line 22: The attribute strategy is undefined for the
>>> >> annotation type GeneratedValue
>>> >> [ERROR] Line 22: GenerationType cannot be resolved
>>> >> [ERROR] Line 25: Table cannot be resolved to a type
>>> >> [ERROR] Line 25: The attribute name is undefined for the
>>> >> annotation type Table
>>> >> [ERROR] Line 26: NamedQueries cannot be resolved to a type
>>> >>
>>> >>
>>> >> On 2/21/11, l.denardo  wrote:
>>> >> > GWT compiles your java source into javascript using a restricted
>>> >> > subset of allowed classes, and you cannot use anything built on non-
>>> >> > compatible class

Re: [google-appengine] Re: Where is it advisable to put JPA mapped Entity classes?

2011-02-21 Thread Kayode Odeyemi
Thanks once again Jeff.

I tried Objectify with a small project. Works fine. But nonetheless,
I'm still keen on getting my initial try with GWT/JPA/GAE compile and
run successfully. At the moment, I have no external library that
requires inclusion.

I see some GWT/JPA samples from the book Google Web Toolkit 2
Application Development Cookbook
(http://www.packtpub.com/article/working-entities-google-web-toolkit).
Let me see what I can get from it.

Thanks

On 2/21/11, Jeff Schwartz  wrote:
> Did you inherit the needed libs as well? For instance, I use Objectify so I
> import the Objectify lib as:
>
> 
>
> You would need to do similarly for any other libs you are using.
>
> Jeff
>
>
>
> On Mon, Feb 21, 2011 at 7:22 AM, Kayode Odeyemi  wrote:
>
>> Thanks Lorenzo
>>
>> Could this be a reason why my Persistence-aware Entities cannot be
>> compiled even after placing them under client package? I did relocate
>> the Entities, placed my DTOs in shared package as well as added to my
>> module file this:
>> 
>>
>>
>>
>> or does it have to be:
>>
>> 
>> 
>>
>> But in as much as compile was successful, I still get the errors:
>>
>>  The import javax.persistence cannot be resolved
>> [ERROR] Line 10: The import javax.persistence cannot be resolved
>> [ERROR] Line 18: Entity cannot be resolved to a type
>> [ERROR] Line 21: Id cannot be resolved to a type
>> [ERROR] Line 22: GeneratedValue cannot be resolved to a type
>> [ERROR] Line 22: The attribute strategy is undefined for the
>> annotation type GeneratedValue
>> [ERROR] Line 22: GenerationType cannot be resolved
>> [ERROR] Line 25: Table cannot be resolved to a type
>> [ERROR] Line 25: The attribute name is undefined for the
>> annotation type Table
>> [ERROR] Line 26: NamedQueries cannot be resolved to a type
>>
>>
>> On 2/21/11, l.denardo  wrote:
>> > GWT compiles your java source into javascript using a restricted
>> > subset of allowed classes, and you cannot use anything built on non-
>> > compatible classes, tipically you cannot read classes with persistence-
>> > related annotatios.
>> >
>> > Source code for your DTO must be accessible to thw GWT compiler. This
>> > is done adding a "source" entry in your gwt.xml file, as documented
>> > here:
>> >
>> http://code.google.com/webtoolkit/doc/latest/tutorial/create.html#components
>> >
>> > In your case adding a  should do.
>> >
>> > regards
>> > Lorenzo
>> >
>> > On Feb 20, 7:17 pm, Kayode Odeyemi  wrote:
>> >> I have resulted into using DTO to provide the client information about
>> my
>> >> Entity. My DTO has the same getter and setter signatures just like it's
>> >> respective Entity.
>> >>
>> >> But still getting "No source code is available for type
>> com.foo.UsersDTO;
>> >> did you forget to inherit a required module?"
>> >>
>> >> How do I then access persisted Entity objects from the client-side?
>> >>
>> >>
>> >>
>> >> On Sun, Feb 20, 2011 at 4:46 PM, Kayode Odeyemi 
>> wrote:
>> >> > To provide more details, I am sending data to the server via GWT-RPC.
>> On
>> >> > the server I'm returning an Entity class object mapped by JPA. So on
>> the
>> >> > client, I requested for the object via the normal way
>> >> > (AsyncCallback).
>> >> > So
>> >> > when I compile the code, GWT reports a "No source code" error,
>> >> > meaning
>> >> > I'm
>> >> > referencing the server class on the client side.
>> >>
>> >> > Some of my findings report that I either create the Entity on the
>> client
>> >> > side so that GWT can find it or create an implementation of the
>> >> > Entity
>> >> > on
>> >> > the client side overriding all the necessary methods. I am not sure
>> >> > about
>> >> > the former as I believe the Entity is meant to be on the server
>> because
>> >> > it
>> >> > needs access to JPA. On the later, I have no idea of how to implement
>> >> > that
>> >> > as the Entity needs access to JPA (GWT can't compile server code on
>> the
>> >> > client side!).
>> >>
>> >> &

Re: [google-appengine] Re: Where is it advisable to put JPA mapped Entity classes?

2011-02-21 Thread Kayode Odeyemi
Thanks Lorenzo

Could this be a reason why my Persistence-aware Entities cannot be
compiled even after placing them under client package? I did relocate
the Entities, placed my DTOs in shared package as well as added to my
module file this:




or does it have to be:




But in as much as compile was successful, I still get the errors:

 The import javax.persistence cannot be resolved
 [ERROR] Line 10: The import javax.persistence cannot be resolved
 [ERROR] Line 18: Entity cannot be resolved to a type
 [ERROR] Line 21: Id cannot be resolved to a type
 [ERROR] Line 22: GeneratedValue cannot be resolved to a type
 [ERROR] Line 22: The attribute strategy is undefined for the
annotation type GeneratedValue
 [ERROR] Line 22: GenerationType cannot be resolved
 [ERROR] Line 25: Table cannot be resolved to a type
 [ERROR] Line 25: The attribute name is undefined for the
annotation type Table
 [ERROR] Line 26: NamedQueries cannot be resolved to a type


On 2/21/11, l.denardo  wrote:
> GWT compiles your java source into javascript using a restricted
> subset of allowed classes, and you cannot use anything built on non-
> compatible classes, tipically you cannot read classes with persistence-
> related annotatios.
>
> Source code for your DTO must be accessible to thw GWT compiler. This
> is done adding a "source" entry in your gwt.xml file, as documented
> here:
> http://code.google.com/webtoolkit/doc/latest/tutorial/create.html#components
>
> In your case adding a  should do.
>
> regards
> Lorenzo
>
> On Feb 20, 7:17 pm, Kayode Odeyemi  wrote:
>> I have resulted into using DTO to provide the client information about my
>> Entity. My DTO has the same getter and setter signatures just like it's
>> respective Entity.
>>
>> But still getting "No source code is available for type com.foo.UsersDTO;
>> did you forget to inherit a required module?"
>>
>> How do I then access persisted Entity objects from the client-side?
>>
>>
>>
>> On Sun, Feb 20, 2011 at 4:46 PM, Kayode Odeyemi  wrote:
>> > To provide more details, I am sending data to the server via GWT-RPC. On
>> > the server I'm returning an Entity class object mapped by JPA. So on the
>> > client, I requested for the object via the normal way (AsyncCallback).
>> > So
>> > when I compile the code, GWT reports a "No source code" error, meaning
>> > I'm
>> > referencing the server class on the client side.
>>
>> > Some of my findings report that I either create the Entity on the client
>> > side so that GWT can find it or create an implementation of the Entity
>> > on
>> > the client side overriding all the necessary methods. I am not sure
>> > about
>> > the former as I believe the Entity is meant to be on the server because
>> > it
>> > needs access to JPA. On the later, I have no idea of how to implement
>> > that
>> > as the Entity needs access to JPA (GWT can't compile server code on the
>> > client side!).
>>
>> > Any clues please.
>>
>> > On Sun, Feb 20, 2011 at 4:10 PM, Kayode Odeyemi 
>> > wrote:
>>
>> >> Hello,
>>
>> >> I will appreciate some guide as to where exactly to put JPA mapped
>> >> Entity
>> >> classes. At the moment I have it
>> >> under "com.foo.server.domain". But whenever I compile the app, GWT
>> >> returns:
>>
>> >> No source code is available for type com.foo.server.domain.Users; did
>> >> you
>> >> forget to inherit a required
>> >> module?
>>
>> >> --
>>
>> > --
>>
>> --
>> Odeyemi 'Kayode O.
>>
>> B.Sc(Hons) Econs, Application Developer & Systems Engineer (Sun Certified
>> Professional),
>> Oracle Certified Associate, Solaris Systems Administrator, Drupal
>> Developer
>>
>> Website:http://sinati.com<http://www.sinati.com>
>> Socialize with
>> me:http://profile.to/charyorde,http://twitter.com/charyorde,
>>
>> http://www.google.com/profiles/dreyemi
>> Skype:drecute
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appengine@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>


-- 
Odeyemi 'Kayode O

Re: [google-appengine] Re: Where is it advisable to put JPA mapped Entity classes?

2011-02-21 Thread Kayode Odeyemi
Thanks L

Could this be a reason why my Persistence-aware Entities cannot be
compiled even after placing them under client package? I did relocate
the Entities as well as added to my module file this:





But in as much as compile was successful, I still get the errors:

 The import javax.persistence cannot be resolved
 [ERROR] Line 10: The import javax.persistence cannot be resolved
 [ERROR] Line 18: Entity cannot be resolved to a type
 [ERROR] Line 21: Id cannot be resolved to a type
 [ERROR] Line 22: GeneratedValue cannot be resolved to a type
 [ERROR] Line 22: The attribute strategy is undefined for the
annotation type GeneratedValue
 [ERROR] Line 22: GenerationType cannot be resolved
 [ERROR] Line 25: Table cannot be resolved to a type
 [ERROR] Line 25: The attribute name is undefined for the
annotation type Table
 [ERROR] Line 26: NamedQueries cannot be resolved to a type


On 2/21/11, l.denardo  wrote:
> GWT compiles your java source into javascript using a restricted
> subset of allowed classes, and you cannot use anything built on non-
> compatible classes, tipically you cannot read classes with persistence-
> related annotatios.
>
> Source code for your DTO must be accessible to thw GWT compiler. This
> is done adding a "source" entry in your gwt.xml file, as documented
> here:
> http://code.google.com/webtoolkit/doc/latest/tutorial/create.html#components
>
> In your case adding a  should do.
>
> regards
> Lorenzo
>
> On Feb 20, 7:17 pm, Kayode Odeyemi  wrote:
>> I have resulted into using DTO to provide the client information about my
>> Entity. My DTO has the same getter and setter signatures just like it's
>> respective Entity.
>>
>> But still getting "No source code is available for type com.foo.UsersDTO;
>> did you forget to inherit a required module?"
>>
>> How do I then access persisted Entity objects from the client-side?
>>
>>
>>
>> On Sun, Feb 20, 2011 at 4:46 PM, Kayode Odeyemi  wrote:
>> > To provide more details, I am sending data to the server via GWT-RPC. On
>> > the server I'm returning an Entity class object mapped by JPA. So on the
>> > client, I requested for the object via the normal way (AsyncCallback).
>> > So
>> > when I compile the code, GWT reports a "No source code" error, meaning
>> > I'm
>> > referencing the server class on the client side.
>>
>> > Some of my findings report that I either create the Entity on the client
>> > side so that GWT can find it or create an implementation of the Entity
>> > on
>> > the client side overriding all the necessary methods. I am not sure
>> > about
>> > the former as I believe the Entity is meant to be on the server because
>> > it
>> > needs access to JPA. On the later, I have no idea of how to implement
>> > that
>> > as the Entity needs access to JPA (GWT can't compile server code on the
>> > client side!).
>>
>> > Any clues please.
>>
>> > On Sun, Feb 20, 2011 at 4:10 PM, Kayode Odeyemi 
>> > wrote:
>>
>> >> Hello,
>>
>> >> I will appreciate some guide as to where exactly to put JPA mapped
>> >> Entity
>> >> classes. At the moment I have it
>> >> under "com.foo.server.domain". But whenever I compile the app, GWT
>> >> returns:
>>
>> >> No source code is available for type com.foo.server.domain.Users; did
>> >> you
>> >> forget to inherit a required
>> >> module?
>>
>> >> --
>>
>> > --
>>
>> --
>> Odeyemi 'Kayode O.
>>
>> B.Sc(Hons) Econs, Application Developer & Systems Engineer (Sun Certified
>> Professional),
>> Oracle Certified Associate, Solaris Systems Administrator, Drupal
>> Developer
>>
>> Website:http://sinati.com<http://www.sinati.com>
>> Socialize with
>> me:http://profile.to/charyorde,http://twitter.com/charyorde,
>>
>> http://www.google.com/profiles/dreyemi
>> Skype:drecute
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appengine@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>


-- 
Odeyemi 'Kayode O.

B.Sc(Hons) Econs, Application Developer & Systems Engineer (Sun Certified
Professional),
Oracle Certified Associate, Solaris Systems Administrator, Drupal Developer

Website: http://sinati.com <http://www.sinati.com>
Socialize with me: http://profile.to/charyorde, http://twitter.com/charyorde,

http://www.google.com/profiles/dreyemi
Skype:drecute

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



[google-appengine] Re: Where is it advisable to put JPA mapped Entity classes?

2011-02-20 Thread Kayode Odeyemi
I have resulted into using DTO to provide the client information about my
Entity. My DTO has the same getter and setter signatures just like it's
respective Entity.

But still getting "No source code is available for type com.foo.UsersDTO;
did you forget to inherit a required module?"

How do I then access persisted Entity objects from the client-side?

On Sun, Feb 20, 2011 at 4:46 PM, Kayode Odeyemi  wrote:

> To provide more details, I am sending data to the server via GWT-RPC. On
> the server I'm returning an Entity class object mapped by JPA. So on the
> client, I requested for the object via the normal way (AsyncCallback). So
> when I compile the code, GWT reports a "No source code" error, meaning I'm
> referencing the server class on the client side.
>
> Some of my findings report that I either create the Entity on the client
> side so that GWT can find it or create an implementation of the Entity on
> the client side overriding all the necessary methods. I am not sure about
> the former as I believe the Entity is meant to be on the server because it
> needs access to JPA. On the later, I have no idea of how to implement that
> as the Entity needs access to JPA (GWT can't compile server code on the
> client side!).
>
> Any clues please.
>
>
> On Sun, Feb 20, 2011 at 4:10 PM, Kayode Odeyemi  wrote:
>
>> Hello,
>>
>> I will appreciate some guide as to where exactly to put JPA mapped Entity
>> classes. At the moment I have it
>> under "com.foo.server.domain". But whenever I compile the app, GWT
>> returns:
>>
>> No source code is available for type com.foo.server.domain.Users; did you
>> forget to inherit a required
>> module?
>>
>> --
>>
>>
>>
>
>
> --
>
>


-- 
Odeyemi 'Kayode O.

B.Sc(Hons) Econs, Application Developer & Systems Engineer (Sun Certified
Professional),
Oracle Certified Associate, Solaris Systems Administrator, Drupal Developer

Website: http://sinati.com <http://www.sinati.com>
Socialize with me: http://profile.to/charyorde, http://twitter.com/charyorde,

http://www.google.com/profiles/dreyemi
Skype:drecute

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



[google-appengine] Re: Where is it advisable to put JPA mapped Entity classes?

2011-02-20 Thread Kayode Odeyemi
To provide more details, I am sending data to the server via GWT-RPC. On the
server I'm returning an Entity class object mapped by JPA. So on the client,
I requested for the object via the normal way (AsyncCallback). So when I
compile the code, GWT reports a "No source code" error, meaning I'm
referencing the server class on the client side.

Some of my findings report that I either create the Entity on the client
side so that GWT can find it or create an implementation of the Entity on
the client side overriding all the necessary methods. I am not sure about
the former as I believe the Entity is meant to be on the server because it
needs access to JPA. On the later, I have no idea of how to implement that
as the Entity needs access to JPA (GWT can't compile server code on the
client side!).

Any clues please.

On Sun, Feb 20, 2011 at 4:10 PM, Kayode Odeyemi  wrote:

> Hello,
>
> I will appreciate some guide as to where exactly to put JPA mapped Entity
> classes. At the moment I have it
> under "com.foo.server.domain". But whenever I compile the app, GWT returns:
>
> No source code is available for type com.foo.server.domain.Users; did you
> forget to inherit a required
> module?
>
> --
>
>
>


--

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



[google-appengine] Where is it advisable to put JPA mapped Entity classes?

2011-02-20 Thread Kayode Odeyemi
Hello,

I will appreciate some guide as to where exactly to put JPA mapped Entity
classes. At the moment I have it
under "com.foo.server.domain". But whenever I compile the app, GWT returns:

No source code is available for type com.foo.server.domain.Users; did you
forget to inherit a required
module?

--

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



[google-appengine] Re: Exception thrown while constructing Processor object

2011-02-10 Thread Kayode Odeyemi
Here is my plugin configuration in pom.xml


org.datanucleus
maven-datanucleus-plugin
1.1.4

false

${basedir}/src/main/resources/log4j.properties
**/*.class
 true
ASM
 JPA
**/GaeAuthFilter.class



compile

enhance





org.datanucleus
datanucleus-core
${datanucleus.version}


javax.transaction
transaction-api




org.datanucleus
datanucleus-rdbms
${datanucleus.version}


org.datanucleus
datanucleus-enhancer
1.1.4






On Thu, Feb 10, 2011 at 1:39 PM, Kayode Odeyemi  wrote:

> Hi,,
>
> I encountered this error: Exception thrown while constructing Processor
> object: org/datanucleus/exceptions/NucleusException after I ran mvn gwt:run.
> The error occurred as a compilation error. Can't find anyone replicating
> this error online.
>
> --
> Odeyemi 'Kayode O.
>
> B.Sc(Hons) Econs, Application Developer & Systems Engineer (Sun Certified
> Professional),
> Oracle Certified Associate, Solaris Systems Administrator, Drupal Developer
>
> Tel: +2348053063373
> P.O.Box 682, Ita-elewa, Ikorodu,
> Lagos, Nigeria, West-Africa.
>
> Website: http://sinati.com <http://www.sinati.com>
> Socialize with me: http://profile.to/charyorde,
> http://twitter.com/charyorde,
> http://www.google.com/profiles/dreyemi
> Skype:drecute
>
>


-- 
Odeyemi 'Kayode O.

B.Sc(Hons) Econs, Application Developer & Systems Engineer (Sun Certified
Professional),
Oracle Certified Associate, Solaris Systems Administrator, Drupal Developer

Website: http://sinati.com <http://www.sinati.com>
Socialize with me: http://profile.to/charyorde, http://twitter.com/charyorde,

http://www.google.com/profiles/dreyemi
Skype:drecute

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



[google-appengine] Exception thrown while constructing Processor object

2011-02-10 Thread Kayode Odeyemi
Hi,,

I encountered this error: Exception thrown while constructing Processor
object: org/datanucleus/exceptions/NucleusException after I ran mvn gwt:run.
The error occurred as a compilation error. Can't find anyone replicating
this error online.

-- 
Odeyemi 'Kayode O.

B.Sc(Hons) Econs, Application Developer & Systems Engineer (Sun Certified
Professional),
Oracle Certified Associate, Solaris Systems Administrator, Drupal Developer

Tel: +2348053063373
P.O.Box 682, Ita-elewa, Ikorodu,
Lagos, Nigeria, West-Africa.

Website: http://sinati.com 
Socialize with me: http://profile.to/charyorde, http://twitter.com/charyorde,

http://www.google.com/profiles/dreyemi
Skype:drecute

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



[google-appengine] To think relational or not

2011-02-06 Thread Kayode Odeyemi
What is the best practice to jump start a GAE app using SpringRoo for
architecture?

Is it advisable to start with SpringRoo with the one liner JPA setup? I know
that doing this already means one is thinking relational.
One of my my major here is that JPA is not fully supported in GAE, but I'm
thinking in the direction of what works than what doesn't exist.

Alternatively, go in the direction of datastore without JPA. I believe this
means non-relational and no SpringRoo right?

-- 
Odeyemi 'Kayode O.

B.Sc(Hons) Econs, Application Developer & Systems Engineer (Sun Certified
Professional),
Oracle Certified Associate, Solaris Systems Administrator, Drupal Developer

Tel: +2348053063373
P.O.Box 682, Ita-elewa, Ikorodu,
Lagos, Nigeria, West-Africa.

Website: http://sinati.com 
Socialize with me: http://profile.to/charyorde, http://twitter.com/charyorde,

http://www.google.com/profiles/dreyemi
Skype:drecute

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



Re: [google-appengine] Prerelease SDK 1.4.2 is available for download

2011-02-04 Thread Kayode Odeyemi
Hello Ikan,

The doc on the App Engine wiki at
http://code.google.com/p/googleappengine/wiki/WillItPlayInJava needs an
update as regards to the non-supported APIs and technologies. JAX-WS is now
supported.

On Thu, Feb 3, 2011 at 8:38 PM, sandeep Koduri  wrote:

> Hello Ikai,
>
> Thanks for the updates,
> Deleting tasks progarmatically will help a lot.
> about xmpp, From the api code we are able to understand the send presence
> can show to a particular Jid as mentioned by us,
> that will be very cool,
> And what dose ' allow subscription ' mean.
>
> Thanks for any reply.
>
> On Fri, Feb 4, 2011 at 1:01 AM, Ikai Lan (Google) <
> ikai.l+gro...@google.com > wrote:
>
>> Hey everyone, I just wanted to post that the prerelease SDKs for 1.4.2 are
>> now available for early testing:
>>
>> http://code.google.com/p/googleappengine/downloads/list
>>
>> Highlights of this release:
>>
>> - Lots of XMPP improvements
>> - Prospective Search API (formerly known as Matcher API) now available to
>> everyone
>> - Lots of improvements to task queues
>> - vacuum_indexes in Java SDK
>>
>> Full release notes are below. As a reminder, the backend portions of 1.4.2
>> have not been pushed yet, so they won't likely work (though vacuum_indexes
>> for Java should be working). Download and enjoy!
>>
>> Python
>> -
>> - The XMPP API was updated to include presence and allow subscriptions.
>> - The Task Queue now supports programmatic deleting of tasks.
>> http://code.google.com/p/googleappengine/issues/detail?id=2588
>> - The maximum rate per queue at which tasks are processed has been
>> increased to
>>   100 tasks per second.
>> - The maximum number of concurrent requests for a single queue can be
>> specified
>>   in the application's queue.yaml. This provides an additional easy-to-use
>> form
>>   of rate limiting. The current number of running tasks is also displayed
>> in
>>   the Admin Console.
>> - Metadata queries in the Datastore now support cursors.
>> - Admin Console logs viewer now displays time as -MM-DD HH:MM:SS.mmm.
>> - Added a warning when an admin tries to upload a queue.yaml where the
>> number
>>   of new queues and the number of disabled queues exceeds 100.
>> - Django 1.2.4 is available via use of the use_library() declaration. This
>>   version of Django has also been added to the Python SDK.
>> - The Prospective Search API (formerly named the Matcher API) is available
>> for
>>   use by all applications. Applications will be limited to a maximum of
>> 1000
>>   subscriptions during the experimental release.
>> - Added builtin support for the deferred library.
>> - If Python Precompilation fails, an error will be printed but the app
>> will
>>   still be uploaded.
>> - Added a --disable_sdk_update_check command line flag to the
>> dev_appserver.
>> - The Mail API added KML and KMZ files as allowed attachments.
>> - Fixed an issue where the datastore copy functionality did not work if
>> writes
>>   were disabled on the source application.
>> - Fixed an issue where mail from @appid.appspotmail.com did not work when
>>   sending mail to app admins.
>>  - Fixed an issue where the dev_appserver URLFetch API limit was 16MB. It
>> is now
>>   32 MB to match production.
>> - Fixed a zipimport issue on Windows which was not working due to path
>>   separators.
>> http://code.google.com/p/googleappengine/issues/detail?id=2086
>> - Fixed an issue where the SDK did not enforce the 100 task limit for the
>> Task
>>   Queue.
>> http://code.google.com/p/googleappengine/issues/detail?id=3296
>> - Fixed an issue where Query.order() was broken for properties with the
>> 'name'
>>   attribute.
>> http://code.google.com/p/googleappengine/issues/detail?id=3693
>> - Fixed an unhelpful error message in the Python namespace_manager.
>> http://code.google.com/p/googleappengine/issues/detail?id=3931
>>
>> Java
>> -
>>  - You can now vacuum datastore indexes with the Java SDK.
>> - The XMPP API was updated to include presence and allow subscriptions.
>> - The Task Queue now supports programmatic deleting of tasks.
>> http://code.google.com/p/googleappengine/issues/detail?id=2588
>> - The maximum rate per queue at which tasks are processed has been
>> increased to
>>   100 task per second.
>> - The maximum number of concurrent requests for a single queue can be
>> specified
>>   in the application's queue.xml. This provides an additional easy-to-use
>> form
>>   of rate limiting. The current number of running tasks is also displayed
>> in
>>   the Admin Console.
>> - Metadata queries in the Datastore now support cursors.
>> - Admin Console logs viewer now displays time as -MM-DD HH:MM:SS.mmm.
>> - Added a warning when an admin tries to upload a queue.yaml where the
>> number
>>   of new queues and the number of disabled queues exceeds 100.
>> - Added a putIfUntouched() method to the Memcache API.
>> http://code.google.com/p/googleappengine/issues/detail?id=2139
>> - Added JAX-WS sup

Re: [google-appengine] Powered by Google Technologies

2011-02-01 Thread Kayode Odeyemi
Great site. I think i'll work on an imitation :)

On Mon, Jan 31, 2011 at 6:03 PM, Ethan  wrote:

> How long does it take to create the website? Just curious.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appengine@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>



-- 
Odeyemi 'Kayode O.

B.Sc(Hons) Econs, Application Developer & Systems Engineer (Sun Certified
Professional),
Oracle Certified Associate, Solaris Systems Administrator, Drupal Developer

Tel: +2348053063373
P.O.Box 682, Ita-elewa, Ikorodu,
Lagos, Nigeria, West-Africa.

Website: http://sinati.com 
Socialize with me: http://profile.to/charyorde, http://twitter.com/charyorde,

http://www.google.com/profiles/dreyemi
Skype:drecute

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



Re: [google-appengine] Re: Powered by Google Technologies

2011-02-01 Thread Kayode Odeyemi
Hello, Michael, is your team available to take on a GWT project that makes
use of
virtually all Google tools?

Kindly let me know.

Thanks

On Tue, Feb 1, 2011 at 2:32 AM, Doug  wrote:

> Nice Site! Smooth and well done.
>
> On Jan 30, 3:09 pm, Michael Weinberg  wrote:
> > Wanted to share our project called CitySale.ca which is built entirely
> > on the Google stack:
> >
> > Google APIs - App Engine, GWT, Maps, Fusion Tables, Geocoding, Places,
> > Search, ...
> > Google Tools - Analytics, DoubleClick, Webmaster
> >
> > The GWT Client and the App Engine based server are also deeply
> > integrated with Facebook APIs.
> >
> > It is a bit scary to completely rely on a single company (Google) for
> > all your technology/infrastructure needs, but for us the benefits
> > outweigh this concern!
> >
> > Would be great to get some feedback and if I would be happy to answer
> > any questions about how this service was built.
> >
> > p.s. if you are from Canada, we hope you would actually sign up and
> > use the service too :)
> >
> > the url is  http://www.citysale.ca
> >
> > Thanks,
> > Michael Weinberg
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appengine@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>


-- 
Odeyemi 'Kayode O.

B.Sc(Hons) Econs, Application Developer & Systems Engineer (Sun Certified
Professional),
Oracle Certified Associate, Solaris Systems Administrator, Drupal Developer

Tel: +2348053063373
P.O.Box 682, Ita-elewa, Ikorodu,
Lagos, Nigeria, West-Africa.

Website: http://sinati.com 
Socialize with me: http://profile.to/charyorde, http://twitter.com/charyorde,

http://www.google.com/profiles/dreyemi
Skype:drecute

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