You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(32) |
Jun
(175) |
Jul
(209) |
Aug
(302) |
Sep
(287) |
Oct
(339) |
Nov
(314) |
Dec
(329) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(479) |
Feb
(389) |
Mar
(599) |
Apr
(307) |
May
(390) |
Jun
(300) |
Jul
(410) |
Aug
(458) |
Sep
(299) |
Oct
(315) |
Nov
(363) |
Dec
(529) |
| 2005 |
Jan
(568) |
Feb
(434) |
Mar
(1004) |
Apr
(823) |
May
(767) |
Jun
(763) |
Jul
(854) |
Aug
(862) |
Sep
(560) |
Oct
(853) |
Nov
(763) |
Dec
(731) |
| 2006 |
Jan
(776) |
Feb
(608) |
Mar
(657) |
Apr
(424) |
May
(559) |
Jun
(440) |
Jul
(448) |
Aug
(58) |
Sep
|
Oct
(17) |
Nov
(16) |
Dec
(8) |
| 2007 |
Jan
(1) |
Feb
(8) |
Mar
(2) |
Apr
(5) |
May
(3) |
Jun
(3) |
Jul
(3) |
Aug
(16) |
Sep
(10) |
Oct
(4) |
Nov
(4) |
Dec
(4) |
| 2008 |
Jan
(8) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
| 2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
|
From: <leg...@at...> - 2003-08-16 01:03:07
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-265 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-265 Summary: MySQL dialect uses DATETIME for timestamp should be TIMESTAMP Type: Bug Status: Unassigned Priority: Minor Project: Hibernate2 Components: core Versions: 2.0rc2 Assignee: Reporter: Robert Blumen Created: Fri, 15 Aug 2003 7:57 PM Updated: Fri, 15 Aug 2003 7:57 PM Description: In the hbm.xml, the <timestamp> element generates a SQL column of type DATETIME. See MySQLDialect:30 register( Types.TIMESTAMP, "DATETIME" ); MySQL supports a "timestamp" data type, which can be given a value "null" on insert and will automatically be set to the insert time. --------------------------------------------------------------------- JIRA INFORMATION: 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 If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
|
From: <leg...@at...> - 2003-08-15 18:05:04
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-264 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-264 Summary: java.sql.Connection.commit() in auto-commit mode Type: Patch Status: Unassigned Priority: Major Project: Hibernate2 Components: toolset Versions: 2.1 Assignee: Reporter: Avoka Created: Fri, 15 Aug 2003 1:02 PM Updated: Fri, 15 Aug 2003 1:02 PM Description: Index: SchemaExport.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/tool/hbm2ddl/Schema Export.java,v retrieving revision 1.11 diff -r1.11 SchemaExport.java 111c111,112 < connection.commit(); --- > if(!connection.getAutoCommit()) > connection.commit(); --------------------------------------------------------------------- JIRA INFORMATION: 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 If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
|
From: <leg...@at...> - 2003-08-15 15:48:14
|
The following issue has been updated:
Updater: Brian Koehler (mailto:brk...@ya...)
Date: Fri, 15 Aug 2003 10:41 AM
Comment:
Unified diff output patch, I've not done this before so let me know if the formatting needs to be changed.
Changes:
Attachment changed to patch.txt
---------------------------------------------------------------------
For a full history of the issue, see:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-263&page=history
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-263
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-263
Summary: Order by restriction in DB2/400 for OS/400 prior to V5R2
Type: Patch
Status: Unassigned
Priority: Major
Project: Hibernate2
Components:
core
Assignee:
Reporter: Brian Koehler
Created: Fri, 15 Aug 2003 10:14 AM
Updated: Fri, 15 Aug 2003 10:41 AM
Environment: This patch should fix Hibernate2 for anyone attempting to use HQL to access tables on an AS/400 using V5R1 or earlier.
Description:
The primary issue is that the column name specified in the order by clause must exist in the select clause. Since Hibernate generates aliases on all selected columns, order by's never work. The patch code modifies QuerySelect to replace column selections in the order by clause with the aliases defined in the select clause. The modified QuerySelect code is only triggered if a new method defined in the Dialect class called useAliasesInOrderBy returns true. By default the Dialect method returns false, and a new subclass of the DB2Dialect called AS400DB2Dialect returns true.
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|
|
From: <leg...@at...> - 2003-08-15 15:28:27
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-263 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-263 Summary: Order by restriction in DB2/400 for OS/400 prior to V5R2 Type: Patch Status: Unassigned Priority: Major Project: Hibernate2 Components: core Assignee: Reporter: Brian Koehler Created: Fri, 15 Aug 2003 10:14 AM Updated: Fri, 15 Aug 2003 10:14 AM Environment: This patch should fix Hibernate2 for anyone attempting to use HQL to access tables on an AS/400 using V5R1 or earlier. Description: The primary issue is that the column name specified in the order by clause must exist in the select clause. Since Hibernate generates aliases on all selected columns, order by's never work. The patch code modifies QuerySelect to replace column selections in the order by clause with the aliases defined in the select clause. The modified QuerySelect code is only triggered if a new method defined in the Dialect class called useAliasesInOrderBy returns true. By default the Dialect method returns false, and a new subclass of the DB2Dialect called AS400DB2Dialect returns true. --------------------------------------------------------------------- JIRA INFORMATION: 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 If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
|
From: <leg...@at...> - 2003-08-15 14:05:36
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-262 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-262 Summary: NullPointerException while loading 2.0.2 working mapping Type: Bug Status: Unassigned Priority: Minor Project: Hibernate2 Components: core Fix Fors: 2.1 beta 2 Versions: 2.1 beta 1 Assignee: Reporter: Christian Bauer Created: Fri, 15 Aug 2003 8:21 AM Updated: Fri, 15 Aug 2003 8:21 AM Environment: Linux JDK 1.4.2 Description: java.lang.NullPointerException at net.sf.hibernate.persister.NormalizedEntityPersister.getIdentifierColumnNames(NormalizedEntityPersister.java:1075) at net.sf.hibernate.persister.AbstractEntityPersister.(AbstractEntityPersister.java:699) at net.sf.hibernate.persister.NormalizedEntityPersister.(NormalizedEntityPersister.java:646) at net.sf.hibernate.persister.PersisterFactory.create(PersisterFactory.java:32) at net.sf.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:137) at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:647) This mapping works with 2.0.2, I tried 2.1 beta 1 as a drop-in replacement for our medium sized project: <class name="test.Connection" table="connections"> <id name="OID" type="string"> <column name="connection_id" sql-type="char(32)"/> <generator class="uuid.hex"/> </id> <version name="version"/> <joined-subclass name="test.Internet" table="internet"> <key> <column name="connection_id" sql-type="char(32)"/> </key> </joined-subclass> </class> The error ocours with the joined subclass mapping. --------------------------------------------------------------------- JIRA INFORMATION: 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 If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
|
From: <leg...@at...> - 2003-08-15 10:11:58
|
The following comment has been added to this issue:
Author: Florian H=C3=BCbner
Created: Fri, 15 Aug 2003 4:54 AM
Body:
Hmmm, forgot to tell you that I now tested whith all types and it works fin=
e, so maybe this is all u got to path...=20
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?=
key=3DHB-261
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-261
Summary: Problems with the increment-generator using int or short as id=
entifier
Type: Bug
Status: Unassigned
Priority: Major
Project: Hibernate2
Versions:
2.0.2
Assignee:=20
Reporter: Florian H=C3=BCbner
Created: Fri, 15 Aug 2003 4:50 AM
Updated: Fri, 15 Aug 2003 4:50 AM
Environment: Java: 1.4.1_01, Oracle9
Description:
As I use integer-type primary keys in the db I wanted to use the increment-=
generator to keep them unique.
While trying to dump a test-object to the db, I got the following error:
15.08.2003 11:32:26 net.sf.hibernate.util.ReflectHelper$Setter set
SCHWERWIEGEND: IllegalArgumentException in class: de.fzi.dbs.cwb.Customer, =
setter method of property: cid
15.08.2003 11:32:26 net.sf.hibernate.util.ReflectHelper$Setter set
SCHWERWIEGEND: expected type: int, actual value: java.lang.Long
net.sf.hibernate.PropertyAccessException: IllegalArgumentException occurred=
while calling: argument type mismatch setter of de.fzi.dbs.cwb.Customer.ci=
d
java.lang.IllegalArgumentException: argument type mismatch
=09at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
=09at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.=
java:39)
=09at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces=
sorImpl.java:25)
=09at java.lang.reflect.Method.invoke(Method.java:324)
=09at net.sf.hibernate.util.ReflectHelper$Setter.set(ReflectHelper.java:45)
=09at net.sf.hibernate.persister.AbstractEntityPersister.setIdentifier(Abst=
ractEntityPersister.java:251)
=09at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:674)
=09at net.sf.hibernate.impl.SessionImpl.save(SessionImpl.java:605)
=09(...)
rethrown as net.sf.hibernate.PropertyAccessException: IllegalArgumentExcept=
ion occurred while calling: argument type mismatch setter of de.fzi.dbs.cwb=
.Customer.cid
=09at net.sf.hibernate.util.ReflectHelper$Setter.set(ReflectHelper.java:71)
=09at net.sf.hibernate.persister.AbstractEntityPersister.setIdentifier(Abst=
ractEntityPersister.java:251)
=09at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:674)
=09at net.sf.hibernate.impl.SessionImpl.save(SessionImpl.java:605)
=09at de.fzi.dbs.cwb.test.test.main(test.java:56)
Caused by: java.lang.IllegalArgumentException: argument type mismatch
=09at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
=09at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.=
java:39)
=09at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces=
sorImpl.java:25)
=09at java.lang.reflect.Method.invoke(Method.java:324)
=09at net.sf.hibernate.util.ReflectHelper$Setter.set(ReflectHelper.java:45)
=09... 4 more
While debugging, I figured out, that the class' generator method returns "n=
ew Long(next++)" in any case - which causes the type-mismatch while trying =
to set the cid (customer id in my example).=20
My solution to this is adding the following to generate-method in=20
net.sf.hibernate.id.IncrementGenerator:
=09public synchronized Serializable generate(SessionImplementor session, Ob=
ject object)
=09=09throws SQLException, HibernateException {
=09=09=09
=09=09if (sql!=3Dnull) {
=09=09=09getNext( session.connection() );
=09=09}
// added code:
// determine the return type via SessionImplementor
=09=09Type identifierType =3D session.getPersister(object).getIdentifierTyp=
e();
=09=09if (identifierType instanceof net.sf.hibernate.type.IntegerType) {
=09=09=09return new Integer((int)next++);
=09=09} else if (identifierType instanceof net.sf.hibernate.type.ShortType)=
{
=09=09=09return new Short((short)next++);
=09=09} else {
=09=09=09return new Long(next++);
=09=09}
=09=09
=09}
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|
|
From: <leg...@at...> - 2003-08-15 10:09:40
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?= key=3DHB-261 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-261 Summary: Problems with the increment-generator using int or short as id= entifier Type: Bug Status: Unassigned Priority: Major Project: Hibernate2 Versions: 2.0.2 Assignee:=20 Reporter: Florian H=C3=BCbner Created: Fri, 15 Aug 2003 4:50 AM Updated: Fri, 15 Aug 2003 4:50 AM Environment: Java: 1.4.1_01, Oracle9 Description: As I use integer-type primary keys in the db I wanted to use the increment-= generator to keep them unique. While trying to dump a test-object to the db, I got the following error: 15.08.2003 11:32:26 net.sf.hibernate.util.ReflectHelper$Setter set SCHWERWIEGEND: IllegalArgumentException in class: de.fzi.dbs.cwb.Customer, = setter method of property: cid 15.08.2003 11:32:26 net.sf.hibernate.util.ReflectHelper$Setter set SCHWERWIEGEND: expected type: int, actual value: java.lang.Long net.sf.hibernate.PropertyAccessException: IllegalArgumentException occurred= while calling: argument type mismatch setter of de.fzi.dbs.cwb.Customer.ci= d java.lang.IllegalArgumentException: argument type mismatch =09at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) =09at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.= java:39) =09at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces= sorImpl.java:25) =09at java.lang.reflect.Method.invoke(Method.java:324) =09at net.sf.hibernate.util.ReflectHelper$Setter.set(ReflectHelper.java:45) =09at net.sf.hibernate.persister.AbstractEntityPersister.setIdentifier(Abst= ractEntityPersister.java:251) =09at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:674) =09at net.sf.hibernate.impl.SessionImpl.save(SessionImpl.java:605) =09(...) rethrown as net.sf.hibernate.PropertyAccessException: IllegalArgumentExcept= ion occurred while calling: argument type mismatch setter of de.fzi.dbs.cwb= .Customer.cid =09at net.sf.hibernate.util.ReflectHelper$Setter.set(ReflectHelper.java:71) =09at net.sf.hibernate.persister.AbstractEntityPersister.setIdentifier(Abst= ractEntityPersister.java:251) =09at net.sf.hibernate.impl.SessionImpl.doSave(SessionImpl.java:674) =09at net.sf.hibernate.impl.SessionImpl.save(SessionImpl.java:605) =09at de.fzi.dbs.cwb.test.test.main(test.java:56) Caused by: java.lang.IllegalArgumentException: argument type mismatch =09at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) =09at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.= java:39) =09at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces= sorImpl.java:25) =09at java.lang.reflect.Method.invoke(Method.java:324) =09at net.sf.hibernate.util.ReflectHelper$Setter.set(ReflectHelper.java:45) =09... 4 more While debugging, I figured out, that the class' generator method returns "n= ew Long(next++)" in any case - which causes the type-mismatch while trying = to set the cid (customer id in my example).=20 My solution to this is adding the following to generate-method in=20 net.sf.hibernate.id.IncrementGenerator: =09public synchronized Serializable generate(SessionImplementor session, Ob= ject object) =09=09throws SQLException, HibernateException { =09=09=09 =09=09if (sql!=3Dnull) { =09=09=09getNext( session.connection() ); =09=09} // added code: // determine the return type via SessionImplementor =09=09Type identifierType =3D session.getPersister(object).getIdentifierTyp= e(); =09=09if (identifierType instanceof net.sf.hibernate.type.IntegerType) { =09=09=09return new Integer((int)next++); =09=09} else if (identifierType instanceof net.sf.hibernate.type.ShortType)= { =09=09=09return new Short((short)next++); =09=09} else { =09=09=09return new Long(next++); =09=09} =09=09 =09} --------------------------------------------------------------------- JIRA INFORMATION: 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 If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
|
From: <leg...@at...> - 2003-08-14 19:25:20
|
The following comment has been added to this issue:
Author: Alessandro Vernet
Created: Thu, 14 Aug 2003 1:39 PM
Body:
My fault! The <set ... /> was actually commented in my Hibernate mapping file. Argh! I am terribly sorry about that.
Alex
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-253
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-253
Summary: Filter with "elements(this.employees)" clause
Type: Bug
Status: Unassigned
Priority: Major
Project: Hibernate2
Versions:
2.1 beta 1
Assignee:
Reporter: Alessandro Vernet
Created: Tue, 12 Aug 2003 2:20 PM
Updated: Tue, 12 Aug 2003 2:20 PM
Description:
I am doing a:
session.filter(regions, "where ? in elements(this.employees)", employee, Hibernate.entity(Employee.class));
Where Region.hbm.xml defines employees as:
<hibernate-mapping>
<class name="bean.Region" table="owf_region" mutable="false">
...
<set name="employees" table="owf_employee_region">
<key column="region_id"/>
<many-to-many class="bean.Employee" column="employee_id"/>
</set>
</class>
</hibernate-mapping>
I get:
net.sf.hibernate.QueryException: could not resolve property: employees [where ? in elements(this.employees)]
at net.sf.hibernate.persister.AbstractPropertyMapping.getPropertyType(AbstractPropertyMapping.java:33)
at net.sf.hibernate.hql.PathExpressionParser.getPropertyType(PathExpressionParser.java:242)
at net.sf.hibernate.hql.PathExpressionParser.token(PathExpressionParser.java:122)
at net.sf.hibernate.hql.WhereParser.doPathExpression(WhereParser.java:333)
at net.sf.hibernate.hql.WhereParser.doToken(WhereParser.java:365)
at net.sf.hibernate.hql.WhereParser.token(WhereParser.java:250)
at net.sf.hibernate.hql.ClauseParser.token(ClauseParser.java:87)
at net.sf.hibernate.hql.PreprocessingParser.end(PreprocessingParser.java:142)
at net.sf.hibernate.hql.ParserHelper.parse(ParserHelper.java:30)
at net.sf.hibernate.hql.QueryTranslator.compile(QueryTranslator.java:148)
at net.sf.hibernate.hql.QueryTranslator.compile(QueryTranslator.java:135)
at net.sf.hibernate.hql.FilterTranslator.compile(FilterTranslator.java:25)
at net.sf.hibernate.impl.SessionFactoryImpl.getFilter(SessionFactoryImpl.java:269)
at net.sf.hibernate.impl.SessionImpl.getFilterTranslator(SessionImpl.java:3149)
at net.sf.hibernate.impl.SessionImpl.filter(SessionImpl.java:3169)
at net.sf.hibernate.impl.SessionImpl.filter(SessionImpl.java:3109)
I expected this to work. Pretty much the same HQL works just fine when used in a session.createQuery(), e.g.:
session.createQuery("from Region as r where ? in elements(r.employees)").setEntity(0, employee).list()
Alex
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|
|
From: <leg...@at...> - 2003-08-14 14:36:21
|
Message:
The following issue has been closed.
Resolver: Max Rydahl Andersen
Date: Thu, 14 Aug 2003 9:34 AM
fixed ;)
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-260
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-260
Summary: hbm2java generates a null for the finder method of type "integer"
Type: Patch
Status: Closed
Priority: Major
Resolution: FIXED
Project: Hibernate2
Components:
toolset
Fix Fors:
2.1
Versions:
2.0.2
Assignee:
Reporter: Christian Hargraves
Created: Thu, 14 Aug 2003 8:34 AM
Updated: Thu, 14 Aug 2003 9:34 AM
Environment: N/A
Description:
When using a property or id type of "integer" and the finder-method meta tag, the hbm2java FinderRenderer.java file generates a finder method with a null in the Session.find(query,bindVar,varType) "varType" parameter.
I fixed this by adding the following line:
hibType.put("Integer", "Hibernate.INTEGER");
to the hibType variable in FinderRenderer.java
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|
|
From: <leg...@at...> - 2003-08-14 14:10:21
|
The following comment has been added to this issue:
Author: Gavin King
Created: Thu, 14 Aug 2003 9:03 AM
Body:
You need to submit a whole main() method. I tried to reproduce this problem in my test suite, but it all seems to work beautifully for me:
s.find("from Outer o where o.id.master.id.sup.dudu is not null");
s.find("from Outer o where o.id.master.id.sup.id.akey is not null");
s.find("from Inner i where i.backOut.id.master.id.sup.id.akey = i.id.bkey");
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-259
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-259
Summary: HQL queries doesn't work with compositeIds composed by others compositeIds
Type: Bug
Status: Unassigned
Priority: Minor
Project: Hibernate2
Versions:
2.0 final
2.0.1
2.0.2
Assignee:
Reporter: benoit lafontaine
Created: Thu, 14 Aug 2003 8:07 AM
Updated: Thu, 14 Aug 2003 8:07 AM
Description:
With the following mapping (and corresponding classes) the query :
SELECT a.id, a.libelleLong, a.categorieProduit.id.secteurEditorial.id.editeur.id FROM a in class Article WHERE a.categorieProduit.id.secteurEditorial.id.editeur.id = '150'
does not work (and should).
--------------------------------
Article.hbm.xml
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd"> />
<hibernate-mapping>
<class
name="exemple.articles.Article"
table="LPR_PROD_DIST"
proxy="exemple.articles.Article"
dynamic-update="false"
mutable="false"
>
<jcs-cache usage="read-only" />
<id
name="id"
column="NPROD"
type="java.lang.String"
unsaved-value="none"
>
<generator class="assigned">
</generator>
</id>
<property
name="libelleLong"
type="java.lang.String"
update="true"
insert="true"
column="LIBLONG"
/>
<many-to-one
name="categorieProduit"
class="exemple.articles.CategorieProduit"
cascade="none"
outer-join="auto"
update="true"
insert="true"
>
<column
name="CATPROD"
/>
<column
name="SECTED"
/>
<column
name="EDITR"
/>
</many-to-one>
</class>
</hibernate-mapping>
------------------------------------------
categorieProduit :
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd"> />
<hibernate-mapping>
<class
name="exemple.articles.CategorieProduit"
table="LPR_CATG_PRODUIT"
dynamic-update="false"
mutable="false"
proxy="exemple.articles.CategorieProduit"
>
<jcs-cache usage="read-only" />
<composite-id
name="id"
class="exemple.articles.CategorieProduitCompositeId"
unsaved-value="none"
>
<key-property
name="categorieProduitId"
type="int"
column="CATPROD"
/>
<key-many-to-one
name="secteurEditorial"
class="exemple.articles.SecteurEditorial"
>
<column name="SECTED"/>
<column name="EDITR"/>
</key-many-to-one>
</composite-id>
<property
name="libelleLong"
type="java.lang.String"
update="true"
insert="true"
column="LIBLONG"
/>
</class>
</hibernate-mapping>
---------------------------------------
secteurEditorial
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd"> />
<hibernate-mapping>
<class
name="exemple.articles.SecteurEditorial"
table="LPR_SECT_EDITORIAL"
dynamic-update="false"
mutable="false"
>
<jcs-cache usage="read-only" />
<composite-id
name="id"
class="exemple.articles.SecteurEditorialCompositeId"
unsaved-value="none"
>
<key-property
name="secteurEditorialId"
type="int"
column="SECTED"
/>
<key-many-to-one
name="editeur"
class="exemple.articles.Editeur"
column="EDITR"
/>
</composite-id>
<property
name="libelleLong"
type="java.lang.String"
update="true"
insert="true"
column="LIBLONG"
/>
</class>
</hibernate-mapping>
------------------------------------------
editeur:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd"> />
<hibernate-mapping>
<class
name="exemple.articles.Editeur"
table="LPR_EDITEUR"
dynamic-update="false"
mutable="false"
>
<jcs-cache usage="read-only" />
<id
name="id"
column="EDITR"
type="java.lang.String"
unsaved-value="none"
>
<generator class="assigned">
</generator>
</id>
<property
name="nom"
type="java.lang.String"
update="true"
insert="true"
column="LEDIT1"
/>
</class>
</hibernate-mapping>
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|
|
From: <leg...@at...> - 2003-08-14 14:07:28
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-260 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-260 Summary: hbm2java generates a null for the finder method of type "integer" Type: Patch Status: Unassigned Priority: Major Project: Hibernate2 Components: toolset Versions: 2.0.2 Assignee: Reporter: Christian Hargraves Created: Thu, 14 Aug 2003 8:34 AM Updated: Thu, 14 Aug 2003 8:34 AM Environment: N/A Description: When using a property or id type of "integer" and the finder-method meta tag, the hbm2java FinderRenderer.java file generates a finder method with a null in the Session.find(query,bindVar,varType) "varType" parameter. I fixed this by adding the following line: hibType.put("Integer", "Hibernate.INTEGER"); to the hibType variable in FinderRenderer.java --------------------------------------------------------------------- JIRA INFORMATION: 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 If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
|
From: <leg...@at...> - 2003-08-14 13:59:24
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-259 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-259 Summary: HQL queries doesn't work with compositeIds composed by others compositeIds Type: Bug Status: Unassigned Priority: Minor Project: Hibernate2 Versions: 2.0 final 2.0.1 2.0.2 Assignee: Reporter: benoit lafontaine Created: Thu, 14 Aug 2003 8:07 AM Updated: Thu, 14 Aug 2003 8:07 AM Description: With the following mapping (and corresponding classes) the query : SELECT a.id, a.libelleLong, a.categorieProduit.id.secteurEditorial.id.editeur.id FROM a in class Article WHERE a.categorieProduit.id.secteurEditorial.id.editeur.id = '150' does not work (and should). -------------------------------- Article.hbm.xml <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 2.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd"> /> <hibernate-mapping> <class name="exemple.articles.Article" table="LPR_PROD_DIST" proxy="exemple.articles.Article" dynamic-update="false" mutable="false" > <jcs-cache usage="read-only" /> <id name="id" column="NPROD" type="java.lang.String" unsaved-value="none" > <generator class="assigned"> </generator> </id> <property name="libelleLong" type="java.lang.String" update="true" insert="true" column="LIBLONG" /> <many-to-one name="categorieProduit" class="exemple.articles.CategorieProduit" cascade="none" outer-join="auto" update="true" insert="true" > <column name="CATPROD" /> <column name="SECTED" /> <column name="EDITR" /> </many-to-one> </class> </hibernate-mapping> ------------------------------------------ categorieProduit : <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 2.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd"> /> <hibernate-mapping> <class name="exemple.articles.CategorieProduit" table="LPR_CATG_PRODUIT" dynamic-update="false" mutable="false" proxy="exemple.articles.CategorieProduit" > <jcs-cache usage="read-only" /> <composite-id name="id" class="exemple.articles.CategorieProduitCompositeId" unsaved-value="none" > <key-property name="categorieProduitId" type="int" column="CATPROD" /> <key-many-to-one name="secteurEditorial" class="exemple.articles.SecteurEditorial" > <column name="SECTED"/> <column name="EDITR"/> </key-many-to-one> </composite-id> <property name="libelleLong" type="java.lang.String" update="true" insert="true" column="LIBLONG" /> </class> </hibernate-mapping> --------------------------------------- secteurEditorial <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 2.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd"> /> <hibernate-mapping> <class name="exemple.articles.SecteurEditorial" table="LPR_SECT_EDITORIAL" dynamic-update="false" mutable="false" > <jcs-cache usage="read-only" /> <composite-id name="id" class="exemple.articles.SecteurEditorialCompositeId" unsaved-value="none" > <key-property name="secteurEditorialId" type="int" column="SECTED" /> <key-many-to-one name="editeur" class="exemple.articles.Editeur" column="EDITR" /> </composite-id> <property name="libelleLong" type="java.lang.String" update="true" insert="true" column="LIBLONG" /> </class> </hibernate-mapping> ------------------------------------------ editeur: <?xml version="1.0"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 2.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd"> /> <hibernate-mapping> <class name="exemple.articles.Editeur" table="LPR_EDITEUR" dynamic-update="false" mutable="false" > <jcs-cache usage="read-only" /> <id name="id" column="EDITR" type="java.lang.String" unsaved-value="none" > <generator class="assigned"> </generator> </id> <property name="nom" type="java.lang.String" update="true" insert="true" column="LEDIT1" /> </class> </hibernate-mapping> --------------------------------------------------------------------- JIRA INFORMATION: 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 If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
|
From: <leg...@at...> - 2003-08-14 13:48:59
|
The following issue has been updated:
Updater: Christian Hargraves (mailto:en...@ho...)
Date: Thu, 14 Aug 2003 8:39 AM
Changes:
Attachment changed to hbm2java.patch
---------------------------------------------------------------------
For a full history of the issue, see:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-260&page=history
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-260
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-260
Summary: hbm2java generates a null for the finder method of type "integer"
Type: Patch
Status: Unassigned
Priority: Major
Project: Hibernate2
Components:
toolset
Versions:
2.0.2
Assignee:
Reporter: Christian Hargraves
Created: Thu, 14 Aug 2003 8:34 AM
Updated: Thu, 14 Aug 2003 8:39 AM
Environment: N/A
Description:
When using a property or id type of "integer" and the finder-method meta tag, the hbm2java FinderRenderer.java file generates a finder method with a null in the Session.find(query,bindVar,varType) "varType" parameter.
I fixed this by adding the following line:
hibType.put("Integer", "Hibernate.INTEGER");
to the hibType variable in FinderRenderer.java
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|
|
From: <leg...@at...> - 2003-08-14 12:33:35
|
Message:
The following issue has been closed.
Resolver: Gavin King
Date: Thu, 14 Aug 2003 7:04 AM
Fixed
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-258
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-258
Summary: Not all ClassPersister's implements ClassMetadata
Type: Bug
Status: Closed
Priority: Minor
Resolution: FIXED
Project: Hibernate2
Components:
core
Versions:
2.1
Assignee:
Reporter: Max Rydahl Andersen
Created: Wed, 13 Aug 2003 2:46 PM
Updated: Thu, 14 Aug 2003 7:04 AM
Description:
When using a CustomPersister the only requirement is that it extends ClassPersister - this makes it possible to have SessionFactory return objects in getAllClassMetadata() that does NOT implement ClassMetadata.
This is not good for tools like hibern8ide and the uniformity of the api.....should ClassPersister extend ClassMetadata to enforce the "contract" ?
Gavin: this "functionallity" is the reason you get an exception in hibern8ide - just add Custom.hbm.xml and you'll see it everytime ;)
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|
|
From: <leg...@at...> - 2003-08-14 08:22:02
|
The following comment has been added to this issue:
Author: Max Rydahl Andersen
Created: Thu, 14 Aug 2003 2:47 AM
Body:
ok - so the fix is just to make a new collection initialised with the result of iterating classpersisters and call getClassMetaData() ...
i'll fix that one. I guess the same applies for CollectionMetaData?
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-258
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-258
Summary: Not all ClassPersister's implements ClassMetadata
Type: Bug
Status: Unassigned
Priority: Minor
Project: Hibernate2
Components:
core
Versions:
2.1
Assignee:
Reporter: Max Rydahl Andersen
Created: Wed, 13 Aug 2003 2:46 PM
Updated: Wed, 13 Aug 2003 6:51 PM
Description:
When using a CustomPersister the only requirement is that it extends ClassPersister - this makes it possible to have SessionFactory return objects in getAllClassMetadata() that does NOT implement ClassMetadata.
This is not good for tools like hibern8ide and the uniformity of the api.....should ClassPersister extend ClassMetadata to enforce the "contract" ?
Gavin: this "functionallity" is the reason you get an exception in hibern8ide - just add Custom.hbm.xml and you'll see it everytime ;)
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|
|
From: <leg...@at...> - 2003-08-14 00:02:09
|
The following issue has been updated:
Updater: Gavin King (mailto:ga...@in...)
Date: Wed, 13 Aug 2003 6:51 PM
Comment:
Actually, there is ClassPersister.getClassMetadata(), which CustomPersister implements as "return null" and AbstractEntityPersister implements as "return this".
But whats happening is that getAllClassMetadata() just returns the underlying collection of ClassPersisters. So its actually just a dumb bug in SessionFactoryImpl .... that I didn't see at first, because I forgot about custom persisters!
I changed this issue to "bug".
Changes:
type changed from Improvement
---------------------------------------------------------------------
For a full history of the issue, see:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-258&page=history
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-258
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-258
Summary: Not all ClassPersister's implements ClassMetadata
Type: Bug
Status: Unassigned
Priority: Minor
Project: Hibernate2
Components:
core
Versions:
2.1
Assignee:
Reporter: Max Rydahl Andersen
Created: Wed, 13 Aug 2003 2:46 PM
Updated: Wed, 13 Aug 2003 6:51 PM
Description:
When using a CustomPersister the only requirement is that it extends ClassPersister - this makes it possible to have SessionFactory return objects in getAllClassMetadata() that does NOT implement ClassMetadata.
This is not good for tools like hibern8ide and the uniformity of the api.....should ClassPersister extend ClassMetadata to enforce the "contract" ?
Gavin: this "functionallity" is the reason you get an exception in hibern8ide - just add Custom.hbm.xml and you'll see it everytime ;)
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|
|
From: <leg...@at...> - 2003-08-13 23:48:46
|
The following comment has been added to this issue:
Author: Marcelo Alves
Created: Wed, 13 Aug 2003 6:37 PM
Body:
I have this problem :
<class ... >
<composite-id>
... some keys ..
<key-property column="CD_PARAMETRO" name="cdParametro" type="integer"/>
</composite-id>
<discriminator column="CD_PARAMETRO" type="integer" />
<property ...
</class>
Neither key-property or discriminator allow update="false" and/or insert="false".
Any solution, or this could be an improvement ?
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-174
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-174
Summary: Allow multi-column discriminators and other discriminator improvements
Type: Improvement
Status: Unassigned
Priority: Major
Project: Hibernate2
Versions:
2.0.1
Assignee:
Reporter: Tom Sedge
Created: Thu, 10 Jul 2003 8:40 AM
Updated: Thu, 10 Jul 2003 8:40 AM
Environment: N/A
Description:
The extensible persister system in Hibernate is very nice and useful and custom discriminator types can be created via a custom Hibernate
type and new persister. However, the structure of the discriminator is not wholly under the persister's control.
Recently I've come across a number of situations where mapping legacy data models requires one of:
1. A joined-subclass discriminator where the discriminator in the parent table may be in more than one column (e.g. Column A not null implies Class A, Column B not null implies Class B).
2. A joined-subclass discriminator where the discriminator is not the primary key of the parent table.
3. A joined-subclass discriminator where force="true" can be applied.
4. Nesting a table-per-class-hierachy within joined-subclass (e.g. Table A contains parent class A, Table B joins to that table for class B and also contains Class C via a discriminator in Table B) & vice-versa.
5. Generating a discriminator from multiple columns via a general expression.
As far as I can see (2) is not possible as there is no syntax support for this in the XML document (i.e. specify column in parent in <key> directive). (1) follows from (2) - requires specifying the column. (3) doesn't seem to be availale for joined-subclasses but is important since only some of the data in table may be needed. (4) looks completely ruled out by the DTD. (5) looks difficult, though a custom persister might be able to fudge it.
What are the chances of Hibernate supporting any of the above? What is the level of difficulty involved in each one (I may be able to help).
For the record, these seem to me to be reasonable requirements and would greatly ease working with difficult legacy data model - which in my experience are more common than greenfield sites.
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|
|
From: <leg...@at...> - 2003-08-13 23:48:26
|
Message:
The following issue has been closed.
Resolver: Gavin King
Date: Wed, 13 Aug 2003 6:43 PM
ok, perhaps the doc could be improved
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-256
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-256
Summary: broken column mapping to UserType
Type: Bug
Status: Closed
Priority: Major
Resolution: REJECTED
Project: Hibernate2
Components:
core
Versions:
2.1 beta 1
Assignee:
Reporter: John Kristian
Created: Wed, 13 Aug 2003 1:32 PM
Updated: Wed, 13 Aug 2003 6:43 PM
Environment: Windows XP, JBoss, Microsoft SQL Server
Description:
The enclosed exception is thrown. It should not be. I will attach the problematic mapping file and UserType. I can work around this problem by changing HibernateUTC.SQL_TYPES to {Types.TIMESTAMP}, as suggested by https://sourceforge.net/forum/message.php?msg_id=2147890
12:47:00,453 ERROR [STDERR] net.sf.hibernate.MappingException: broken column mapping for: expirationDate
at net.sf.hibernate.persister.AbstractPropertyMapping.initPropertyPaths(AbstractPropertyMapping.java:58)
at net.sf.hibernate.persister.AbstractEntityPersister.initPropertyPaths(AbstractEntityPersister.java:435)
at net.sf.hibernate.persister.EntityPersister.postInstantiate(EntityPersister.java:107)
at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:155)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:647)
at com.docent.lms.core.TransactionMgr.<init>(TransactionMgr.java:27)
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|
|
From: <leg...@at...> - 2003-08-13 23:47:39
|
Message:
The following issue has been closed.
Resolver: Gavin King
Date: Wed, 13 Aug 2003 6:44 PM
This is documented.
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?=
key=3DHB-255
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-255
Summary: javax.naming.OperationNotSupportedException is thrown at load =
time
Type: Bug
Status: Closed
Priority: Major
Resolution: REJECTED
Project: Hibernate2
Components:=20
core
Versions:
2.0 final
Assignee:=20
Reporter: abe zafar
Created: Wed, 13 Aug 2003 1:26 PM
Updated: Wed, 13 Aug 2003 6:44 PM
Environment: JDK1.4 on Weblogic application server 8.0
Description:
The following exception is thrown when Hibernate is loading Hibernate.cfg.x=
ml. In the code snippet below the third line, the call to buildSessionFacto=
ry() throws the exception.
Configuration conf =3D new Configuration();
conf.configure(); // to load default "hibernate.cfg.xml"
sf =3D conf.buildSessionFactory();
2003-07-22 16:37:13,753 DEBUG net.sf.hibernate.cfg.Binder - Mapped property=
: active -> active_flag, type: string
2003-07-22 16:37:13,754 DEBUG net.sf.hibernate.cfg.Configuration - java:com=
p/env/hibernate/SessionFactory<-org.dom4j.tree.DefaultAttribute@ec44cb [Att=
ribute: name resource value "mapping/Country.hbm.xml"]
2003-07-22 16:37:13,754 INFO net.sf.hibernate.cfg.Configuration - Mapping =
resource: mapping/Country.hbm.xml
2003-07-22 16:37:13,768 DEBUG net.sf.hibernate.util.DTDEntityResolver - try=
ing to locate http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in=
classpath under net/sf/hibernate/
2003-07-22 16:37:13,769 DEBUG net.sf.hibernate.util.DTDEntityResolver - fou=
nd http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath
2003-07-22 16:37:13,793 INFO net.sf.hibernate.cfg.Binder - Mapping class: =
com.rhi.domain.Country -> domain_value
2003-07-22 16:37:13,794 DEBUG net.sf.hibernate.cfg.Binder - Mapped property=
: id -> domain_value_id, type: integer
2003-07-22 16:37:13,794 DEBUG net.sf.hibernate.cfg.Binder - Mapped property=
: name -> domain_value, type: string
2003-07-22 16:37:13,794 DEBUG net.sf.hibernate.cfg.Binder - Mapped property=
: active -> active_flag, type: string
2003-07-22 16:37:13,795 INFO net.sf.hibernate.cfg.Configuration - Configur=
ed SessionFactory: java:comp/env/hibernate/SessionFactory
2003-07-22 16:37:13,796 DEBUG net.sf.hibernate.cfg.Configuration - properti=
es: {show_sql=3Dfalse, java.vendor=3DSun Microsystems Inc., org.xml.sax.par=
ser=3Dweblogic.xml.jaxp.RegistryParser, connection.datasource=3DplatinumDat=
aSource, os.name=3DSunOS, sun.boot.class.path=3D/usr/j2sdk1.4.2/jre/lib/rt.=
jar:/usr/j2sdk1.4.2/jre/lib/i18n.jar:/usr/j2sdk1.4.2/jre/lib/sunrsasign.jar=
:/usr/j2sdk1.4.2/jre/lib/jsse.jar:/usr/j2sdk1.4.2/jre/lib/jce.jar:/usr/j2sd=
k1.4.2/jre/lib/charsets.jar:/usr/j2sdk1.4.2/jre/classes, sun.java2d.fontpat=
h=3D, java.vm.specification.vendor=3DSun Microsystems Inc., java.runtime.ve=
rsion=3D1.4.2-b28, default_schema=3Dmjpp, weblogic.Name=3Dmyserver, jmx.imp=
lementation.vendor=3DSun Microsystems, user.name=3Dabezaf01, hibernate.sess=
ion_factory_name=3Djava:comp/env/hibernate/SessionFactory, jmx.implementati=
on.name=3DJMX RI, user.language=3Den, java.naming.factory.initial=3Dweblogi=
c.jndi.WLInitialContextFactory, sun.boot.library.path=3D/usr/j2sdk1.4.2/jre=
/lib/sparc, dialect=3Dnet.sf.hibernate.dialect.DB2Dialect, jmx.specificatio=
n.name=3DJava Management Extensions, java.version=3D1.4.2, version=3D2.4.1,=
user.timezone=3DUS/Pacific, sun.arch.data.model=3D32, hibernate.use_outer_=
join=3Dfalse, javax.rmi.CORBA.UtilClass=3Dweblogic.iiop.UtilDelegateImpl, j=
mx.specification.version=3D1.0 Final Release, java.endorsed.dirs=3D/usr/j2s=
dk1.4.2/jre/lib/endorsed, vde.home=3D./myserver/ldap, sun.cpu.isalist=3Dspa=
rcv9+vis2 sparcv9+vis sparcv9 sparcv8plus+vis sparcv8plus sparcv8 sparcv8-f=
smuld sparcv7 sparc, jmx.implementation.version=3D1.0, file.encoding.pkg=3D=
sun.io, weblogic.mbeanLegalClause.ByPass=3Dfalse, file.separator=3D/, java.=
specification.name=3DJava Platform API Specification, hibernate.cglib.use_r=
eflection_optimizer=3Dtrue, java.class.version=3D48.0, java.home=3D/usr/j2s=
dk1.4.2/jre, java.vm.info=3Dmixed mode, os.version=3D5.8, hibernate.connect=
ion.datasource=3DplatinumDataSource, org.omg.CORBA.ORBSingletonClass=3Dwebl=
ogic.corba.orb.ORB, path.separator=3D:, java.vm.version=3D1.4.2-b28, java.u=
til.prefs.PreferencesFactory=3Djava.util.prefs.FileSystemPreferencesFactory=
, vendor-url=3Dhttp://xml.apache.org/xalan-j, java.protocol.handler.pkgs=3D=
weblogic.utils|weblogic.utils|weblogic.net, jmx.specification.vendor=3DSun =
Microsystems, java.awt.printerjob=3Dsun.print.PSPrinterJob, vendor=3DApache=
Software Foundation, java.security.policy=3D=3D./mjpconfig/mjplus.policy, =
sun.io.unicode.encoding=3DUnicodeBig, query.substitutions=3Dtrue=3D'Y',fals=
e=3D'N', java.naming.factory.url.pkgs=3Dweblogic.jndi.factories:weblogic.co=
rba.j2ee.naming.url, user.home=3D/home/abezaf01, hibernate.query.substituti=
ons=3Dtrue=3D'Y',false=3D'N', java.specification.vendor=3DSun Microsystems =
Inc., org.xml.sax.driver=3Dweblogic.apache.xerces.parsers.SAXParser, java.l=
ibrary.path=3D/usr/j2sdk1.4.2/jre/lib/sparc/server:/usr/j2sdk1.4.2/jre/lib/=
sparc:/usr/j2sdk1.4.2/jre/../lib/sparc:/home/webfousr/bea/weblogic81/server=
/lib/solaris:/home/webfousr/bea/weblogic81/server/lib/solaris/oci817_8:/usr=
/lib, java.vendor.url=3Dhttp://java.sun.com/, java.vm.vendor=3DSun Microsys=
tems Inc., hibernate.dialect=3Dnet.sf.hibernate.dialect.DB2Dialect, java.ru=
ntime.name=3DJava(TM) 2 Runtime Environment, Standard Edition, java.class.p=
ath=3D./lib/util.jar:./lib/saaj-api.jar:./lib/mjpsecurity.jar:./lib/log4j-1=
.2.8.jar:./lib/db2.jar:./lib/commons-logging.jar:./lib/base.jar:./mjpconfig=
/props:/usr/j2sdk1.4.2/lib/tools.jar:/home/webfousr/bea/weblogic81/server/l=
ib/weblogic_sp.jar:/home/webfousr/bea/weblogic81/server/lib/weblogic.jar:/h=
ome/webfousr/bea/weblogic81/server/lib/ojdbc14.jar::/home/webfousr/bea/webl=
ogic81/common/eval/pointbase/lib/pbserver44.jar:/home/webfousr/bea/weblogic=
81/common/eval/pointbase/lib/pbclient44.jar:/usr/j2sdk1.4.2/jre/lib/rt.jar:=
/home/webfousr/bea/weblogic81/server/lib/webservices.jar:, use_outer_join=
=3Dfalse, java.vm.specification.name=3DJava Virtual Machine Specification, =
java.vm.specification.version=3D1.0, javax.rmi.CORBA.PortableRemoteObjectCl=
ass=3Dweblogic.iiop.PortableRemoteObjectDelegateImpl, sun.cpu.endian=3Dbig,=
sun.os.patch.level=3Dunknown, java.io.tmpdir=3D/var/tmp/, java.vendor.url.=
bug=3Dhttp://java.sun.com/cgi-bin/bugreport.cgi, hibernate.default_schema=
=3Dmjpp, os.arch=3Dsparc, java.awt.graphicsenv=3Dsun.awt.X11GraphicsEnviron=
ment, java.ext.dirs=3D/usr/j2sdk1.4.2/jre/lib/ext, user.dir=3D/home/abezaf0=
1/wlsdomains/v8domain, java.security.manager=3D, line.separator=3D
, java.vm.name=3DJava HotSpot(TM) Server VM, java.security.auth.login.confi=
g=3D=3D./mjpconfig/login.config, javax.xml.soap.MessageFactory=3Dcom.sun.xm=
l.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl, file.encoding=3DISO=
646-US, org.omg.CORBA.ORBClass=3Dweblogic.corba.orb.ORB, javax.xml.rpc.Serv=
iceFactory=3Dcom.sun.xml.rpc.client.ServiceFactoryImpl, weblogic.Production=
ModeEnabled=3D, java.specification.version=3D1.4, hibernate.show_sql=3Dfals=
e}
2003-07-22 16:37:13,797 DEBUG net.sf.hibernate.cfg.Binder - Second pass for=
collection: com.rhi.domain.Company.compAddresses
2003-07-22 16:37:13,797 INFO net.sf.hibernate.cfg.Binder - Mapping collect=
ion: com.rhi.domain.Company.compAddresses -> company_address
2003-07-22 16:37:13,798 DEBUG net.sf.hibernate.cfg.Binder - Mapped collecti=
on key: company_id, company_region_id, one-to-many: com.rhi.domain.CompanyA=
ddress
2003-07-22 16:37:13,944 INFO net.sf.hibernate.impl.SessionFactoryImpl - bu=
ilding session factory
2003-07-22 16:37:13,947 DEBUG net.sf.hibernate.impl.SessionFactoryImpl - in=
stantiating session factory with properties: {java.vendor=3DSun Microsystem=
s Inc., show_sql=3Dfalse, org.xml.sax.parser=3Dweblogic.xml.jaxp.RegistryPa=
rser, connection.datasource=3DplatinumDataSource, os.name=3DSunOS, sun.boot=
.class.path=3D/usr/j2sdk1.4.2/jre/lib/rt.jar:/usr/j2sdk1.4.2/jre/lib/i18n.j=
ar:/usr/j2sdk1.4.2/jre/lib/sunrsasign.jar:/usr/j2sdk1.4.2/jre/lib/jsse.jar:=
/usr/j2sdk1.4.2/jre/lib/jce.jar:/usr/j2sdk1.4.2/jre/lib/charsets.jar:/usr/j=
2sdk1.4.2/jre/classes, sun.java2d.fontpath=3D, java.vm.specification.vendor=
=3DSun Microsystems Inc., java.runtime.version=3D1.4.2-b28, default_schema=
=3Dmjpp, weblogic.Name=3Dmyserver, jmx.implementation.vendor=3DSun Microsys=
tems, user.name=3Dabezaf01, hibernate.session_factory_name=3Djava:comp/env/=
hibernate/SessionFactory, jmx.implementation.name=3DJMX RI, user.language=
=3Den, java.naming.factory.initial=3Dweblogic.jndi.WLInitialContextFactory,=
sun.boot.library.path=3D/usr/j2sdk1.4.2/jre/lib/sparc, dialect=3Dnet.sf.hi=
bernate.dialect.DB2Dialect, jmx.specification.name=3DJava Management Extens=
ions, java.version=3D1.4.2, version=3D2.4.1, user.timezone=3DUS/Pacific, su=
n.arch.data.model=3D32, hibernate.use_outer_join=3Dfalse, javax.rmi.CORBA.U=
tilClass=3Dweblogic.iiop.UtilDelegateImpl, jmx.specification.version=3D1.0 =
Final Release, java.endorsed.dirs=3D/usr/j2sdk1.4.2/jre/lib/endorsed, vde.h=
ome=3D./myserver/ldap, sun.cpu.isalist=3Dsparcv9+vis2 sparcv9+vis sparcv9 s=
parcv8plus+vis sparcv8plus sparcv8 sparcv8-fsmuld sparcv7 sparc, jmx.implem=
entation.version=3D1.0, file.encoding.pkg=3Dsun.io, weblogic.mbeanLegalClau=
se.ByPass=3Dfalse, file.separator=3D/, java.specification.name=3DJava Platf=
orm API Specification, hibernate.cglib.use_reflection_optimizer=3Dtrue, jav=
a.class.version=3D48.0, java.home=3D/usr/j2sdk1.4.2/jre, java.vm.info=3Dmix=
ed mode, os.version=3D5.8, hibernate.connection.datasource=3DplatinumDataSo=
urce, org.omg.CORBA.ORBSingletonClass=3Dweblogic.corba.orb.ORB, path.separa=
tor=3D:, java.vm.version=3D1.4.2-b28, java.util.prefs.PreferencesFactory=3D=
java.util.prefs.FileSystemPreferencesFactory, vendor-url=3Dhttp://xml.apach=
e.org/xalan-j, java.protocol.handler.pkgs=3Dweblogic.utils|weblogic.utils|w=
eblogic.net, jmx.specification.vendor=3DSun Microsystems, java.awt.printerj=
ob=3Dsun.print.PSPrinterJob, vendor=3DApache Software Foundation, java.secu=
rity.policy=3D=3D./mjpconfig/mjplus.policy, sun.io.unicode.encoding=3DUnico=
deBig, java.naming.factory.url.pkgs=3Dweblogic.jndi.factories:weblogic.corb=
a.j2ee.naming.url, query.substitutions=3Dtrue=3D'Y',false=3D'N', user.home=
=3D/home/abezaf01, hibernate.query.substitutions=3Dtrue=3D'Y',false=3D'N', =
java.specification.vendor=3DSun Microsystems Inc., org.xml.sax.driver=3Dweb=
logic.apache.xerces.parsers.SAXParser, java.library.path=3D/usr/j2sdk1.4.2/=
jre/lib/sparc/server:/usr/j2sdk1.4.2/jre/lib/sparc:/usr/j2sdk1.4.2/jre/../l=
ib/sparc:/home/webfousr/bea/weblogic81/server/lib/solaris:/home/webfousr/be=
a/weblogic81/server/lib/solaris/oci817_8:/usr/lib, java.vendor.url=3Dhttp:/=
/java.sun.com/, java.vm.vendor=3DSun Microsystems Inc., hibernate.dialect=
=3Dnet.sf.hibernate.dialect.DB2Dialect, java.runtime.name=3DJava(TM) 2 Runt=
ime Environment, Standard Edition, java.class.path=3D./lib/util.jar:./lib/s=
aaj-api.jar:./lib/mjpsecurity.jar:./lib/log4j-1.2.8.jar:./lib/db2.jar:./lib=
/commons-logging.jar:./lib/base.jar:./mjpconfig/props:/usr/j2sdk1.4.2/lib/t=
ools.jar:/home/webfousr/bea/weblogic81/server/lib/weblogic_sp.jar:/home/web=
fousr/bea/weblogic81/server/lib/weblogic.jar:/home/webfousr/bea/weblogic81/=
server/lib/ojdbc14.jar::/home/webfousr/bea/weblogic81/common/eval/pointbase=
/lib/pbserver44.jar:/home/webfousr/bea/weblogic81/common/eval/pointbase/lib=
/pbclient44.jar:/usr/j2sdk1.4.2/jre/lib/rt.jar:/home/webfousr/bea/weblogic8=
1/server/lib/webservices.jar:, use_outer_join=3Dfalse, java.vm.specificatio=
n.name=3DJava Virtual Machine Specification, java.vm.specification.version=
=3D1.0, javax.rmi.CORBA.PortableRemoteObjectClass=3Dweblogic.iiop.PortableR=
emoteObjectDelegateImpl, sun.cpu.endian=3Dbig, sun.os.patch.level=3Dunknown=
, java.io.tmpdir=3D/var/tmp/, java.vendor.url.bug=3Dhttp://java.sun.com/cgi=
-bin/bugreport.cgi, hibernate.default_schema=3Dmjpp, java.awt.graphicsenv=
=3Dsun.awt.X11GraphicsEnvironment, os.arch=3Dsparc, java.ext.dirs=3D/usr/j2=
sdk1.4.2/jre/lib/ext, user.dir=3D/home/abezaf01/wlsdomains/v8domain, line.s=
eparator=3D
, java.security.manager=3D, java.vm.name=3DJava HotSpot(TM) Server VM, java=
.security.auth.login.config=3D=3D./mjpconfig/login.config, javax.xml.soap.M=
essageFactory=3Dcom.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_=
1Impl, org.omg.CORBA.ORBClass=3Dweblogic.corba.orb.ORB, file.encoding=3DISO=
646-US, javax.xml.rpc.ServiceFactory=3Dcom.sun.xml.rpc.client.ServiceFactor=
yImpl, weblogic.ProductionModeEnabled=3D, java.specification.version=3D1.4,=
hibernate.show_sql=3Dfalse}
2003-07-22 16:37:13,970 INFO net.sf.hibernate.dialect.Dialect - Using dial=
ect: net.sf.hibernate.dialect.DB2Dialect
2003-07-22 16:37:14,019 INFO net.sf.hibernate.util.NamingHelper - JNDI Ini=
tialContext properties:{}
2003-07-22 16:37:14,029 INFO net.sf.hibernate.connection.DatasourceConnect=
ionProvider - Using datasource: platinumDataSource
2003-07-22 16:37:14,030 INFO net.sf.hibernate.impl.SessionFactoryImpl - Us=
e outer join fetching: false
2003-07-22 16:37:14,463 INFO net.sf.hibernate.impl.SessionFactoryImpl - Us=
e scrollable result sets: true
2003-07-22 16:37:14,463 INFO net.sf.hibernate.impl.SessionFactoryImpl - De=
fault schema set to: mjpp
2003-07-22 16:37:15,789 DEBUG net.sf.hibernate.impl.SessionFactoryObjectFac=
tory - initializing class SessionFactoryObjectFactory
2003-07-22 16:37:15,800 DEBUG net.sf.hibernate.impl.SessionFactoryObjectFac=
tory - registered: 8a7b78e8nullf68c5fa7null00f6null8c5faf05null0000 (java:c=
omp/env/hibernate/SessionFactory)
2003-07-22 16:37:15,800 INFO net.sf.hibernate.impl.SessionFactoryObjectFac=
tory - Factory name: java:comp/env/hibernate/SessionFactory
2003-07-22 16:37:15,801 INFO net.sf.hibernate.util.NamingHelper - JNDI Ini=
tialContext properties:{}
2003-07-22 16:37:15,802 DEBUG net.sf.hibernate.util.NamingHelper - binding:=
java:comp/env/hibernate/SessionFactory
2003-07-22 16:37:15,808 DEBUG net.sf.hibernate.util.NamingHelper - binding:=
java:comp/env/hibernate/SessionFactory
2003-07-22 16:37:15,811 WARN net.sf.hibernate.impl.SessionFactoryObjectFac=
tory - Could not bind factory to JNDI
javax.naming.OperationNotSupportedException: rebind not allowed in a ReadOn=
lyContext; remaining name 'comp/env/hibernate/SessionFactory'
=09at weblogic.jndi.factories.java.ReadOnlyContextWrapper.newOperationNotSu=
pportedException(ReadOnlyContextWrapper.java:145)
=09at weblogic.jndi.factories.java.ReadOnlyContextWrapper.newOperationNotSu=
pportedException(ReadOnlyContextWrapper.java:161)
=09at weblogic.jndi.factories.java.ReadOnlyContextWrapper.rebind(ReadOnlyCo=
ntextWrapper.java:63)
=09at weblogic.jndi.internal.AbstractURLContext.rebind(AbstractURLContext.j=
ava:149)
=09at javax.naming.InitialContext.rebind(InitialContext.java:367)
=09at net.sf.hibernate.util.NamingHelper.bind(NamingHelper.java:74)
=09at net.sf.hibernate.impl.SessionFactoryObjectFactory.addInstance(Session=
FactoryObjectFactory.java:90)
=09at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.ja=
va:282)
=09at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.=
java:618)
=09at com.rhi.mjq.persistence.HbSessionHelper.<clinit>(HbSessionHelper.java=
:28)
=09at com.rhi.mjq.persistence.dao.ClientDataDao.findIfActive(ClientDataDao.=
java:60)
=09at com.rhi.mjq.persistence.dao.ClientDataDao.findAllStates(ClientDataDao=
.java:34)
=09at com.rhi.mjq.ejb.bean.ClientDataBean.getStates(Unknown Source)
=09at com.rhi.mjq.ejb.bean.ClientDataSession_hhkrc6_ELOImpl.getStates(Clien=
tDataSession_hhkrc6_ELOImpl.java:45)
=09at com.rhi.mjq.web.service.clientdata.ClientDataServiceImpl.getStates(Un=
known Source)
=09at com.rhi.domain.service.ClientDataService__ClientDataEndpoint__Tie.inv=
oke_getStates(ClientDataService__ClientDataEndpoint__Tie.java:65)
=09at com.rhi.domain.service.ClientDataService__ClientDataEndpoint__Tie.pro=
cessingHook(ClientDataService__ClientDataEndpoint__Tie.java:192)
=09at com.sun.xml.rpc.server.StreamingHandler.handle(StreamingHandler.java:=
235)
=09at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServle=
tDelegate.java:309)
=09at com.sun.xml.rpc.server.http.JAXRPCServlet.doPost(JAXRPCServlet.java:7=
0)
=09at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
=09at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
=09at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run=
(ServletStubImpl.java:1053)
=09at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm=
pl.java:387)
=09at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm=
pl.java:305)
=09at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio=
n.run(WebAppServletContext.java:6291)
=09at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate=
dSubject.java:317)
=09at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:=
97)
=09at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe=
rvletContext.java:3575)
=09at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm=
pl.java:2573)
=09at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
=09at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|
|
From: <leg...@at...> - 2003-08-13 23:38:14
|
The following comment has been added to this issue:
Author: abe zafar
Created: Wed, 13 Aug 2003 5:37 PM
Body:
It seems to me like this might not be a bug. I removed the name attribute f=
rom the session-factory tag and the exception did not occur. So I think wha=
t's happening is that Hibernate automatically binds the session factory to =
the jndi name specified above and then if the name attribute has a value it=
tries to bind it to that name again. If that name is the same name as the =
one that Hibernate used then the above exception is thrown.
Maybe this behavior is documented somewhere but I didn't see it. If it's no=
t documented anywhere then it would be a good idea to do so.
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?=
key=3DHB-255
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-255
Summary: javax.naming.OperationNotSupportedException is thrown at load =
time
Type: Bug
Status: Unassigned
Priority: Major
Project: Hibernate2
Components:=20
core
Versions:
2.0 final
Assignee:=20
Reporter: abe zafar
Created: Wed, 13 Aug 2003 1:26 PM
Updated: Wed, 13 Aug 2003 1:26 PM
Environment: JDK1.4 on Weblogic application server 8.0
Description:
The following exception is thrown when Hibernate is loading Hibernate.cfg.x=
ml. In the code snippet below the third line, the call to buildSessionFacto=
ry() throws the exception.
Configuration conf =3D new Configuration();
conf.configure(); // to load default "hibernate.cfg.xml"
sf =3D conf.buildSessionFactory();
2003-07-22 16:37:13,753 DEBUG net.sf.hibernate.cfg.Binder - Mapped property=
: active -> active_flag, type: string
2003-07-22 16:37:13,754 DEBUG net.sf.hibernate.cfg.Configuration - java:com=
p/env/hibernate/SessionFactory<-org.dom4j.tree.DefaultAttribute@ec44cb [Att=
ribute: name resource value "mapping/Country.hbm.xml"]
2003-07-22 16:37:13,754 INFO net.sf.hibernate.cfg.Configuration - Mapping =
resource: mapping/Country.hbm.xml
2003-07-22 16:37:13,768 DEBUG net.sf.hibernate.util.DTDEntityResolver - try=
ing to locate http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in=
classpath under net/sf/hibernate/
2003-07-22 16:37:13,769 DEBUG net.sf.hibernate.util.DTDEntityResolver - fou=
nd http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath
2003-07-22 16:37:13,793 INFO net.sf.hibernate.cfg.Binder - Mapping class: =
com.rhi.domain.Country -> domain_value
2003-07-22 16:37:13,794 DEBUG net.sf.hibernate.cfg.Binder - Mapped property=
: id -> domain_value_id, type: integer
2003-07-22 16:37:13,794 DEBUG net.sf.hibernate.cfg.Binder - Mapped property=
: name -> domain_value, type: string
2003-07-22 16:37:13,794 DEBUG net.sf.hibernate.cfg.Binder - Mapped property=
: active -> active_flag, type: string
2003-07-22 16:37:13,795 INFO net.sf.hibernate.cfg.Configuration - Configur=
ed SessionFactory: java:comp/env/hibernate/SessionFactory
2003-07-22 16:37:13,796 DEBUG net.sf.hibernate.cfg.Configuration - properti=
es: {show_sql=3Dfalse, java.vendor=3DSun Microsystems Inc., org.xml.sax.par=
ser=3Dweblogic.xml.jaxp.RegistryParser, connection.datasource=3DplatinumDat=
aSource, os.name=3DSunOS, sun.boot.class.path=3D/usr/j2sdk1.4.2/jre/lib/rt.=
jar:/usr/j2sdk1.4.2/jre/lib/i18n.jar:/usr/j2sdk1.4.2/jre/lib/sunrsasign.jar=
:/usr/j2sdk1.4.2/jre/lib/jsse.jar:/usr/j2sdk1.4.2/jre/lib/jce.jar:/usr/j2sd=
k1.4.2/jre/lib/charsets.jar:/usr/j2sdk1.4.2/jre/classes, sun.java2d.fontpat=
h=3D, java.vm.specification.vendor=3DSun Microsystems Inc., java.runtime.ve=
rsion=3D1.4.2-b28, default_schema=3Dmjpp, weblogic.Name=3Dmyserver, jmx.imp=
lementation.vendor=3DSun Microsystems, user.name=3Dabezaf01, hibernate.sess=
ion_factory_name=3Djava:comp/env/hibernate/SessionFactory, jmx.implementati=
on.name=3DJMX RI, user.language=3Den, java.naming.factory.initial=3Dweblogi=
c.jndi.WLInitialContextFactory, sun.boot.library.path=3D/usr/j2sdk1.4.2/jre=
/lib/sparc, dialect=3Dnet.sf.hibernate.dialect.DB2Dialect, jmx.specificatio=
n.name=3DJava Management Extensions, java.version=3D1.4.2, version=3D2.4.1,=
user.timezone=3DUS/Pacific, sun.arch.data.model=3D32, hibernate.use_outer_=
join=3Dfalse, javax.rmi.CORBA.UtilClass=3Dweblogic.iiop.UtilDelegateImpl, j=
mx.specification.version=3D1.0 Final Release, java.endorsed.dirs=3D/usr/j2s=
dk1.4.2/jre/lib/endorsed, vde.home=3D./myserver/ldap, sun.cpu.isalist=3Dspa=
rcv9+vis2 sparcv9+vis sparcv9 sparcv8plus+vis sparcv8plus sparcv8 sparcv8-f=
smuld sparcv7 sparc, jmx.implementation.version=3D1.0, file.encoding.pkg=3D=
sun.io, weblogic.mbeanLegalClause.ByPass=3Dfalse, file.separator=3D/, java.=
specification.name=3DJava Platform API Specification, hibernate.cglib.use_r=
eflection_optimizer=3Dtrue, java.class.version=3D48.0, java.home=3D/usr/j2s=
dk1.4.2/jre, java.vm.info=3Dmixed mode, os.version=3D5.8, hibernate.connect=
ion.datasource=3DplatinumDataSource, org.omg.CORBA.ORBSingletonClass=3Dwebl=
ogic.corba.orb.ORB, path.separator=3D:, java.vm.version=3D1.4.2-b28, java.u=
til.prefs.PreferencesFactory=3Djava.util.prefs.FileSystemPreferencesFactory=
, vendor-url=3Dhttp://xml.apache.org/xalan-j, java.protocol.handler.pkgs=3D=
weblogic.utils|weblogic.utils|weblogic.net, jmx.specification.vendor=3DSun =
Microsystems, java.awt.printerjob=3Dsun.print.PSPrinterJob, vendor=3DApache=
Software Foundation, java.security.policy=3D=3D./mjpconfig/mjplus.policy, =
sun.io.unicode.encoding=3DUnicodeBig, query.substitutions=3Dtrue=3D'Y',fals=
e=3D'N', java.naming.factory.url.pkgs=3Dweblogic.jndi.factories:weblogic.co=
rba.j2ee.naming.url, user.home=3D/home/abezaf01, hibernate.query.substituti=
ons=3Dtrue=3D'Y',false=3D'N', java.specification.vendor=3DSun Microsystems =
Inc., org.xml.sax.driver=3Dweblogic.apache.xerces.parsers.SAXParser, java.l=
ibrary.path=3D/usr/j2sdk1.4.2/jre/lib/sparc/server:/usr/j2sdk1.4.2/jre/lib/=
sparc:/usr/j2sdk1.4.2/jre/../lib/sparc:/home/webfousr/bea/weblogic81/server=
/lib/solaris:/home/webfousr/bea/weblogic81/server/lib/solaris/oci817_8:/usr=
/lib, java.vendor.url=3Dhttp://java.sun.com/, java.vm.vendor=3DSun Microsys=
tems Inc., hibernate.dialect=3Dnet.sf.hibernate.dialect.DB2Dialect, java.ru=
ntime.name=3DJava(TM) 2 Runtime Environment, Standard Edition, java.class.p=
ath=3D./lib/util.jar:./lib/saaj-api.jar:./lib/mjpsecurity.jar:./lib/log4j-1=
.2.8.jar:./lib/db2.jar:./lib/commons-logging.jar:./lib/base.jar:./mjpconfig=
/props:/usr/j2sdk1.4.2/lib/tools.jar:/home/webfousr/bea/weblogic81/server/l=
ib/weblogic_sp.jar:/home/webfousr/bea/weblogic81/server/lib/weblogic.jar:/h=
ome/webfousr/bea/weblogic81/server/lib/ojdbc14.jar::/home/webfousr/bea/webl=
ogic81/common/eval/pointbase/lib/pbserver44.jar:/home/webfousr/bea/weblogic=
81/common/eval/pointbase/lib/pbclient44.jar:/usr/j2sdk1.4.2/jre/lib/rt.jar:=
/home/webfousr/bea/weblogic81/server/lib/webservices.jar:, use_outer_join=
=3Dfalse, java.vm.specification.name=3DJava Virtual Machine Specification, =
java.vm.specification.version=3D1.0, javax.rmi.CORBA.PortableRemoteObjectCl=
ass=3Dweblogic.iiop.PortableRemoteObjectDelegateImpl, sun.cpu.endian=3Dbig,=
sun.os.patch.level=3Dunknown, java.io.tmpdir=3D/var/tmp/, java.vendor.url.=
bug=3Dhttp://java.sun.com/cgi-bin/bugreport.cgi, hibernate.default_schema=
=3Dmjpp, os.arch=3Dsparc, java.awt.graphicsenv=3Dsun.awt.X11GraphicsEnviron=
ment, java.ext.dirs=3D/usr/j2sdk1.4.2/jre/lib/ext, user.dir=3D/home/abezaf0=
1/wlsdomains/v8domain, java.security.manager=3D, line.separator=3D
, java.vm.name=3DJava HotSpot(TM) Server VM, java.security.auth.login.confi=
g=3D=3D./mjpconfig/login.config, javax.xml.soap.MessageFactory=3Dcom.sun.xm=
l.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl, file.encoding=3DISO=
646-US, org.omg.CORBA.ORBClass=3Dweblogic.corba.orb.ORB, javax.xml.rpc.Serv=
iceFactory=3Dcom.sun.xml.rpc.client.ServiceFactoryImpl, weblogic.Production=
ModeEnabled=3D, java.specification.version=3D1.4, hibernate.show_sql=3Dfals=
e}
2003-07-22 16:37:13,797 DEBUG net.sf.hibernate.cfg.Binder - Second pass for=
collection: com.rhi.domain.Company.compAddresses
2003-07-22 16:37:13,797 INFO net.sf.hibernate.cfg.Binder - Mapping collect=
ion: com.rhi.domain.Company.compAddresses -> company_address
2003-07-22 16:37:13,798 DEBUG net.sf.hibernate.cfg.Binder - Mapped collecti=
on key: company_id, company_region_id, one-to-many: com.rhi.domain.CompanyA=
ddress
2003-07-22 16:37:13,944 INFO net.sf.hibernate.impl.SessionFactoryImpl - bu=
ilding session factory
2003-07-22 16:37:13,947 DEBUG net.sf.hibernate.impl.SessionFactoryImpl - in=
stantiating session factory with properties: {java.vendor=3DSun Microsystem=
s Inc., show_sql=3Dfalse, org.xml.sax.parser=3Dweblogic.xml.jaxp.RegistryPa=
rser, connection.datasource=3DplatinumDataSource, os.name=3DSunOS, sun.boot=
.class.path=3D/usr/j2sdk1.4.2/jre/lib/rt.jar:/usr/j2sdk1.4.2/jre/lib/i18n.j=
ar:/usr/j2sdk1.4.2/jre/lib/sunrsasign.jar:/usr/j2sdk1.4.2/jre/lib/jsse.jar:=
/usr/j2sdk1.4.2/jre/lib/jce.jar:/usr/j2sdk1.4.2/jre/lib/charsets.jar:/usr/j=
2sdk1.4.2/jre/classes, sun.java2d.fontpath=3D, java.vm.specification.vendor=
=3DSun Microsystems Inc., java.runtime.version=3D1.4.2-b28, default_schema=
=3Dmjpp, weblogic.Name=3Dmyserver, jmx.implementation.vendor=3DSun Microsys=
tems, user.name=3Dabezaf01, hibernate.session_factory_name=3Djava:comp/env/=
hibernate/SessionFactory, jmx.implementation.name=3DJMX RI, user.language=
=3Den, java.naming.factory.initial=3Dweblogic.jndi.WLInitialContextFactory,=
sun.boot.library.path=3D/usr/j2sdk1.4.2/jre/lib/sparc, dialect=3Dnet.sf.hi=
bernate.dialect.DB2Dialect, jmx.specification.name=3DJava Management Extens=
ions, java.version=3D1.4.2, version=3D2.4.1, user.timezone=3DUS/Pacific, su=
n.arch.data.model=3D32, hibernate.use_outer_join=3Dfalse, javax.rmi.CORBA.U=
tilClass=3Dweblogic.iiop.UtilDelegateImpl, jmx.specification.version=3D1.0 =
Final Release, java.endorsed.dirs=3D/usr/j2sdk1.4.2/jre/lib/endorsed, vde.h=
ome=3D./myserver/ldap, sun.cpu.isalist=3Dsparcv9+vis2 sparcv9+vis sparcv9 s=
parcv8plus+vis sparcv8plus sparcv8 sparcv8-fsmuld sparcv7 sparc, jmx.implem=
entation.version=3D1.0, file.encoding.pkg=3Dsun.io, weblogic.mbeanLegalClau=
se.ByPass=3Dfalse, file.separator=3D/, java.specification.name=3DJava Platf=
orm API Specification, hibernate.cglib.use_reflection_optimizer=3Dtrue, jav=
a.class.version=3D48.0, java.home=3D/usr/j2sdk1.4.2/jre, java.vm.info=3Dmix=
ed mode, os.version=3D5.8, hibernate.connection.datasource=3DplatinumDataSo=
urce, org.omg.CORBA.ORBSingletonClass=3Dweblogic.corba.orb.ORB, path.separa=
tor=3D:, java.vm.version=3D1.4.2-b28, java.util.prefs.PreferencesFactory=3D=
java.util.prefs.FileSystemPreferencesFactory, vendor-url=3Dhttp://xml.apach=
e.org/xalan-j, java.protocol.handler.pkgs=3Dweblogic.utils|weblogic.utils|w=
eblogic.net, jmx.specification.vendor=3DSun Microsystems, java.awt.printerj=
ob=3Dsun.print.PSPrinterJob, vendor=3DApache Software Foundation, java.secu=
rity.policy=3D=3D./mjpconfig/mjplus.policy, sun.io.unicode.encoding=3DUnico=
deBig, java.naming.factory.url.pkgs=3Dweblogic.jndi.factories:weblogic.corb=
a.j2ee.naming.url, query.substitutions=3Dtrue=3D'Y',false=3D'N', user.home=
=3D/home/abezaf01, hibernate.query.substitutions=3Dtrue=3D'Y',false=3D'N', =
java.specification.vendor=3DSun Microsystems Inc., org.xml.sax.driver=3Dweb=
logic.apache.xerces.parsers.SAXParser, java.library.path=3D/usr/j2sdk1.4.2/=
jre/lib/sparc/server:/usr/j2sdk1.4.2/jre/lib/sparc:/usr/j2sdk1.4.2/jre/../l=
ib/sparc:/home/webfousr/bea/weblogic81/server/lib/solaris:/home/webfousr/be=
a/weblogic81/server/lib/solaris/oci817_8:/usr/lib, java.vendor.url=3Dhttp:/=
/java.sun.com/, java.vm.vendor=3DSun Microsystems Inc., hibernate.dialect=
=3Dnet.sf.hibernate.dialect.DB2Dialect, java.runtime.name=3DJava(TM) 2 Runt=
ime Environment, Standard Edition, java.class.path=3D./lib/util.jar:./lib/s=
aaj-api.jar:./lib/mjpsecurity.jar:./lib/log4j-1.2.8.jar:./lib/db2.jar:./lib=
/commons-logging.jar:./lib/base.jar:./mjpconfig/props:/usr/j2sdk1.4.2/lib/t=
ools.jar:/home/webfousr/bea/weblogic81/server/lib/weblogic_sp.jar:/home/web=
fousr/bea/weblogic81/server/lib/weblogic.jar:/home/webfousr/bea/weblogic81/=
server/lib/ojdbc14.jar::/home/webfousr/bea/weblogic81/common/eval/pointbase=
/lib/pbserver44.jar:/home/webfousr/bea/weblogic81/common/eval/pointbase/lib=
/pbclient44.jar:/usr/j2sdk1.4.2/jre/lib/rt.jar:/home/webfousr/bea/weblogic8=
1/server/lib/webservices.jar:, use_outer_join=3Dfalse, java.vm.specificatio=
n.name=3DJava Virtual Machine Specification, java.vm.specification.version=
=3D1.0, javax.rmi.CORBA.PortableRemoteObjectClass=3Dweblogic.iiop.PortableR=
emoteObjectDelegateImpl, sun.cpu.endian=3Dbig, sun.os.patch.level=3Dunknown=
, java.io.tmpdir=3D/var/tmp/, java.vendor.url.bug=3Dhttp://java.sun.com/cgi=
-bin/bugreport.cgi, hibernate.default_schema=3Dmjpp, java.awt.graphicsenv=
=3Dsun.awt.X11GraphicsEnvironment, os.arch=3Dsparc, java.ext.dirs=3D/usr/j2=
sdk1.4.2/jre/lib/ext, user.dir=3D/home/abezaf01/wlsdomains/v8domain, line.s=
eparator=3D
, java.security.manager=3D, java.vm.name=3DJava HotSpot(TM) Server VM, java=
.security.auth.login.config=3D=3D./mjpconfig/login.config, javax.xml.soap.M=
essageFactory=3Dcom.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_=
1Impl, org.omg.CORBA.ORBClass=3Dweblogic.corba.orb.ORB, file.encoding=3DISO=
646-US, javax.xml.rpc.ServiceFactory=3Dcom.sun.xml.rpc.client.ServiceFactor=
yImpl, weblogic.ProductionModeEnabled=3D, java.specification.version=3D1.4,=
hibernate.show_sql=3Dfalse}
2003-07-22 16:37:13,970 INFO net.sf.hibernate.dialect.Dialect - Using dial=
ect: net.sf.hibernate.dialect.DB2Dialect
2003-07-22 16:37:14,019 INFO net.sf.hibernate.util.NamingHelper - JNDI Ini=
tialContext properties:{}
2003-07-22 16:37:14,029 INFO net.sf.hibernate.connection.DatasourceConnect=
ionProvider - Using datasource: platinumDataSource
2003-07-22 16:37:14,030 INFO net.sf.hibernate.impl.SessionFactoryImpl - Us=
e outer join fetching: false
2003-07-22 16:37:14,463 INFO net.sf.hibernate.impl.SessionFactoryImpl - Us=
e scrollable result sets: true
2003-07-22 16:37:14,463 INFO net.sf.hibernate.impl.SessionFactoryImpl - De=
fault schema set to: mjpp
2003-07-22 16:37:15,789 DEBUG net.sf.hibernate.impl.SessionFactoryObjectFac=
tory - initializing class SessionFactoryObjectFactory
2003-07-22 16:37:15,800 DEBUG net.sf.hibernate.impl.SessionFactoryObjectFac=
tory - registered: 8a7b78e8nullf68c5fa7null00f6null8c5faf05null0000 (java:c=
omp/env/hibernate/SessionFactory)
2003-07-22 16:37:15,800 INFO net.sf.hibernate.impl.SessionFactoryObjectFac=
tory - Factory name: java:comp/env/hibernate/SessionFactory
2003-07-22 16:37:15,801 INFO net.sf.hibernate.util.NamingHelper - JNDI Ini=
tialContext properties:{}
2003-07-22 16:37:15,802 DEBUG net.sf.hibernate.util.NamingHelper - binding:=
java:comp/env/hibernate/SessionFactory
2003-07-22 16:37:15,808 DEBUG net.sf.hibernate.util.NamingHelper - binding:=
java:comp/env/hibernate/SessionFactory
2003-07-22 16:37:15,811 WARN net.sf.hibernate.impl.SessionFactoryObjectFac=
tory - Could not bind factory to JNDI
javax.naming.OperationNotSupportedException: rebind not allowed in a ReadOn=
lyContext; remaining name 'comp/env/hibernate/SessionFactory'
=09at weblogic.jndi.factories.java.ReadOnlyContextWrapper.newOperationNotSu=
pportedException(ReadOnlyContextWrapper.java:145)
=09at weblogic.jndi.factories.java.ReadOnlyContextWrapper.newOperationNotSu=
pportedException(ReadOnlyContextWrapper.java:161)
=09at weblogic.jndi.factories.java.ReadOnlyContextWrapper.rebind(ReadOnlyCo=
ntextWrapper.java:63)
=09at weblogic.jndi.internal.AbstractURLContext.rebind(AbstractURLContext.j=
ava:149)
=09at javax.naming.InitialContext.rebind(InitialContext.java:367)
=09at net.sf.hibernate.util.NamingHelper.bind(NamingHelper.java:74)
=09at net.sf.hibernate.impl.SessionFactoryObjectFactory.addInstance(Session=
FactoryObjectFactory.java:90)
=09at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.ja=
va:282)
=09at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.=
java:618)
=09at com.rhi.mjq.persistence.HbSessionHelper.<clinit>(HbSessionHelper.java=
:28)
=09at com.rhi.mjq.persistence.dao.ClientDataDao.findIfActive(ClientDataDao.=
java:60)
=09at com.rhi.mjq.persistence.dao.ClientDataDao.findAllStates(ClientDataDao=
.java:34)
=09at com.rhi.mjq.ejb.bean.ClientDataBean.getStates(Unknown Source)
=09at com.rhi.mjq.ejb.bean.ClientDataSession_hhkrc6_ELOImpl.getStates(Clien=
tDataSession_hhkrc6_ELOImpl.java:45)
=09at com.rhi.mjq.web.service.clientdata.ClientDataServiceImpl.getStates(Un=
known Source)
=09at com.rhi.domain.service.ClientDataService__ClientDataEndpoint__Tie.inv=
oke_getStates(ClientDataService__ClientDataEndpoint__Tie.java:65)
=09at com.rhi.domain.service.ClientDataService__ClientDataEndpoint__Tie.pro=
cessingHook(ClientDataService__ClientDataEndpoint__Tie.java:192)
=09at com.sun.xml.rpc.server.StreamingHandler.handle(StreamingHandler.java:=
235)
=09at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServle=
tDelegate.java:309)
=09at com.sun.xml.rpc.server.http.JAXRPCServlet.doPost(JAXRPCServlet.java:7=
0)
=09at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
=09at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
=09at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run=
(ServletStubImpl.java:1053)
=09at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm=
pl.java:387)
=09at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm=
pl.java:305)
=09at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio=
n.run(WebAppServletContext.java:6291)
=09at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate=
dSubject.java:317)
=09at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:=
97)
=09at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe=
rvletContext.java:3575)
=09at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm=
pl.java:2573)
=09at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
=09at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|
|
From: <en...@xm...> - 2003-08-13 22:33:17
|
There is a bug that I fixed that generates the wrong finder method for the
primary key if the meta find-method tag is used. I fixed this by adding the
following line:
hibType.put("Integer", "Hibernate.INTEGER");
to the hibType variable in FinderRenderer.java
|
|
From: <en...@xm...> - 2003-08-13 22:29:02
|
There is a bug that I fixed that generates the wrong finder method for the
primary key if the meta find-method tag is used. I fixed this by adding the
following line:
hibType.put("Integer", "Hibernate.INTEGER");
to the hibType variable in FinderRenderer.java
this is for the latest hibernate-extensions release
|
|
From: <leg...@at...> - 2003-08-13 19:53:47
|
The following comment has been added to this issue:
Author: abe zafar
Created: Wed, 13 Aug 2003 1:29 PM
Body:
It seems like Hibernate tried to bind the session factory to a jndi name af=
ter it has already been bound.
Here is my Hibernate.cfg.xml file:
<?xml version=3D"1.0" encoding=3D"UTF-8"?>
<!DOCTYPE hibernate-configuration SYSTEM "http://hibernate.sourceforge.net/=
hibernate-configuration-2.0.dtd">
<hibernate-configuration>
<session-factory name=3D"java:comp/env/hibernate/SessionFactory">
<property name=3D"connection.datasource">mjqDataSource</property>
<property name=3D"show_sql">true</property>
<property name=3D"use_outer_join">false</property>
<property name=3D"dialect">net.sf.hibernate.dialect.DB2Dialect</propert=
y>
<property name=3D"default_schema">mjpp</property>
<property name=3D"query.substitutions">true=3D'Y',false=3D'N'</property=
>
<mapping resource=3D"mapping/Person.hbm.xml"/>
<mapping resource=3D"mapping/PersonAddress.hbm.xml"/>
<mapping resource=3D"mapping/PersonContactMethod.hbm.xml"/>
<mapping resource=3D"mapping/PersonMarketingSource.hbm.xml"/>
<mapping resource=3D"mapping/PersonPayFrequency.hbm.xml"/>
<mapping resource=3D"mapping/PersonTargetType.hbm.xml"/>
</session-factory>
</hibernate-configuration>
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?=
key=3DHB-255
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-255
Summary: javax.naming.OperationNotSupportedException is thrown at load =
time
Type: Bug
Status: Unassigned
Priority: Major
Project: Hibernate2
Components:=20
core
Versions:
2.0 final
Assignee:=20
Reporter: abe zafar
Created: Wed, 13 Aug 2003 1:26 PM
Updated: Wed, 13 Aug 2003 1:26 PM
Environment: JDK1.4 on Weblogic application server 8.0
Description:
The following exception is thrown when Hibernate is loading Hibernate.cfg.x=
ml. In the code snippet below the third line, the call to buildSessionFacto=
ry() throws the exception.
Configuration conf =3D new Configuration();
conf.configure(); // to load default "hibernate.cfg.xml"
sf =3D conf.buildSessionFactory();
2003-07-22 16:37:13,753 DEBUG net.sf.hibernate.cfg.Binder - Mapped property=
: active -> active_flag, type: string
2003-07-22 16:37:13,754 DEBUG net.sf.hibernate.cfg.Configuration - java:com=
p/env/hibernate/SessionFactory<-org.dom4j.tree.DefaultAttribute@ec44cb [Att=
ribute: name resource value "mapping/Country.hbm.xml"]
2003-07-22 16:37:13,754 INFO net.sf.hibernate.cfg.Configuration - Mapping =
resource: mapping/Country.hbm.xml
2003-07-22 16:37:13,768 DEBUG net.sf.hibernate.util.DTDEntityResolver - try=
ing to locate http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in=
classpath under net/sf/hibernate/
2003-07-22 16:37:13,769 DEBUG net.sf.hibernate.util.DTDEntityResolver - fou=
nd http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath
2003-07-22 16:37:13,793 INFO net.sf.hibernate.cfg.Binder - Mapping class: =
com.rhi.domain.Country -> domain_value
2003-07-22 16:37:13,794 DEBUG net.sf.hibernate.cfg.Binder - Mapped property=
: id -> domain_value_id, type: integer
2003-07-22 16:37:13,794 DEBUG net.sf.hibernate.cfg.Binder - Mapped property=
: name -> domain_value, type: string
2003-07-22 16:37:13,794 DEBUG net.sf.hibernate.cfg.Binder - Mapped property=
: active -> active_flag, type: string
2003-07-22 16:37:13,795 INFO net.sf.hibernate.cfg.Configuration - Configur=
ed SessionFactory: java:comp/env/hibernate/SessionFactory
2003-07-22 16:37:13,796 DEBUG net.sf.hibernate.cfg.Configuration - properti=
es: {show_sql=3Dfalse, java.vendor=3DSun Microsystems Inc., org.xml.sax.par=
ser=3Dweblogic.xml.jaxp.RegistryParser, connection.datasource=3DplatinumDat=
aSource, os.name=3DSunOS, sun.boot.class.path=3D/usr/j2sdk1.4.2/jre/lib/rt.=
jar:/usr/j2sdk1.4.2/jre/lib/i18n.jar:/usr/j2sdk1.4.2/jre/lib/sunrsasign.jar=
:/usr/j2sdk1.4.2/jre/lib/jsse.jar:/usr/j2sdk1.4.2/jre/lib/jce.jar:/usr/j2sd=
k1.4.2/jre/lib/charsets.jar:/usr/j2sdk1.4.2/jre/classes, sun.java2d.fontpat=
h=3D, java.vm.specification.vendor=3DSun Microsystems Inc., java.runtime.ve=
rsion=3D1.4.2-b28, default_schema=3Dmjpp, weblogic.Name=3Dmyserver, jmx.imp=
lementation.vendor=3DSun Microsystems, user.name=3Dabezaf01, hibernate.sess=
ion_factory_name=3Djava:comp/env/hibernate/SessionFactory, jmx.implementati=
on.name=3DJMX RI, user.language=3Den, java.naming.factory.initial=3Dweblogi=
c.jndi.WLInitialContextFactory, sun.boot.library.path=3D/usr/j2sdk1.4.2/jre=
/lib/sparc, dialect=3Dnet.sf.hibernate.dialect.DB2Dialect, jmx.specificatio=
n.name=3DJava Management Extensions, java.version=3D1.4.2, version=3D2.4.1,=
user.timezone=3DUS/Pacific, sun.arch.data.model=3D32, hibernate.use_outer_=
join=3Dfalse, javax.rmi.CORBA.UtilClass=3Dweblogic.iiop.UtilDelegateImpl, j=
mx.specification.version=3D1.0 Final Release, java.endorsed.dirs=3D/usr/j2s=
dk1.4.2/jre/lib/endorsed, vde.home=3D./myserver/ldap, sun.cpu.isalist=3Dspa=
rcv9+vis2 sparcv9+vis sparcv9 sparcv8plus+vis sparcv8plus sparcv8 sparcv8-f=
smuld sparcv7 sparc, jmx.implementation.version=3D1.0, file.encoding.pkg=3D=
sun.io, weblogic.mbeanLegalClause.ByPass=3Dfalse, file.separator=3D/, java.=
specification.name=3DJava Platform API Specification, hibernate.cglib.use_r=
eflection_optimizer=3Dtrue, java.class.version=3D48.0, java.home=3D/usr/j2s=
dk1.4.2/jre, java.vm.info=3Dmixed mode, os.version=3D5.8, hibernate.connect=
ion.datasource=3DplatinumDataSource, org.omg.CORBA.ORBSingletonClass=3Dwebl=
ogic.corba.orb.ORB, path.separator=3D:, java.vm.version=3D1.4.2-b28, java.u=
til.prefs.PreferencesFactory=3Djava.util.prefs.FileSystemPreferencesFactory=
, vendor-url=3Dhttp://xml.apache.org/xalan-j, java.protocol.handler.pkgs=3D=
weblogic.utils|weblogic.utils|weblogic.net, jmx.specification.vendor=3DSun =
Microsystems, java.awt.printerjob=3Dsun.print.PSPrinterJob, vendor=3DApache=
Software Foundation, java.security.policy=3D=3D./mjpconfig/mjplus.policy, =
sun.io.unicode.encoding=3DUnicodeBig, query.substitutions=3Dtrue=3D'Y',fals=
e=3D'N', java.naming.factory.url.pkgs=3Dweblogic.jndi.factories:weblogic.co=
rba.j2ee.naming.url, user.home=3D/home/abezaf01, hibernate.query.substituti=
ons=3Dtrue=3D'Y',false=3D'N', java.specification.vendor=3DSun Microsystems =
Inc., org.xml.sax.driver=3Dweblogic.apache.xerces.parsers.SAXParser, java.l=
ibrary.path=3D/usr/j2sdk1.4.2/jre/lib/sparc/server:/usr/j2sdk1.4.2/jre/lib/=
sparc:/usr/j2sdk1.4.2/jre/../lib/sparc:/home/webfousr/bea/weblogic81/server=
/lib/solaris:/home/webfousr/bea/weblogic81/server/lib/solaris/oci817_8:/usr=
/lib, java.vendor.url=3Dhttp://java.sun.com/, java.vm.vendor=3DSun Microsys=
tems Inc., hibernate.dialect=3Dnet.sf.hibernate.dialect.DB2Dialect, java.ru=
ntime.name=3DJava(TM) 2 Runtime Environment, Standard Edition, java.class.p=
ath=3D./lib/util.jar:./lib/saaj-api.jar:./lib/mjpsecurity.jar:./lib/log4j-1=
.2.8.jar:./lib/db2.jar:./lib/commons-logging.jar:./lib/base.jar:./mjpconfig=
/props:/usr/j2sdk1.4.2/lib/tools.jar:/home/webfousr/bea/weblogic81/server/l=
ib/weblogic_sp.jar:/home/webfousr/bea/weblogic81/server/lib/weblogic.jar:/h=
ome/webfousr/bea/weblogic81/server/lib/ojdbc14.jar::/home/webfousr/bea/webl=
ogic81/common/eval/pointbase/lib/pbserver44.jar:/home/webfousr/bea/weblogic=
81/common/eval/pointbase/lib/pbclient44.jar:/usr/j2sdk1.4.2/jre/lib/rt.jar:=
/home/webfousr/bea/weblogic81/server/lib/webservices.jar:, use_outer_join=
=3Dfalse, java.vm.specification.name=3DJava Virtual Machine Specification, =
java.vm.specification.version=3D1.0, javax.rmi.CORBA.PortableRemoteObjectCl=
ass=3Dweblogic.iiop.PortableRemoteObjectDelegateImpl, sun.cpu.endian=3Dbig,=
sun.os.patch.level=3Dunknown, java.io.tmpdir=3D/var/tmp/, java.vendor.url.=
bug=3Dhttp://java.sun.com/cgi-bin/bugreport.cgi, hibernate.default_schema=
=3Dmjpp, os.arch=3Dsparc, java.awt.graphicsenv=3Dsun.awt.X11GraphicsEnviron=
ment, java.ext.dirs=3D/usr/j2sdk1.4.2/jre/lib/ext, user.dir=3D/home/abezaf0=
1/wlsdomains/v8domain, java.security.manager=3D, line.separator=3D
, java.vm.name=3DJava HotSpot(TM) Server VM, java.security.auth.login.confi=
g=3D=3D./mjpconfig/login.config, javax.xml.soap.MessageFactory=3Dcom.sun.xm=
l.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl, file.encoding=3DISO=
646-US, org.omg.CORBA.ORBClass=3Dweblogic.corba.orb.ORB, javax.xml.rpc.Serv=
iceFactory=3Dcom.sun.xml.rpc.client.ServiceFactoryImpl, weblogic.Production=
ModeEnabled=3D, java.specification.version=3D1.4, hibernate.show_sql=3Dfals=
e}
2003-07-22 16:37:13,797 DEBUG net.sf.hibernate.cfg.Binder - Second pass for=
collection: com.rhi.domain.Company.compAddresses
2003-07-22 16:37:13,797 INFO net.sf.hibernate.cfg.Binder - Mapping collect=
ion: com.rhi.domain.Company.compAddresses -> company_address
2003-07-22 16:37:13,798 DEBUG net.sf.hibernate.cfg.Binder - Mapped collecti=
on key: company_id, company_region_id, one-to-many: com.rhi.domain.CompanyA=
ddress
2003-07-22 16:37:13,944 INFO net.sf.hibernate.impl.SessionFactoryImpl - bu=
ilding session factory
2003-07-22 16:37:13,947 DEBUG net.sf.hibernate.impl.SessionFactoryImpl - in=
stantiating session factory with properties: {java.vendor=3DSun Microsystem=
s Inc., show_sql=3Dfalse, org.xml.sax.parser=3Dweblogic.xml.jaxp.RegistryPa=
rser, connection.datasource=3DplatinumDataSource, os.name=3DSunOS, sun.boot=
.class.path=3D/usr/j2sdk1.4.2/jre/lib/rt.jar:/usr/j2sdk1.4.2/jre/lib/i18n.j=
ar:/usr/j2sdk1.4.2/jre/lib/sunrsasign.jar:/usr/j2sdk1.4.2/jre/lib/jsse.jar:=
/usr/j2sdk1.4.2/jre/lib/jce.jar:/usr/j2sdk1.4.2/jre/lib/charsets.jar:/usr/j=
2sdk1.4.2/jre/classes, sun.java2d.fontpath=3D, java.vm.specification.vendor=
=3DSun Microsystems Inc., java.runtime.version=3D1.4.2-b28, default_schema=
=3Dmjpp, weblogic.Name=3Dmyserver, jmx.implementation.vendor=3DSun Microsys=
tems, user.name=3Dabezaf01, hibernate.session_factory_name=3Djava:comp/env/=
hibernate/SessionFactory, jmx.implementation.name=3DJMX RI, user.language=
=3Den, java.naming.factory.initial=3Dweblogic.jndi.WLInitialContextFactory,=
sun.boot.library.path=3D/usr/j2sdk1.4.2/jre/lib/sparc, dialect=3Dnet.sf.hi=
bernate.dialect.DB2Dialect, jmx.specification.name=3DJava Management Extens=
ions, java.version=3D1.4.2, version=3D2.4.1, user.timezone=3DUS/Pacific, su=
n.arch.data.model=3D32, hibernate.use_outer_join=3Dfalse, javax.rmi.CORBA.U=
tilClass=3Dweblogic.iiop.UtilDelegateImpl, jmx.specification.version=3D1.0 =
Final Release, java.endorsed.dirs=3D/usr/j2sdk1.4.2/jre/lib/endorsed, vde.h=
ome=3D./myserver/ldap, sun.cpu.isalist=3Dsparcv9+vis2 sparcv9+vis sparcv9 s=
parcv8plus+vis sparcv8plus sparcv8 sparcv8-fsmuld sparcv7 sparc, jmx.implem=
entation.version=3D1.0, file.encoding.pkg=3Dsun.io, weblogic.mbeanLegalClau=
se.ByPass=3Dfalse, file.separator=3D/, java.specification.name=3DJava Platf=
orm API Specification, hibernate.cglib.use_reflection_optimizer=3Dtrue, jav=
a.class.version=3D48.0, java.home=3D/usr/j2sdk1.4.2/jre, java.vm.info=3Dmix=
ed mode, os.version=3D5.8, hibernate.connection.datasource=3DplatinumDataSo=
urce, org.omg.CORBA.ORBSingletonClass=3Dweblogic.corba.orb.ORB, path.separa=
tor=3D:, java.vm.version=3D1.4.2-b28, java.util.prefs.PreferencesFactory=3D=
java.util.prefs.FileSystemPreferencesFactory, vendor-url=3Dhttp://xml.apach=
e.org/xalan-j, java.protocol.handler.pkgs=3Dweblogic.utils|weblogic.utils|w=
eblogic.net, jmx.specification.vendor=3DSun Microsystems, java.awt.printerj=
ob=3Dsun.print.PSPrinterJob, vendor=3DApache Software Foundation, java.secu=
rity.policy=3D=3D./mjpconfig/mjplus.policy, sun.io.unicode.encoding=3DUnico=
deBig, java.naming.factory.url.pkgs=3Dweblogic.jndi.factories:weblogic.corb=
a.j2ee.naming.url, query.substitutions=3Dtrue=3D'Y',false=3D'N', user.home=
=3D/home/abezaf01, hibernate.query.substitutions=3Dtrue=3D'Y',false=3D'N', =
java.specification.vendor=3DSun Microsystems Inc., org.xml.sax.driver=3Dweb=
logic.apache.xerces.parsers.SAXParser, java.library.path=3D/usr/j2sdk1.4.2/=
jre/lib/sparc/server:/usr/j2sdk1.4.2/jre/lib/sparc:/usr/j2sdk1.4.2/jre/../l=
ib/sparc:/home/webfousr/bea/weblogic81/server/lib/solaris:/home/webfousr/be=
a/weblogic81/server/lib/solaris/oci817_8:/usr/lib, java.vendor.url=3Dhttp:/=
/java.sun.com/, java.vm.vendor=3DSun Microsystems Inc., hibernate.dialect=
=3Dnet.sf.hibernate.dialect.DB2Dialect, java.runtime.name=3DJava(TM) 2 Runt=
ime Environment, Standard Edition, java.class.path=3D./lib/util.jar:./lib/s=
aaj-api.jar:./lib/mjpsecurity.jar:./lib/log4j-1.2.8.jar:./lib/db2.jar:./lib=
/commons-logging.jar:./lib/base.jar:./mjpconfig/props:/usr/j2sdk1.4.2/lib/t=
ools.jar:/home/webfousr/bea/weblogic81/server/lib/weblogic_sp.jar:/home/web=
fousr/bea/weblogic81/server/lib/weblogic.jar:/home/webfousr/bea/weblogic81/=
server/lib/ojdbc14.jar::/home/webfousr/bea/weblogic81/common/eval/pointbase=
/lib/pbserver44.jar:/home/webfousr/bea/weblogic81/common/eval/pointbase/lib=
/pbclient44.jar:/usr/j2sdk1.4.2/jre/lib/rt.jar:/home/webfousr/bea/weblogic8=
1/server/lib/webservices.jar:, use_outer_join=3Dfalse, java.vm.specificatio=
n.name=3DJava Virtual Machine Specification, java.vm.specification.version=
=3D1.0, javax.rmi.CORBA.PortableRemoteObjectClass=3Dweblogic.iiop.PortableR=
emoteObjectDelegateImpl, sun.cpu.endian=3Dbig, sun.os.patch.level=3Dunknown=
, java.io.tmpdir=3D/var/tmp/, java.vendor.url.bug=3Dhttp://java.sun.com/cgi=
-bin/bugreport.cgi, hibernate.default_schema=3Dmjpp, java.awt.graphicsenv=
=3Dsun.awt.X11GraphicsEnvironment, os.arch=3Dsparc, java.ext.dirs=3D/usr/j2=
sdk1.4.2/jre/lib/ext, user.dir=3D/home/abezaf01/wlsdomains/v8domain, line.s=
eparator=3D
, java.security.manager=3D, java.vm.name=3DJava HotSpot(TM) Server VM, java=
.security.auth.login.config=3D=3D./mjpconfig/login.config, javax.xml.soap.M=
essageFactory=3Dcom.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_=
1Impl, org.omg.CORBA.ORBClass=3Dweblogic.corba.orb.ORB, file.encoding=3DISO=
646-US, javax.xml.rpc.ServiceFactory=3Dcom.sun.xml.rpc.client.ServiceFactor=
yImpl, weblogic.ProductionModeEnabled=3D, java.specification.version=3D1.4,=
hibernate.show_sql=3Dfalse}
2003-07-22 16:37:13,970 INFO net.sf.hibernate.dialect.Dialect - Using dial=
ect: net.sf.hibernate.dialect.DB2Dialect
2003-07-22 16:37:14,019 INFO net.sf.hibernate.util.NamingHelper - JNDI Ini=
tialContext properties:{}
2003-07-22 16:37:14,029 INFO net.sf.hibernate.connection.DatasourceConnect=
ionProvider - Using datasource: platinumDataSource
2003-07-22 16:37:14,030 INFO net.sf.hibernate.impl.SessionFactoryImpl - Us=
e outer join fetching: false
2003-07-22 16:37:14,463 INFO net.sf.hibernate.impl.SessionFactoryImpl - Us=
e scrollable result sets: true
2003-07-22 16:37:14,463 INFO net.sf.hibernate.impl.SessionFactoryImpl - De=
fault schema set to: mjpp
2003-07-22 16:37:15,789 DEBUG net.sf.hibernate.impl.SessionFactoryObjectFac=
tory - initializing class SessionFactoryObjectFactory
2003-07-22 16:37:15,800 DEBUG net.sf.hibernate.impl.SessionFactoryObjectFac=
tory - registered: 8a7b78e8nullf68c5fa7null00f6null8c5faf05null0000 (java:c=
omp/env/hibernate/SessionFactory)
2003-07-22 16:37:15,800 INFO net.sf.hibernate.impl.SessionFactoryObjectFac=
tory - Factory name: java:comp/env/hibernate/SessionFactory
2003-07-22 16:37:15,801 INFO net.sf.hibernate.util.NamingHelper - JNDI Ini=
tialContext properties:{}
2003-07-22 16:37:15,802 DEBUG net.sf.hibernate.util.NamingHelper - binding:=
java:comp/env/hibernate/SessionFactory
2003-07-22 16:37:15,808 DEBUG net.sf.hibernate.util.NamingHelper - binding:=
java:comp/env/hibernate/SessionFactory
2003-07-22 16:37:15,811 WARN net.sf.hibernate.impl.SessionFactoryObjectFac=
tory - Could not bind factory to JNDI
javax.naming.OperationNotSupportedException: rebind not allowed in a ReadOn=
lyContext; remaining name 'comp/env/hibernate/SessionFactory'
=09at weblogic.jndi.factories.java.ReadOnlyContextWrapper.newOperationNotSu=
pportedException(ReadOnlyContextWrapper.java:145)
=09at weblogic.jndi.factories.java.ReadOnlyContextWrapper.newOperationNotSu=
pportedException(ReadOnlyContextWrapper.java:161)
=09at weblogic.jndi.factories.java.ReadOnlyContextWrapper.rebind(ReadOnlyCo=
ntextWrapper.java:63)
=09at weblogic.jndi.internal.AbstractURLContext.rebind(AbstractURLContext.j=
ava:149)
=09at javax.naming.InitialContext.rebind(InitialContext.java:367)
=09at net.sf.hibernate.util.NamingHelper.bind(NamingHelper.java:74)
=09at net.sf.hibernate.impl.SessionFactoryObjectFactory.addInstance(Session=
FactoryObjectFactory.java:90)
=09at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.ja=
va:282)
=09at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.=
java:618)
=09at com.rhi.mjq.persistence.HbSessionHelper.<clinit>(HbSessionHelper.java=
:28)
=09at com.rhi.mjq.persistence.dao.ClientDataDao.findIfActive(ClientDataDao.=
java:60)
=09at com.rhi.mjq.persistence.dao.ClientDataDao.findAllStates(ClientDataDao=
.java:34)
=09at com.rhi.mjq.ejb.bean.ClientDataBean.getStates(Unknown Source)
=09at com.rhi.mjq.ejb.bean.ClientDataSession_hhkrc6_ELOImpl.getStates(Clien=
tDataSession_hhkrc6_ELOImpl.java:45)
=09at com.rhi.mjq.web.service.clientdata.ClientDataServiceImpl.getStates(Un=
known Source)
=09at com.rhi.domain.service.ClientDataService__ClientDataEndpoint__Tie.inv=
oke_getStates(ClientDataService__ClientDataEndpoint__Tie.java:65)
=09at com.rhi.domain.service.ClientDataService__ClientDataEndpoint__Tie.pro=
cessingHook(ClientDataService__ClientDataEndpoint__Tie.java:192)
=09at com.sun.xml.rpc.server.StreamingHandler.handle(StreamingHandler.java:=
235)
=09at com.sun.xml.rpc.server.http.JAXRPCServletDelegate.doPost(JAXRPCServle=
tDelegate.java:309)
=09at com.sun.xml.rpc.server.http.JAXRPCServlet.doPost(JAXRPCServlet.java:7=
0)
=09at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
=09at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
=09at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run=
(ServletStubImpl.java:1053)
=09at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm=
pl.java:387)
=09at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm=
pl.java:305)
=09at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio=
n.run(WebAppServletContext.java:6291)
=09at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate=
dSubject.java:317)
=09at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:=
97)
=09at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe=
rvletContext.java:3575)
=09at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm=
pl.java:2573)
=09at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
=09at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|
|
From: <leg...@at...> - 2003-08-13 19:50:15
|
Message:
The following issue has been closed.
Resolver: Max Rydahl Andersen
Date: Wed, 13 Aug 2003 2:43 PM
finally closed ;)
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-243
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-243
Summary: Polymorphic associations are not handled properly
Type: Improvement
Status: Closed
Priority: Major
Resolution: FIXED
Project: Hibernate2
Components:
toolset
Fix Fors:
2.1
Versions:
2.0 final
Assignee: Max Rydahl Andersen
Reporter: abe zafar
Created: Sun, 10 Aug 2003 2:54 AM
Updated: Wed, 13 Aug 2003 2:43 PM
Environment: JDK1.4
Description:
If I have an association like this one:
<many-to-one classname="com.hp.Printer"/>
and Printer does not have a mapping but it is an interface for a class called com.hp.ColorPrinter that does have a mapping, I would get two methods generated as I would expect:
public void setPrinter( Printer printer ) {
...
}
public Printer getPrinter() {
...
}
But since "com.hp.Printer" was never mapped I would get a rutime exception saying cannot find the mapping. If through some other tag or the <many-to-one> tag itself I can indicate that use the interface type for code generation but use the implementation class to look for the mapping the problem would be solved. For example if we had something like this:
<many-to-one compile-time-class="com.hp.Printer" run-time-class="com.hp.ColorPrinter"/> then the setter and getter would be generated using the compile-time-class and the run-time-class would be used to look up the mapping at runtime.
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|
|
From: <leg...@at...> - 2003-08-13 19:48:19
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-258 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-258 Summary: Not all ClassPersister's implements ClassMetadata Type: Improvement Status: Unassigned Priority: Minor Project: Hibernate2 Components: core Versions: 2.1 Assignee: Reporter: Max Rydahl Andersen Created: Wed, 13 Aug 2003 2:46 PM Updated: Wed, 13 Aug 2003 2:46 PM Description: When using a CustomPersister the only requirement is that it extends ClassPersister - this makes it possible to have SessionFactory return objects in getAllClassMetadata() that does NOT implement ClassMetadata. This is not good for tools like hibern8ide and the uniformity of the api.....should ClassPersister extend ClassMetadata to enforce the "contract" ? Gavin: this "functionallity" is the reason you get an exception in hibern8ide - just add Custom.hbm.xml and you'll see it everytime ;) --------------------------------------------------------------------- JIRA INFORMATION: 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 If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |