[appengine-java] unablr to add entities to datastore

2011-10-20 Thread fachhoch
I am trying to add some entity to my datastore though a servlet , it
fails every time complaining  this.


Caused by: java.lang.RuntimeException:
com.google.appengine.api.datastore.DatastoreNeedIndexException: no
matching index found.
The suggested index for this query is:
datastore-index kind=ChunkFile ancestor=true source=manual
property name=index direction=asc/
/datastore-index


at com.gae.yotube.FileUploadPage
$FileUploadForm.onSubmit(FileUploadPage.java:75)
at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:
1565)
at org.apache.wicket.markup.html.form.Form.process(Form.java:958)
at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:
920)
... 34 more
Caused by:
com.google.appengine.api.datastore.DatastoreNeedIndexException: no
matching index found.
The suggested index for this query is:
datastore-index kind=ChunkFile ancestor=true source=manual
property name=index direction=asc/
/datastore-index


at
com.google.appengine.api.datastore.DatastoreApiHelper.translateError(DatastoreApiHelper.java:
42)
at com.google.appengine.api.datastore.DatastoreApiHelper
$1.convertException(DatastoreApiHelper.java:98)
at
com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:
82)
at
com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:
74)
at
com.google.appengine.api.datastore.FutureHelper.getInternal(FutureHelper.java:
72)
at
com.google.appengine.api.datastore.FutureHelper.quietGet(FutureHelper.java:
33)
continued in next message
E 2011-10-20 09:00:42.592
continued from previous message
at
com.google.appengine.api.datastore.QueryResultsSourceImpl.loadMoreEntities(QueryResultsSourceImpl.java:
84)
at
com.google.appengine.api.datastore.QueryResultsSourceImpl.loadMoreEntities(QueryResultsSourceImpl.java:
71)
at
com.google.appengine.api.datastore.QueryResultIteratorImpl.ensureLoaded(QueryResultIteratorImpl.java:
156)
at
com.google.appengine.api.datastore.QueryResultIteratorImpl.hasNext(QueryResultIteratorImpl.java:
65)
at com.gae.yotube.DatastoreInputStream.read(DatastoreInputStream.java:
51)
at java.io.InputStream.read(InputStream.java:171)
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:282)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:324)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:176)
at java.io.InputStreamReader.read(InputStreamReader.java:184)
at java.io.BufferedReader.fill(BufferedReader.java:153)
at java.io.BufferedReader.readLine(BufferedReader.java:316)
at java.io.BufferedReader.readLine(BufferedReader.java:379)
at org.apache.commons.io.IOUtils.readLines(IOUtils.java:647)
at org.apache.commons.io.IOUtils.readLines(IOUtils.java:602)
at com.gae.yotube.FileUploadPage
$FileUploadForm.onSubmit(FileUploadPage.java:59)
... 37 more

-- 
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: unablr to add entities to datastore

2011-10-20 Thread fachhoch
when I run locally no errors it works when deployed to gae I get the
error ,
I also tried adding

 datastore-index kind=ChunkFile ancestor=true source=manual
property name=index direction=asc/
/datastore-index

to my datastore-indexes-auto.xml
still get the same error

please advice me.

On Oct 20, 9:04 am, fachhoch fachh...@gmail.com wrote:
 I am trying to add some entity to my datastore though a servlet , it
 fails every time complaining  this.

 Caused by: java.lang.RuntimeException:
 com.google.appengine.api.datastore.DatastoreNeedIndexException: no
 matching index found.
 The suggested index for this query is:
     datastore-index kind=ChunkFile ancestor=true source=manual
         property name=index direction=asc/
     /datastore-index

         at com.gae.yotube.FileUploadPage
 $FileUploadForm.onSubmit(FileUploadPage.java:75)
         at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:
 1565)
         at org.apache.wicket.markup.html.form.Form.process(Form.java:958)
         at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:
 920)
         ... 34 more
 Caused by:
 com.google.appengine.api.datastore.DatastoreNeedIndexException: no
 matching index found.
 The suggested index for this query is:
     datastore-index kind=ChunkFile ancestor=true source=manual
         property name=index direction=asc/
     /datastore-index

         at
 com.google.appengine.api.datastore.DatastoreApiHelper.translateError(Datast 
 oreApiHelper.java:
 42)
         at com.google.appengine.api.datastore.DatastoreApiHelper
 $1.convertException(DatastoreApiHelper.java:98)
         at
 com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:
 82)
         at
 com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:
 74)
         at
 com.google.appengine.api.datastore.FutureHelper.getInternal(FutureHelper.ja 
 va:
 72)
         at
 com.google.appengine.api.datastore.FutureHelper.quietGet(FutureHelper.java:
 33)
 continued in next message
 E 2011-10-20 09:00:42.592
 continued from previous message
 at
 com.google.appengine.api.datastore.QueryResultsSourceImpl.loadMoreEntities( 
 QueryResultsSourceImpl.java:
 84)
         at
 com.google.appengine.api.datastore.QueryResultsSourceImpl.loadMoreEntities( 
 QueryResultsSourceImpl.java:
 71)
         at
 com.google.appengine.api.datastore.QueryResultIteratorImpl.ensureLoaded(Que 
 ryResultIteratorImpl.java:
 156)
         at
 com.google.appengine.api.datastore.QueryResultIteratorImpl.hasNext(QueryRes 
 ultIteratorImpl.java:
 65)
         at com.gae.yotube.DatastoreInputStream.read(DatastoreInputStream.java:
 51)
         at java.io.InputStream.read(InputStream.java:171)
         at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:282)
         at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:324)
         at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:176)
         at java.io.InputStreamReader.read(InputStreamReader.java:184)
         at java.io.BufferedReader.fill(BufferedReader.java:153)
         at java.io.BufferedReader.readLine(BufferedReader.java:316)
         at java.io.BufferedReader.readLine(BufferedReader.java:379)
         at org.apache.commons.io.IOUtils.readLines(IOUtils.java:647)
         at org.apache.commons.io.IOUtils.readLines(IOUtils.java:602)
         at com.gae.yotube.FileUploadPage
 $FileUploadForm.onSubmit(FileUploadPage.java:59)
         ... 37 more

