okwasi / datanucleus-appengine

Automatically exported from code.google.com/p/datanucleus-appengine
0 stars 0 forks source link

Strange error occurs some times #289

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Issue is not happening always
2.when we use exception.getMessage(): It is coming as :Index: 31,Size:31
3.We are getting similar errors like Index:67,Size:67 etc...

What is the expected output? What do you see instead?
would be better if it shows the exact error that is occurred

What version of the product are you using? On what operating system?
appengine-java-sdk-1.5.3 & jdo2-api-2.3-eb.jar

Please provide any additional information below.

Original issue reported on code.google.com by ashok....@gmail.com on 12 Jul 2012 at 10:24

GoogleCodeExporter commented 9 years ago
You mean you're using an old version of the plugin (use the latest, as always), 
you don't define how the problem is reproduceable, and you don't show the 
complete exception+stacktrace.

Original comment by googleco...@yahoo.co.uk on 12 Jul 2012 at 10:56

GoogleCodeExporter commented 9 years ago
should we upgrade to latest Java SDK 1.7?
Please check the attached doc..
And the code .. 

transaction.begin();
user = pm.makePersistent(user);
transaction.commit();
MemcacheUtil.put(user.getKey(), user);
logger.log(Level.INFO, "Saved user - " + user);

}
catch (Exception err)
{
    logger.log(
            Level.SEVERE,
            "Error occured while saving user .Reason : "
                    + err.getMessage());
}
finally
{
    if (transaction.isActive())
{
    transaction.rollback();
    pm.close();
    String[] params =
    {
        "AppUser"
};
throw new CCException("ERR_ENTITY_SAVE_FAILED",
                CCException.SEVER_ERROR, params);
    }
    pm.close();
}

Original comment by ashok....@gmail.com on 12 Jul 2012 at 11:31