Tag Archive: GAE

Aug 08

A temporal type must be specified for persistent fields or properties of type java.util.Date and java.util.Calendar

Error in title “A temporal type must be specified for persistent fields or properties of type java.util.Date and java.util.Calendar” cab be found during development using JPA and Google App Engine. To solve this issue you have to correctly annotate the field oh type Date so: @Entity @Table(name=”studio”) public class StudioDb {     @Id     @GeneratedValue(strategy …

Continue reading »

Aug 05

org.eclipse.persistence.exceptions.DatabaseException Internal Exception: java.sql.SQLException: Transient error, please try again

The exception org.eclipse.persistence.exceptions.DatabaseException Internal Exception: java.sql.SQLException: Transient error, please try again rises because persistance does not reach our database instance. So two chances : First : It a Google Cloud problem, it’s down…very unlikely Second : YOU make some mistyping when configuring your instance in your IDE or in yours configurations files. Check it very …

Continue reading »

Jul 30

cvc-complex-type.2.4.a: Invalid content was found starting with element ‘url-pattern’

After JPA configuration and some change into configurations in Ecplipse IDE we get in trouble with our web.xml file. Eclipse reports this error: cvc-complex-type.2.4.a: Invalid content was found starting with element ‘url-pattern’. One of ‘{“http://java.sun.com/xml/ns/javaee”:web-resource-name}’ is expected.

Continue reading »

Jul 06

Adding new jar library in GAE

When you begin using Google App Engine the first matter you encounter is to add support for your preferites jar libraries. That seems difficult will be a simple matter: Copy your jar library in NameOfYourApp/war/WEB-INF/lib directory Then Add it to Java Build Path : you can go to the project properties and then “Java Build …

Continue reading »

Apr 25

com.google.apphosting.api.ApiProxy$ApplicationException: ApplicationError: 7 in GAE

When you try using Google App Engine GAE with Google Cloud Storage you can come in touch with the following Exception: Uncaught exception from servlet java.io.IOException at com.google.appengine.api.files.FileServiceImpl.translateException(FileServiceImpl.java:615) at com.google.appengine.api.files.FileServiceImpl.makeSyncCall(FileServiceImpl.java:588) at com.google.appengine.api.files.FileServiceImpl.create(FileServiceImpl.java:506) at com.google.appengine.api.files.FileServiceImpl.createNewGSFile(FileServiceImpl.java:153) at com.myproject.ImageUploadServlet.doGet(ImageUploadServlet.java:36) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166) at com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:125) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:35) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.JdbcMySqlConnectionCleanupFilter.doFilter(JdbcMySqlConnectionCleanupFilter.java:57) at …

Continue reading »