[appengine-java] Re: May I use AppEngine SDK internally without deploy to Google AppEngine?

2010-12-20 Thread Trung
Appscale is promising.


On Dec 21, 3:09 am, "A. Stevko"  wrote:
> Trung,
> The dev server is not the only way to run app engine locally.
> Take a look at these projects to see if they can meet your 
> needs...http://code.google.com/p/appscale/
> http://code.google.com/p/typhoonae/
> 
>
> On Mon, Dec 20, 2010 at 11:54 AM, Ikai Lan (Google) <
>
>
>
> ikai.l+gro...@google.com > wrote:
> > You sure can, but you should be aware of many of the limitations of the
> > development server:
>
> > - it's slow
> > - the datastore can be wiped on upgrade (this is an ugly bug that pops it
> > head up now and then)
> > - it's single threaded
> > - no real accounts support
> > - ... many, many more limitations
>
> > --
> > 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 Mon, Dec 20, 2010 at 7:13 AM, Trung  wrote:
>
> >> For some reasons, I would like to run our GAE apps internally (with
> >> some custom hooks instead of re-writing the app).
>
> >> May I do that?
>
> >> 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 >>  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 > 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: JDO - Add a child - Error

2010-12-20 Thread lisandrodc


Hi! I have a problem when add a class "Equipo"(child) one
"Torneo"(parent).

The code:
Transaction tx = pm.currentTransaction();

                try {
                        tx.begin();

                        unTorneo.agregarEquipo(unEquipo);
                        //pm.makePersistent(unEquipo);
            Torneo tor = (Torneo) pm.detachCopy(unTorneo);
                        pm.makePersistent(tor);

                        tx.commit();

                       
System.out.println("persistioTorneoConEquipo");
                } finally {
                         //pm.close();
                        if (tx.isActive()) {
                                tx.rollback();
                        }
                }
        }

The exception:

    INTERNAL_SERVER_ERROR

Caused by:

java.lang.NullPointerException
        at
org.datanucleus.store.appengine.DatastorePersistenceHandler.deleteObject(DatastorePersistenceHandler.java:
581)
        at
org.datanucleus.store.appengine.DatastoreFKListStoreSpecialization.removeAt(DatastoreFKListStoreSpecialization.java:
145)
        at
org.datanucleus.store.mapped.scostore.FKListStore.removeAt(FKListStore.java:
525)
        at
org.datanucleus.store.mapped.scostore.AbstractListStore.remove(AbstractListStore.java:
318)
        at org.datanucleus.sco.backed.List.remove(List.java:907)
        at
org.datanucleus.sco.SCOListIterator.remove(SCOListIterator.java:
145)
        at
org.datanucleus.sco.SCOUtils.updateListWithListElements(SCOUtils.java:
828)
        at org.datanucleus.sco.simple.List.attachCopy(List.java:232)
        at
org.datanucleus.store.fieldmanager.AttachFieldManager.storeObjectField(AttachFieldManager.java:
205)
        at
org.datanucleus.state.AbstractStateManager.providedObjectField(AbstractStateManager.java:
1037)
        at model.Torneo.jdoProvideField(Torneo.java)
        at model.Torneo.jdoProvideFields(Torneo.java)
        at
org.datanucleus.state.JDOStateManagerImpl.provideFields(JDOStateManagerImpl.java:
2715)
        at
org.datanucleus.state.JDOStateManagerImpl.internalAttachCopy(JDOStateManagerImpl.java:
4055)
        at
org.datanucleus.state.JDOStateManagerImpl.attachCopy(JDOStateManagerImpl.java:
3987)
        at
org.datanucleus.ObjectManagerImpl.attachObjectCopy(ObjectManagerImpl.java:
1778)
        at
org.datanucleus.ObjectManagerImpl.persistObjectInternal(ObjectManagerImpl.java:
1260)
        at
org.datanucleus.ObjectManagerImpl.persistObject(ObjectManagerImpl.java:
1175)
        at
org.datanucleus.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:
669)
        at
org.datanucleus.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:
694)
        at
controllers.ControladorTorneo.agregarEquipoConTorneo(ControladorTorneo.java:
135)
        at struts.action.NuevoEquipo.execute(NuevoEquipo.java:38)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

-- 
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: Persist child - Problem

2010-12-20 Thread lisandrodc
Thanks andrew! My class Equipo has @persistence capable and
and serializable... The code:
import java.io.Serializable;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;


