[appengine-java] Re: How to pass paramters to servlet deployed on GAE?

2010-02-18 Thread barak

test1
com.TestServlet


test1
/test1/*



On Feb 18, 6:41 pm, Stephan Hartmann  wrote:
> You sayhttp://appid.appspot.com/test1/hits the servlet. What happens
> without a trailing slash? Is it redirected?
> How does your servlet mappings look like?
>

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



[appengine-java] Re: How to pass paramters to servlet deployed on GAE?

2010-02-18 Thread barak
Here it comes:

public class TestServlet extends HttpServlet
{
public void doGet( HttpServletRequest req, HttpServletResponse resp )
throws IOException
{
try
{
resp.setContentType( "text/plain" );

resp.setCharacterEncoding( "utf-8" );

resp.getWriter().println( System.currentTimeMillis() );

GaeVFS.setRootPath( getServletContext().getRealPath( 
"/" ) );

FileSystemManager fsManager = GaeVFS.getManager();

String p1 = req.getParameter( "p1" );

System.out.println( "p1 from request is: " + p1);
System.out.println( "param map: " + 
req.getParameterMap() );

FileObject tmpFolder2 = fsManager.resolveFile( p1 );

resp.getWriter().println( p1 + ", " + 
tmpFolder2.exists() );
}
finally
{
GaeVFS.clearFilesCache(); // this is important!
}
}
}

Again, for some reason, this is works well in the development server -
the problem starts when deploying the app to gae.

On Feb 18, 6:01 pm, Cristian Nicanor Babula 
wrote:
> This is the right way. Maybe showing your servlet's source would help us
> identify the problem.
>
>

-- 
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] How to pass paramters to servlet deployed on GAE?

2010-02-18 Thread barak
Hello all,

I've a test servlet to deploy on gae platform, which just read
paramters from the request and and sysout them. While deploying on the
development server (via Eclipse plugin) everything works as expected,
i.e. http://localhost:/test1?p1=v1 causes the servlet to display
the parameter and its value to the log file.

When deployed to GAE, however, the results are different. Bringing the
browser to http://appid.appspot.com/test1?p1=v1 causes the browser
show link-is-broken screen. In the log files there messages like GET /
test1?p1=v1/ HTTP/1.1" 404.

Accessing http://appid.appspot.com/test1/ do hit the servlet, but the
parameters map in the request is empty.

So, what is the right way to pass parameters to servlets?

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] App engine layout - servers around the world?

2009-11-04 Thread barak

I was wondering - say a user from South Africa and a user from the U.S
hits a webapp deployed on GAE. Do those users expirience the same
speed of loading the site, downloaing images, etc., or GAE servers
located in one data center (for example, California), and the
"nearest" users will enjoy from faster download?

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



[appengine-java] Atmosphere plays nice on GAE?

2009-11-03 Thread barak

Does someone managed to run Atmosphere  (https://
atmosphere.dev.java.net/) on GAE? It's being used in PrimeFaces and I
got "access denied (java.lang.RuntimePermission modifyThreadGroup)".

If someone have some working port - I'll be more than glad to hear...

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



[appengine-java] Re: Persist HashMap with sdk1.2.2 ?

2009-11-01 Thread barak

Think I found the solution, thanks to this:
http://groups.google.com/group/google-appengine-java/browse_thread/thread/fb12ab60c68bf664/4179ae7a25931a53?lnk=gst&q=usersTemp#4179ae7a25931a53

Now I'm updating the counter using that method and everything is
working as expected...

public void updateQueryCounter(String query )
{
Integer counter = queries.get( query );

if( counter == null )
counter = new Integer( 1 );
else
counter = new Integer( counter.intValue() + 1 );

queries.put(query, counter);


queriesTemp=queries;

queries=null;

queries=queriesTemp;
}

Thanks again!

On Nov 1, 3:22 am, Rusty Wright  wrote:
> Whoops, sorry; ignore my remark about UserStats not being persistable; I 
> looked again at your code and saw that it has a key.  I was confused and 
> thinking that you're persisting the List, not an item in the List.  But I 
> think the problem with it becoming a root object still remains.
>
>
>
> Rusty Wright wrote:
> > 1) In the case of result.isEmpty(), I don't see where you're adding the
> > new UserStats to the result list.
>
> > 2) When you do pm.makePersistent( stats ) I think you're going to have a
> > problem adding the new stats to the List, because that
> > makePersistent is going make a new stats a root/parent object.  But then
> > I don't see how you can do a makePersistent on stats since it doesn't
> > have a Key field; I thought you can/should only call makePersistent on
> > objects that have a primary key field (your classes, annotated with
> > @PersistenceCapable).
>
> > 3) Constructing queries with string concatenation like that is a
> > security hole, an invitation to sql injection attacks.  Use parameters.  
> >http://xrl.in/3i9x
>
> > 4) I'm wondering if you're approaching this thinking about things the
> > "old" relational database way, with tables.  Instead, map out your
> > domain objects as java objects, and don't think about tables at all.  
> > Wipe sql tables from your mind when using Google App Engine.  Use pencil
> > and paper and draw diagrams showing what's inside of what or what needs
> > what (for example, uml diagrams).  Whenever you have an object that's
> > not inside another object stop and analyze things and see if there is
> > some way it could/should go inside another object; this can be hard at
> > first if you're still thinking about tables and joins (I'm still
> > figuring this out).  At the moment my thinking is that the only time you
> > should have an object not be inside another object, *when you persist
> > it* (whereupon it becomes a root object), is an object that moves
> > around; sometimes it's in object A, sometimes object B, etc.  Then you
> > have to store in the containing outer object the inner object's Key
> > instead of th
> > e object.  For example, in your case, I'm wondering if instead of having
> > a List of UserStats, have a List of User, and each user has a UserStats
> > object in it.
>
> > I'm still trying to figure this out so I could be wrong about this.
>
> > barak wrote:
> >> Here it is:
>
> >> PersistenceManager pm = PMF.get().getPersistenceManager();
>
> >> List result = (List) pm.newQuery( "select from "
> >> + UserStats.class.getName() + " where id == '" + session.getId() +
> >> "'" ).execute();
>
> >> if( result.isEmpty() )
> >>     stats = new UserStats( session.getId(), System.currentTimeMillis
> >> () );
> >> else
> >>     stats = result.get( 0 );
>
> >> Integer counter = stats.getQueries().get( query );
>
> >> if( counter == null )
> >>     counter = new Integer( 1 );
> >> else
> >>    counter = new Integer( counter.intValue() + 1 );
>
> >> stats.getQueries().put( query, counter );
>
> >> try
> >> {
> >>     pm.makePersistent( stats );
> >> }
> >> finally
> >> {
> >>     pm.close();
> >> }
>
> >> On Oct 30, 8:47 pm, "Jason (Google)"  wrote:
> >>> Can you post the code that you're using to re-persist the updated
> >>> HashMap?
>
> >>> - Jason
>
> >>> On Thu, Oct 29, 2009 at 6:07 AM, barak  wrote:
>
> >>>> Thanks, did that and the map is indeed serialized now. But now, the
> >>>> enitity is fetched, seems like the state is not 

[appengine-java] Re: Persist HashMap with sdk1.2.2 ?

2009-11-01 Thread barak

Hi,

Thanks for your answers. I'm doing my first steps in JDO and indeed
relate it as another relational db... :-)

Regarding your first comment - I'm not trying to persist a list, just
a single UserStats object. A list is mentioned in the code since
execute() returns list of objects. If list is empty a new object
instanciate, otherwise the list size assumed to be one, and the first
object is taken.

Regarding your second comment - not sure I understand... Can you
please supply an example code demonstaring how to acheive my goal?

Thanks.

On Nov 1, 3:22 am, Rusty Wright  wrote:
> Whoops, sorry; ignore my remark about UserStats not being persistable; I 
> looked again at your code and saw that it has a key.  I was confused and 
> thinking that you're persisting the List, not an item in the List.  But I 
> think the problem with it becoming a root object still remains.
>
>
>
> Rusty Wright wrote:
> > 1) In the case of result.isEmpty(), I don't see where you're adding the
> > new UserStats to the result list.
>
> > 2) When you do pm.makePersistent( stats ) I think you're going to have a
> > problem adding the new stats to the List, because that
> > makePersistent is going make a new stats a root/parent object.  But then
> > I don't see how you can do a makePersistent on stats since it doesn't
> > have a Key field; I thought you can/should only call makePersistent on
> > objects that have a primary key field (your classes, annotated with
> > @PersistenceCapable).
>
> > 3) Constructing queries with string concatenation like that is a
> > security hole, an invitation to sql injection attacks.  Use parameters.  
> >http://xrl.in/3i9x
>
> > 4) I'm wondering if you're approaching this thinking about things the
> > "old" relational database way, with tables.  Instead, map out your
> > domain objects as java objects, and don't think about tables at all.  
> > Wipe sql tables from your mind when using Google App Engine.  Use pencil
> > and paper and draw diagrams showing what's inside of what or what needs
> > what (for example, uml diagrams).  Whenever you have an object that's
> > not inside another object stop and analyze things and see if there is
> > some way it could/should go inside another object; this can be hard at
> > first if you're still thinking about tables and joins (I'm still
> > figuring this out).  At the moment my thinking is that the only time you
> > should have an object not be inside another object, *when you persist
> > it* (whereupon it becomes a root object), is an object that moves
> > around; sometimes it's in object A, sometimes object B, etc.  Then you
> > have to store in the containing outer object the inner object's Key
> > instead of th
> > e object.  For example, in your case, I'm wondering if instead of having
> > a List of UserStats, have a List of User, and each user has a UserStats
> > object in it.
>
> > I'm still trying to figure this out so I could be wrong about this.
>
> > barak wrote:
> >> Here it is:
>
> >> PersistenceManager pm = PMF.get().getPersistenceManager();
>
> >> List result = (List) pm.newQuery( "select from "
> >> + UserStats.class.getName() + " where id == '" + session.getId() +
> >> "'" ).execute();
>
> >> if( result.isEmpty() )
> >>     stats = new UserStats( session.getId(), System.currentTimeMillis
> >> () );
> >> else
> >>     stats = result.get( 0 );
>
> >> Integer counter = stats.getQueries().get( query );
>
> >> if( counter == null )
> >>     counter = new Integer( 1 );
> >> else
> >>    counter = new Integer( counter.intValue() + 1 );
>
> >> stats.getQueries().put( query, counter );
>
> >> try
> >> {
> >>     pm.makePersistent( stats );
> >> }
> >> finally
> >> {
> >>     pm.close();
> >> }
>
> >> On Oct 30, 8:47 pm, "Jason (Google)"  wrote:
> >>> Can you post the code that you're using to re-persist the updated
> >>> HashMap?
>
> >>> - Jason
>
> >>> On Thu, Oct 29, 2009 at 6:07 AM, barak  wrote:
>
> >>>> Thanks, did that and the map is indeed serialized now. But now, the
> >>>> enitity is fetched, seems like the state is not always kept.
> >>>> For example, I would like to store some attribute from an HttpSession
> >>>> using the UserStats instance. Every time a user in a session press

[appengine-java] Re: Persist HashMap with sdk1.2.2 ?

2009-10-31 Thread barak

Here it is:

PersistenceManager pm = PMF.get().getPersistenceManager();

List result = (List) pm.newQuery( "select from "
+ UserStats.class.getName() + " where id == '" + session.getId() +
"'" ).execute();

if( result.isEmpty() )
stats = new UserStats( session.getId(), System.currentTimeMillis
() );
else
stats = result.get( 0 );

Integer counter = stats.getQueries().get( query );

if( counter == null )
counter = new Integer( 1 );
else
   counter = new Integer( counter.intValue() + 1 );

stats.getQueries().put( query, counter );

try
{
pm.makePersistent( stats );
}
finally
{
pm.close();
}

On Oct 30, 8:47 pm, "Jason (Google)"  wrote:
> Can you post the code that you're using to re-persist the updated HashMap?
>
> - Jason
>
>
>
> On Thu, Oct 29, 2009 at 6:07 AM, barak  wrote:
>
> > Thanks, did that and the map is indeed serialized now. But now, the
> > enitity is fetched, seems like the state is not always kept.
>
> > For example, I would like to store some attribute from an HttpSession
> > using the UserStats instance. Every time a user in a session press
> > some button, a instance is fetched (using the session id as an
> > identifier) and update a counter in the HashMap. The problem I faced
> > is even that the object is found by the JDO, the counter updated and
> > the object persisted again, next fetch does not return the instance
> > with the updated counter. Can you help please debugging this?
>
> > This is the data object:
>
> > @PersistenceCapable(identityType = IdentityType.APPLICATION)
> > public class UserStats
> > {
> >       �...@primarykey
> >       �...@persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
> >        private Key                                                     key;
>
> >       �...@persistent
> >        private String                                          id;
>
> >       �...@persistent
> >         private Long                                            time;
>
> >       �...@persistent( serialized ="true" )
> >         private HashMap        queries;
>
> >         public UserStats( String id, Long time )
> >        {
> >                this.id = id;
>
> >                this.time = time;
>
> >                queries = new HashMap();
> >        }
>
> >        public Key getKey()
> >        {
> >                return key;
> >        }
>
> >        public String getId()
> >        {
> >                return id;
> >        }
>
> >        public void setId( String id )
> >        {
> >                this.id = id;
> >        }
>
> >         public Long getTime()
> >        {
> >                return time;
> >        }
>
> >        public void setTime( Long time )
> >        {
> >                this.time = time;
> >         }
>
> >        public HashMap getQueries()
> >        {
> >                return queries;
> >        }
>
> >        public void setQueries( HashMap queries )
> >        {
> >                this.queries = queries;
> >        }
> > }
>
> > On Oct 29, 10:38 am, Patrizio Munzi  wrote:
> > > HashMap isn't supported as a persistable type.
> > > The only way you've got to persist it is serialize it:
> >http://gae-java-persistence.blogspot.com/2009/10/serialized-fields.html
> > > 1KViewDownload- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: Persist HashMap with sdk1.2.2 ?

2009-10-29 Thread barak

Thanks, did that and the map is indeed serialized now. But now, the
enitity is fetched, seems like the state is not always kept.

For example, I would like to store some attribute from an HttpSession
using the UserStats instance. Every time a user in a session press
some button, a instance is fetched (using the session id as an
identifier) and update a counter in the HashMap. The problem I faced
is even that the object is found by the JDO, the counter updated and
the object persisted again, next fetch does not return the instance
with the updated counter. Can you help please debugging this?

This is the data object:

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class UserStats
{
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key key;

@Persistent
private String  id;

@Persistent
private Longtime;

@Persistent( serialized ="true" )
private HashMapqueries;

public UserStats( String id, Long time )
{
this.id = id;

this.time = time;

queries = new HashMap();
}

public Key getKey()
{
return key;
}

public String getId()
{
return id;
}

public void setId( String id )
{
this.id = id;
}

public Long getTime()
{
return time;
}

public void setTime( Long time )
{
this.time = time;
}

public HashMap getQueries()
{
return queries;
}

public void setQueries( HashMap queries )
{
this.queries = queries;
}
}

On Oct 29, 10:38 am, Patrizio Munzi  wrote:
> HashMap isn't supported as a persistable type.
> The only way you've got to persist it is serialize 
> it:http://gae-java-persistence.blogspot.com/2009/10/serialized-fields.html
> 1KViewDownload
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Persist HashMap with sdk1.2.2 ?

2009-10-29 Thread barak

Hi,

I'm trying to persist the following class:

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class UserStats
{
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key key;

@Persistent
private String  id;

@Persistent
private HashMapqueries;

public UserStats( String id )
{
this.id = id;

queries = new HashMap();
}

public Key getKey()
{
return key;
}

public String getId()
{
return id;
}

public void setId( String id )
{
this.id = id;
}

public HashMap getQueries()
{
return queries;
}

public void setQueries( HashMap queries )
{
this.queries = queries;
}
}

But the following exception is raised:

SEVERE: java.lang.IllegalArgumentException: queries: java.util.HashMap
is not a supported property type.
at
com.google.appengine.api.datastore.DataTypeUtils.checkSupportedSingleValue
(DataTypeUtils.java:134)
at
com.google.appengine.api.datastore.DataTypeUtils.checkSupportedValue
(DataTypeUtils.java:116)
at com.google.appengine.api.datastore.Entity.setProperty(Entity.java:
260)
at
org.datanucleus.store.appengine.DatastoreFieldManager.storeObjectField
(DatastoreFieldManager.java:790)
at org.datanucleus.state.AbstractStateManager.providedObjectField
(AbstractStateManager.java:1037)
at com.me2.data.UserStats.jdoProvideField(UserStats.java)
at com.me2.data.UserStats.jdoProvideFields(UserStats.java)
at org.datanucleus.state.JDOStateManagerImpl.provideFields
(JDOStateManagerImpl.java:2715)
at
org.datanucleus.store.appengine.DatastorePersistenceHandler.insertObject
(DatastorePersistenceHandler.java:180)
at org.datanucleus.state.JDOStateManagerImpl.internalMakePersistent
(JDOStateManagerImpl.java:3185)
at org.datanucleus.state.JDOStateManagerImpl.makePersistent
(JDOStateManagerImpl.java:3161)
at org.datanucleus.ObjectManagerImpl.persistObjectInternal
(ObjectManagerImpl.java:1298)
at org.datanucleus.ObjectManagerImpl.persistObject
(ObjectManagerImpl.java:1175)
at org.datanucleus.jdo.JDOPersistenceManager.jdoMakePersistent
(JDOPersistenceManager.java:669)
at org.datanucleus.jdo.JDOPersistenceManager.makePersistent
(JDOPersistenceManager.java:694)
at com.me2.jsf.LargeDataModelBeanSample.gogo
(LargeDataModelBeanSample.java:199)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.el.parser.AstValue.invoke(AstValue.java:130)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:
274)
at com.sun.facelets.el.TagMethodExpression.invoke
(TagMethodExpression.java:68)
at javax.faces.event.MethodExpressionActionListener.processAction
(MethodExpressionActionListener.java:99)
at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
at javax.faces.component.UIComponentBase.broadcast
(UIComponentBase.java:771)
at javax.faces.component.UICommand.broadcast(UICommand.java:372)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:
475)
at javax.faces.component.UIViewRoot.processApplication
(UIViewRoot.java:756)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute
(InvokeApplicationPhase.java:82)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:
118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1093)
at org.primefaces.optimus.filter.PDFRenderingFilter.doFilter
(PDFRenderingFilter.java:74)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at org.primefaces.optimus.filter.CharacterEncodingFilter.doFilter
(CharacterEncodingFilter.java:32)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at org.primefaces.ui.webapp.filter.FileUploadFilter.doFilter
(FileUploadFilter.java:79)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
(Tra

[appengine-java] Re: Discussion on will-it-play-in-app-engine

2009-09-22 Thread barak

I've uploaded the primefaces demo to gae (jsf1.2), some components
still do not behave as expected - http://primefacesshowcase.appspot.com/ui/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] 500 Internal Server Error when uploading to GAE

2009-09-06 Thread barak

Hi,

I'm using Eclipse plugin and sdk-1.2.2 to upload my app to GAE, its
size is 109MB. From time to time I'm facing upload problems with the
following error: java.io.IOException: Error posting to URL:
http://appengine.google.com/api/appversion/addblob?path=__.500
Internal Server Error

The stack trace is:

Unable to upload:
java.io.IOException: Error posting to URL:
http://appengine.google.com/api/appversion/addblob?path=__static_...
500 Internal Server Error

Server Error (500)
A server error has occurred.

at com.google.appengine.tools.admin.ServerConnection.send
(ServerConnection.java:143)
at com.google.appengine.tools.admin.ServerConnection.post
(ServerConnection.java:95)
at com.google.appengine.tools.admin.AppVersionUpload.send
(AppVersionUpload.java:420)
at com.google.appengine.tools.admin.AppVersionUpload.uploadFile
(AppVersionUpload.java:323)
at com.google.appengine.tools.admin.AppVersionUpload.doUpload
(AppVersionUpload.java:105)
at com.google.appengine.tools.admin.AppAdminImpl.update
(AppAdminImpl.java:53)
at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy
(AppEngineBridgeImpl.java:271)
at
com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace
(DeployProjectJob.java:148)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run
(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

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



[appengine-java] Re: Is there limitation of size of webapp uploaded to GAE?

2009-09-03 Thread barak

If I understood correctly - static files are the files that kept under
the war directory. What are the resources files?

On Sep 2, 7:19 pm, "Jason (Google)"  wrote:
> Static files can be up to 10 MB each. There is no limit on the total storage
> size for static files. There is, however for resource files -- the combined
> size of all resource files can't exceed 150 MB.
> - Jason
>
>
>
> On Mon, Aug 31, 2009 at 12:21 AM, barak  wrote:
>
> > I was wondering - does GAE has some limitation regarding the size of
> > an applicatian uploaded to GAE? I know there is limitation regarding
> > single size upload, but can my application for example holds hundreds
> > of files (source, static, what ever)?
>
> > Thanks.- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: GAE Eclipse plugin - "Uploading 0 files."

2009-09-01 Thread barak

No, the files were uploaded, I just wondering regarding the wording...

On Sep 1, 5:50 pm, Jason Parekh  wrote:
> Hm, and when you hit your web app on app engine, it was still the old
> version?
> jason
>
>
>
> On Tue, Sep 1, 2009 at 3:02 AM, barak  wrote:
>
> > Not sure what each line in the output states, but after changing some
> > files, the "Cloning N static files.
> > " was increased by one, the file indeed uploaded, but still I saw
> > "Uploading 0 files."
>
> > On Aug 31, 6:21 pm, Jason Parekh  wrote:
> > > Hi Barak,
> > > Could you verify the file has not been uploaded already?  I'm pretty sure
> > > the uploader only uploads modified files.
>
> > > I tried this in a new project "SimpleProject" with a file
> > > /war/test/test.html.  The first deploy uploaded 22 files.  The second
> > deploy
> > > uploaded 0 files.  I hit the appspot URL, and my file was indeed uploaded
> > > during the first deploy.
>
> > > jason- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: Quota Details show calls made to Memcahe and Datastore, even though I'm not using that

2009-09-01 Thread barak

10x for that! :-) Indeed after removed the annotations I could still
see the calls; after disabling the session use - the calls
disappear :-)

Is this documented somewhere?


On Sep 1, 5:02 pm, Don Schwarz  wrote:
> Do you have HTTP sessions enabled?  HTTP Sessions are stored in the
> datastore behind the scenes, and cached in memcache.
>
>
>
> On Tue, Sep 1, 2009 at 8:12 AM, barak  wrote:
>
> > Hello,
>
> > I've deployed an application into GAE (that uses compass). After few
> > invocations, I've checked the Quota Details screen. It show that calls
> > made to Datastore and Memcache, but I'm pretty sure that MY
> > application doesn't use these services :-)
>
> > Can someone explains please why these calls are made and in which use
> > cases?
>
> > Thanks!- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: Quota Details show calls made to Memcahe and Datastore, even though I'm not using that

2009-09-01 Thread barak

Ok, its my bad - I've forgotten some jdo annototaions in some old
beans I'm not using anymore... Will be removed.

On Sep 1, 4:12 pm, barak  wrote:
> Hello,
>
> I've deployed an application into GAE (that uses compass). After few
> invocations, I've checked the Quota Details screen. It show that calls
> made to Datastore and Memcache, but I'm pretty sure that MY
> application doesn't use these services :-)
>
> Can someone explains please why these calls are made and in which use
> cases?
>
> Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Quota Details show calls made to Memcahe and Datastore, even though I'm not using that

2009-09-01 Thread barak

Hello,

I've deployed an application into GAE (that uses compass). After few
invocations, I've checked the Quota Details screen. It show that calls
made to Datastore and Memcache, but I'm pretty sure that MY
application doesn't use these services :-)

Can someone explains please why these calls are made and in which use
cases?

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



[appengine-java] Re: Exception on creation of java.io.File in GAE

2009-09-01 Thread barak

10x :-)

On Aug 31, 6:57 pm, Toby Reyelts  wrote:
> It looks like compass is reading the System property, java.io.tmpdir and
> eventually it gets passed into a File constructor call. App Engine doesn't
> have a temp directory (we don't allow the writing of any files to disk), so
> this system property is set to null. If you need to set this system property
> for compass, you can configure it in your appengine-web.xml. For example,
>
> 
>   
> 
>
>
>
> On Mon, Aug 31, 2009 at 4:05 AM, barak  wrote:
>
> > Hello all,
>
> > I'm trying to upload an application that using Lucene and compass. The
> > Lucene files are stored under the war directory and should be open to
> > read access only. When booting the application, the files are opened
> > by the lucene (wrapped with compass). All works ok in the developmemt
> > server, when deployed in GAE, the following exception raised:
>
> > java.lang.NullPointerException
> >        at java.io.File.(File.java:276)
> >        at
> > org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:
> > 139)
> >        at org.compass.core.lucene.engine.store.FSDirectoryStore.configure
> > (FSDirectoryStore.java:55)
> >        at
> > org.compass.core.lucene.engine.store.DefaultLuceneSearchEngineStore.
> > (DefaultLuceneSearchEngineStore.java:144)
> >        at org.compass.core.lucene.engine.LuceneSearchEngineFactory.
> > (LuceneSearchEngineFactory.java:122)
> >        at org.compass.core.impl.DefaultCompass.(DefaultCompass.java:
> > 123)
> >        at org.compass.core.impl.DefaultCompass.(DefaultCompass.java:
> > 116)
> >        at org.compass.core.config.CompassConfiguration.buildCompass
> > (CompassConfiguration.java:288)
> >        at com.me.store.DataAccessObject.(DataAccessObject.java:76)
> >        at com.me.store.DataAccessObject.getInstance(DataAccessObject.java:
> > 53)
> >        at com.me.jsf.LargeDataModelBeanSample$Model.fetchPage
> > (LargeDataModelBeanSample.java:192)
> >        at com.me.jsf.PagedListDataModel.fetchPageInternal
> > (PagedListDataModel.java:178)
> >        at
> > com.me.jsf.PagedListDataModel.getPage(PagedListDataModel.java:107)
> >        at com.me.jsf.PagedListDataModel.isRowAvailable
> > (PagedListDataModel.java:201)
> >        at
> > org.apache.myfaces.component.html.ext.HtmlDataTableHack.isRowAvailable
> > (HtmlDataTableHack.java:88)
> >        at
> > org.apache.myfaces.component.html.ext.HtmlDataTableHack.setRowIndex
> > (HtmlDataTableHack.java:297)
> >        at
> > org.apache.myfaces.component.html.ext.AbstractHtmlDataTable.setRowIndex
> > (AbstractHtmlDataTable.java:276)
> >        at javax.faces.component.UIData.processColumnChildren(UIData.java:
> > 725)
> >        at javax.faces.component.UIData.processDecodes(UIData.java:613)
> >        at
> > org.apache.myfaces.component.html.ext.AbstractHtmlDataTable.processDecodes
> > (AbstractHtmlDataTable.java:306)
> >        at javax.faces.component.UIForm.processDecodes(UIForm.java:61)
> >        at javax.faces.component.UIComponentBase.processDecodes
> > (UIComponentBase.java:844)
> >        at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:
> > 158)
> >        at org.apache.myfaces.lifecycle.ApplyRequestValuesExecutor.execute
> > (ApplyRequestValuesExecutor.java:32)
> >        at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase
> > (LifecycleImpl.java:105)
> >        at org.apache.myfaces.lifecycle.LifecycleImpl.execute
> > (LifecycleImpl.java:80)
> >        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:143)
> >        at
> > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> > 487)
> >        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> > (ServletHandler.java:1093)
> >        at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter
> > (SaveSessionFilter.java:35)
> >        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> > (ServletHandler.java:1084)
> >        at
> > com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
> > (TransactionCleanupFilter.java:43)
> >        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> > (ServletHandler.java:1084)
> >        at org.mortbay.jetty.servlet.ServletHandler.handle
> > (ServletHandler.java:360)
> >        at org.mortbay.jetty.security.SecurityHandler.handle
> > (SecurityHandler.java:216)
> >        at org.mortbay.jetty.servlet.SessionHandler.handle
> > (Sess

[appengine-java] Re: GAE Eclipse plugin - "Uploading 0 files."

2009-09-01 Thread barak

Not sure what each line in the output states, but after changing some
files, the "Cloning N static files.
" was increased by one, the file indeed uploaded, but still I saw
"Uploading 0 files."

On Aug 31, 6:21 pm, Jason Parekh  wrote:
> Hi Barak,
> Could you verify the file has not been uploaded already?  I'm pretty sure
> the uploader only uploads modified files.
>
> I tried this in a new project "SimpleProject" with a file
> /war/test/test.html.  The first deploy uploaded 22 files.  The second deploy
> uploaded 0 files.  I hit the appspot URL, and my file was indeed uploaded
> during the first deploy.
>
> jason
>

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



[appengine-java] Exception on creation of java.io.File in GAE

2009-08-31 Thread barak

Hello all,

I'm trying to upload an application that using Lucene and compass. The
Lucene files are stored under the war directory and should be open to
read access only. When booting the application, the files are opened
by the lucene (wrapped with compass). All works ok in the developmemt
server, when deployed in GAE, the following exception raised:

java.lang.NullPointerException
at java.io.File.(File.java:276)
at org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:
139)
at org.compass.core.lucene.engine.store.FSDirectoryStore.configure
(FSDirectoryStore.java:55)
at
org.compass.core.lucene.engine.store.DefaultLuceneSearchEngineStore.
(DefaultLuceneSearchEngineStore.java:144)
at org.compass.core.lucene.engine.LuceneSearchEngineFactory.
(LuceneSearchEngineFactory.java:122)
at org.compass.core.impl.DefaultCompass.(DefaultCompass.java:
123)
at org.compass.core.impl.DefaultCompass.(DefaultCompass.java:
116)
at org.compass.core.config.CompassConfiguration.buildCompass
(CompassConfiguration.java:288)
at com.me.store.DataAccessObject.(DataAccessObject.java:76)
at com.me.store.DataAccessObject.getInstance(DataAccessObject.java:
53)
at com.me.jsf.LargeDataModelBeanSample$Model.fetchPage
(LargeDataModelBeanSample.java:192)
at com.me.jsf.PagedListDataModel.fetchPageInternal
(PagedListDataModel.java:178)
at com.me.jsf.PagedListDataModel.getPage(PagedListDataModel.java:107)
at com.me.jsf.PagedListDataModel.isRowAvailable
(PagedListDataModel.java:201)
at
org.apache.myfaces.component.html.ext.HtmlDataTableHack.isRowAvailable
(HtmlDataTableHack.java:88)
at org.apache.myfaces.component.html.ext.HtmlDataTableHack.setRowIndex
(HtmlDataTableHack.java:297)
at
org.apache.myfaces.component.html.ext.AbstractHtmlDataTable.setRowIndex
(AbstractHtmlDataTable.java:276)
at javax.faces.component.UIData.processColumnChildren(UIData.java:
725)
at javax.faces.component.UIData.processDecodes(UIData.java:613)
at
org.apache.myfaces.component.html.ext.AbstractHtmlDataTable.processDecodes
(AbstractHtmlDataTable.java:306)
at javax.faces.component.UIForm.processDecodes(UIForm.java:61)
at javax.faces.component.UIComponentBase.processDecodes
(UIComponentBase.java:844)
at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:
158)
at org.apache.myfaces.lifecycle.ApplyRequestValuesExecutor.execute
(ApplyRequestValuesExecutor.java:32)
at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase
(LifecycleImpl.java:105)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute
(LifecycleImpl.java:80)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:143)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1093)
at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter
(SaveSessionFilter.java:35)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
(TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle
(AppVersionHandlerMap.java:237)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:313)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
506)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete
(HttpConnection.java:830)
at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable
(RpcRequestParser.java:76)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest
(JettyServletEngineAdapter.java:139)
at com.google.apphosting.runtime.JavaRuntime.handleRequest
(JavaRuntime.java:235)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:4823)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:4821)
at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest
(BlockingApplicationHandler.java:24)

[appengine-java] Is there limitation of size of webapp uploaded to GAE?

2009-08-31 Thread barak

I was wondering - does GAE has some limitation regarding the size of
an applicatian uploaded to GAE? I know there is limitation regarding
single size upload, but can my application for example holds hundreds
of files (source, static, what ever)?

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



[appengine-java] GAE Eclipse plugin - "Uploading 0 files."

2009-08-30 Thread barak

Hello,

I'm trying to upload static files as part of my webapp, placed under
war/myfolder/. I've copied some files to there, then tried to upload
them to GAE, but nothing of these files uploaded. This is the pluging
output:

Creating staging directory
Scanning for jsp files.
Compiling jsp files.
Compiling java files.
Scanning files on local disk.
Initiating update.
Cloning 52 static files.
Cloning 144 application files.
Cloned 100 files.
Uploading 0 files.
Deploying new version.
Will check again in 1 seconds
Will check again in 2 seconds
Closing update: new version is ready to start serving.
Uploading index definitions.
Deployment completed successfully.

What should I do in order to upload these files?

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



[appengine-java] Re: Errors while uploading the application

2009-08-30 Thread barak

Can you share how do you upload the files? Can you share the appengine-
web.xml file?

I had that kind problem in the past, and it resulted due to bad config
in appengine-web.xml.

On Aug 30, 3:38 pm, Mita Sakhalkar  wrote:
> Hi
>
> I have issues updating the application. I have read about the account
> activation, all that i want to know is , till now i was able to update
> the application and i have updated 9 times, it has worked fine, but
> today when tried updating  it threw an error saying
>
> java.io.IOException: Error posting to 
> URL:http://appengine.google.com/api/appversion/create?app_id
>
> I don't know how to proceed from here , please help.
>
> Thanks in advance
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---