Hi..i have two fields namely login id(n...@email.com) & password. The user on entering them will check if the user exist or not.the code is given below: //code---------------------------------------- public List<UserDetails> userLoginCheck(String login_Id,String userPassword){
PersistenceManager pm = PMF.get().getPersistenceManager(); //System.out.println("PersistenceManager object created in userLoginCheck()"); Query query = pm.newQuery(UserDetails.class); //System.out.println("login_Id = "+login_Id+" userPassword = "+userPassword); query.setFilter("login_Id == susheel.ku...@ap.sony.com && userPassword == "+userPassword); try{ //System.out.println("inside try block"); List<UserDetails> userDetails = (List<UserDetails>) query.execute(); if (!userDetails.isEmpty()) { for (UserDetails user_detail_obj : userDetails){ System.out.println("inside for loop login_Id = "+user_detail_obj.getLoginId()); } } return userDetails; }catch(Exception e){ System.out.println("Exception at userLoginCheck() = "+e); }finally{ query.closeAll(); } return null; } But when i execute the above code I get the following error Exception at userLoginCheck() = javax.jdo.JDOUserException: Portion of expression could not be parsed: @email.com && userPassword == sample NestedThrowables: org.datanucleus.store.query.QueryCompilerSyntaxException: Portion of expression could not be parsed: @email.com && userPassword == sample This error happens only if email id is used as filter. When I use any other fields within datastore it doesnt cause any error. Please can anyone help me out in 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-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.