-- 
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] xstream fromXml

2011-10-19 Thread fachhoch
I am using  the patched  xstream jar file   from
http://cloudcms.sheelapps.com/vfs/download/xstream-gae.jar  ..
when my code calls   xstream.fromXML(xml)  I am getthing this error.

Caused by: java.lang.NoClassDefFoundError:
sun.reflect.ReflectionFactory is a restricted class. Please see the
Google  App Engine developer's guide for more details.
at
com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java:
51)
at
com.thoughtworks.xstream.converters.reflection.Sun14ReflectionProvider.getLazyRefectionFactory(Sun14ReflectionProvider.java:
105)
at
com.thoughtworks.xstream.converters.reflection.Sun14ReflectionProvider.getMungedConstructor(Sun14ReflectionProvider.java:
97)
at
com.thoughtworks.xstream.converters.reflection.Sun14ReflectionProvider.newInstance(Sun14ReflectionProvider.java:
76)
at
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.instantiateNewInstance(AbstractReflectionConverter.java:
318)
at
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:
167)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:
71)
at
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:
63)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:
65)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:
49)
at
com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:
71)
at
com.thoughtworks.xstream.converters.collections.CollectionConverter.populateCollection(CollectionConverter.java:
68)
at
com.thoughtworks.xstream.converters.collections.CollectionConverter.unmarshal(CollectionConverter.java:
61)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:
71)
at
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:
63)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:
65)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:
49)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:
126)
at
com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:
32)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:939)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:924)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:858)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:849)


-- 
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: xstream fromXml

2011-10-19 Thread fachhoch
I was using an old jar I replaced the latest from   jira  tkt  it
works fine.


On Oct 19, 4:49 pm, fachhoch fachh...@gmail.com wrote:
 I am using  the patched  xstream jar file   
 fromhttp://cloudcms.sheelapps.com/vfs/download/xstream-gae.jar ..
 when my code calls   xstream.fromXML(xml)  I am getthing this error.

 Caused by: java.lang.NoClassDefFoundError:
 sun.reflect.ReflectionFactory is a restricted class. Please see the
 Google  App Engine developer's guide for more details.
         at
 com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime 
 .java:
 51)
         at
 com.thoughtworks.xstream.converters.reflection.Sun14ReflectionProvider.getL 
 azyRefectionFactory(Sun14ReflectionProvider.java:
 105)
         at
 com.thoughtworks.xstream.converters.reflection.Sun14ReflectionProvider.getM 
 ungedConstructor(Sun14ReflectionProvider.java:
 97)
         at
 com.thoughtworks.xstream.converters.reflection.Sun14ReflectionProvider.newI 
 nstance(Sun14ReflectionProvider.java:
 76)
         at
 com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter. 
 instantiateNewInstance(AbstractReflectionConverter.java:
 318)
         at
 com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter. 
 unmarshal(AbstractReflectionConverter.java:
 167)
         at
 com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.jav a:
 71)
         at
 com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(Abstrac 
 tReferenceUnmarshaller.java:
 63)
         at
 com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshal 
 ler.java:
 65)
         at
 com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshal 
 ler.java:
 49)
         at
 com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter 
 .readItem(AbstractCollectionConverter.java:
 71)
         at
 com.thoughtworks.xstream.converters.collections.CollectionConverter.populat 
 eCollection(CollectionConverter.java:
 68)
         at
 com.thoughtworks.xstream.converters.collections.CollectionConverter.unmarsh 
 al(CollectionConverter.java:
 61)
         at
 com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.jav a:
 71)
         at
 com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(Abstrac 
 tReferenceUnmarshaller.java:
 63)
         at
 com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshal 
 ler.java:
 65)
         at
 com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshal 
 ler.java:
 49)
         at
 com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:
 126)
         at
 com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(Abs 
 tractTreeMarshallingStrategy.java:
 32)
         at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:939)
         at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:924)
         at com.thoughtworks.xstream.XStream.fromXML(XStream.java:858)
         at com.thoughtworks.xstream.XStream.fromXML(XStream.java:849)

