[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2624) NullPointerException when Query.list()

Dariusz Kaczynski (JIRA) noreply at atlassian.com
Fri Jan 8 05:56:30 EST 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=35150#action_35150 ] 

Dariusz Kaczynski commented on HHH-2624:
----------------------------------------

I also have this error with version 3.3.2 GA.

I've found a workaround (last post): https://forums.hibernate.org/viewtopic.php?f=1&t=969331


> NullPointerException when Query.list()
> --------------------------------------
>
>                 Key: HHH-2624
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2624
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: core
>         Environment: MySQL database
>            Reporter: Eddie Man
>            Priority: Critical
>         Attachments: src.zip
>
>
> The following exception was thrown when I calling Query.list():
> Exception in thread "main" java.lang.NullPointerException
> 	at org.hibernate.persister.entity.AbstractEntityPersister.loadByUniqueKey(AbstractEntityPersister.java:1641)
> 	at org.hibernate.type.EntityType.loadByUniqueKey(EntityType.java:608)
> 	at org.hibernate.type.EntityType.resolve(EntityType.java:382)
> 	at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:116)
> 	at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:842)
> 	at org.hibernate.loader.Loader.doQuery(Loader.java:717)
> 	at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
> 	at org.hibernate.loader.Loader.doList(Loader.java:2211)
> 	at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2095)
> 	at org.hibernate.loader.Loader.list(Loader.java:2090)
> Reference issue :
> http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-48
> Steps for reproduce the problem
> ==================
> 1. Unzip the attached file.
> 2. Execute the "schema.ddl" to create the tables.
> 3. Execute the "data.ddl" to insert the simple records.
> 4. Compile the src, and run the Main class.

-- 
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