[hibernate-issues] [JIRA] (HHH-14128) NullPointerException when building sessionFactory

Nathan Xu (JIRA) jira at hibernate.atlassian.net
Thu Jul 30 19:54:02 EDT 2020


Nathan Xu ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3Af1c90216-c2ff-4df7-8e20-9d0e140d7f64 ) *commented* on HHH-14128 ( https://hibernate.atlassian.net/browse/HHH-14128?atlOrigin=eyJpIjoiYzQzZTZmYWJiNWFkNGE0MGI1MWMxZjE2YmQwZDczMzAiLCJwIjoiaiJ9 )

Re: NullPointerException when building sessionFactory ( https://hibernate.atlassian.net/browse/HHH-14128?atlOrigin=eyJpIjoiYzQzZTZmYWJiNWFkNGE0MGI1MWMxZjE2YmQwZDczMzAiLCJwIjoiaiJ9 )

You can set a breakpoint at AbstractLoadPlanBuildingAssociationVisitationStrategy Line #669 to narrow down the entity and the field. Maybe the one-to-many collection involve some class which is not specified as entity. Definitively a coding imperfection for the javadoc of {{org.hibernate.loader.plan.spi.FetchSource#resolveEntityReference()}}has said null value could be returned.

Your persistence.xml seems not very helpful to narrow down the root cause, though, at least for someone who is not using JBoss product.

( https://hibernate.atlassian.net/browse/HHH-14128#add-comment?atlOrigin=eyJpIjoiYzQzZTZmYWJiNWFkNGE0MGI1MWMxZjE2YmQwZDczMzAiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-14128#add-comment?atlOrigin=eyJpIjoiYzQzZTZmYWJiNWFkNGE0MGI1MWMxZjE2YmQwZDczMzAiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100140- sha1:5beb332 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200730/ebacd7c9/attachment.html 


More information about the hibernate-issues mailing list