-- 
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] list my site in gogle search

2011-09-23 Thread fachhoch
I am hosting my application in gae, can my application be listed in
Google search?

-- 
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] disable warmup-requests-enabled

2011-09-14 Thread fachhoch
I   want   my application to startup only once ie my servlet-listner
to be called once  , so I added warmup-requests-enabled  and set it to
false. in my appengine-web.xml
here is my  file

?xml version=1.0 encoding=utf-8?
appengine-web-app xmlns=http://appengine.google.com/ns/1.0;
applicationsrini-links/application
version1/version

!-- Configure java.util.logging --
system-properties
property name=java.util.logging.config.file value=WEB-INF/
logging.properties/
/system-properties
 warmup-requests-enabledfalse/warmup-requests-enabled
!-- threadsafetrue/threadsafe --
/appengine-web-app

after an hour I tried accessing my application it was taking time when
I saw  the logs servlet- listener was called again , how can I disable
warmuprequests ?
is it possible   without payment ?

-- 
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] HardDeadlineExceededError because servlet-listnrer getting called frequently

2011-09-14 Thread fachhoch
I am getting this error frequently


2011-09-14 02:03:01.663
Uncaught exception from servlet
com.google.apphosting.runtime.HardDeadlineExceededError: This request
(c6a11540db48037e) started at 2011/09/14 06:02:01.345 UTC and was
still executing at 2011/09/14 06:03:01.640 UTC.


the problem is gae is calling my servlet-listnerfor every request
and my servlet-listner does some  heavy job , please advice me what
other option I have  to call this  code ?  some   other place so that
its  loaded only once and does not make gae complain
HardDeadlineExceededError ?

-- 
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] corn job does not show in admin console and not getting fired

2011-09-14 Thread fachhoch
I  added a corn job to my applciation , I folwed these  tutorials

http://www.rominirani.com/2009/11/16/episode-9-using-the-cron-service-to-run-scheduled-tasks/,
http://code.google.com/appengine/docs/java/config/cron.html

in brief

I  added a new servlet to web.xml and crated a corn.xml inside web-
inf ,

my corn.xml

?xml version=1.0 encoding=UTF-8?
cronentries
cron
url/cron/gaejcronjob/url
descriptionGAEJExperiments Cron Job that simply announces 
that it
got invoked./description
scheduleevery 2 minutes/schedule
/cron
/cronentries

my web.xml

?xml version=1.0 encoding=utf-8?
web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns=http://java.sun.com/xml/ns/javaee;
xmlns:web=http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;
xsi:schemaLocation=http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; version=2.5

!--listener --
!--listener-classcom.saibaba.links.MyListner/listener-class --

!--/listener --

servlet
servlet-nameLinks/servlet-name
servlet-classcom.saibaba.links.LinksServlet/servlet-class
/servlet
servlet-mapping
servlet-nameLinks/servlet-name
url-pattern/links/url-pattern
/servlet-mapping
welcome-file-list
welcome-fileindex.html/welcome-file
/welcome-file-list

servlet
servlet-nameGAEJCronServlet/servlet-name
servlet-classcom.saibaba.links.GAEJCronServlet/servlet-class
/servlet

servlet-mapping
servlet-nameGAEJCronServlet/servlet-name
url-pattern/cron/gaejcronjob/url-pattern
/servlet-mapping

/web-app
 I log  into admin console click on my application-- corn Jobs,
nothing shows up ,  what am I missing why my corn  job is not show in
admin console and not getting fired , pelase advice me

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-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: disable warmup-requests-enabled

2011-09-14 Thread fachhoch
Please tell me how to disable   warmup-requests  ?

I am assuming   if I set  warmup-requests-enabledfalse/warmup-
requests-enabledin appengine-web.xml

then gae will not reload my application unless I redeploy   is this
right ?
 If I am assumind wrong please correct me.