import com.google.appengine.api.datastore.Key;

@PersistenceCapable(identityType =
IdentityType.APPLICATION,detachable="true")
public class Equipo implements Serializable {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key id;
@Persistent
private String nombre;
@Persistent
private String imagen;



I'm not understand because it not pesist in the datastore.
Regards!
Lisandro

On 20 dic, 04:02, andrew  wrote:
> Is the child annotated as @persistence capable?
> Is it serializable?
> It also depends on the type of keys used and key generator strategy.
>
> Show us the code defining each class and we'll let you know.
>
> Quizas asi te ayudamos a poner tu equipo en primera división! :-)

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



Re: [appengine-java] Re: Best way to approach templating?

2010-12-20 Thread jared camarata
Thank you Mike. Once I downloaded and tried out sitemesh, I found it to be
exactly what I needed.

Thanks,
Jared

On Mon, Dec 20, 2010 at 2:36 PM, Mike!  wrote:

> hey Jared,
>
> You're pretty much limited to <%...@import> statements when separating
> out the JSP into fragments/files...as for templates, have you used
> sitemesh before?  That's what I use to do all of my theming...if
> you're using Spring or other frameworks, they sometimes have themes
> built into them too
>
> Mike!
> http://www.thepixlounge.com
>
> On Dec 19, 10:37 am, JaredC  wrote:
> > I'm new to the Java App Engine and I've been searching for a way to have
> a
> > general template or theme for my site. I have a header, menu, and side
> bar
> > that will stay the same for all pages, so why not manage it through one
> > single jsp file? My thought was to have a jsp:include for the actual
> content
> > of a page. Such as when a user goes to mysite.com/aboutus, the servlet
> gives
> > the template, and the template includes aboutus.jsp. I think I've found
> you
> > can't have dynamic includes though. I tried this:
> >
> > In the aboutus doGet() :
> > req.setAttribute("page", "aboutus");
> > req.getRequestDispatcher("/template.jsp").include(req, resp);
> >
> > in the template.jsp:
> > .jsp"/>
> >
> > but always get errors.
> >
> > Any thoughts on the best practices for templates in GAE/java?
>
> --
> 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: Best way to approach templating?

2010-12-20 Thread Mike!
hey Jared,

You're pretty much limited to <%...@import> statements when separating
out the JSP into fragments/files...as for templates, have you used
sitemesh before?  That's what I use to do all of my theming...if
you're using Spring or other frameworks, they sometimes have themes
built into them too

Mike!
http://www.thepixlounge.com

On Dec 19, 10:37 am, JaredC  wrote:
> I'm new to the Java App Engine and I've been searching for a way to have a
> general template or theme for my site. I have a header, menu, and side bar
> that will stay the same for all pages, so why not manage it through one
> single jsp file? My thought was to have a jsp:include for the actual content
> of a page. Such as when a user goes to mysite.com/aboutus, the servlet gives
> the template, and the template includes aboutus.jsp. I think I've found you
> can't have dynamic includes though. I tried this:
>
> In the aboutus doGet() :
>             req.setAttribute("page", "aboutus");
>             req.getRequestDispatcher("/template.jsp").include(req, resp);
>
> in the template.jsp:
> .jsp"/>
>
> but always get errors.
>
> Any thoughts on the best practices for templates in GAE/java?

-- 
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] NoClassDefFoundError even though the jar is in WEB-INF/lib

2010-12-20 Thread A. Stevko
maybe something on this page that can help you -
http://code.google.com/p/googleappengine/wiki/WillItPlayInJava


On Mon, Dec 20, 2010 at 7:35 AM, Madhusuthanan Seetharam  wrote:

