[appengine-java] Request-URI Too Large
I just started getting Request-URI Too Large messages when authenticating with Openid using the Users Service. It seems there is a new "followup" parameter added to the OpenId URL request (which is exactly the same as the "continue" parameter) making the request too large. Thanks, Lucian -- 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.
Re: [appengine-java] Re: Best way to delete items
Ah, I didn't fully read your question, sorry about that! Unless you have several hundred Entity types, you likely won't run out of indexes for a long time (GAE allows 2,000 indexes if I recall correctly). But, I understand your issue... Is the Entity in question a Child of the User? Could you store the keys in a List on the User (or another) Entity, and only store the non-deleted ones? -Ben http://www.liink.it http://about.me/benjaminc On Tue, Mar 1, 2011 at 11:04 PM, WillSpecht wrote: > I guess I don't understand your solution. I would still need an > indexed query to search for the child entities. > > What is the point of creating a child entity? How does it stop me > from needing an indexed search? > > > On Mar 1, 3:59 pm, Ben wrote: >> Hi Will, >> >> Could you create a child Entity that only has a deleted field, then if >> it's true return the parent? >> >> -Ben >> >> http://www.liink.ithttp://about.me/benjamincOn Tue, Mar 1, 2011 at 2:56 PM, >> WillSpecht wrote: >> > I want to allows users to delete entities but not actually delete >> > them. Usually I would just create a field, deleted, and set it to >> > true when the user chooses to delete it. Then to show these records i >> > just use owner == userId && deleted ==false. But this forces me to >> > use an index for every query I run. It seems I will very quickly be >> > using up indexes. >> >> > My other solution is to create a new entity deletedItem and store >> > deleted Items in an entity that corresponds to it. deleted foo's >> > would be stored in deletedFoo... This solution also seems to have >> > major drawbacks. >> >> > What is the recommended way to do stored deletes on app engine? >> >> > -- >> > 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 >> > 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-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. > > -- 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: Can't get .gif image to show in app engine
Thanks, but this makes no change - have given up on this one and placed my image in the root directory... -- 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] Suggestiong New Feature: Add Geocoding Maps API service to the Quota System on App Engine
I'm suggesting adding the Maps Api Geocoding as a service in App Engine. Why: 1. I don't have 10,000+ for the maps API premier and I am hitting below 2500 request per day. 2. I hit the OVER_QUERY_LIMIT on batch request. On multiple batch request for geocoding and I am under 2500 request per day. (this only happens from appspot and not from 127.0.0.1) I'd like to use the service and pay as you go like the app engine format? I think you could regulate the geocoding use better with the App Engine Quota system. Any thoughts? Brandon Donnelson http://gwt-examples.googlecode.com http://c.gawkat.com -- 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: Moderation enabled
I'm digging that! -- 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: Best way to delete items
Copy and store it separately. There be a little code overhead, but if your tuning for speed I'd do that. Brandon Donnelson http://gwt-examples.googlecode.com -- 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: Using OAuth: why OauthService.getCurrentUsert().getUserId() is null?
My OAuth example for those interested: http://code.google.com/p/gwt-examples/wiki/DemoGwtGData Brandon Donnelson http://gwt-examples.googlecode.com -- 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] LocalUserServiceTestConfig: currentUser is always NULL
In my test, I setup the LocalUserServiceTestConfig like this : private final LocalServiceTestHelper helper = new LocalServiceTestHelper(new LocalUserServiceTestConfig()) .setEnvIsAdmin(true).setEnvIsLoggedIn(true); @Before public void setUp() { helper.setUp(); } But my code is calling UserServiceFactory.getUserService().getCurrentUser() But currentUser is still NULL ? Is that intended behaviour ? -- 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: Using OAuth: why OauthService.getCurrentUsert().getUserId() is null?
How did you fix it, I posted a similar question at the same time :-D Can you give example of how to calls that need Oauth authentication ? How do you bring in the consumer key/secret and token/tokenSecret ? Do you manage to do actual OAuth calls (GDATA for example) during your unit tests ! Eager to pick this up Koen -- 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: Request-URI Too Large
Same here. First occurance was today March 2nd now stuck and can't login to my app. -- 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: Request-URI Too Large
We tried to debug and failed to understand it. I discovered that if I Sign out from all my (various) Google accounts and then retried, it worked as before. We will try and post some more information to explain what was happening, if not why. -- 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: LocalUserServiceTestConfig: currentUser is always NULL
Have you specified the following properties: helper.setEnvAuthDomain("YOUR_DOMAIN"); helper.setEnvEmail("USER@YOUR_DOMAIN"); -- 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] Login redirect failing all of a sudden /_ah/conflogin
Since this morning my call to "userservice.createLoginUrl" produces a url that doesn't work anymore. When selecting my "Sign in" link, which has a url like: https://www.google.com/accounts/ServiceLogin?service=ah&passive=true&continue=https://appengine.google.com/_ah/conflogin%3Fcontinue%3Dhttp://www.taxinvestorpro.com/tool
[appengine-java] Re: Reverse proxy won't allow Google Accounts sign in
Solution has been found. 1) Sign up for Google Apps. 2) Buy a domain name gochild2011.com 3) Add gochild2009.appspot.com as a service of gochild2011.com 4) Add new URL web.gochild2011.com for gochild2009.appspot.com 5) Modify host records with "web" point to 50.56.75.253 as A(Address) record type. 6) Modify Nginx reverse proxy configuration file at 50.56.75.253 as shown below. Location / { proxy_redirect off; proxy_set_header Host $host; proxy_pass http://ghs.google.com; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } Now users in China should be able to sign in by Google Accounts and play. http://web.gochild2011.com On Mar 1, 9:43 am, GoSharp Lite wrote: > A reverse proxy positioned in front of Google Apps may record access > logs, and these logs may be mined for usage information. > > Could above statement the reason that Google Accounts don't allow sign > in through a reverse proxy? > > On Feb 28, 11:21 pm, GoSharp Lite wrote: > > > > > > > > > In order to give users in China access tohttp://gochild2009.appspot.com > > , a reverse proxy has been set up athttp://50.56.75.253usingNginx. > > > When I try to sign in fromhttp://50.56.75.253, Google Accounts will > > re-direct back tohttp://50.56.75.253withoutsign in. > > > Is it possible to have a reverse proxy and a working Google Accounts > > sign in service? > > > p.s. Sign in link is currently disable inhttp://50.56.75.253inorder > > not to confuse users. -- 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.
Re: [appengine-java] Login redirect failing all of a sudden /_ah/conflogin
Looks like you pushed a good workaround already, but yes that was a result of a new login system yesterday, and looks like it is not handling this case like the prior system did. Specifically, calling createLoginUrl where the continue url is not the same as the url the app is hosted on. And, furthermore, the continue url is not an app engine url at all. For now, what you did was a good workaround. That is, use an app engine url as the continue url, and then have the app engine app redirect to the non-app-engine url. Need to think on this case some more. On Wed, Mar 2, 2011 at 7:53 AM, Joerg Weingarten wrote: > Since this morning my call to "userservice.createLoginUrl" produces a > url that doesn't work anymore. When selecting my "Sign in" link, which > has a url like: > > https://www.google.com/accounts/ServiceLogin?service=ah&passive=true&continue=https://appengine.google.com/_ah/conflogin%3Fcontinue%3Dhttp://www.taxinvestorpro.com/tool> I get the error: > > The requested URL /_ah/conflogin was not found on this server. > > Somebody please help. > > Thx > ---Joerg--- > > -- > 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. > > -- 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: Request-URI Too Large
Opened an issue for this: http://code.google.com/p/googleappengine/issues/detail?id=4668 Please star this to let Google know it affects you as well. FYI, cache reset doesn't fix it, but a cookie reset for the Google cookies does. Needless to say that's difficult for an average person to do without wiping their entire cookie cache, which is really rather a measure of last resort and for most people, destructive. Would be great to see some response from Google on this, it's a show-stopper for the authentication/OpenID framework. -- 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] Problem following HOW TO: Build a SOAP Server tutorial
I'm attempting to follow the Server part of Mitch Rudominer's tutoral HOW TO: Build a SOAP Server and a SOAP Client on Google App Engine (http://code.google.com/appengine/articles/soap.html) but ran into a problem early on. My platform: MacBook with Java 1.6.0_22 and Eclipse Helios R1 with AppEngine 1.4.2. I followed the tutoral by cut/paste, except for naming the project -- for convenience giving it a name already set up on GAE but as yet unused. For ref, here is my runwsgen.sh: #!/bin/bash class=com.example.Greeter clpth='./war/WEB-INF/classes' resourcedir='./war' outsourcedir='./src' outdir='./war/WEB-INF/classes' wsgen -cp "$clpth" -wsdl -keep -r "$resourcedir" -d "$outdir" -s "$outsourcedir" $class When I attempt to execute runwsgen.sh I get the following exception: $ sh runwsgen.sh Problem encountered during annotation processing; see stacktrace below for more information. com.sun.tools.internal.ws.processor.modeler.ModelerException: [failed to localize] A web service endpoint could not be found() at com.sun.tools.internal.ws.processor.modeler.annotation.WebServiceAP.onError(WebServiceAP.java: 215) at com.sun.tools.internal.ws.processor.modeler.annotation.WebServiceAP.buildModel(WebServiceAP.java: 322) at com.sun.tools.internal.ws.processor.modeler.annotation.WebServiceAP.process(WebServiceAP.java: 256) at com.sun.mirror.apt.AnnotationProcessors $CompositeAnnotationProcessor.process(AnnotationProcessors.java:60) at com.sun.tools.apt.comp.Apt.main(Apt.java:454) at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:258) at com.sun.tools.apt.main.Main.compile(Main.java:1102) at com.sun.tools.apt.main.Main.compile(Main.java:964) at com.sun.tools.apt.Main.processing(Main.java:95) at com.sun.tools.apt.Main.process(Main.java:85) at com.sun.tools.apt.Main.process(Main.java:67) at com.sun.tools.internal.ws.wscompile.WsgenTool.buildModel(WsgenTool.java: 209) at com.sun.tools.internal.ws.wscompile.WsgenTool.run(WsgenTool.java: 112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.tools.internal.ws.Invoker.invoke(Invoker.java:111) at com.sun.tools.internal.ws.WsGen.main(WsGen.java:41) error: compilation failed, errors should have been reported The com.example.Greeter source and class are present as described. Nothing is generated, in particular, no WSDL file is created. I'll appreciate any pointers in getting past this. Thanks in advance ...Ken -- 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] Java Positions in downtwon Chicago
I have a few Java Developer positions in downtown Chicago. The job descriptions are below. They are both in downtown Chicago. Please let me know if you know of anyone that may be interested. $500 referral bonus. Thanks, Christi Latz Technical Recruiter TransTech Solution Staffing cl...@trans-tech.com www.trans-tech.com Direct: 630.228-8566 Fax: 630.228.8585 www.twitter.com/christitrans - Job Updates Referral Bonus available! Microsoft Certified Gold Partner WBE Certified Woman-Owned Business Requirement 1: Contract Length – 9 months + The candidate will be primarily involved with re-engineering of an existing web application. This will include updating all aspects of web application including changes to process flows, adding new functionality, replacing the framework and changing look and feel to fit in with branding standards. The candidate is also expected to participate in development of a new testing framework around this application. This application is used by internal as well as external facing customers that enable the client base to search, view and edit transactions and execute ad-hoc reports. It is required that this candidate have an exceptional grasp of object oriented concepts, web technologies, be proficient in writing optimized SQL and have experience on such frameworks such as Spring. Candidate needs to be self-motivated and be able to plan and execute based on imposed deadlines. The candidate must have exceptional interpersonal communications skills and support a collaborative approach to development. Java Web Developer the following skills and experience: • 3+ years Java development experience in OO and distributed environments. • 3+ years Development experience with web technologies(e.g. Spring MVC, JSP, HTML, AJAX, JavaScript, SiteMesh, GWT). • 3+ years experience with SQL and Relational databases (e.g. Oracle). This includes having in depth experience of complex multi-table structures. Must be able to performance tune queries to run efficiently with high volumes of data. • 1+ years with Linux/Unix. • Experience with Spring Framework, a must. • Experience using Tomcat or other Java Application Server for executing applications. • Experience with Eclipse, GIT and Maven a plus. • Knowledge of open source libraries such as Log4j, JUnit, Ant, UC4 and Apache Commons, a plus. • Ability to learn existing applications quickly and to be able to make modifications to them. • Ability to work independently. Requirement 2: Contract Seeking Web Application Developer with the following skills and experience: - Highly Proficient in writing client/server applications using Java EE technologies (JSP/Servlets) - Proficient in creating rich web applications using Ajax and advanced interactive Javascript with HTML/XML. jQuery expertise is a plus. - Proficient using Weblogic or other Java Web Application Servers for executing applications. Tomcat expertise is a plus. - Proficient designing and writing Web Services in a SOA architecture - Experience using the Spring framework for various purposes including the data retrieval layer - Experience using Oracle database SQL including stored procedures and triggers - Experience with building and packaging deployments. Maven, etc. - Experience using and deploying applications in a Unix/Linux environment. Shell scripting & perl are a bonus. - Experience with automating testing such as JUnit. Extensive knowledge of web application testing strategies & suites such as Selenium is a plus. - Experience with SCM tools. Git, ClearCase, SVN, etc. - Knowldege of Continuous Integration tools. Bamboo, Cruise Control, etc is a plus - Knowledge of data retrieval and data parsing which follows defined message specifications. Experience with Tibco or other data delivery system a plus. - Knowledge or experience creating OSGi-based applications is desired but not necessary - Strong ability to learn existing applications quickly and to be able to make modifications to them - Must possess excellent communication skills - Ability to work independently -- 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: eclipse shows error in .jsp but tutorial project runs
another thing that might be helpful for diagnostics of my guestbook.jsp following the java tutorial: Eclipse isn't color coding anything or making use of its programmer-friendly features on the .jsp file, which i have in the war directory of the project. Eclipse is of course using a JDK for the project, so that error message is rather cryptic to me. it just somehow isn't understanding what the .jsp really is, even though when it builds, it builds the project correctly (since it runs) but thinks there is an error--if that makes any sense. moving forward in the tutorial, all of this amounts not only to the annoyance of the red-x marker, but also as i edit the file, since eclipse isn't checking it, i'm on my own in terms of checking for punctuation and all that--it would just be nice if eclipse could give me the info that it usually does rather than misunderstanding that file. On Mar 1, 9:42 pm, "marsh...@marshallfarrier.com" wrote: > actually, i did just discover some info on what it doesn't like: Down > in the bottom box where there's a console tab and a few others, there > is also a problems tab. When i click there it says "your project must > be configured to use a JDK in order to use JSPs." > > Just following the tutorial, i did change web.xml to have > guestbook.jsp as welcome-file but didn't change anything else. web.xml > in its entirety is: > [code] > > 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/javaeehttp://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; > version="2.5"> > > Guestbook > guestbook.GuestbookServlet > > > Guestbook > /guestbook > > > guestbook.jsp > > > > [/code] > p.s.: what tags do you use here to set code apart so that it's easier > to read? > On Mar 1, 2:08 pm, "Ikai Lan (Google)" wrote: > > > > > Do you know what the error says when you hover over the X? > > > Could just be Eclipse weirdness. > > > Ikai Lan > > Developer Programs Engineer, Google App Engine > > Blog:http://googleappengine.blogspot.com > > Twitter:http://twitter.com/app_engine > > Reddit:http://www.reddit.com/r/appengine > > > On Tue, Mar 1, 2011 at 8:05 AM, Aisthesis > > wrote: > > > > i'm just trying to learn how the app engine works and was working > > > through the tutorial. in the guestbook.jsp version, using eclipse, i > > > started off with some actual errors (missing quotation mark, missing > > > space) but after getting enough of those corrected that the program > > > does run in my browser, i still get the "x-file" sign in eclipse next > > > to the guestbook.jsp file, and it hasn't gone away after repeated > > > cleans. > > > > here's my file: > > > [code] > > > <%@ page contentType="text/html;charset=UTF-8" language="java" %> > > > <%@ page import="com.google.appengine.api.users.User" %> > > > <%@ page import="com.google.appengine.api.users.UserService" %> > > > <%@ page import="com.google.appengine.api.users.UserServiceFactory" %> > > > > > > > > > > > <% > > > UserService userService = UserServiceFactory.getUserService(); > > > User user = userService.getCurrentUser(); > > > if (user != null) { > > > %> > > > Hello, <%= user.getNickname() %>! (You can > > > sign > > > out.) > > > > <% > > > } else { > > > %> > > > Hello! Sign > > > in to include your name with greetings you post. > > > > <% > > > } > > > %> > > > > > > > > > [/code] > > > > is there still something wrong with it? and, if not, any ideas as to > > > what might be causing the eclipse error symbol? > > > > -- > > > 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. -- 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: Problem following HOW TO: Build a SOAP Server tutorial
Solved: My cut/paste mangled the @WebService annotation On Mar 2, 2:11 pm, ken wrote: > I'm attempting to follow the Server part of Mitch Rudominer's tutoral > HOW TO: Build a SOAP Server and a SOAP Client on Google App Engine > (http://code.google.com/appengine/articles/soap.html) but ran into a > problem early on. > My platform: MacBook with Java 1.6.0_22 and Eclipse Helios R1 with > AppEngine 1.4.2. > I followed the tutoral by cut/paste, except for naming the project -- > for convenience giving it a name already set up on GAE but as yet > unused. For ref, here is my runwsgen.sh: > > #!/bin/bash > class=com.example.Greeter > clpth='./war/WEB-INF/classes' > resourcedir='./war' > outsourcedir='./src' > outdir='./war/WEB-INF/classes' > wsgen -cp "$clpth" -wsdl -keep -r "$resourcedir" -d "$outdir" -s > "$outsourcedir" $class > > When I attempt to execute runwsgen.sh I get the following exception: > > $ sh runwsgen.sh > Problem encountered during annotation processing; > see stacktrace below for more information. > com.sun.tools.internal.ws.processor.modeler.ModelerException: [failed > to localize] A web service endpoint could not be found() > at > com.sun.tools.internal.ws.processor.modeler.annotation.WebServiceAP.onError > (WebServiceAP.java: > 215) > at > com.sun.tools.internal.ws.processor.modeler.annotation.WebServiceAP.buildMo > del(WebServiceAP.java: > 322) > at > com.sun.tools.internal.ws.processor.modeler.annotation.WebServiceAP.process > (WebServiceAP.java: > 256) > at com.sun.mirror.apt.AnnotationProcessors > $CompositeAnnotationProcessor.process(AnnotationProcessors.java:60) > at com.sun.tools.apt.comp.Apt.main(Apt.java:454) > at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:258) > at com.sun.tools.apt.main.Main.compile(Main.java:1102) > at com.sun.tools.apt.main.Main.compile(Main.java:964) > at com.sun.tools.apt.Main.processing(Main.java:95) > at com.sun.tools.apt.Main.process(Main.java:85) > at com.sun.tools.apt.Main.process(Main.java:67) > at > com.sun.tools.internal.ws.wscompile.WsgenTool.buildModel(WsgenTool.java: > 209) > at com.sun.tools.internal.ws.wscompile.WsgenTool.run(WsgenTool.java: > 112) > 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.sun.tools.internal.ws.Invoker.invoke(Invoker.java:111) > at com.sun.tools.internal.ws.WsGen.main(WsGen.java:41) > error: compilation failed, errors should have been reported > > The com.example.Greeter source and class are present as described. > Nothing is generated, in particular, no WSDL file is created. I'll > appreciate any pointers in getting past this. > Thanks in advance ...Ken -- 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] Testing data migration using JDO and DataNucleus
Hello everyone! We've run into a data migration-test problem, and I'm wondering if anyone would have any advice on how to proceed... We're building a system that needs to allow hot-swapping of application builds while customers are actively using our webapp, and that means we need to support data object "schema" migration in- place. We do this by implementing LoadCallback for version migration, and @Deprecated-ing no-longer-used fields. So far, so good. Thing is, we'd like to build up a test suite that allows developers to write unit tests for data migration against a local environment. That means no uploading to GAE, but using com.google.appengine.tools.development.testing.LocalServiceTestHelper instead. We have two "classes" directories: Both containing DataNucleus-JDO- enhanced .class files, one of the "old" schema, and one of the current. We have a MigrationTestHelper that creates a GroovyClassLoader with the old schema set as its classpath. The targetted class under test is found, instantiated, and passed to a test-supplied Closure that initializes the object with the old data to be migrated. The Helper calls PersistenceManager.makePersistent and returns pm.getObjectId(newlyPersisted).getKey(). The second half of the test involves creating a new GroovyClassLoader and setting the context class loader: Thread.currentThread().setContextClassLoader(loader). Then we use a different PersistenceManager (from a different PersistenceManagerFactory) to load the object by its Key. What happens is we get a ClassCastException: java.lang.ClassCastException: java.lang.Long cannot be cast to java.util.List at com.x.model.User.jdoReplaceField(User.groovy) at com.x.model.User.jdoReplaceFields(User.groovy) at org.datanucleus.state.JDOStateManagerImpl.replaceFields(JDOStateManagerImpl.java: 2772) at org.datanucleus.state.JDOStateManagerImpl.replaceFields(JDOStateManagerImpl.java: 2791) at org.datanucleus.store.appengine.DatastorePersistenceHandler.fetchObject(DatastorePersistenceHandler.java: 480) It *appears* as though the JDOStateManagerImpl uses an array of fields to get/set values. You can crack open the enhanced .class files and see there's a method called __jdoFieldNamesInit() that sets up a static list of Fields. The old User contains the field: "balance", which is a Long. The new User contains the fields: "balance", which is @Deprecated and is Long, and "_balances", which is a List. Looking in the .class files, it looks like each field is ordered alphabetically, so in old User, "balance" is index 0, where in new User, "balance" is index 1 and "_balances" is index 0. Hence the ClassCastException. I'm stuck on how to proceed. I'd have thought that fields would be replaced based on field name, not on an index... Especially an index that we don't appear to be able to control. But if it's the case that fields are placed by index on load, how does data migration work on AppEngine itself? Our migration code works fine there... Is this a DataNucleus issue? An issue with LocalServiceTestHelper? An issue of developer sanity? ;) Any insight would be greatly appriciated! Thanks! Jason -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] facebook php app in google app engine
Hi, I have created a facebook api using php and mysql and I want to host it in google app engine ,but google app does not support php, so I want to create a java application hosted in google app engine that invokes the facebook api written in php. pls help. regards -- 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: Using memcache in app engine
Ian, This is not true: this statement casts the result of the invocation of get() to HashMap. A cast of _cache to HashMap with subsequent invocation to get() would look as follows: ((HashMap) _cache).get(user.getInstance()); Also, the exception says: "java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.util.HashMap", which indicates an attempt to cast an ArrayList to a HashMap. Furthermore, the expression "new HashMap(_cache)" - as simple and easy as it may look - creates a copy of the whole content of the cache. As I don't know the exact implementation of the cache's Map operation, I would never issue such a statement. It can be assumed that this involves getting all objects in the cache, which may be an expensive operation. The constructor of HashMap internally iterates over all entries of the cache (see its source code). Generics are basically thrown away at compile time, i.e they don't influence the behavior at runtime (see also message of the ClassCastException). However, a source of the error may be that the put() has user.getInstanceID() as key, while the get has user.getInstance(). Depending on what you put with the key user.getInstance(), this could not be casted to a HashMap (or simply HashMap at runtime). On Mar 1, 8:06 pm, Ian Marshall wrote: > I refer to the GAE/J-specific post in the GAE group of the same name > of link: > > http://groups.google.com/group/google-appengine/browse_thread/thread/... > > Your line > > HashMap userMap = (HashMap UserDetails>)_cache.get(user.getInstance()); > > involves casting a javax.cache to a java.util.HashMap. Both of these > classes implement the java.util.Map interface, but it looks like one > may not be cast directly to the other as you attempt. > > I have never used javax.cache, but have you tried using the HashMap > constructor HashMap(Map m) to get: > > HashMap mapTemp = new HashMap(_cache); > HashMap userMap = > mapTemp.get(user.getInstance()); > > This might make it easier to identify exactly where the exception is > occurring. > > Enjoy? -- 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: Ayuda Help java.lang.NoClassDefFoundError: Could not initialize class ognl.OgnlRuntime
estoy igual que tu, si encuentras la solución avisame por favor... On 28 feb, 09:51, Frankeke wrote: > Hi, after deploy my app this was success: > > Uncaught exception from servlet > java.lang.NoClassDefFoundError: Could not initialize class > ognl.OgnlRuntime > at OgnlSolution.OgnlListener.contextInitialized(OgnlListener.java:18) > at > org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java: > 548) > at org.mortbay.jetty.servlet.Context.startContext(Context.java:136) > at > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java: > 1250) > at > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java: > 517) > at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java: > 467) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: > 50) > at > com.google.apphosting.runtime.jetty.AppVersionHandlerMap.createHandler(AppVersionHandlerMap.java: > 191) > at > com.google.apphosting.runtime.jetty.AppVersionHandlerMap.getHandler(AppVersionHandlerMap.java: > 168) > at > com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java: > 123) > at > com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java: > 261) > at com.google.apphosting.base.RuntimePb$EvaluationRuntime > $2.handleRequest(RuntimePb.java:8440) > at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java: > 454) > at com.google.net.rpc.impl.Server$RpcTask.runInContext(Server.java: > 572) > at com.google.tracing.TraceContext$TraceContextRunnable > $1.run(TraceContext.java:448) > at com.google.tracing.TraceContext.runInContext(TraceContext.java: > 688) > at com.google.tracing.TraceContext > $AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java: > 326) > at com.google.tracing.TraceContext > $AbstractTraceContextCallback.runInInheritedContext(TraceContext.java: > 318) > at com.google.tracing.TraceContext > $TraceContextRunnable.run(TraceContext.java:446) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java: > 1110) > at java.util.concurrent.ThreadPoolExecutor > $Worker.run(ThreadPoolExecutor.java:603) > at java.lang.Thread.run(Thread.java:636) > > Unexpected exception from servlet: java.lang.NoClassDefFoundError: > Could not initialize class ognl.OgnlRuntime > > what can i do? > > I have deployed some times ago and its works fine. > > I´m Using Struts 2 -- 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] Help with ognl runtime and Struts 2
Hi, Today after deploy this was success: Uncaught exception from servlet java.lang.NoClassDefFoundError: Could not initialize class ognl.OgnlRuntime at OgnlSolution.OgnlListener.contextInitialized(OgnlListener.java:18) at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java: 548) at org.mortbay.jetty.servlet.Context.startContext(Context.java:136) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java: 1250) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java: 517) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java: 467) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 50) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.createHandler(AppVersionHandlerMap.java: 191) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.getHandler(AppVersionHandlerMap.java: 168) at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java: 123) at com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java: 261) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $2.handleRequest(RuntimePb.java:8440) at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java: 454) at com.google.net.rpc.impl.Server$RpcTask.runInContext(Server.java: 572) at com.google.tracing.TraceContext$TraceContextRunnable $1.run(TraceContext.java:448) at com.google.tracing.TraceContext.runInContext(TraceContext.java: 688) at com.google.tracing.TraceContext $AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java: 326) at com.google.tracing.TraceContext $AbstractTraceContextCallback.runInInheritedContext(TraceContext.java: 318) at com.google.tracing.TraceContext $TraceContextRunnable.run(TraceContext.java:446) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java: 1110) at java.util.concurrent.ThreadPoolExecutor $Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) I don´t know whats the problem, time ago the same code works :S -- 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: Login redirect failing all of a sudden /_ah/conflogin
Yes Jon, I found a workaround as I needed to get it up and running right away again, but honestly I don't like it. The point for me was to hide the app-engine-url and only show the non- app-engine url. Right now the user can easily see the app-engine-url by looking at the link behind Sign In/Sign Out. Yes I know he can find that anyway ... :-) but it would be a bit more hidden. A fix would be really appreciated. Thx ---Joerg--- On Mar 2, 10:31 am, Jon McAlister wrote: > Looks like you pushed a good workaround already, but yes that was a > result of a new login system yesterday, and looks like it is not > handling this case like the prior system did. > > Specifically, calling createLoginUrl where the continue url is not the > same as the url the app is hosted on. And, furthermore, the continue > url is not an app engine url at all. > > For now, what you did was a good workaround. That is, use an app > engine url as the continue url, and then have the app engine app > redirect to the non-app-engine url. > > Need to think on this case some more. > > On Wed, Mar 2, 2011 at 7:53 AM, Joerg Weingarten > wrote: > > Since this morning my call to "userservice.createLoginUrl" produces a > > url that doesn't work anymore. When selecting my "Sign in" link, which > > has a url like: > > >https://www.google.com/accounts/ServiceLogin?service=ah&passive=true&;... > > > I get the error: > > > The requested URL /_ah/conflogin was not found on this server. > > > Somebody please help. > > > Thx > > ---Joerg--- > > > -- > > 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 > > 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-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] java.lang.SecurityException
Hi, I have an Eclipse EMF based application. It runs well in may AppEngine Eclipse testing env. However, when it is deployed to the cloud, I get the following error: Caused by: java.lang.SecurityException: SHA1 digest error for org/eclipse/emf/ecore/EObject.class at com.google.appengine.runtime.Request.process-9015283aec833f7d(Request.java) at sun.security.util.ManifestEntryVerifier.verify(ManifestEntryVerifier.java:210) at java.util.jar.JarVerifier.processEntry(JarVerifier.java:218) at java.util.jar.JarVerifier.update(JarVerifier.java:205) at java.util.jar.JarVerifier$VerifierStream.read(JarVerifier.java:428) at sun.misc.Resource.getBytes(Resource.java:114) at java.net.URLClassLoader.defineClass(URLClassLoader.java:273) at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) ... 44 more The same application ran well in previous AppEngine version. It seems that the AppEngine security control has been changes. Anyone can explain the reason? Also, the difference between AppEngine Eclipse testing env and the real Java running env in the cloud would be appreciated. Thanks, 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-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] Accessing an IMAP mailbox
Hi all, I'm curious to know if someone has tried to access an IMAP mailbox from an App Engine application? I have an IMAP account from my ISP (ie not a Gmail account), and I was thinking of doing a kind of notification application on App Engine, that would notify me, allow me to quickly browse through titles, etc. And I was wondering if it was possible to access that account thanks to the javax.mail API. Thanks for your feedback, -- Guillaume Laforge Groovy Project Manager Head of Groovy Development at SpringSource http://www.springsource.com/g2one -- 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.
Re: [appengine-java] Re: Moderation enabled
Hi Jason, I think perhaps moderation should be employed with certain keywords and content types as Roy had shown above. it would make life lot easier.. Regards, Charms -- 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.