On Sep 14, 2:08 am, fachhoch fachh...@gmail.com wrote:
 I   want   my application to startup only once ie my servlet-listner
 to be called once  , so I added warmup-requests-enabled  and set it to
 false. in my appengine-web.xml
 here is my  file

 ?xml version=1.0 encoding=utf-8?
 appengine-web-app xmlns=http://appengine.google.com/ns/1.0;
         applicationsrini-links/application
         version1/version

         !-- Configure java.util.logging --
         system-properties
                 property name=java.util.logging.config.file value=WEB-INF/
 logging.properties/
         /system-properties
          warmup-requests-enabledfalse/warmup-requests-enabled
 !--          threadsafetrue/threadsafe --
 /appengine-web-app

 after an hour I tried accessing my application it was taking time when
 I saw  the logs servlet- listener was called again , how can I disable
 warmuprequests ?
 is it possible   without payment ?

-- 
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: disable warmup-requests-enabled

2011-09-14 Thread fachhoch
Thanks for the reply , please tell me where is the option always On ?

On Sep 14, 11:09 am, Simon Knott knott.si...@gmail.com wrote:
 Hi,

 I think you've misunderstood warm-up requests.  GAE will spin-up and
 tear-down your application very often, especially if you have very little
 traffic going through.  The warm-up requests are simply a mechanism for
 carrying out some initialisation, so that if a new instance is required to
 handle some additional load the main loading request is smaller in
 duration.  By disabling warm-up requests, you are simply telling GAE that
 you don't support this initialisation optimisation.

 At the moment, there is an Always On option which allows you to always
 have three instances available.  However, this will be disappearing with the
 new pricing structure at the end of the month.

 Cheers,
 Simon

-- 
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] reading a binary file using new URL(link).openStream() results java.net.SocketTimeoutException

2011-09-14 Thread fachhoch
I am getting
 java.net.SocketTimeoutException: Timeout while
fetching:  .myurl
at
com.google.appengine.api.urlfetch.URLFetchServiceImpl.fetch(URLFetchServiceImpl.java:
51)
at
com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler
$Connection.fetchResponse(URLFetchServiceStreamHandler.java:418)
at
com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler
$Connection.getInputStream(URLFetchServiceStreamHandler.java:297)
at java.net.URL.openStream(URL.java:1009)

I am trying to read a binary file

InputStream input = new URL(link).openStream();


please advice me how to  resolve this.

-- 
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: disable warmup-requests-enabled

2011-09-14 Thread fachhoch
I cannot enable billing is there anyother way I can keep my
application alive so that gae does not tear-down  my application.

On Sep 14, 1:11 pm, Gerald Tan woefulwab...@gmail.com wrote:
 It's only available if you enable billing

-- 
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: reading a binary file using new URL(link).openStream() results java.net.SocketTimeoutException

2011-09-14 Thread fachhoch
IN other I getting   java.net.SocketTimeoutException: Timeout while
fetching:

here my code to read the binary file


 java.io.InputStream input = new java.net.URL(url).openStream();


please advice me am I missing anything here ? is there any specific
setting for gae to read  big files using java.net.URL ?



On Sep 14, 1:24 pm, fachhoch fachh...@gmail.com wrote:
 I am getting
  java.net.SocketTimeoutException: Timeout while
 fetching:  .myurl
         at
 com.google.appengine.api.urlfetch.URLFetchServiceImpl.fetch(URLFetchService 
 Impl.java:
 51)
         at
 com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler
 $Connection.fetchResponse(URLFetchServiceStreamHandler.java:418)
         at
 com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler
 $Connection.getInputStream(URLFetchServiceStreamHandler.java:297)
         at java.net.URL.openStream(URL.java:1009)

 I am trying to read a binary file

 InputStream input = new URL(link).openStream();

 please advice me how to  resolve this.

-- 
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] invalid attachment type

2011-09-14 Thread fachhoch
I am getting invalid attachment type error

this is the exception

javax.mail.SendFailedException: Send failure
(javax.mail.MessagingException: Illegal Arguments
(java.lang.IllegalArgumentException: Invalid Attachment Type: Invalid
attachment type))
at javax.mail.Transport.send(Transport.java:163)
at javax.mail.Transport.send(Transport.java:48)


I am attaching .mp3 files to the mail.
please tell me what  this error means and how to resolve this.

-- 
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] using groovy scripts to change behaviour at runtime

2011-03-23 Thread fachhoch
I have a simple java war file.My application  uses spring and groovy,
spring  loads groovy beans using   spring  lang


lang:groovy id=myGroovybean script-source=. /

using groovy I can change the behaviour at runtime just by changing
the script.When deployed to a tomcat I place the groovy script files
somewhere in server so that I can change them withoutredeploying
or restarting server and groovy picks up the modified script .

