Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
319 views
in Technique[技术] by (71.8m points)

datanucleus - After upgrading to DataNucleus5.2.3 version from 2.5.3, connection is getting closed after every transaction as compared to 2.5.3 version

Below exception is coming:

org.datanucleus.exceptions.NucleusUserException: datanucleus.query.resultSizeMethod of "COUNT" is only valid for use with JDOQL or JPQL currently

I found the reason of exception as query is coming null, and query is set to null as in the earlier transaction connection is disconnected. I want my connection to be retained till 2nd transaction so that query remains and after that i want my transaction to be closed. Please guide, if i have to set some property explicitly or make some changes in the DataNucleus code.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...