[appengine-java] debugging exceptions
hi, i am new to work with goggleappengine with java.i had downloaded thsoftwares as follows. java 1.6,eclipse 3.0,and i had downloaded google plugin with eclipse software updates.i read that appengine SDK comes along with google plugin.so i didnt installed SDK separately.i tried for sample application.but in the directory structure for package explorer under src folder server is not appeared.at the time of debugging the application the following errors are raised. 5 Sep, 2009 9:40:21 AM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: failed selectchannelconnec...@127.0.0.1:8080 java.net.BindException: Address already in use: bind at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind (ServerSocketChannelImpl.java:119) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) at org.mortbay.jetty.nio.SelectChannelConnector.open (SelectChannelConnector.java:211) at org.mortbay.jetty.nio.SelectChannelConnector.doStart (SelectChannelConnector.java:309) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at org.mortbay.jetty.Server.doStart(Server.java:228) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at com.google.appengine.tools.development.JettyContainerService.startContainer (JettyContainerService.java:152) at com.google.appengine.tools.development.AbstractContainerService.startup (AbstractContainerService.java:116) at com.google.appengine.tools.development.DevAppServerImpl.start (DevAppServerImpl.java:218) at com.google.appengine.tools.development.DevAppServerMain $StartAction.apply(DevAppServerMain.java:162) at com.google.appengine.tools.util.Parser$ParseResult.applyArgs (Parser.java:48) at com.google.appengine.tools.development.DevAppServerMain. (DevAppServerMain.java:113) at com.google.appengine.tools.development.DevAppServerMain.main (DevAppServerMain.java:89) 5 Sep, 2009 9:40:21 AM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: failed ser...@1724a9d java.net.BindException: Address already in use: bind at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind (ServerSocketChannelImpl.java:119) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) at org.mortbay.jetty.nio.SelectChannelConnector.open (SelectChannelConnector.java:211) at org.mortbay.jetty.nio.SelectChannelConnector.doStart (SelectChannelConnector.java:309) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at org.mortbay.jetty.Server.doStart(Server.java:228) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at com.google.appengine.tools.development.JettyContainerService.startContainer (JettyContainerService.java:152) at com.google.appengine.tools.development.AbstractContainerService.startup (AbstractContainerService.java:116) at com.google.appengine.tools.development.DevAppServerImpl.start (DevAppServerImpl.java:218) at com.google.appengine.tools.development.DevAppServerMain $StartAction.apply(DevAppServerMain.java:162) at com.google.appengine.tools.util.Parser$ParseResult.applyArgs (Parser.java:48) at com.google.appengine.tools.development.DevAppServerMain. (DevAppServerMain.java:113) at com.google.appengine.tools.development.DevAppServerMain.main (DevAppServerMain.java:89) Could not open the requested socket: Address already in use: bind Try overriding --address and/or --port.. so please give solution to my proplem. --~--~-~--~~~---~--~~ 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] regording to change the port number
hi, i am running the sample application in googleappengine with java using eclipse. the application is not running in default port number like 8080.But it is running in unused port number.i want to know how to change the port number in dev app server.i am not running in any other servers like tomcat,jboss etc.I am getting the following error since i am not able to change the port number.please guide me with the solution. Could not open the requested socket: Address already in use: bind Try overriding --address and/or --port. --~--~-~--~~~---~--~~ 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] Regarding reference guides for developing sample applications
Hi iam new to work with google appengine sdk with java using eclipse,and i want to develop some sample applications using GOOGLE APP ENGINE WITH JAVA USING ECLIPSE .But i could not find any reference guides for developing any sample apps .So please someone help me with some guides as reference for developing some sample apps . Thank u in advance, Anu. --~--~-~--~~~---~--~~ 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] Regarding error 500
hi i am working with a sample application in gooleappengine and when iam sending a request to application through the browser iam getting the following error HTTP ERROR: 500 Must set a body RequestURI=/helloxmpp1 Caused by: java.lang.IllegalArgumentException: Must set a body at com.google.appengine.api.xmpp.MessageBuilder.build (MessageBuilder.java:54) at com.google.appengine.demos.HelloXmpp1Servlet.doGet (HelloXmpp1Servlet.java:41) at javax.servlet.http.HttpServlet.service(HttpServlet.java:693) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1093) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter (TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at com.google.appengine.tools.development.StaticFileFilter.doFilter (StaticFileFilter.java:121) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle (SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle (SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle (ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle (DevAppEngineWebAppContext.java:54) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:313) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 506) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete (HttpConnection.java:830) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at org.mortbay.io.nio.SelectChannelEndPoint.run (SelectChannelEndPoint.java:396) at org.mortbay.thread.BoundedThreadPool$PoolThread.run (BoundedThreadPool.java:442) Powered by Jetty:// actually class and xml file which i have written for my application are as follows: java class: // Copyright 2008 Google Inc. All rights reserved. package com.google.appengine.demos; import com.google.appengine.api.xmpp.JID; import com.google.appengine.api.xmpp.Message; import com.google.appengine.api.xmpp.MessageBuilder; import com.google.appengine.api.xmpp.MessageType; import com.google.appengine.api.xmpp.Presence; import com.google.appengine.api.xmpp.SendResponse; import com.google.appengine.api.xmpp.XMPPService; import com.google.appengine.api.xmpp.XMPPServiceFactory; import java.io.IOException; import java.util.Map; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * HelloXmpp is an echo bot that sends back the message it receives. */ public class HelloXmpp1Servlet extends HttpServlet { private XMPPService xmppService; @Override public void init() { this.xmppService = XMPPServiceFactory.getXMPPService(); } // For testing. Real requests are POST public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException { Message message =new MessageBuilder() .withMessageType(MessageType.CHAT) .withFromJid(new JID(req.getParameter("from"))) .withRecipientJids(new JID(req.getParameter("to"))) .withBody(req.getParameter("body")) .build(); processMessage(message, res); } public void doPost(HttpServletRequest req, HttpServletResponse res) throws IOException { processMessage(xmppService.parseMessage(req), res); } public void processMessage(Message message, HttpServletResponse res) throws IOException { JID fromId = message.getFromJid(); Presence presence = xmppService.getPresence(fromId); String presenceString = presence.isAvailable() ? "" : "not "; SendResponse response = xmppService.sendMessage( new MessageBuilder(). withBody(message.getBody() + " (you are " + presenceString + "available)"). withRecipientJids(fromId). build()); for (Map.Entry entry : response.getStatusMap().entrySet()) { res.getWriter().println(entry.getKey() + "," + entry.getValue() + ""); } res.getWriter
[appengine-java] Regarding nullpoint exception
Hi i have been working with an application and when i send a url request thru the browser,iam getting a null point exception,so someone tell me how can i rectift dat error --~--~-~--~~~---~--~~ 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] Converting XML documnets to Google App Engine datastore
Hi, I have data in XML documents and I want to store it on Google App Engine using java. So can u please suggest me the best way to do it. Regards, Mahesh -- 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] Uploading XML documents
Hi, I want to store xml documents to Google app engine datastore for that I tried following code. first.jsp Second.jsp <%!BlobstoreService blobstoreService = BlobstoreServiceFactory.getBlobstoreService(); %> <% byte[] a=byte(request.getAttribute("myFile")); Map blobs = blobstoreService.getUploadedBlobs(request); BlobKey blobKey = blobs.get("myFile"); if (blobKey == null) { response.sendRedirect("/"); } else { response.sendRedirect("/third.jsp?blob-key=" + blobKey.getKeyString()); }%> In second.jsp i m getting the below 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. Please help me into this, Thnks 4 ur help in advance 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] Uploading XML documents
Hi, I have created example given in following link http://code.google.com/appengine/docs/java/blobstore/overview.html but i m getting the error: Caused by: java.lang.IllegalStateException: Must be called from a blob upload callback request. I want to upload xml documents in google app engine data store. please help me to solve this thnks in advance 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] replicate
I have entity with 5 records into it. Now I want to replicate those 5 records into 500 records into same entity. so please suggest me how to do this I dont want to access each property of entity. Thanks in advance -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.