I want to have a similar behaviour when deployed to gae , as I
understand there is no other directory on gae which I can use to store
my scripts , if I am wrong is there any directory I can use ?





-- 
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] running example app get error java.lang.IllegalArgumentException: appId not set

2011-01-10 Thread fachhoch
I am trying to run the example app for wicket jdo gae  from
http://stronglytypedblog.blogspot.com/2009/07/wicket-spring-jdo-on-google-app-engine.html
 , I got this error,
here the stack trace
[code]
14:19:08,612 ERROR [org.apache.wicket.RequestCycle] - Illegal argument
javax.jdo.JDOFatalUserException: Illegal argument
at
org.datanucleus.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:
396)
at
org.datanucleus.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java:
673)
at
org.datanucleus.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java:
693)
at
com.kenai.wicketgae.persistence.PersonDao.makePersistent(PersonDao.java:
48)
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.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:
100)
at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:
310)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:
182)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:
149)
at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:
106)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:
171)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:
204)
at $Proxy7.makePersistent(Unknown Source)
at
com.kenai.wicketgae.service.PersonService.makePersistent(PersonService.java:
35)
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.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:
100)
at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:
310)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:
182)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:
149)
at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:
106)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:
171)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:
204)
at $Proxy8.makePersistent(Unknown Source)
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.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:
100)
at org.apache.wicket.proxy.LazyInitProxyFactory
$JdkHandler.invoke(LazyInitProxyFactory.java:416)
at org.apache.wicket.proxy.$Proxy11.makePersistent(Unknown Source)
at
com.kenai.wicketgae.web.panels.person.edit.NewPersonPanel.saveNewPerson(NewPersonPanel.java:
87)
at com.kenai.wicketgae.web.panels.person.edit.NewPersonPanel.access
$0(NewPersonPanel.java:85)
at com.kenai.wicketgae.web.panels.person.edit.NewPersonPanel
$1.onSubmit(NewPersonPanel.java:78)
at org.apache.wicket.ajax.markup.html.form.AjaxButton
$1.onSubmit(AjaxButton.java:102)
at
org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:
144)
at
org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:
177)
at
org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:
299)
at
org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:
113)
at
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:
92)
at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:
1241)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1320)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1419)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
  

[appengine-java] running locally with eclipse gae plugin , where to set app id ?

2011-01-10 Thread fachhoch
I am new bee trying   my first gae app . I created a simple app , I
was able to deploy this to cloud ,   but when I run locally using
eclipse gae  plugin   I get the error appId not set  .
I added appId in appengine-web.xml still its complaing , please tell
me what am I missing , where to set the appId when running locally ?




code
Caused by: java.lang.IllegalArgumentException: appId not set
at
com.google.appengine.repackaged.com.google.common.base.Preconditions.checkArgument(Preconditions.java:
90)
at
com.google.appengine.api.datastore.dev.LocalDatastoreService.getOrCreateProfile(LocalDatastoreService.java:
1138)
at
com.google.appengine.api.datastore.dev.LocalDatastoreService.beginTransaction(LocalDatastoreService.java:
897)
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.google.appengine.tools.development.ApiProxyLocalImpl
$AsyncApiCall.callInternal(ApiProxyLocalImpl.java:387)
at com.google.appengine.tools.development.ApiProxyLocalImpl
$AsyncApiCall.call(ApiProxyLocalImpl.java:353)
at com.google.appengine.tools.development.ApiProxyLocalImpl
$AsyncApiCall.call(ApiProxyLocalImpl.java:332)
at java.util.concurrent.Executors$PrivilegedCallable
$1.run(Executors.java:463)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.concurrent.Executors
$PrivilegedCallable.call(Executors.java:460)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
/code



-- 
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: running locally with eclipse gae plugin , where to set app id ?

2011-01-10 Thread fachhoch
resolved it it was happening becasue of differnt version  of  gae
sdk  , my eclipse was using 1.4 and my maven had 1.3, I updated my pom
to 1.4 and the issue gone.

