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

Bug 974474

Summary: Support patch of HHH-6813 to EAP 6.1.0
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Adam Kovari <akovari>
Component: HibernateAssignee: Brett Meyer <brmeyer>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Simka <msimka>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: bmaxwell, brmeyer, cobrien, jawilson, msimka, nobody, rsvoboda, theute
Target Milestone: ---   
Target Release: One-off release   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
PATCH NAME: bz-974474 PRODUCT NAME: JBoss Enterprise Application Platform VERSION: 6.1.0 SHORT DESCRIPTION: 6.1.0 Support Patch for HHH-6813 LONG DESCRIPTION: 6.1.0 Support Patch for HHH-6813 @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/system/layers/base/org/hibernate/main/hibernate-core-4.2.0.Final-redhat-1.jar $JBOSS_HOME/modules/system/layers/base/org/hibernate/main/module.xml Extract the patched files by either: Using unzip: unzip -d $JBOSS_HOME/ bz-974474 Or by extracting the files from the zip to the following locations: $JBOSS_HOME/modules/system/layers/base/org/hibernate/main/hibernate-core-4.2.0.Final-redhat-1-bz-974474.jar $JBOSS_HOME/modules/system/layers/base/org/hibernate/main/module.xml Instructions to uninstall: Restore the following files that were backed up before the patch was installed: $JBOSS_HOME/modules/system/layers/base/org/hibernate/main/hibernate-core-4.2.0.Final-redhat-1.jar $JBOSS_HOME/modules/system/layers/base/org/hibernate/main/module.xml COMPATIBILITY: None DEPENDENCIES: JBoss Enterprise Application Platform 6.1.0 SUPERSEDES: None SUPERSEDED BY: JBoss EAP 6.2.0 CREATOR: Brett Meyer DATE: 14 June 2013
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-25 20:03:38 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: 990362    
Attachments:
Description Flags
patched hibernate module
none
Patched module file + README
none
patched hibernate module
none
BZ974474.zip
none
bz-974474.zip none

Description Adam Kovari 2013-06-14 08:59:51 UTC

Comment 1 Brett Meyer 2013-06-14 19:29:24 UTC
https://hibernate.atlassian.net/browse/HHH-6813

Comment 2 Brett Meyer 2013-06-14 19:44:29 UTC
Created attachment 761421 [details]
patched hibernate module

Comment 4 Martin Simka 2013-07-08 07:50:32 UTC
According last change in one-off patches procedure attached ZIP must include README file with patching instructions. Could you please add README to zip.

Comment 5 Adam Kovari 2013-07-08 08:19:37 UTC
Created attachment 770333 [details]
Patched module file + README

Updated the file with README file

Comment 6 Martin Simka 2013-07-08 14:04:57 UTC
Patching instructons:
correct path to files is 

$JBOSS_HOME/modules/system/layers/base/org/hibernate/main/hibernate-core-4.2.0.Final-redhat-1.jar
$JBOSS_HOME/modules/system/layers/base/org/hibernate/main/module.xml

$JBOSS_HOME/modules/system/layers/base/org/hibernate/main/hibernate-core_BZ-974474_4.2.0.Final.jar
$JBOSS_HOME/modules/system/layers/base/org/hibernate/main/module.xml

please update directory structure inside zip

Patch:
I'm not able to deploy test application to patched eap. I'm getting:
NoClassDefFoundError: org/hibernate/internal/util/ClassLoaderHelper

this class isn't present in jar

jar seems incomplete
msimka@msimka-t520:/tmp$ jar tf hibernate-core-4.2.0.Final-redhat-1.jar | wc -l
3182
msimka@msimka-t520:/tmp$ jar tf hibernate-core_BZ-974474_4.2.0.Final.jar | wc -l
3072

Comment 7 Brett Meyer 2013-07-08 14:55:31 UTC
Created attachment 770536 [details]
patched hibernate module

Rebuilt the patched module with requested changes.  Confirmed ClassLoaderHelper is in the jar -- not sure what happened with the previous build.

Comment 8 Brad Maxwell 2013-07-08 22:55:02 UTC
Created attachment 770700 [details]
BZ974474.zip

BZ974474.zip includes README.txt & bz-974474.zip

Comment 9 Brad Maxwell 2013-07-08 22:56:22 UTC
Created attachment 770701 [details]
bz-974474.zip

Comment 10 Martin Simka 2013-07-10 10:50:32 UTC
@Brad, @Brett could you please change status to ON_QA if there won't be no changes anymore, thanks

Comment 11 Martin Simka 2013-07-12 06:27:56 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:
c5ef17c734e180dabea2aa2db0ed12ee  hibernate-core-4.2.0.Final-redhat-1-bz-974474.jar
0e9cdb5b02b184fd1c063317031a6d12  module.xml