[appengine-java] UnsupportedDatastoreFeatureException

2009-11-03 Thread IlyaE
I cant wrap my head around this but i'm having an issue with doing a basic query. I have a user class that contains an embeddable class ContactInfo. ContactInfo has email, phone, and address String fields. @PersistenceCapable(identityType=IdentityType.APPLICATION) public class MyUser { @

[appengine-java] Re: UnsupportedDatastoreFeatureException

2009-11-04 Thread IlyaE
If i change my authenticate filter to query.setFilter("ContactInfo.email == emailParam && password == passwordParam"); I now get this error. javax.jdo.JDOUserException: Identifier ContactInfo.email is unresolved (not a static field) On Nov 3, 9:32 pm, "Max Ross (Google)" wrot

[appengine-java] Re: UnsupportedDatastoreFeatureException

2009-11-04 Thread IlyaE
Ok i figured it out now. I was trying to refer to the classname ContactInfo in my filter rather than the object name in my User class contactInfo. The difference in case for the leading 'C' was the culprit. On Nov 4, 10:19 am, IlyaE wrote: > If i change my authentic

[appengine-java] Querying for entities by filtering by key

2009-11-05 Thread IlyaE
I'm having a problem writing a query to get a list of objects by filtering for a another entities key. Object A has many object Bs. Object A @PersistenceCapable(identityType=IdentityType.APPLICATION, detachable = "true") public class A { @PrimaryKey @Persistent(valueStrategy = I

[appengine-java] Session handleing example

2009-11-09 Thread IlyaE
Does anyone have a java session handleing example? It seems that saving objects in the session only works locally. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this gr

[appengine-java] Re: Session handleing example

2009-11-10 Thread IlyaE
> i think there is an issue discussed about this before. > > On Nov 9, 10:58 am, IlyaE wrote: > > > > > Does anyone have a java session handleing example? It seems that > > saving objects in the session only works locally. --~--~-~--~~~---~

[appengine-java] Re: Session handleing example

2009-11-10 Thread IlyaE
spatcher = > request.getRequestDispatcher("/WEB-INF/my.jsp"); > >      dispatcher.forward(request, response); > >    } > > } > > In my.jsp, you can now refer to this variable: > > <%@ page isELIgnored="false" %> > >   ${myVar} > &

[appengine-java] Jetty compiled JSPs

2009-11-12 Thread IlyaE
Where are the compiled JSPs stored on the local filesystem? I don't see them in my workspace files. -- 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 uns

[appengine-java] Re: Session handleing example

2009-11-12 Thread IlyaE
are enabled. Sessions > > are off by default, so you'll have to add this line to your > > appengine-web.xml file: > > >     true > > >http://code.google.com/appengine/docs/java/config/appconfig.html#Enab... > > > On Tue, Nov 10, 2009 at 12:03 PM, Ilya

[appengine-java] Re: Jetty compiled JSPs

2009-11-12 Thread IlyaE
Found it.. C:\Documents and Settings\\Local Settings\Temp \Jetty_0_0_0_0_8080_warut4fm1\jsp\org\apache\jsp On Nov 12, 12:23 pm, IlyaE wrote: > Where are the compiled JSPs stored on the local filesystem? I don't > see them in my workspace files. -- You received this message

[appengine-java] NullPointer on key

2009-11-12 Thread IlyaE
I'm seeing an odd issue when loading my jsps for the first time (after deployment). I have an Account object that has many Projects [Account] @Persistent(mappedBy = "account") private List projects; and on the otherside [Project] @Persistent private Key account;

[appengine-java] Re: Session handleing example

2009-11-12 Thread IlyaE
estigating the issues > regarding objects in session scope when deployed. > > > > > > On Thu, Nov 12, 2009 at 10:39 AM, IlyaE wrote: > > Steph, > > > I have modified my code to make use of > >                RequestDispatcher dispatcher = > > req.getRequ

[appengine-java] Re: NullPointer on key

2009-11-13 Thread IlyaE
t.  This > is most likely related to FetchGroups.  You probably want to put your > Project.account field in the default fetch group.  That way it will always > be available when you close the persistence manager you used to load the > Project. > > > > On Thu, Nov 12, 2009 at

[appengine-java] Re: NullPointer on key

2009-11-13 Thread IlyaE
but I'd recommend reading > > http://www.datanucleus.org/products/accessplatform_1_1/jdo/fetchgroup... > > If after reading this you're still not able to get your code working, please > post your model objects and your code and I can take a look. > > Max > > > >

[appengine-java] Re: NullPointer on key

2009-11-13 Thread IlyaE
I'm not detaching the object. Should i be? Do i still need modified fetching code if i use detached objects? On Nov 13, 4:23 pm, "Max Ross (Google)" wrote: > Can you please post the code where you're actually detaching the Project > object? > > > > On Fri,

[appengine-java] Re: NullPointer on key

2009-11-13 Thread IlyaE
" wrote: > You should probably read this as > well:http://www.datanucleus.org/products/accessplatform_1_1/jdo/attach_det... > > > > On Fri, Nov 13, 2009 at 1:31 PM, IlyaE wrote: > > I'm not detaching the object. Should i be? Do i still need modified > > fetchin

[appengine-java] Re: NullPointer on key

2009-11-18 Thread IlyaE
Running into another issue. So i'm detaching my object and passing it along in a session. I'm now getting this error WARNING: javax.jdo.JDODetachedFieldAccessException: You have just attempted to access field "contactInfo" yet this field was not detached when you detached the object. Either dont a

[appengine-java] Re: Session handleing example

2009-11-25 Thread IlyaE
t; > response) throws ServletException, IOException { > >      String myVar = "this is a string that will be passed to the JSP"; > >      request.setAttribute("myVar", myVar); > >      RequestDispatcher dispatcher = > > request.getRequestDispatcher("/W

[appengine-java] import deployed project into eclipse

2009-11-28 Thread IlyaE
Is there a way to import the source code into eclipse of a previously deployed project from the app engine cloud? I want to work on the site but from another pc that does not share the workspace. -- You received this message because you are subscribed to the Google Groups "Google App Engine for

[appengine-java] Re: import deployed project into eclipse

2009-12-01 Thread IlyaE
Is it possible to get a google rep to answer this? When the i deploy, does it upload the source code to the engine as well? It would be great to retrieve it in case a project gets erased locally. On Nov 28, 3:19 pm, IlyaE wrote: > Is there a way to import the source code into eclipse o

[appengine-java] Datastore and lists

2011-05-18 Thread IlyaE
I'm having some architectural problems. On the net i read that saving and retrieving datastore entities are much faster than JDO objects so i've decided to go that route. Do I need to create model object if i'm doing a datastore? I haven't found a reason yet but i'm curious if i do. How do i c

[appengine-java] Sending Mail sends duplicate to admin account

2011-06-14 Thread IlyaE
I have code that sends out email, but it also sends the "From" email a copy. Can i shut this off? Here is the code. Message msg = new MimeMessage(session); msg.setFrom(new InternetAddress("myem...@gmail.com", "Get That Gift Robot")); msg.setSubject("Subject"); msg.setContent(body.toString(), "te

[appengine-java] Why are java_lang_Object Entities are being created?

2011-09-19 Thread IlyaE
I look at the Database Viewer and besides the models and _ah_SESSION i see there is a java_lang_Object entity that only has a ID/Name attribute. What is this and why are they being created? -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java"