[appengine-java] How to export logs details
Hi All, I would like to ask a question about how to export logs from App Engine server. Currently, in http://code.google.com/appengine/docs/java/tools/uploadinganapp.html there is a way to download the logs. However, after I followed the steps within, it seems the txt file will only record the request name but without more details. An example would be: 0.1.0.1 - - [18/Nov/2010:02:09:19 -0800] "GET /cron/*** HTTP/1.1" 200 0 - "AppEngine-Google; (+http://code.google.com/appengine)" 0.1.0.1 - - [18/Nov/2010:02:08:16 -0800] "GET /cron/*** HTTP/1.1" 200 0 - "AppEngine-Google; (+http://code.google.com/appengine)" In the server console logs, however, we are able to see all logs in more details including those added by developers. I wonder is there any way to also download those logs. Cheers! -- 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] JPA - Problem when I will insert a parent with a child already inserted.
I have these Entities: @Entity(name = "Empresa") @Table(name = "empresa") public class Empresa { @Id @Column(name = "id_empresa") @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; } and @Entity(name = "Usuario") @Table(name = "usuario") public class Usuario { @Id @Column(name = "id_usuario") @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "id_empresa") } I have inserted many of Empresas and now I wanna insert a new Usuario with a inserted Empresa, but I got this exception: javax.persistence.PersistenceException: Error in meta-data for br.com.controlecartao.core.entity.Empresa.id: Cannot have a java.lang.Long primary key and be a child object (owning field is br.com.controlecartao.core.entity.Usuario.empresa). I´m using the method MERGE, but I don´t know if this method is correct to to this. What´s the correct way to do this? Where am I wrong? Thank you. -- 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: JPA - Problem when I will insert a parent with a child already inserted.
Ops, I posted with one mistake... correcting: @Entity(name = "Usuario") @Table(name = "usuario") public class Usuario { @Id @Column(name = "id_usuario") @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "id_empresa") private Empresa empresa; } On 18 nov, 08:13, vaninh0 wrote: > I have these Entities: > > @Entity(name = "Empresa") > @Table(name = "empresa") > public class Empresa { > @Id > @Column(name = "id_empresa") > @GeneratedValue(strategy = GenerationType.IDENTITY) > private Long id; > > } > > and > > @Entity(name = "Usuario") > @Table(name = "usuario") > public class Usuario { > @Id > @Column(name = "id_usuario") > @GeneratedValue(strategy = GenerationType.IDENTITY) > private Long id; > @ManyToOne(fetch = FetchType.LAZY) > @JoinColumn(name = "id_empresa") > > } > > I have inserted many of Empresas and now I wanna insert a new Usuario > with a inserted Empresa, but I got this exception: > > javax.persistence.PersistenceException: Error in meta-data for > br.com.controlecartao.core.entity.Empresa.id: Cannot have a > java.lang.Long primary key and be a child object (owning field is > br.com.controlecartao.core.entity.Usuario.empresa). > > I´m using the method MERGE, but I don´t know if this method is correct > to to this. > > What´s the correct way to do this? > Where am I wrong? > > Thank you. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: mapreduce - passing filters
> > I'm not entirely sure I understand the scope of the proposed patch. Are you thinking about adding filters > at the DatastoreRecordReader level? It's not entirely clear to me that > that provides a benefit over just applying the filter at the start of > the map() function. Totally willing to believe I'm missing something, > though. > The map() filter runs against your quota. This is OK for once-only tasks such as schema upgrades, but Mappers can also be used for repetitive tasks such as mailing, data cleanup, etc. For these cases, being able to work on a subset of data is important (process only user accounts with mailing enabled, for example). The biggest problem to resolve is how to specify the filter clause in mapreduce.xml. I am considering implementing a GQL parser as simple as possible, and inject servlet request parameters. Something like: mapreduce.mapper.inputformat.datastoreinputformat.query select * from users where mailing=:value1 and timestamp<=:value2 This implies porting the GQL implementation from python to Java, or implementing an ANTLR-based parser. I feel like I am reinventing the wheel, so any suggestion to use something that exists (or aim to a simpler design) is welcome. On a logistical note, for nontrivial contributions, we require a CLA > from either you or your employer (depending on who owns the copyright > for your work) before we can accept significant contributions. The > relevant forms are at: > http://code.google.com/legal/individual-cla-v1.0.html > and http://code.google.com/legal/corporate-cla-v1.0.html. Feel free to > email me privately if this is an issue. > No problem with that. Regards, Nacho. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: org.datanucleus.jdo.exceptions.ClassNotPersistenceCapableException:
Hi Ian, Always good to find another Java developer :) Wow. I just started following http://rocky.developerblogs.com/tutorials/getting-started-google-app-engine-netbeans/ and use his plugins for NB 6.9.1, works ok. Can I ask why you use Ant instead? -Thufir On Tue, Nov 16, 2010 at 11:21 PM, Ian Marshall wrote: > Hi Thufir, > > I do not use any plug-in with NetBeans. (I use Apache Ant scripts for > enhancing and for building.) > > Cheers, > > Ian > > > On Nov 16, 11:35 am, Thufir wrote: >> Ian, which plugins do you use with netbeans? >> >> -Thufir > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to google-appengine-j...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine-java+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Switching a collection of Key in an existing object from a List to a Set
I have some jdo objects with many to many unowned relationships in the datastore already. This was done with List and I have many objects already persisted in the datastore. I want to switch this Key collection to Set in the object however I'm not sure how the datastore will respond to that. Is the datanucleus implementation storing the data in a more abstract Collection manner and then simply building a List or Set each time and populating it, or is it more of a "once a Set always a Set" situation? Thanks! -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: org.datanucleus.jdo.exceptions.ClassNotPersistenceCapableException:
Hi Thufir, I have looked at the documentation for the plug-in you mention. I had looked at this before: this seems to me to have little update activity (and perhaps is supported by one person only). My technology choices included the need to use long-term technologies and take advantage of technologies I was already familiar with. Hence I chose Java, Apache Wicket, and GAE/J. I have avoided the plug-ins since I cannot rely on one enthusiastic, skilled person; he or she might drop out at any time, and then where would I be? As for Apache Ant: I am used to it since I have used it before; the GAE/J documentation is good for setting up my Ant-based enhancer and builder; and NetBeans is Ant-friendly. I have already starred an issue to request an official Google- supported GAE/J plug-in for NetBeans (like they have already for Eclipse) but I plan on this not happening. Cheers, Ian On Nov 18, 12:08 pm, Thufir wrote: > Hi Ian, > > Always good to find another Java developer :) > > Wow. I just started > followinghttp://rocky.developerblogs.com/tutorials/getting-started-google-app-... > and use his plugins for NB 6.9.1, works ok. Can I ask why you use Ant > instead? > > -Thufir > > On Tue, Nov 16, 2010 at 11:21 PM, Ian Marshall > wrote: > > Hi Thufir, > > > I do not use any plug-in with NetBeans. (I use Apache Ant scripts for > > enhancing and for building.) > > > Cheers, > > > Ian > > > On Nov 16, 11:35 am, Thufir wrote: > >> Ian, which plugins do you use with netbeans? > > >> -Thufir > > > -- > > 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 > > athttp://groups.google.com/group/google-appengine-java?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Running Google App Engine from within a HSM.
I am relatively new to Google App Engine. I'd like to know if it is possible to run Google App Engine inside a Java Standard Edition compliant network attached hardware security module, such as SafeNet LUNA-SP? ( www.safenet-inc.com/products/data-protection/hardware-security-modules/luna-sp/ ) Thanks, Benjamin Gittins -- 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] Unable to access Admin console
I'm unable to access the App Engine Admin console. The page seems to be timing out. Is there an outage right now? -- 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: Unable to access Admin console
Never mind... as of 12:07PM EST the issue has disappeared. I can access the site again. -- 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] error using jsf 2.0
Hello, I have an application with JSF (Mojarra 2.0). I tried to upload it to App Engine but I do not get it to work. If I deployed in tomcat works correctly but whith app engine dosen't work. Can someone help me?, please... I'm Spanish and my English is not very good This is the trace: 18-nov-2010 16:07:59 org.apache.jasper.compiler.TagLibraryInfoImpl createAttribute ADVERTENCIA: Elemento desconocido (deferred-value) en attribute 18-nov-2010 16:07:59 org.apache.jasper.compiler.TagLibraryInfoImpl createAttribute ADVERTENCIA: Elemento desconocido (deferred-value) en attribute 18-nov-2010 16:08:00 com.google.apphosting.utils.jetty.JettyLogger warn ADVERTENCIA: /index.jsf org.apache.jasper.JasperException: jsp.error.beans.property.conversion at org.apache.jasper.runtime.JspRuntimeLibrary.getValueFromPropertyEditorManager(JspRuntimeLibrary.java: 885) at org.apache.jsp.index_jsp._jspx_meth_f_loadBundle_0(index_jsp.java: 182) at org.apache.jsp.index_jsp._jspx_meth_f_view_0(index_jsp.java:152) at org.apache.jsp.index_jsp._jspService(index_jsp.java:114) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java: 324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java: 292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at com.google.appengine.tools.development.PrivilegedJspServlet.access $101(PrivilegedJspServlet.java:23) at com.google.appengine.tools.development.PrivilegedJspServlet $2.run(PrivilegedJspServlet.java:59) at java.security.AccessController.doPrivileged(Native Method) at com.google.appengine.tools.development.PrivilegedJspServlet.service(PrivilegedJspServlet.java: 57) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 390) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java: 70) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126) at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java: 542) at com.sun.faces.application.view.JspViewHandlingStrategy.executePageToBuildView(JspViewHandlingStrategy.java: 355) at com.sun.faces.application.view.JspViewHandlingStrategy.buildView(JspViewHandlingStrategy.java: 130) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java: 106) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java: 139) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java: 58) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java: 122) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java: 70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java
[appengine-java] GAE deployment failure
I've got the same error since few weeks, and time to time it works. on error when I sniff the line I saw 500 Server Error Error: Server Error The server encountered an error and could not complete your request.If the problem persists, please report your problem and mention this error message and the query that caused it. -- 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] problem with jsf 2.0
have an application with JSF, works fine when I deployed in tomcat but when I tried to upload it to App Engine : does not work . This is the trace error: DVERTENCIA: Elemento desconocido (deferred-value) en attribute 18-nov-2010 16:08:00 com.google.apphosting.utils.jetty.JettyLogger warn ADVERTENCIA: /index.jsf org.apache.jasper.JasperException: jsp.error.beans.property.conversion at org.apache.jasper.runtime.JspRuntimeLibrary.getValueFromPropertyEditorManager(JspRuntimeLibrary.java: 885) at org.apache.jsp.index_jsp._jspx_meth_f_loadBundle_0(index_jsp.java: 182) at org.apache.jsp.index_jsp._jspx_meth_f_view_0(index_jsp.java:152) at org.apache.jsp.index_jsp._jspService(index_jsp.java:114) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java: 324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java: 292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at com.google.appengine.tools.development.PrivilegedJspServlet.access $101(PrivilegedJspServlet.java:23) at com.google.appengine.tools.development.PrivilegedJspServlet $2.run(PrivilegedJspServlet.java:59) at java.security.AccessController.doPrivileged(Native Method) at com.google.appengine.tools.development.PrivilegedJspServlet.service(PrivilegedJspServlet.java: 57) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 390) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java: 70) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126) at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java: 542) at com.sun.faces.application.view.JspViewHandlingStrategy.executePageToBuildView(JspViewHandlingStrategy.java: 355) at com.sun.faces.application.view.JspViewHandlingStrategy.buildView(JspViewHandlingStrategy.java: 130) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java: 106) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java: 139) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java: 58) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java: 122) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java: 70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:349) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 542) at org.mortbay.jetty.HttpConnection $RequestHandler.headerComplete(HttpConnection.java:923) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547) at org.
[appengine-java] pdf
hi, how to use OCR in pdf and way to convert pdf to image conversion.any viewer for pdf show in browser for rotate. -- 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: pdf
Try this http://docs.google.com/viewer On Nov 18, 7:23 am, thangavel s wrote: > hi, > > how to use OCR in pdf and way to convert pdf to image conversion.any > viewer for pdf show in browser for rotate. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: pdf
Hi, If anyone has been successful at using this with GAE, please let me know and as this would be great for my application. The application I have is an email and attachment parsing / routing application that organizes all of the documents. It currently relies on Apache POI, PDFBox (an older, manipulated version to support the JRE white list), and a REST connection to OCRTerminal.com if a PDF cannot be parsed with PDFBox. If the Google Docs Viewer can replace the other dependencies, that would be great. Please contact me if you have successful GAE code that serves these various file types and can get the text from them using Docs Viewer. thanks! Max On Nov 18, 2010, at 1:18 PM, Robert Lancer wrote: > Try this http://docs.google.com/viewer > > On Nov 18, 7:23 am, thangavel s wrote: >> hi, >> >> how to use OCR in pdf and way to convert pdf to image conversion.any >> viewer for pdf show in browser for rotate. > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to google-appengine-j...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine-java+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] ImageService from dev server
I am having issues getting a url for an image to be served from the ImageService when running locally on the dev server. The code (which works fine when deployed) is this: ImagesService imagesService = ImagesServiceFactory.getImagesService(); String imageLocation = imagesService.getServingUrl(blobKey); When running on the dev server locally (with a server URL of http://127.0.0.1) the ImageService returns a URL of: http://0.0.0.0:80/_ah/img/{key} I also see that in the local dashboard there is no blobviewer. Should I take this to mean that there is no image serving of blobs when running on the dev server? If so, it makes debugging more painful... thanks -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: ImageService from dev server
Just remove the protocol:ip:port prefix before you store the serving url. On Nov 18, 3:03 pm, andrew wrote: > I am having issues getting a url for an image to be served from the > ImageService when running locally on the dev server. > > The code (which works fine when deployed) is this: > > ImagesService imagesService = > ImagesServiceFactory.getImagesService(); > String imageLocation = imagesService.getServingUrl(blobKey); > > When running on the dev server locally (with a server URL ofhttp://127.0.0.1) > the ImageService returns a URL of: > > http://0.0.0.0:80/_ah/img/{key} > > I also see that in the local dashboard there is no blobviewer. > > Should I take this to mean that there is no image serving of blobs > when running on the dev server? > > If so, it makes debugging more painful... > > thanks -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] GAE deployment failure
I have same problem right now. On Thu, Nov 18, 2010 at 9:05 AM, pat rick wrote: > I've got the same error since few weeks, and time to time it works. > on error when I sniff the line I saw > > > > > 500 Server Error > > > Error: Server Error > The server encountered an error and could not complete your > request.If the problem persists, please report your problem and > mention this error message and the query that caused it. > > > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to > google-appengine-j...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine-java+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] GAE deployment failure
I have the same issue. It started about an hour ago. Anyone have any ideas how to resolve? Doug -- 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] GAE deployment failure
It's on our end. We're working on it. -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger: http://googleappengine.blogspot.com Reddit: http://www.reddit.com/r/appengine Twitter: http://twitter.com/app_engine On Thu, Nov 18, 2010 at 4:10 PM, Doug wrote: > I have the same issue. It started about an hour ago. > > Anyone have any ideas how to resolve? > > Doug > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to > google-appengine-j...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine-java+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] HTTPRequest POST parameters
Hi everyone, I have a rather trivial problem, but I can't seem to find the solution in the docs... I'm trying to fetch a HTML page via a POST request. I'm using the following code, and that works fine: URL url = new URL(sUrl); HTTPRequest request = new HTTPRequest(url, HTTPMethod.POST, Builder.allowTruncate()); URLFetchService service = URLFetchServiceFactory.getURLFetchService(); HTTPResponse response = service.fetch(request); byte[] content = response.getContent(); The problem is - I don't know how to add any POST parameters (as if I was posting a form). Could anyone give me some pointers please? Thanks in advance, N -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Unable to update app (Error 400)
Hi, I have problems to deploy my simple hello world app after deploying it a couple of times and it worked perfectly. Try to solve the problem on my own first. After reading threw some similar post within this forum it seems like u only guys can help me out. Where is the problem? - java.io.IOException: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=http%3A%2F%2Fmycabexapmle.appspot.com&version=1&; 400 Bad Request Client Error (400) The request is invalid for an unspecified reason. --- thx mike -- 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: Auto generating datastore-indexes.xml during unit tests
Great tip but it's not working. Running the test updates the mod date of local_db.bin but not datastore-indexes-auto.xml. I'm also configuring a LocalUserServiceTestConfig for a logged in user, but that doesn't seem to affect it. Is another setup step needed? I'd like a unit test to trigger all auto-index because my app has many possible combinations of query filters. Thanks! On Nov 11, 11:24 am, Starman wrote: > Something like the following will setup the datastore helper and > create the datastore-indexes-auto.xml: > > LocalDatastoreServiceTestConfig dsConfig = new > LocalDatastoreServiceTestConfig(); > File location = new File("war/WEB-INF/appengine-generated/ > local_db.bin"); > > dsConfig.setBackingStoreLocation(location.getAbsolutePath()); > > // And it seems that for the local ds service to be able > to load the local_db.bin file, the local > // environment must match the app id and version as stored > in the file. > > String xml; > try { > xml = FileUtils.readFileToString(new File("war/WEB-INF/ > appengine-web.xml")); > } > catch (IOException e) { > throw new RuntimeException(e); > } > String application = StringUtils.substringBetween(xml, > "", ""); > String version = StringUtils.substringBetween(xml, > "", ""); > > // Default behavior is to keep everything in RAM. Tell the > local services to use the file system > > dsConfig.setNoStorage(false); > > // Create the local services. > > gaeDatastoreHelper = new LocalServiceTestHelper(dsConfig); > gaeDatastoreHelper.setEnvAppId(application); > gaeDatastoreHelper.setEnvVersionId(version); > > // Calling setUp() will start the local ds service and > load the local_db.bin file. > > gaeDatastoreHelper.setUp(); > > This way, you can even write tests against a previously generated > local_db.bin if you want. -- 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: GAE deployment failure
Yes, I have the same problem :( On Nov 18, 8:05 pm, pat rick wrote: > I've got the same error since few weeks, and time to time it works. > on error when I sniff the line I saw > > > > 500 Server Error > > > Error: Server Error > The server encountered an error and could not complete your > request.If the problem persists, please report your problem and > mention this error message and the query that caused it. > > -- 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] Unable to update app (Error 400)
There was an issue with deploys: http://groups.google.com/group/google-appengine-downtime-notify/browse_thread/thread/474b9ae7a7c32013 It has since been resolved. -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger: http://googleappengine.blogspot.com Reddit: http://www.reddit.com/r/appengine Twitter: http://twitter.com/app_engine On Thu, Nov 18, 2010 at 10:05 AM, Mike wrote: > Hi, > > I have problems to deploy my simple hello world app after deploying it > a couple of times and it worked perfectly. > Try to solve the problem on my own first. After reading threw some > similar post within this forum it seems like u only guys can help me > out. > Where is the problem? > - > java.io.IOException: Error posting to URL: > > https://appengine.google.com/api/appversion/create?app_id=http%3A%2F%2Fmycabexapmle.appspot.com&version=1&; > 400 Bad Request > > Client Error (400) > The request is invalid for an unspecified reason. > --- > > thx > mike > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to > google-appengine-j...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine-java+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: GAE deployment failure
This has been resolved: http://groups.google.com/group/google-appengine-downtime-notify/browse_thread/thread/474b9ae7a7c32013 -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger: http://googleappengine.blogspot.com Reddit: http://www.reddit.com/r/appengine Twitter: http://twitter.com/app_engine On Thu, Nov 18, 2010 at 2:41 PM, Pash wrote: > Yes, I have the same problem :( > > On Nov 18, 8:05 pm, pat rick wrote: > > I've got the same error since few weeks, and time to time it works. > > on error when I sniff the line I saw > > > > > > > > 500 Server Error > > > > > > Error: Server Error > > The server encountered an error and could not complete your > > request.If the problem persists, please report your problem and > > mention this error message and the query that caused it. > > > > > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to > google-appengine-j...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine-java+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: How to export logs details
You'll need to add the 'severity' flag, which will get all of the additional logs, but will suppress log lined without the additional application created logs. You may be interested in http://groups.google.com/group/google-appengine/browse_thread/thread/a8ec10b5f376920f which describes a (python implemented) parser for those logs. I imagine there are other tools which can handle them too. --Matthew On Nov 18, 3:00 am, Featheast Lee wrote: > Hi All, > > I would like to ask a question about how to export logs from App > Engine server. > > Currently, > inhttp://code.google.com/appengine/docs/java/tools/uploadinganapp.html > there is a way to download the logs. > > However, after I followed the steps within, it seems the txt file will > only record the request name but without more details. > An example would be: > 0.1.0.1 - - [18/Nov/2010:02:09:19 -0800] "GET /cron/*** HTTP/1.1" 200 > 0 - "AppEngine-Google; (+http://code.google.com/appengine)" > 0.1.0.1 - - [18/Nov/2010:02:08:16 -0800] "GET /cron/*** HTTP/1.1" 200 > 0 - "AppEngine-Google; (+http://code.google.com/appengine)" > > In the server console logs, however, we are able to see all logs in > more details including those added by developers. > > I wonder is there any way to also download those logs. > > Cheers! -- 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 generate excel sheets in google appengine Java?
Hi Guys. I'm new in developing system in gaej. How will i generate an excel sheet in my jsp file in google appengine java? I'm using eclipse. thanks in advance. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: How to generate excel sheets in google appengine Java?
HI, One way is to go indirectly via Google Docs Spreadsheet and its API See http://code.google.com/apis/spreadsheets/ didier On Nov 19, 4:35 am, Rodel Ocampo wrote: > Hi Guys. I'm new in developing system in gaej. How will i generate an > excel sheet in my jsp file in google appengine java? I'm using eclipse. > thanks in advance. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: ImageService from dev server
Hi Andrew, I use the blobstore service locally for my tests: I can upload files. For the viewer, it comes in the Datastore viewer with entity type = "__BlobInfo__" (you also have a __BlobsSession__ entity in the viewer) regards didier On Nov 18, 11:09 pm, Starman wrote: > Just remove the protocol:ip:port prefix before you store the serving > url. > > On Nov 18, 3:03 pm, andrew wrote: > > > I am having issues getting a url for an image to be served from the > > ImageService when running locally on the dev server. > > > The code (which works fine when deployed) is this: > > > ImagesService imagesService = > > ImagesServiceFactory.getImagesService(); > > String imageLocation = imagesService.getServingUrl(blobKey); > > > When running on the dev server locally (with a server URL > > ofhttp://127.0.0.1) > > the ImageService returns a URL of: > > >http://0.0.0.0:80/_ah/img/{key} > > > I also see that in the local dashboard there is no blobviewer. > > > Should I take this to mean that there is no image serving of blobs > > when running on the dev server? > > > If so, it makes debugging more painful... > > > thanks > > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: How to generate excel sheets in google appengine Java?
Hi, You can use java excel API's. It works for us. Maybe you can have a look at my blog http://thoughts.inphina.com/2010/09/08/generating-excel-files-on-google-app-engine-for-a-wicket-application/ Regards | Meetu Maltiar On Fri, Nov 19, 2010 at 9:44 AM, Didier Durand wrote: > HI, > > One way is to go indirectly via Google Docs Spreadsheet and its API > See http://code.google.com/apis/spreadsheets/ > > didier > > On Nov 19, 4:35 am, Rodel Ocampo wrote: > > Hi Guys. I'm new in developing system in gaej. How will i generate an > > excel sheet in my jsp file in google appengine java? I'm using eclipse. > > thanks in advance. > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to > google-appengine-j...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine-java+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > > -- Meetu Maltiar, Mobile-09717005168 -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Best sort solution for merge-join queries?
Ok, thanks for all the help :)... just kidding. I finally found a way to emulate range and sort on merge-join queries. Here is my solution: *My old entity:* Product { double price; list attributes; } *The old query:* query.filter("attributes", "something").filter("attributes", "somethingElse"); // ZigZag, no composite indexes, that means that sort and inequality filters are not allowed *The solution:* save ranges of prices into the entity *The ranges I choose:* - every 10 - every 50 - every 100 - every 200 - every 400 - every 800 *The new entity:* Product { double price; list attributes; list priceRanges; } *Examples: **(every range is named {from}_{to})* 1. $75 -> priceRanges: ["70_80", "50_100", "0_100", "0_200", "0_400", "0_800"]. 2. $680 -> priceRanges: ["680_690", "650_700", "600_700", "600_800", "400_800", "0_800"]. *To query any predefined price range (i.e between $200 and $400):* query.filter("attributes", "something").filter("attributes", "somethingElse").filter("priceRanges", "200_400"); // Still ZigZag! *Now to get a dirty sorting (but useful):* If you need this range: from $200 to $400 sorted ASC you can emulate it doing many subqueries for smaller ranges and putting it all together. i.e: if you need the first 20 rows of $200 <= price < $400 1. query for 200_210 2. got 20 ? return : query the next price range; I didn't implement any of these yet, so I really welcome any comments or advices before I mess with the code. Thanks! On Wed, Nov 17, 2010 at 2:27 AM, Gal Dolber wrote: > My situation: > I have a list of "Products" with a price and other indexed properties(not > the same ones on each product), and I query them using merge-join. > I really need to get the results of the merge-join sorted by price. > Any advice? > Good in-memory solutions are welcome > > Thanks in advance > > -- > Guit: Elegant, beautiful, modular and *production ready* gwt applications. > > http://code.google.com/p/guit/ > > > > > -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- 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: Auto generating datastore-indexes.xml during unit tests
Humm... I get a nice appengine-indexes-auto.xml after my runs. Ah yes, don t call tear down on the helper... I don t exactly remember but, this was clearing the local_db.bin file and maybe the indexes auto also. R. On Nov 18, 7:39 pm, Jerry wrote: > Great tip but it's not working. Running the test updates the mod date > of local_db.bin but not datastore-indexes-auto.xml. > > I'm also configuring a LocalUserServiceTestConfig for a logged in > user, but that doesn't seem to affect it. > > Is another setup step needed? > > I'd like a unit test to trigger all auto-index because my app has many > possible combinations of query filters. > > Thanks! > > On Nov 11, 11:24 am, Starman wrote: > > > > > Something like the following will setup the datastore helper and > > create the datastore-indexes-auto.xml: > > > LocalDatastoreServiceTestConfig dsConfig = new > > LocalDatastoreServiceTestConfig(); > > File location = new File("war/WEB-INF/appengine-generated/ > > local_db.bin"); > > > dsConfig.setBackingStoreLocation(location.getAbsolutePath()); > > > // And it seems that for the local ds service to be able > > to load the local_db.bin file, the local > > // environment must match the app id and version as stored > > in the file. > > > String xml; > > try { > > xml = FileUtils.readFileToString(new File("war/WEB-INF/ > > appengine-web.xml")); > > } > > catch (IOException e) { > > throw new RuntimeException(e); > > } > > String application = StringUtils.substringBetween(xml, > > "", ""); > > String version = StringUtils.substringBetween(xml, > > "", ""); > > > // Default behavior is to keep everything in RAM. Tell the > > local services to use the file system > > > dsConfig.setNoStorage(false); > > > // Create the local services. > > > gaeDatastoreHelper = new LocalServiceTestHelper(dsConfig); > > gaeDatastoreHelper.setEnvAppId(application); > > gaeDatastoreHelper.setEnvVersionId(version); > > > // Calling setUp() will start the local ds service and > > load the local_db.bin file. > > > gaeDatastoreHelper.setUp(); > > > This way, you can even write tests against a previously generated > > local_db.bin if you want. -- 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.