On Jan 10, 8:02 pm, fachhoch fachh...@gmail.com wrote:
 I am new bee trying   my first gae app . I created a simple app , I
 was able to deploy this to cloud ,   but when I run locally using
 eclipse gae  plugin   I get the error appId not set  .
 I added appId in appengine-web.xml still its complaing , please tell
 me what am I missing , where to set the appId when running locally ?

 code
 Caused by: java.lang.IllegalArgumentException: appId not set
         at
 com.google.appengine.repackaged.com.google.common.base.Preconditions.checkA 
 rgument(Preconditions.java:
 90)
         at
 com.google.appengine.api.datastore.dev.LocalDatastoreService.getOrCreatePro 
 file(LocalDatastoreService.java:
 1138)
         at
 com.google.appengine.api.datastore.dev.LocalDatastoreService.beginTransacti 
 on(LocalDatastoreService.java:
 897)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
 39)
         at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
 l.java:
 25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.google.appengine.tools.development.ApiProxyLocalImpl
 $AsyncApiCall.callInternal(ApiProxyLocalImpl.java:387)
         at com.google.appengine.tools.development.ApiProxyLocalImpl
 $AsyncApiCall.call(ApiProxyLocalImpl.java:353)
         at com.google.appengine.tools.development.ApiProxyLocalImpl
 $AsyncApiCall.call(ApiProxyLocalImpl.java:332)
         at java.util.concurrent.Executors$PrivilegedCallable
 $1.run(Executors.java:463)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.util.concurrent.Executors
 $PrivilegedCallable.call(Executors.java:460)
         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
         at java.util.concurrent.ThreadPoolExecutor
 $Worker.runTask(ThreadPoolExecutor.java:886)
         at java.util.concurrent.ThreadPoolExecutor
 $Worker.run(ThreadPoolExecutor.java:908)
         at java.lang.Thread.run(Thread.java:662)
 /code

-- 
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] retain datastore

2011-01-10 Thread fachhoch
I am running my app locally , the  local app engine   creates
datastore in WEB-INF\appengine-generated\local_db.bin  which will be
deleted once I   rebuild project ,   how to retain the datastore , can
I tell gae to create datastore in my c:drive   ?

-- 
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: wicket ajax on gae

2011-01-09 Thread fachhoch
did any wicket appliation  deployed to gae had a similar problem , if
not wicket gurus please help me this error happens only when deployed
to gae and not to jetty or any other server, help is appreciated.


On Jan 8, 2:34 pm, fachhoch fachh...@gmail.com wrote:
 I saw some tutorials about deploying wicket app to gae , they did not
 mention  any problem with  resource loading , I think I am the only
 one having problems deploying wicket app , is there any article which
 tells more about resource handling   with wicket in gae ?

 On Jan 8, 10:22 am, Didier Durand durand.did...@gmail.com wrote:







  Hi,

  The issue is that when you upload on GAE (i.e copy the files in the
  cloud), all what it sees is the file that you 've copied to the
  appropriate subdir of the /war in your eclipse project: if you don't
  copy them to /war/x/y/z, it just won't work because needed classes
  won't be present.

  regards
  didier

  On Jan 8, 3:07 pm, fachhoch fachh...@gmail.com wrote:

   this same application if I deploy to jetty it works, finding all these
   resources are not problem  when deployed to tomcat , weblogic, jetty
   any other server .its wicket way of handling the resources , all these
   resources are in the wicket jar files,I am assuming there would be
   some means to tell app engine how to load  wicket resources is there
   any setting for app engine  ?

   On Jan 8, 1:07 am, Didier Durand durand.did...@gmail.com wrote:

Hi,

After analyzing your error messages, I think that you need to create
a /app/resources in your /war created by the jdk, copy in it all the
files and subdirs mentions in your error message: wicket-ajax.js,
org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/
modal.js, after you located them in you dev env, redeploy the app and
that should be better.

Don't forget to allow access to those files via the directives 
ofhttp://code.google.com/appengine/docs/java/config/appconfig.html#Stat...

It may help even if we don't know yet if your application uses only
classes from the JRE white list (http://code.google.com/appengine/docs/
java/jrewhitelist.html) as external classes.

Let us know how your progress.

regards

didier

On Jan 8, 2:16 am, fachhoch fachh...@gmail.com wrote:

 Please help me with the issue , I am   trying to deploy wicket in
 google app engine, i was able to bring up the home page ,then for
 further testing I added a simple ajaxlink  , when  I click  on the
 link nothing happens  then I enabled logging of wicket
 and saw this  in logs

 [code]

 FINE: ending request for page [Page class =
 org.radiosai.saibaba.web.page.HomePage, id = 0, version = 0], request
 [method = GET, protocol = HTTP/1.1, requestURL 
 =http://localhost:/app/,
 contentType = null, contentLength = -1, contextPath = , pathInfo =
 null, requestURI = /app/, servletPath = /app/, pathTranslated = null]
 Jan 8, 2011 1:04:01 AM
 com.google.appengine.tools.development.LocalResourceFileServlet doGet
 WARNING: No file found for: /app/resources/
 org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js
 Jan 8, 2011 1:04:01 AM
 com.google.appengine.tools.development.LocalResourceFileServlet doGet
 WARNING: No file found for: /app/resources/
 org.apache.wicket.markup.html.WicketEventReference/wicket-event.js
 Jan 8, 2011 1:04:01 AM
 com.google.appengine.tools.development.LocalResourceFileServlet doGet
 WARNING: No file found for: /app/resources/
 org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/
 modal.css
 Jan 8, 2011 1:04:01 AM
 com.google.appengine.tools.development.LocalResourceFileServlet doGet
 WARNING: No file found for: /app/resources/
 org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/
 modal.js
 [/code]

 please advice me how to resolve  this ?  I am running the app  with
 google eclipse  plugin.

