Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 962418

Summary: Backport of HHH-6813 to EAP 6.0.1
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Adam Kovari <akovari>
Component: HibernateAssignee: Martin Simka <msimka>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Simka <msimka>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.1CC: bmaxwell, cobrien, jawilson, nobody
Target Milestone: ---   
Target Release: One-off release   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
PATCH NAME: bz-962418 PRODUCT NAME: JBoss EAP VERSION: 6.0.1 SHORT DESCRIPTION: EAP 6.0.1 - Backport of HHH-6813 - @Id @OneToOne cause NullPointerException during query LONG DESCRIPTION: EAP 6.0.1 Backport of HHH-6813 to EAP 6.0.1 @Id @OneToOne cause NullPointerException during query https://hibernate.atlassian.net/browse/HHH-6813 MANUAL INSTALL INSTRUCTIONS: Backup and remove the following files: $JBOSS_HOME/modules/org/hibernate/main/hibernate-core-4.1.6.Final-redhat-3.jar $JBOSS_HOME/modules/org/hibernate/main/module.xml Extract the patched files by either: Using unzip: unzip -d $JBOSS_HOME/ bz-962418.zip Or by extracting the files from the zip to the following locations: $JBOSS_HOME/modules/org/hibernate/main/hibernate-core-4.1.6.Final-redhat-3-bz-962418.jar $JBOSS_HOME/modules/org/hibernate/main/module.xml Instructions to uninstall: Restore the following files that were backed up before the patch was installed: $JBOSS_HOME/modules/org/hibernate/main/hibernate-core-4.1.6.Final-redhat-3.jar $JBOSS_HOME/modules/org/hibernate/main/module.xml COMPATIBILITY: None DEPENDENCIES: JBoss EAP 6.0.1 SUPERSEDES: None SUPERSEDED BY: JBoss EAP 6.2.0 CREATOR: Brett Meyer DATE: 13th May 2013
Story Points: ---
Clone Of:
: 962421 (view as bug list) Environment:
Last Closed: 2013-06-17 17:35:05 UTC Type: Support Patch
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 962421    
Attachments:
Description Flags
patched hibernate module
none
patched hibernate module
none
patched hibernate module
none
bz-962418.zip none

Description Adam Kovari 2013-05-13 12:25:19 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Brett Meyer 2013-05-13 21:01:27 UTC
PATCH NAME:
        BZ-962418
PRODUCT NAME:
        JBoss Enterprise Application Server
VERSION:
        6.0.1
SHORT DESCRIPTION:
        EAP 6.0.1  Backport of HHH-6813 to EAP 6.0.1
        
LONG DESCRIPTION:
        EAP 6.0.1  Backport of HHH-6813 to EAP 6.0.1

        @Id @OneToOne cause NullPointerException during query
        https://hibernate.atlassian.net/browse/HHH-6813

MANUAL INSTALL INSTRUCTIONS:
        
         Backup and remove the following files:
            
            $JBOSS_HOME/modules/org/hibernate/main/hibernate-core-4.1.6.Final.jar
            $JBOSS_HOME/modules/org/hibernate/main/module.xml
                   
        Extract the patched files by either:
        
        Using unzip:
            unzip -d $JBOSS_HOME/ BZ-962418.zip
            
        Or by extracting the files from the zip to the following locations:
         
            $JBOSS_HOME/modules/org/hibernate/main/hibernate-core_BZ-962418_4.1.6.Final.jar
            $JBOSS_HOME/modules/org/hibernate/main/module.xml

COMPATIBILITY:
        None
DEPENDENCIES:
        JBoss EAP 6.0.1
SUPERSEDES:
        None
SUPERSEDED BY:
        JBoss EAP 6.1.0
CREATOR:
        Brett Meyer
DATE:
        13th May 2013

Comment 2 Brett Meyer 2013-05-13 21:02:05 UTC
Created attachment 747444 [details]
patched hibernate module

Comment 3 Adam Kovari 2013-05-14 09:17:00 UTC
Hey Brett,

the module.xml needs to have:
 29         <resource-root path="hibernate-entitymanager-4.1.6.Final-redhat-3.jar"/>
 30         <resource-root path="hibernate-infinispan-4.1.6.Final-redhat-3.jar"/>

Otherwise, it works for me.

Comment 4 Brett Meyer 2013-05-15 03:44:44 UTC
Reopening – found an additional issue causing a stackoverflow

Comment 5 Brett Meyer 2013-05-17 16:30:42 UTC
Created attachment 749415 [details]
patched hibernate module

Comment 6 Brett Meyer 2013-05-17 16:31:17 UTC
Corrected -- ready for QA

Comment 7 Brett Meyer 2013-05-20 15:48:39 UTC
Created attachment 750637 [details]
patched hibernate module

Comment 8 Brad Maxwell 2013-06-07 22:31:18 UTC
Created attachment 758350 [details]
bz-962418.zip

Comment 9 Martin Simka 2013-06-11 08:35:55 UTC
EAP test suite is without regression
Hibernate test suite is without regression
Issue was verified using reproducer supplied by customer

QA passed

MD5 sum for the tested file:
4663c95b0a5290c75fb8877c87c7b9a2  hibernate-core-4.1.6.Final-redhat-3-bz-962418.jar
213e76c300d18dcbbc51b4428225b1bc  module.xml

Comment 10 Adam Kovari 2013-06-14 08:56:51 UTC
The instructions have an error:

SUPERSEDED BY:
        JBoss EAP 6.1.0

is not true, EAP 6.1.0 still contains the bug and the plan is to have this fixed in 6.2.0.

Comment 11 Martin Simka 2013-06-14 09:07:00 UTC
thanks Adam, my fault, I didn't notice