[appengine-java] Fetch groups

2010-01-28 Thread KasperDK
I'm planning to use fetch groups in my java-app hosted on google app
engine. I can't seem to find much about fetch groups in the java app
engine documentation, so my question is if google app engine has
implemented fetch groups as defined in JSR-000243 Java Data Objects
2.2 Maintenance Release 2 ? If not, then where can I read a spec about
this issue ?

Also, please point me to document(s) / blog(s) containing the
technical road map for the GAE.

Cheers,

:-) Kasper

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



[appengine-java] Re: Google Plugin for Eclipse 1.3 plans

2010-02-16 Thread KasperDK
Hi all,

Where exactly is the Google Plugin for Eclipse preview located ? Or is
it not released yet ? Im dying to try it out :-)

Cheers,

:-) Kasper

On Feb 4, 8:52 pm, Keith Platfoot  wrote:
> Hey all,
>
> Many of you have reported incompatibilities between the Google Plugin for
> Eclipse and other build systems/project structures, most notably Maven and
> J2EE/Dynamic Web Projects.  For example, issue 1515 (Eclipse plugin requires
> fixed location for war
> directory)
> has
> collected well over 100 stars, and a similar one in the GWT issue tracker
> has attracted a lot of attention as well.  Based on this feedback, we've
> decided to try and address as many of the incompatibilities as possible with
> our upcoming 1.3 release of the plugin.  To deliver on that goal, we want to
> share with your our current plans, and also let you know about a preview
> build that we'll make available so you can test the changes for yourself and
> give us feedback before final release.
>
> Our plans for the 1.3 release include 4 changes designed to make integration
> with Maven and J2EE projects easier:
>
>    1. The WAR directory can now be configured to be *any* project-relative
>    path (e.g. src/main/webapp if you're using Maven).  You'll also be able
>    to specify whether that directory is source-only (typical Maven/J2EE
>    scenario), or whether it should also function as the WAR output directory
>    from which to run/debug or deploy to App Engine.  If your WAR directory is
>    input *and* output (which will remain the default for new Web App
>    projects), the plugin will manage synchronizing the contents of WEB-INF/lib
>    WEB-INF/classes with your project's build path and compiled output.
>     Otherwise, we'll leave your WAR source directory alone and you'll need to
>    specify your WAR output location when launching, deploying, etc (the plugin
>    will remember the location once you set it the first time).
>    2. The Web App launch configuration UI is being redesigned to allow you
>    to see, and if necessary change, *any* of the launch arguments.
>     Previously, we were waiting until launch time to set many of these
>    arguments based on heuristics that were invisible and inaccessible to you.
>     Now you'll be in full control of how your projects get launched.  Also,
>    we're adding the capability to automatically migrate your launch
>    configurations when necessary, for example, updating the -javaagent flag
>    when changing App Engine SDKs.
>    3. GWT/App Engine projects will no longer require our SDK library on the
>    classpath.  This means Maven users will be able to pull in JAR files from
>    their M2 repository as they're accustomed to and the plugin won't mind a
>    bit.
>    4. The severity of any problem marker generated by the plugin will be
>    fully customizable via an Errors/Warnings preference page (similar to the
>    Java Errors/Warnings page), letting you specify either Error, Warning, or
>    Ignore.
>
> We'll also be including a few smaller features and bug fixes as well.
>
> What does everyone think about the 4 changes outlined above?  We've been
> testing the plugin against various Maven and J2EE configurations to try to
> ensure that we've eliminated the most critical roadblocks.  However, we're
> very interested in also having you folks take it for a spin before the
> official release date (slated for next month).  We're not quite ready yet,
> but stay tuned for a 1.3 preview build to be made available hopefully in a
> few weeks.  We'll distribute it as a zip file for dropin
> installation
> so
> it will come with the standard warnings and caveats (use with a clean
> Eclipse install and workspace, use at your risk, etc.).  However, it will
> hopefully give you a chance to give us any last-minute feedback about our
> changes before the final release.
>
> Thanks,
>
> Keith

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



[appengine-java] GUICE injection and access denied (java.lang.RuntimePermission modifyThreadGroup)

2010-06-11 Thread KasperDK
Hi,

I'm trying to do this;

public class PostalServiceImpl extends RemoteServiceServlet implements
PostalService {
private static final Logger log =
Logger.getLogger(PostalServiceImpl.class.getName());

@Inject
private PostalManager postalManager;

public PostalServiceImpl() {
Injector injector = Guice.createInjector(new 
NetGazelleModule());

injector.injectMembers(this);
}

public String getCity(String postal) {
log.info("PostalServiceImpl.getCity(" + postal + ")");

if (postalManager == null) {
log.severe("PostalServiceImpl.getCity: postalManager is 
null !");
}

return postalManager.getCity(postal);
}

...


But I get the following exception;

INFO: The server is running at http://localhost:/
Jun 11, 2010 6:38:57 AM
com.google.inject.internal.FinalizableReferenceQueue 
INFO: Failed to start reference finalizer thread. Reference cleanup
will only occur when new references are created.
java.lang.reflect.InvocationTargetException
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.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:
100)
at
com.google.inject.internal.FinalizableReferenceQueue.(FinalizableReferenceQueue.java:
124)
at com.google.inject.internal.MapMaker
$QueueHolder.(MapMaker.java:787)
at com.google.inject.internal.MapMaker$WeakEntry.(MapMaker.java:
946)
at com.google.inject.internal.MapMaker$Strength
$1.newEntry(MapMaker.java:312)
at com.google.inject.internal.MapMaker
$StrategyImpl.newEntry(MapMaker.java:498)
at com.google.inject.internal.MapMaker
$StrategyImpl.newEntry(MapMaker.java:419)
at com.google.inject.internal.CustomConcurrentHashMap
$ComputingImpl.get(CustomConcurrentHashMap.java:2029)
at
com.google.inject.internal.BytecodeGen.getClassLoader(BytecodeGen.java:
149)
at
com.google.inject.internal.BytecodeGen.getClassLoader(BytecodeGen.java:
132)
at
com.google.inject.internal.BytecodeGen.newFastClass(BytecodeGen.java:
162)
at com.google.inject.DefaultConstructionProxyFactory
$1.(DefaultConstructionProxyFactory.java:54)
at
com.google.inject.DefaultConstructionProxyFactory.create(DefaultConstructionProxyFactory.java:
52)
at com.google.inject.ProxyFactory.create(ProxyFactory.java:152)
at
com.google.inject.ConstructorInjectorStore.createConstructor(ConstructorInjectorStore.java:
84)
at com.google.inject.ConstructorInjectorStore.access
$000(ConstructorInjectorStore.java:31)
at com.google.inject.ConstructorInjectorStore
$1.create(ConstructorInjectorStore.java:39)
at com.google.inject.ConstructorInjectorStore
$1.create(ConstructorInjectorStore.java:35)
at com.google.inject.internal.FailableCache
$1.apply(FailableCache.java:35)
at com.google.inject.internal.MapMaker
$StrategyImpl.compute(MapMaker.java:549)
at com.google.inject.internal.MapMaker
$StrategyImpl.compute(MapMaker.java:419)
at com.google.inject.internal.CustomConcurrentHashMap
$ComputingImpl.get(CustomConcurrentHashMap.java:2041)
at com.google.inject.internal.FailableCache.get(FailableCache.java:
46)
at
com.google.inject.ConstructorInjectorStore.get(ConstructorInjectorStore.java:
52)
at
com.google.inject.ConstructorBindingImpl.initialize(ConstructorBindingImpl.java:
57)
at com.google.inject.InjectorImpl.initializeBinding(InjectorImpl.java:
377)
at com.google.inject.BindingProcessor$1$1.run(BindingProcessor.java:
169)
at
com.google.inject.BindingProcessor.initializeBindings(BindingProcessor.java:
224)
at
com.google.inject.InjectorBuilder.initializeStatically(InjectorBuilder.java:
120)
at com.google.inject.InjectorBuilder.build(InjectorBuilder.java:105)
at com.google.inject.Guice.createInjector(Guice.java:92)
at com.google.inject.Guice.createInjector(Guice.java:69)
at com.google.inject.Guice.createInjector(Guice.java:59)
at
com.netgazelle.server.service.PostalServiceImpl.(PostalServiceImpl.java:
20)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.mortb