-- 
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: wicket ajax on gae

2011-01-08 Thread fachhoch
this same application if I deploy to jetty it works, finding all these
resources are not problem  when deployed to tomcat , weblogic, jetty
any other server .its wicket way of handling the resources , all these
resources are in the wicket jar files,I am assuming there would be
some means to tell app engine how to load  wicket resources is there
any setting for app engine  ?

On Jan 8, 1:07 am, Didier Durand durand.did...@gmail.com wrote:
 Hi,

 After analyzing your error messages, I think that you need to create
 a /app/resources in your /war created by the jdk, copy in it all the
 files and subdirs mentions in your error message: wicket-ajax.js,
 org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/
 modal.js, after you located them in you dev env, redeploy the app and
 that should be better.

 Don't forget to allow access to those files via the directives 
 ofhttp://code.google.com/appengine/docs/java/config/appconfig.html#Stat...

 It may help even if we don't know yet if your application uses only
 classes from the JRE white list (http://code.google.com/appengine/docs/
 java/jrewhitelist.html) as external classes.

 Let us know how your progress.

 regards

 didier

 On Jan 8, 2:16 am, fachhoch fachh...@gmail.com wrote:







  Please help me with the issue , I am   trying to deploy wicket in
  google app engine, i was able to bring up the home page ,then for
  further testing I added a simple ajaxlink  , when  I click  on the
  link nothing happens  then I enabled logging of wicket
  and saw this  in logs

  [code]

  FINE: ending request for page [Page class =
  org.radiosai.saibaba.web.page.HomePage, id = 0, version = 0], request
  [method = GET, protocol = HTTP/1.1, requestURL =http://localhost:/app/,
  contentType = null, contentLength = -1, contextPath = , pathInfo =
  null, requestURI = /app/, servletPath = /app/, pathTranslated = null]
  Jan 8, 2011 1:04:01 AM
  com.google.appengine.tools.development.LocalResourceFileServlet doGet
  WARNING: No file found for: /app/resources/
  org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js
  Jan 8, 2011 1:04:01 AM
  com.google.appengine.tools.development.LocalResourceFileServlet doGet
  WARNING: No file found for: /app/resources/
  org.apache.wicket.markup.html.WicketEventReference/wicket-event.js
  Jan 8, 2011 1:04:01 AM
  com.google.appengine.tools.development.LocalResourceFileServlet doGet
  WARNING: No file found for: /app/resources/
  org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/
  modal.css
  Jan 8, 2011 1:04:01 AM
  com.google.appengine.tools.development.LocalResourceFileServlet doGet
  WARNING: No file found for: /app/resources/
  org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/
  modal.js
  [/code]

  please advice me how to resolve  this ?  I am running the app  with
  google eclipse  plugin.

-- 
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: wicket ajax on gae

2011-01-08 Thread fachhoch
I saw some tutorials about deploying wicket app to gae , they did not
mention  any problem with  resource loading , I think I am the only
one having problems deploying wicket app , is there any article which
tells more about resource handling   with wicket in gae ?

On Jan 8, 10:22 am, Didier Durand durand.did...@gmail.com wrote:
 Hi,

 The issue is that when you upload on GAE (i.e copy the files in the
 cloud), all what it sees is the file that you 've copied to the
 appropriate subdir of the /war in your eclipse project: if you don't
 copy them to /war/x/y/z, it just won't work because needed classes
 won't be present.

 regards
 didier

 On Jan 8, 3:07 pm, fachhoch fachh...@gmail.com wrote:







  this same application if I deploy to jetty it works, finding all these
  resources are not problem  when deployed to tomcat , weblogic, jetty
  any other server .its wicket way of handling the resources , all these
  resources are in the wicket jar files,I am assuming there would be
  some means to tell app engine how to load  wicket resources is there
  any setting for app engine  ?

  On Jan 8, 1:07 am, Didier Durand durand.did...@gmail.com wrote:

   Hi,

   After analyzing your error messages, I think that you need to create
   a /app/resources in your /war created by the jdk, copy in it all the
   files and subdirs mentions in your error message: wicket-ajax.js,
   org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/
   modal.js, after you located them in you dev env, redeploy the app and
   that should be better.

   Don't forget to allow access to those files via the directives 
   ofhttp://code.google.com/appengine/docs/java/config/appconfig.html#Stat...

   It may help even if we don't know yet if your application uses only
   classes from the JRE white list (http://code.google.com/appengine/docs/
   java/jrewhitelist.html) as external classes.

   Let us know how your progress.

   regards

   didier

   On Jan 8, 2:16 am, fachhoch fachh...@gmail.com wrote:

