openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Persson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OPENJPA-2193) Nullpointer exception when persisting object during high load
Date Wed, 11 Jul 2012 13:44:34 GMT

    [ https://issues.apache.org/jira/browse/OPENJPA-2193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13411499#comment-13411499
] 

Daniel Persson commented on OPENJPA-2193:
-----------------------------------------

<property name="openjpa.ConnectionDriverName" value="com.mysql.jdbc.Driver" />
<property name="openjpa.ConnectionProperties" value="autoReconnect=false,connectTimeout=5,socketTimeout=5"
/>						
<property name="openjpa.jdbc.DBDictionary" value="mysql(SupportsSubselect=true,UseClobs=true)"/>
<property name="openjpa.jdbc.UpdateManager" value="operation-order"/>
<property name="openjpa.DataCache" value="true(CacheSize=1000, SoftReferenceSize=0, EnableStatistics=true)"/>
<property name="openjpa.QueryCache" value="true(CacheSize=200, SoftReferenceSize=0, EvictPolicy='timestamp')"/>
<property name="openjpa.Log" value="File=/tmp/openjpa.log, DefaultLevel=WARN, Runtime=WARN,
Tool=WARN, SQL=WARN"/>
<property name="openjpa.DetachState" value="fetch-groups(DetachedStateField=true)"/>
<property name="openjpa.FetchBatchSize" value="0"/>
<property name="openjpa.InverseManager" value="true"/>
                
> Nullpointer exception when persisting object during high load
> -------------------------------------------------------------
>
>                 Key: OPENJPA-2193
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2193
>             Project: OpenJPA
>          Issue Type: Bug
>            Reporter: Daniel Persson
>            Priority: Minor
>         Attachments: patch-tomcat-pooling-fix.patch
>
>
> During high load and many persists _conn is null during commit.
> Caused by: <openjpa-2.2.0-r422266:1244990 nonfatal general error> org.apache.openjpa.persistence.PersistenceException:
null
>         at org.apache.openjpa.kernel.BrokerImpl.afterCompletion(BrokerImpl.java:2034)
>         at org.apache.openjpa.kernel.LocalManagedRuntime.commit(LocalManagedRuntime.java:94)
>         at org.apache.openjpa.kernel.BrokerImpl.commit(BrokerImpl.java:1514)
>         at org.apache.openjpa.kernel.DelegatingBroker.commit(DelegatingBroker.java:933)
>         at org.apache.openjpa.persistence.EntityManagerImpl.commit(EntityManagerImpl.java:570)
>         ... 29 more
> Caused by: java.lang.NullPointerException
>         at org.apache.openjpa.jdbc.kernel.JDBCStoreManager.commit(JDBCStoreManager.java:196)
>         at org.apache.openjpa.kernel.DelegatingStoreManager.commit(DelegatingStoreManager.java:95)
>         at org.apache.openjpa.datacache.DataCacheStoreManager.commit(DataCacheStoreManager.java:88)
>         at org.apache.openjpa.kernel.DelegatingStoreManager.commit(DelegatingStoreManager.java:95)
>         at org.apache.openjpa.kernel.BrokerImpl.endStoreManagerTransaction(BrokerImpl.java:1471)
>         at org.apache.openjpa.kernel.BrokerImpl.endTransaction(BrokerImpl.java:2351)
>         at org.apache.openjpa.kernel.BrokerImpl.afterCompletion(BrokerImpl.java:2010)
>         ... 33 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message