> Any help on this is highly appreciated.
>
> Thanks,
>   - Madhu
>
>
> On Sun, Dec 19, 2010 at 8:36 AM, Madhu  wrote:
>
>> Hi,
>>I'm facing a peculiar issue. One of my JSPs uses
>> javax.servlet.jsp.jstl.fmt.LocaleSupport.getLocalizedMessage to get
>> localized message from resource bundles. I have copied the jakarta-
>> taglibs-standard-1.1.2.jar and jakarta-taglibs-jstl-1.1.2.jar into WEB-
>> INF/lib directory. On my local SDK the application works just fine.
>> But when I deploy it on GAE it gives out the following error.
>>
>> java.lang.NoClassDefFoundError: org/apache/taglibs/standard/tag/common/
>> fmt/BundleSupport
>>at
>>
>> javax.servlet.jsp.jstl.fmt.LocaleSupport.getLocalizedMessage(LocaleSupport.java:
>> 143)
>>at
>>
>> javax.servlet.jsp.jstl.fmt.LocaleSupport.getLocalizedMessage(LocaleSupport.java:
>> 63)
>>at
>>
>> org.apache.jsp.templates.default_.LoginContent_jsp._jspService(LoginContent_jsp.java:
>> 547)
>>
>>This happens on both 1.3.8 and 1.4.0 SDKs. Any clues on what is
>> happening?
>>
>> Thanks,
>>  - Madhu
>>
>> --
>> 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.



Re: [appengine-java] May I use AppEngine SDK internally without deploy to Google AppEngine?

2010-12-20 Thread A. Stevko
Trung,
The dev server is not the only way to run app engine locally.
Take a look at these projects to see if they can meet your needs...
http://code.google.com/p/appscale/
http://code.google.com/p/typhoonae/


On Mon, Dec 20, 2010 at 11:54 AM, Ikai Lan (Google) <
ikai.l+gro...@google.com > wrote:

> You sure can, but you should be aware of many of the limitations of the
> development server:
>
> - it's slow
> - the datastore can be wiped on upgrade (this is an ugly bug that pops it
> head up now and then)
> - it's single threaded
> - no real accounts support
> - ... many, many more limitations
>
> --
> 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 Mon, Dec 20, 2010 at 7:13 AM, Trung  wrote:
>
>> For some reasons, I would like to run our GAE apps internally (with
>> some custom hooks instead of re-writing the app).
>>
>> May I do that?
>>
>> 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.
>>
>>
>  --
> 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] May I use AppEngine SDK internally without deploy to Google AppEngine?

2010-12-20 Thread Ikai Lan (Google)
You sure can, but you should be aware of many of the limitations of the
development server:

- it's slow
- the datastore can be wiped on upgrade (this is an ugly bug that pops it
head up now and then)
- it's single threaded
- no real accounts support
- ... many, many more limitations

--
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 Mon, Dec 20, 2010 at 7:13 AM, Trung  wrote:

> For some reasons, I would like to run our GAE apps internally (with
> some custom hooks instead of re-writing the app).
>
> May I do that?
>
> 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.
>
>

-- 
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] Concurrency issue when dealing with datastore

2010-12-20 Thread cghersi
Hi all,
I'm very new with GoogleAppEngine, and I cannot yet understand how to
deal with Transactions and concurrency.
I've got a servlet called by a queue task where I need to manipulate
several kind of objects.
I'm not able to use the Transactions, as I'm updating several objects
not belonging to the same entity group.
I'm facing a "org.datanucleus.exceptions.NucleusDataStoreException:
Concurrent Modification" problem when trying to close my
PersistenceManager object at the end of the doPost() method of the
servlet.

Is there a known pattern to face with this problem?

Thank you very much.
Bye
cghersi

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



Re: [appengine-java] Re: DataStore embeds equals signs ("=") into saved file

2010-12-20 Thread Max
Hi,

I explored the below thread, but I'm still not sure how to fix the problem.   
Is it that the file is encoded as one format originally and then GAE tries to 
encode it differently?

thanks
MG

On Dec 5, 2010, at 1:56 AM, Didier Durand wrote:

