[JBoss JIRA] Commented: (JBAS-3110) Workaround to avoid OutOfMemoryErrors during jboss boot, under Sun 64-bit linux jdk
by Frank Grimes (JIRA)
[ http://jira.jboss.com/jira/browse/JBAS-3110?page=comments#action_12341305 ]
Frank Grimes commented on JBAS-3110:
------------------------------------
FYI, according to the release notes, this has been fixed in jdk1.5.0_08.
http://java.sun.com/j2se/1.5.0/ReleaseNotes.html
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6373059 "OutOfMemoryError on ZipFile.open"
> Workaround to avoid OutOfMemoryErrors during jboss boot, under Sun 64-bit linux jdk
> -----------------------------------------------------------------------------------
>
> Key: JBAS-3110
> URL: http://jira.jboss.com/jira/browse/JBAS-3110
> Project: JBoss Application Server
> Issue Type: Sub-task
> Security Level: Public(Everyone can see)
> Components: System service
> Affects Versions: JBossAS-4.0.2 Final, JBossAS-4.0.3 SP1
> Reporter: Dimitris Andreadis
> Assigned To: Dimitris Andreadis
> Fix For: JBossAS-4.0.4.GA, JBossAS-5.0.0.Beta
>
> Time Spent: 30 minutes
> Remaining Estimate: 0 minutes
>
> This is just a work-around for avoiding OutOfMemoryErrors during jboss boot, when running under Sun 64-bit linux jdk. It doesn't guarantee the OOME will not happen, but this is better than nothing, until Sun fixes the broken jdk.
> The fix has been tested in HEAD for 3 months without any problems reported so we apply it to the 4.0.x branch, too.
> For more info, read the linked forum post.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 11 months
[JBoss JIRA] Commented: (EJBTHREE-597) javax.persistence.SequenceGenerator mapped to "seqhilo" and not "sequence" by org.hibernate.cfg.AnnotationBinder
by Ortwin Glück (JIRA)
[ http://jira.jboss.com/jira/browse/EJBTHREE-597?page=comments#action_12341304 ]
Ortwin Glück commented on EJBTHREE-597:
---------------------------------------
We just migrated from RC3 to RC8 and this issue is byting our arses. It's a really stupid behaviour that should at least have a big WARNING in the migration docs!!!
> javax.persistence.SequenceGenerator mapped to "seqhilo" and not "sequence" by org.hibernate.cfg.AnnotationBinder
> ----------------------------------------------------------------------------------------------------------------
>
> Key: EJBTHREE-597
> URL: http://jira.jboss.com/jira/browse/EJBTHREE-597
> Project: EJB 3.0
> Issue Type: Bug
> Affects Versions: EJB 3.0 RC7 - FD
> Environment: JBoss 4.0.4.GA (using EJB3 packaged in that version of JBoss), Windows XP SP1, Java 1.5.04, Oracle 9
> Reporter: David Richmond
>
> @javax.persistence.SequenceGenerator(name = "Question_id_sequence", sequenceName = "S_QUESTION")
> is mapped to a "seqhilo" generator by org.hibernate.cfg.AnnotationBinder (line 332) which causes strange ids to be generated. These ids appear to have no relation to the actual sequence state, even though "select S_QUESTION.nextVal from dual" is generated by Hibernate through JDBC. The ids start at 50 for an intial deployment, 150 after a redeployment, then 250 for the following deployment, etc, etc.
> If stored procedures are used which use the S_QUESTION sequence to insert rows into the same table then a conflict will happen sometime in the future, since Hibernate does not use the value from the sequence.
> If I replace the above @javax.persistence.SequenceGenerator definition with:
> @org.hibernate.annotations.GenericGenerator(name="Question_id_sequence", strategy = "sequence",
> parameters = { @Parameter(name="sequence", value="S_QUESTION") } )
> the actual S_QUESTION.nextVal value is used correctly by Hibernate.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
19 years, 11 months