[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-3207) NullPointerException during session.createSQLQuery() in multi thread enviornment

Chris Bredesen (JIRA) noreply at atlassian.com
Fri Mar 28 14:29:33 EDT 2008


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Bredesen resolved HHH-3207.
---------------------------------

    Resolution: Rejected

Use the forums for support and note that Session is NOT thread safe.

> NullPointerException during session.createSQLQuery() in multi thread enviornment
> --------------------------------------------------------------------------------
>
>                 Key: HHH-3207
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3207
>             Project: Hibernate3
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.2.5
>         Environment: oracle9i,hibernate3.2.5
>            Reporter: manoj
>            Priority: Blocker
>
> when we are using session.createSQLQuery() in multi thread environment. We are getting NullPointerException. Please see the below stack trace.
> 11:29:31.976  ERROR  invoke  ApplicationDispatcher.java  704  Servlet.service() for servlet jsp threw exception
> java.lang.NullPointerException
>         at org.apache.commons.collections.SequencedHashMap.removeEntry(SequencedHashMap.java:253)
>         at org.apache.commons.collections.SequencedHashMap.removeImpl(SequencedHashMap.java:511)
>         at org.apache.commons.collections.SequencedHashMap.remove(SequencedHashMap.java:498)
>         at org.apache.commons.collections.LRUMap.get(LRUMap.java:131)
>         at org.hibernate.util.SimpleMRUCache.get(SimpleMRUCache.java:36)
>         at org.hibernate.engine.query.QueryPlanCache.getSQLParameterMetadata(QueryPlanCache.java:49)
>         at org.hibernate.impl.AbstractSessionImpl.createSQLQuery(AbstractSessionImpl.java:124)
>         at org.hibernate.impl.SessionImpl.createSQLQuery(SessionImpl.java:1608)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list