> Hi,
> 
> somebody already had a problem similar to yours and found the issue
> and its solution:
> http://groups.google.com/group/google-appengine-python/browse_thread/thread/0ac4ab5266fb3781
> 
> Hope it helps
> didier
> 
> On Dec 4, 9:04 pm, Max <6738...@gmail.com> wrote:
>> Hi,
>> 
>> My GAE application strips attachments from inbound emails and saves them as 
>> byte[].  Objectify translates the byte[] to a 
>> com.google.appengine.api.datastore.Blob (does not utilize BlobStore).  For 
>> some files, it embeds equal signs in places where the original document 
>> doesn't have any equal signs.  I've found that MS documents and HTML are 
>> rather tolerant of this behavior, but PDFs tend to get corrupt when this 
>> happens.  Does anyone know why these equal signs are added in seemingly 
>> random places?  Any other advice to get around this?  
>> 
>> Below is an example of the contents of a PDF from the "more" command.  You 
>> can see the equal signs from the second representation of the file.
>> 
>> Original file (Good):
>> 1 0 obj
>> <<
>> /CreationDate (D:20101203120005)
>> /Producer (SCS2PDF v1.0 (\251 BeppeCosta, 2005))
>> /Title (PRINT1)
>> 
>> endobj
>> 2 0 obj
>> <<
>> /Type /Catalog
>> /Pages 3 0 R
>> 
>> endobj
>> 
>> File Snippet After Saving to DataStore (Bad):
>> 1 0 obj
>> <<
>> /CreationDate =
>> (D:20101203120005)
>> /Producer (SCS2PDF v1.0 (\251 BeppeCosta, =
>> 2005))
>> /Title (PRINT1)
>> 
>> endobj
>> 2 0 obj
>> <<
>> /Type =
>> /Catalog
>> /Pages 3 0 R
>> 
>> endobj
>> 
>> Any thoughts?
>> thanks!
>> MG
> 
> -- 
> 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] NoClassDefFoundError even though the jar is in WEB-INF/lib

2010-12-20 Thread Madhusuthanan Seetharam
Any help on this is highly appreciated.

Thanks,
  - Madhu

On Sun, Dec 19, 2010 at 8:36 AM, Madhu  wrote:

> Hi,
>I'm facing a peculiar issue. One of my JSPs uses
> javax.servlet.jsp.jstl.fmt.LocaleSupport.getLocalizedMessage to get
> localized message from resource bundles. I have copied the jakarta-
> taglibs-standard-1.1.2.jar and jakarta-taglibs-jstl-1.1.2.jar into WEB-
> INF/lib directory. On my local SDK the application works just fine.
> But when I deploy it on GAE it gives out the following error.
>
> java.lang.NoClassDefFoundError: org/apache/taglibs/standard/tag/common/
> fmt/BundleSupport
>at
>
> javax.servlet.jsp.jstl.fmt.LocaleSupport.getLocalizedMessage(LocaleSupport.java:
> 143)
>at
>
> javax.servlet.jsp.jstl.fmt.LocaleSupport.getLocalizedMessage(LocaleSupport.java:
> 63)
>at
>
> org.apache.jsp.templates.default_.LoginContent_jsp._jspService(LoginContent_jsp.java:
> 547)
>
>This happens on both 1.3.8 and 1.4.0 SDKs. Any clues on what is
> happening?
>
> Thanks,
>  - Madhu
>
> --
> 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] May I use AppEngine SDK internally without deploy to Google AppEngine?

2010-12-20 Thread Trung
For some reasons, I would like to run our GAE apps internally (with
some custom hooks instead of re-writing the app).

May I do that?

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] Upload to blobstore without form

2010-12-20 Thread Cyrille Vincey
Has any of you succeeded in coding a servlet that uploads a file to the
blobstore WITHOUT passing through a post jsp form ?
(apologies, this might have been discussed a zillion time already in this
group)

Would be VERY helpful to me.
Thanks in advance,
cyrille


-- 
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: countEntities problem

2010-12-20 Thread Zsombor

Sorry, after I've upgraded to 1.4.0 this problem is solved.

BR,
 Zsombor


On dec. 20, 02:24, Gal Dolber  wrote:
> Try adding a limit to the count query
>
>

-- 
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] Serve image from blob store

2010-12-20 Thread Ahmed Shoeib

hi all,
i want to get image from blobstore using this code

// Serve image from blob store
BlobKey blobKey = new BlobKey(req.getParameter("apikey"));
blobstoreService.serve(blobKey, resp);

and facing this problem

HTTP ERROR 500

Problem accessing /api/news/serve. Reason:

WRITER

Caused by:

java.lang.IllegalStateException: WRITER
at org.mortbay.jetty.Response.getOutputStream(Response.java:594)
at
javax.servlet.ServletResponseWrapper.getOutputStream(ServletResponseWrapper.java:
105)
at
com.google.appengine.api.blobstore.dev.ServeBlobFilter.serveBlob(ServeBlobFilter.java:
169)
at
com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
62)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
43)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
122)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
418)
at
com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
70)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:349)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
542)
at org.mortbay.jetty.HttpConnection
$RequestHandler.headerComplete(HttpConnection.java:923)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
409)
at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:582)

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