Please help me with the issue , I am   trying to deploy wicket in
google app engine, i was able to bring up the home page ,then for
further testing I added a simple ajaxlink  , when  I click  on the
link nothing happens  then I enabled logging of wicket
and saw this  in logs

[code]

FINE: ending request for page [Page class =
org.radiosai.saibaba.web.page.HomePage, id = 0, version = 0], request
[method = GET, protocol = HTTP/1.1, requestURL 
=http://localhost:/app/,
contentType = null, contentLength = -1, contextPath = , pathInfo =
null, requestURI = /app/, servletPath = /app/, pathTranslated = null]
Jan 8, 2011 1:04:01 AM
com.google.appengine.tools.development.LocalResourceFileServlet doGet
WARNING: No file found for: /app/resources/
org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js
Jan 8, 2011 1:04:01 AM
com.google.appengine.tools.development.LocalResourceFileServlet doGet
WARNING: No file found for: /app/resources/
org.apache.wicket.markup.html.WicketEventReference/wicket-event.js
Jan 8, 2011 1:04:01 AM
com.google.appengine.tools.development.LocalResourceFileServlet doGet
WARNING: No file found for: /app/resources/
org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/
modal.css
Jan 8, 2011 1:04:01 AM
com.google.appengine.tools.development.LocalResourceFileServlet doGet
WARNING: No file found for: /app/resources/
org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/
modal.js
[/code]

please advice me how to resolve  this ?  I am running the app  with
google eclipse  plugin.

-- 
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] wicket ajax on gae

2011-01-07 Thread fachhoch
Please help me with the issue , I am   trying to deploy wicket in
google app engine, i was able to bring up the home page ,then for
further testing I added a simple ajaxlink  , when  I click  on the
link nothing happens  then I enabled logging of wicket
and saw this  in logs


[code]


FINE: ending request for page [Page class =
org.radiosai.saibaba.web.page.HomePage, id = 0, version = 0], request
[method = GET, protocol = HTTP/1.1, requestURL = http://localhost:/app/,
contentType = null, contentLength = -1, contextPath = , pathInfo =
null, requestURI = /app/, servletPath = /app/, pathTranslated = null]
Jan 8, 2011 1:04:01 AM
com.google.appengine.tools.development.LocalResourceFileServlet doGet
WARNING: No file found for: /app/resources/
org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js
Jan 8, 2011 1:04:01 AM
com.google.appengine.tools.development.LocalResourceFileServlet doGet
WARNING: No file found for: /app/resources/
org.apache.wicket.markup.html.WicketEventReference/wicket-event.js
Jan 8, 2011 1:04:01 AM
com.google.appengine.tools.development.LocalResourceFileServlet doGet
WARNING: No file found for: /app/resources/
org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/
modal.css
Jan 8, 2011 1:04:01 AM
com.google.appengine.tools.development.LocalResourceFileServlet doGet
WARNING: No file found for: /app/resources/
org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow/res/
modal.js
[/code]

please advice me how to resolve  this ?  I am running the app  with
google eclipse  plugin.

-- 
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] example maven ,sping, jpa, gae

2011-01-05 Thread fachhoch
I am new bee getting started with gae , is there any example   project for 
maven ,spring, jpa with datanuclues, gae ?   

-- 
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] example maven ,sping, jpa, gae

2011-01-05 Thread fachhoch
if spring is too slow what framework  you suggest for dependency injection ?

-- 
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] new bee need suggestion on persistance

2011-01-04 Thread fachhoch
I am new bee   trying to create  a new app to be deployed in google
app engine , please suggest me the  what persistance technology is
mostly used with gae  , as per what I read its jpa  with datanuclues
or jdo, also does  jpa has  any  limitations  on gae ?  ,  I used
hibernate   before also jpa annotations , but never used JDO , I want
to choose one which is widely used and reliable on gae , please advice
me ?

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



[appengine-java] light weight version of datastore like hsqldb

2011-01-04 Thread fachhoch
is there any light weight version of bigtable or any other such   datastore 
which I can download in my pc and paly with it ? something like hsqldb for 
bigtable datastore  , it is to play with with   such datastore   to  get 
started ?  what options I have to  create entities using jpa , datanuclues 
and test them against bigtable like datastore ?

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