[appengine-java] Would you car-pool or hitch-hike?

2012-02-04 Thread Robert Munro
I am doing a workshop on validating ideas, and am trying to get feedback on
peoples opinions of car-pooling/hitchhiking. Maybe you can take a look?
Will take less than 1 min.

https://www.facebook.com/pages/IThumb/185431371557994?sk=wall

-- 
best
Rob

*Web*: http://www.my-pod.org http://sentinelweb.co.uk
http://www.suprcards.com*
*
*Apps*: MyPOD https://market.android.com/details?id=org.my_pod.mypod
SuperCards https://market.android.com/details?id=co.uk.sentinelweb.cards
SilentTimerhttps://market.android.com/details?id=co.uk.sentinelweb.silenttimer
*Social* : twitter http://www.twitter.com/sentinelwebtech
 (@sentinelwebtech) |
FaceBookhttp://www.facebook.com/pages/MyPOD-Podcast-Manger/106662062754113

-- 
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: Creating and Retrieving a blobstore file

2012-02-04 Thread Andrew Myers
Just an update on this.  I've got it working by using the BlobStoreInputStream.

Regards,
Andrew.

On 4 February 2012 13:38, Andrew am2...@gmail.com wrote:
 Hi,

 I'm trying to save a file to the blobstore similar to what is
 described in docs at this page:

 http://code.google.com/appengine/docs/java/blobstore/overview.html#Writing_Files_to_the_Blobstore

 My code to write the file is:


                        // Create a new Blob file with mime-type text/html
                        AppEngineFile file = 
 fileService.createNewBlobFile(text/html);

                        // Open a channel to write to it
                        boolean lock = true;
                        writeChannel = fileService.openWriteChannel(file, 
 lock);

                        PrintWriter out = new 
 PrintWriter(Channels.newWriter(writeChannel,
                                        UTF8));
                        out.print(htmlText);

                        // Close without finalizing and save the file path for 
 writing
 later
                        out.close();
                        filePath = file.getFullPath();
                        writeChannel.closeFinally();

 I then save the filePath as a field on one of my Datastore entities.

 However when I try and read it back, the following code falls into the
 catch for FileNotFound exception:

        public String fetchHtml(String remoteUrl) {
                StringBuilder sb = new StringBuilder();
                String returnString = null;
                FileService fileService = FileServiceFactory.getFileService();

                FixtureEntity fixture = getRecordByRemoteUrl(remoteUrl);
                String fileName = fixture.getFileName();
                AppEngineFile file = new AppEngineFile(fileName);

                FileReadChannel readChannel;
                try {
                        readChannel = fileService.openReadChannel(file, false);

                        BufferedReader reader = new 
 BufferedReader(Channels.newReader(
                                        readChannel, UTF8));
                        String inputLine;

                        while ((inputLine = reader.readLine()) != null) {
                                sb.append(inputLine);
                        }
                        // line = The woods are lovely dark and deep.

                        readChannel.close();
                        returnString = sb.toString();
                } catch (FileNotFoundException e) {
                        logger.warning(e.getMessage());
                } catch (LockException e) {
                        logger.warning(e.getMessage());
                } catch (IOException e) {
                        logger.warning(e.getMessage());
                }

                return returnString;
        }

 I'm working on the dev server, with SDK v1.6.1.  If I look in the
 Datastore Viewer, the fileName is set on my entity to /blobstore/
 writable:4IoqzMo2yJHJ7336lvNABg.  There are __BlobInfo__ entities, but
 all their filename properties are null.

 If I do this:


                FileService fileService = FileServiceFactory.getFileService();
                BlobKey key = fileService.getBlobKey(file);
                if (key == null) {
                        Thread.sleep(2000);
                        key = fileService.getBlobKey(file);
                }

 Key definitely gets populated.  So I'm not sure why

 readChannel = fileService.openReadChannel(file, false);

 isn't working.

 Can anyone see anything obviously wrong with my code?  Or have any
 suggestions as to how to get things  working?

 Many thanks in advance,
 Andrew.


-- 
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] Google storage cpu consumption

2012-02-04 Thread Christian Goudreau
Hi everyone,

I was wondering, while using the Google Storage Java api, will I be billed
for the time the handler of the request on AppEngine takes? I mean,
that's great to have this easy to use API to access our data, but I will
use the RESTful service from the client if I'm going billed for the small
time it takes to forward the request.


I may be misunderstanding something, so please take care of my
misconceptions :D

cheers,

-- 
Christian Goudreau
www.arcbees.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] SDK 1.6.2.1??

2012-02-04 Thread Emanuele Ziglioli
Hi,

I see on http://code.google.com/p/googleappengine/downloads/list
there's a new release (1.6.2.1) while a couple of days ago there was
1.6.2.
Anyway, I've tried to download it twice and the zip file looks corrupt.

-- 
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] SDK 1.6.2.1??

2012-02-04 Thread Amy Unruh
hi,

Yes, there was an issue that required a new release (the download page
here:

http://code.google.com/p/googleappengine/downloads/detail?name=appengine-java-sdk-1.6.2.1.zip

gives more info).  The zip linked to from that page seems fine, however --
I just double checked it.

On Sun, Feb 5, 2012 at 6:34 AM, Emanuele Ziglioli 
theb...@emanueleziglioli.it wrote:

 Hi,

 I see on http://code.google.com/p/googleappengine/downloads/list
 there's a new release (1.6.2.1) while a couple of days ago there was
 1.6.2.
 Anyway, I've tried to download it twice and the zip file looks corrupt.

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



Re: [appengine-java] writing then reading entity does not fetch entity from datastore

2012-02-04 Thread John Goche
Thanks Ikai for your help,

I was indeed running a global query and not reading by key.

This was in the dev app server which AFAIK reproduces the behavior of
the datastore.

I would like to know, if you don't mind me asking, suppose I am not
reading by key.
Once a query becomes consistent, that is, I find everything the query
was supposed to find,
and this happens on client computer A, at that point can I assume the
same will happen
from any other client computer, that is, once a query appears to have
become consistent
can I a

On Sat, Feb 4, 2012 at 2:28 AM, Ikai Lan (Google) ika...@google.com wrote:
 Can you post the code? Are you reading by key? If you are using a query, you
 might be exposed to the eventually consistent nature of global queries in
 the datastore. Or is this only in the dev appserver?

 --
 Ikai Lan
 Developer Programs Engineer, Google App Engine
 plus.ikailan.com

Matthew,

Not a stupid question at all. Unfortunately it is not in my best
interest to put everything
in the same entity group, for instance because there is a limitation
as to the amount of
interactions with the server per unit time period for entities in the
same entity group.
And if one uses the high replication server and does not query by key
one will be
exposed to this constraint.

On Sat, Feb 4, 2012 at 3:16 AM, Matthew Jaggard matt...@jaggard.org.uk wrote:
 I hope this is a stupid question but you're not setting the read consistency
 to eventual are you?

Best Regards,

John Goche

-- 
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: Unowned relations JPA examples for datanucleus plugin v2

2012-02-04 Thread Rogue Wind
I'm getting the exact same error. I have the most recent version. The 2.0 
final version. My sequence is to instantiate side b, instantiate side a, 
add b to a's list, then add a to b's list. I then attempt to persist side a 
and I get the exception Detected attempt to establish This(2) as the 
parent of That(1) but the entity identified by That(1) has already been 
persisted without a parent.  A parent cannot be established or changed once 
an object has been persisted.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/NSKQTmRc9YoJ.
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] Handling ISO-8559-1 encoded parameter values in request

2012-02-04 Thread Joa
I've run into a problem reading parameters with values that are
encoded in ISO-8559-1 (I think).
Here's an example of a request string:
GET /ws/V1/routes?agency=CIT%20Vall%E9e-du-Richelieu
When reading the value of parameter agency, the space character
%20 correctly decodes to a space, but the %E9 character (this is a
é) does not. I tried to manually set the request encoding like this:

!-- snip -
@Override
public void doGet(HttpServletRequest request,
 HttpServletResponse response)
throws ServletException, IOException {

request.setCharacterEncoding(ISO-8859-1);

String agency = request.getParameter(agency);
!-- snip -

But to no avail. Does anybody have an idea how to handle this?

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



[appengine-java] Re: Unexplained error of SQLException

2012-02-04 Thread Nichole
Looks like you are trying to upload binaries compiled w/ a jdk version
not compatible w/ 5 or 6.

On Feb 2, 9:06 pm, Arjun Damodar lutt...@gmail.com wrote:
 Hello,

 I was trying to compile an application but getting the following error:

 javax.servlet.ServletException: java.sql.SQLException: Access denied for
 user 'lutt...@gmail.com'@'localhost' (using password: YES)

 The worst part is I haven't imported java.sql.* as this is not using cloud
 SQL. But I have another project using cloud sql on my eclipse. This is
 getting compiled and also getting deployed perfectly.

 I've attached a copy of the log below from local system (Appspot logs below
 that)

 Logs from eclipse:

 3 Feb, 2012 4:58:36 AM com.google.apphosting.utils.jetty.JettyLogger info

 INFO: Logging to JettyLogger(null) via
 com.google.apphosting.utils.jetty.JettyLogger

 3 Feb, 2012 4:58:36 AM
 com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml

 INFO: Successfully processed
 C:\Users\Arjun\workspace\Luttapy\war\WEB-INF/appengine-web.xml

 3 Feb, 2012 4:58:36 AM
 com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml

 INFO: Successfully processed
 C:\Users\Arjun\workspace\Luttapy\war\WEB-INF/web.xml

 3 Feb, 2012 4:58:37 AM com.google.apphosting.utils.jetty.JettyLogger warn

 WARNING: failed CreateNewTodo: java.lang.UnsupportedClassVersionError:
 luttapy/ServletCreateTodo : Unsupported major.minor version 51.0

 3 Feb, 2012 4:58:37 AM com.google.apphosting.utils.jetty.JettyLogger warn

 WARNING: failed RemoveTodo: java.lang.UnsupportedClassVersionError:
 luttapy/ServletRemoveTodo : Unsupported major.minor version 51.0

 3 Feb, 2012 4:58:37 AM com.google.apphosting.utils.jetty.JettyLogger warn

 WARNING: Failed startup of context
 com.google.appengine.tools.development.DevAppEngineWebAppContext@5e2c17f7{/ ,
 C:\Users\Arjun\workspace\Luttapy\war}

 org.mortbay.util.MultiException[java.lang.UnsupportedClassVersionError:
 luttapy/ServletCreateTodo : Unsupported major.minor version 51.0,
 java.lang.UnsupportedClassVersionError: luttapy/ServletRemoveTodo :
 Unsupported major.minor version 51.0]

        at
 org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:656 )

        at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)

        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
 org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)

        at
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)

        at
 org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)

        at org.mortbay.jetty.Server.doStart(Server.java:224)

        at
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)

        at
 com.google.appengine.tools.development.JettyContainerService.startContainer (
 JettyContainerService.java:191)

        at
 com.google.appengine.tools.development.AbstractContainerService.startup(Abs t
 ractContainerService.java:239)

        at
 com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerI m
 pl.java:146)

        at
 com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(D e
 vAppServerMain.java:164)

        at
 com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48 )

        at
 com.google.appengine.tools.development.DevAppServerMain.init(DevAppServer M
 ain.java:113)

        at
 com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMa i
 n.java:89)

 java.lang.UnsupportedClassVersionError: luttapy/ServletCreateTodo :
 Unsupported major.minor version 51.0

        at java.lang.ClassLoader.defineClass1(Native Method)

        at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)

        at java.lang.ClassLoader.defineClass(ClassLoader.java:615)

        at
 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)

        at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)

        at java.net.URLClassLoader.access$000(URLClassLoader.java:58)

        at java.net.URLClassLoader$1.run(URLClassLoader.java:197)

        at java.security.AccessController.doPrivileged(Native Method)

        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

        at
 com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass(Iso l
 atedAppClassLoader.java:176)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

        at org.mortbay.util.Loader.loadClass(Loader.java:91)

        at org.mortbay.util.Loader.loadClass(Loader.java:71)

        at 

[appengine-java] Re: Sending HTTP response header Connection: close for request with Connection: keep-alive

2012-02-04 Thread Nichole
you'll want to use the HttpServletResponse close() method.

On Feb 1, 9:18 pm, Jeff Morgan j...@lacodatech.com wrote:
 Is there a way to force GAE to send an HTTP response with header
 Connection: close?
 I have tried, response.setHeader(Connection,close);
 but no luck.

-- 
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: Unowned relations JPA examples for datanucleus plugin v2

2012-02-04 Thread Rogue Wind
A little more info on my example too. This is an M-N relationship and I am 
attempting to do a bidirectional unowned relationship not in the same 
entity group. What I am noticing is that when persisting side a, I do see 
side b created, and I see the reference to side b added to the list of side 
a and I see side b without a's reference in the datastore viewer. The error 
seems to be when it is attempting to store side a's reference in side b's 
list. Is the fact that these are in different transactions affecting this 
behavior?

I've double checked all the obvious problems. Both side a and b have each 
other's reference marked as @Unowned. Side b has the mappedBy set to side 
a's name. Unidirectional doesn't have any issues in my example. 

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/W6BwIgnu9_0J.
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] Cannot retrieve filename with Complicated Chinese charaters in GAE

2012-02-04 Thread Tony Yang
Dear Sir,
Would you help me the problem below.
Environment : Java and JSP
Action : retrieve filename from file with Complicated Chinese
characters.
Sample file : A1-中文.jpg
Response :
1. OK for local Eclipse developing platform, the name of 中文  can be
retrieved.
2. After deploying in GAE cloud, system sound having problem and skip
this file and no response.

Written code in JSP file :
--
path_string = objFiles[i].toString();
index1 = path_string.lastIndexOf('-')+1;
index2 = path_string.indexOf('.');
file_name = path_string.substring(index1, index2)
%= file_name%
-
---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-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] ignition library-com.github.ignition.core.widgets.RemoteImageView failed to instantiate.

2012-02-04 Thread chiru
hii...
i have added the jsr305.jar and google-collect-1.0-rc1.jar... but now
my layout file shows the following error.. can any one tell me what
the error is..

The following classes could not be instantiated:
-  (Open Class, Show Error Log)
See the Error Log (Window  Show View) for more details.
Tip: Use View.isInEditMode() in your custom views to skip code when
shown in Eclipse

this is the error log
com.github.ignition.core.widgets.RemoteImageView failed to
instantiate.

java.lang.UnsupportedOperationException
at
com.android.layoutlib.bridge.android.BridgeContext.getApplicationContext(BridgeContext.java:
1260)
at
com.github.ignition.support.images.remote.RemoteImageLoader.init(RemoteImageLoader.java:
72)
at
com.github.ignition.support.images.remote.RemoteImageLoader.init(RemoteImageLoader.java:
54)
at
com.github.ignition.core.widgets.RemoteImageView.initialize(RemoteImageView.java:
166)
at
com.github.ignition.core.widgets.RemoteImageView.init(RemoteImageView.java:
154)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at
com.android.ide.eclipse.adt.internal.editors.layout.ProjectCallback.instantiateClass(ProjectCallback.java:
397)
at
com.android.ide.eclipse.adt.internal.editors.layout.ProjectCallback.loadView(ProjectCallback.java:
165)
at
com.android.layoutlib.bridge.android.BridgeInflater.loadCustomView(BridgeInflater.java:
205)
at
com.android.layoutlib.bridge.android.BridgeInflater.createViewFromTag(BridgeInflater.java:
133)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
at android.view.LayoutInflater.inflate(LayoutInflater.java:408)
at android.view.LayoutInflater.inflate(LayoutInflater.java:296)
at
com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:
279)
at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:318)
at
com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:
325)
at
com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderService.createRenderSession(RenderService.java:
372)
at
com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.renderWithBridge(GraphicalEditorPart.java:
1323)
at
com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.recomputeLayout(GraphicalEditorPart.java:
1077)
at
com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.activated(GraphicalEditorPart.java:
903)
at
com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor.pageChange(LayoutEditor.java:
399)
at org.eclipse.ui.part.MultiPageEditorPart
$2.widgetSelected(MultiPageEditorPart.java:290)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:
240)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:
2745)
at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1432)
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:
257)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:
4165)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:
2696)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:
332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:
667)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:
149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:
123)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:
196)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:
110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:
79)
at

[appengine-java] Service for Java Desktop App

2012-02-04 Thread Ehsun Behravesh
Hi friends,

I'm so new to GAE. I know Cloud and the concept but I don't know anything 
about the API in details.

I'm going to provide some very simple services for a Java Desktop app. For 
example the app sends some parameters and receives some value.
What is the best way and architecture for this problem using GAE.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/3bGtkZaCugwJ.
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: SDK 1.6.2.1??

2012-02-04 Thread Emanuele Ziglioli
Thanks Amy,

I'm trying to download it again. Internet is slow in New Zealand, and
data capped, so I hope this time it works (I know, it must sound crazy
from any other western country!!).

Any news regarding the source code? SVN is stuck with version 1.6.0

-- 
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] SecurityException thrown by java.lang.reflect.AccessibleObject.setAccessible(boolean flag)

2012-02-04 Thread Emanuele Ziglioli
Hi,

we've been experiencing some SecurityExceptions caused by GAE's
Security Manager.
The strange thing is that they don't occur every time. Apparently
we're not the only ones:

1. Siena Project: 
https://groups.google.com/group/siena-discuss/browse_thread/thread/3882b18e14de8776
2. JAXB: http://code.google.com/p/googleappengine/issues/detail?id=1267#c11
3. JRuby: http://jira.codehaus.org/browse/JRUBY-4246
And many other stack traces are available, just googling for
'setAccessible' + GAE or AppEngine

So, has anyone investigated or is there an explanation why these
exceptions occur or why they don't occur every time?
In the docs, http://code.google.com/appengine/docs/java/runtime.html,
I can read:
An application cannot reflect against any other classes not
belonging
to itself, and it can not use the setAccessible() method to
circumvent
these restrictions.
Is a jar we bundle with the application not considered part of the
application?

Thanks,
Emanuele

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