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-09-04 16:04:32
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-310 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-310 Summary: CharacterType.get(ResultSet rs, String name) on zero length String Type: Bug Status: Unassigned Priority: Blocker Project: Hibernate2 Components: core Versions: 2.0.2 2.0.3 Assignee: Reporter: Tim Schafer Created: Thu, 4 Sep 2003 11:03 AM Updated: Thu, 4 Sep 2003 11:03 AM Environment: Sun JDK 1.4.2 Mysql 4.0.13 Description: The get method of CharacterType is calling java.lang.String.charAt(0) on a String instance that has zero length This resulted rom trying to load a mapped object from a Mysql 4.0.13 record that has a blank column Sep 4, 2003 8:55:27 AM net.sf.hibernate.impl.IteratorImpl next SEVERE: could not get next result java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at java.lang.String.charAt(Unknown Source) at net.sf.hibernate.type.CharacterType.get(CharacterType.java:19) at net.sf.hibernate.type.NullableType.nullSafeGet(NullableType.java:59) at net.sf.hibernate.type.NullableType.nullSafeGet(NullableType.java:51) at net.sf.hibernate.type.ComponentType.nullSafeGet(ComponentType.java:139) at net.sf.hibernate.collection.CollectionPersister.readElement(CollectionPersister.java:377) at net.sf.hibernate.collection.Set.readFrom(Set.java:242) at net.sf.hibernate.loader.Loader.doFind(Loader.java:175) at net.sf.hibernate.loader.Loader.loadCollection(Loader.java:602) at net.sf.hibernate.loader.CollectionLoader.initialize(CollectionLoader.java:82) at net.sf.hibernate.impl.SessionImpl.initialize(SessionImpl.java:2897) at net.sf.hibernate.collection.PersistentCollection.getInitialValue(PersistentCollection.java:128) at net.sf.hibernate.type.PersistentCollectionType.getCollection(PersistentCollectionType.java:74) at net.sf.hibernate.type.PersistentCollectionType.resolveIdentifier(PersistentCollectionType.java:177) at net.sf.hibernate.impl.SessionImpl.initializeEntity(SessionImpl.java:1959) at net.sf.hibernate.loader.Loader.doFind(Loader.java:196) at net.sf.hibernate.loader.Loader.loadEntity(Loader.java:587) at net.sf.hibernate.loader.EntityLoader.load(EntityLoader.java:42) at net.sf.hibernate.persister.EntityPersister.load(EntityPersister.java:396) at net.sf.hibernate.impl.SessionImpl.doLoad(SessionImpl.java:1889) at net.sf.hibernate.impl.SessionImpl.doLoadByClass(SessionImpl.java:1757) at net.sf.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:1716) at net.sf.hibernate.type.ManyToOneType.resolveIdentifier(ManyToOneType.java:62) at net.sf.hibernate.type.EntityType.nullSafeGet(EntityType.java:109) at net.sf.hibernate.impl.IteratorImpl.postNext(IteratorImpl.java:57) at net.sf.hibernate.impl.IteratorImpl.next(IteratorImpl.java:70) at test.TestHibernate.main(TestHibernate.java:94) java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at java.lang.String.charAt(Unknown Source) at net.sf.hibernate.type.CharacterType.get(CharacterType.java:19) at net.sf.hibernate.type.NullableType.nullSafeGet(NullableType.java:59) at net.sf.hibernate.type.NullableType.nullSafeGet(NullableType.java:51) at net.sf.hibernate.type.ComponentType.nullSafeGet(ComponentType.java:139) at net.sf.hibernate.collection.CollectionPersister.readElement(CollectionPersister.java:377) at net.sf.hibernate.collection.Set.readFrom(Set.java:242) at net.sf.hibernate.loader.Loader.doFind(Loader.java:175) at net.sf.hibernate.loader.Loader.loadCollection(Loader.java:602) at net.sf.hibernate.loader.CollectionLoader.initialize(CollectionLoader.java:82) at net.sf.hibernate.impl.SessionImpl.initialize(SessionImpl.java:2897) at net.sf.hibernate.collection.PersistentCollection.getInitialValue(PersistentCollection.java:128) at net.sf.hibernate.type.PersistentCollectionType.getCollection(PersistentCollectionType.java:74) at net.sf.hibernate.type.PersistentCollectionType.resolveIdentifier(PersistentCollectionType.java:177) at net.sf.hibernate.impl.SessionImpl.initializeEntity(SessionImpl.java:1959) at net.sf.hibernate.loader.Loader.doFind(Loader.java:196) at net.sf.hibernate.loader.Loader.loadEntity(Loader.java:587) at net.sf.hibernate.loader.EntityLoader.load(EntityLoader.java:42) at net.sf.hibernate.persister.EntityPersister.load(EntityPersister.java:396) at net.sf.hibernate.impl.SessionImpl.doLoad(SessionImpl.java:1889) at net.sf.hibernate.impl.SessionImpl.doLoadByClass(SessionImpl.java:1757) at net.sf.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:1716) at net.sf.hibernate.type.ManyToOneType.resolveIdentifier(ManyToOneType.java:62) at net.sf.hibernate.type.EntityType.nullSafeGet(EntityType.java:109) at net.sf.hibernate.impl.IteratorImpl.postNext(IteratorImpl.java:57) at net.sf.hibernate.impl.IteratorImpl.next(IteratorImpl.java:70) at test.TestHibernate.main(TestHibernate.java:94) rethrown as net.sf.hibernate.LazyInitializationException: Hibernate lazy instantiation problem: String index out of range: 0 at net.sf.hibernate.impl.IteratorImpl.next(IteratorImpl.java:81) at test.TestHibernate.main(TestHibernate.java:94) Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at java.lang.String.charAt(Unknown Source) at net.sf.hibernate.type.CharacterType.get(CharacterType.java:19) at net.sf.hibernate.type.NullableType.nullSafeGet(NullableType.java:59) at net.sf.hibernate.type.NullableType.nullSafeGet(NullableType.java:51) at net.sf.hibernate.type.ComponentType.nullSafeGet(ComponentType.java:139) at net.sf.hibernate.collection.CollectionPersister.readElement(CollectionPersister.java:377) at net.sf.hibernate.collection.Set.readFrom(Set.java:242) at net.sf.hibernate.loader.Loader.doFind(Loader.java:175) at net.sf.hibernate.loader.Loader.loadCollection(Loader.java:602) at net.sf.hibernate.loader.CollectionLoader.initialize(CollectionLoader.java:82) at net.sf.hibernate.impl.SessionImpl.initialize(SessionImpl.java:2897) at net.sf.hibernate.collection.PersistentCollection.getInitialValue(PersistentCollection.java:128) at net.sf.hibernate.type.PersistentCollectionType.getCollection(PersistentCollectionType.java:74) at net.sf.hibernate.type.PersistentCollectionType.resolveIdentifier(PersistentCollectionType.java:177) at net.sf.hibernate.impl.SessionImpl.initializeEntity(SessionImpl.java:1959) at net.sf.hibernate.loader.Loader.doFind(Loader.java:196) at net.sf.hibernate.loader.Loader.loadEntity(Loader.java:587) at net.sf.hibernate.loader.EntityLoader.load(EntityLoader.java:42) at net.sf.hibernate.persister.EntityPersister.load(EntityPersister.java:396) at net.sf.hibernate.impl.SessionImpl.doLoad(SessionImpl.java:1889) at net.sf.hibernate.impl.SessionImpl.doLoadByClass(SessionImpl.java:1757) at net.sf.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:1716) at net.sf.hibernate.type.ManyToOneType.resolveIdentifier(ManyToOneType.java:62) at net.sf.hibernate.type.EntityType.nullSafeGet(EntityType.java:109) at net.sf.hibernate.impl.IteratorImpl.postNext(IteratorImpl.java:57) at net.sf.hibernate.impl.IteratorImpl.next(IteratorImpl.java:70) ... 1 more --------------------------------------------------------------------- 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-09-04 15:12:33
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-309 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-309 Summary: hbm2java: render default values specified in mapping in default constructor Type: New Feature Status: Unassigned Priority: Minor Project: Hibernate2 Components: toolset Assignee: Reporter: Klaus Zimmermann Created: Thu, 4 Sep 2003 10:12 AM Updated: Thu, 4 Sep 2003 10:12 AM Description: It would be nice to be able to specify default values in the mapping (via a meta-attribute?) which then would be rendered into the default constructor of automatically generated classes. Suggested syntax: <class name="foo"> <property name="name" type="string"> <meta attribute="default-value">bar</meta> </property> </class> --------------------------------------------------------------------- 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-09-04 12:09:27
|
The following comment has been added to this issue: Author: Reha CENANI Created: Thu, 4 Sep 2003 7:09 AM Body: Ok, I will send patches for both dialects. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-293 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-293 Summary: Seperating InterBase and Firebird dialects Type: Improvement Status: Assigned Priority: Major Project: Hibernate2 Components: core Assignee: Max Rydahl Andersen Reporter: Reha CENANI Created: Tue, 26 Aug 2003 6:46 AM Updated: Sat, 30 Aug 2003 5:36 PM Description: At the begining, opensource Firebird (or FirebirdSQL) was based on the same source code of commercial InterBase. But during past three years, lots of improvements are done to the Firebird. Recent versions of these DBMSs have different features and statement syntaxes. For example, their select offset/limit statement syntaxes are not compatible. Hibernate's recent InterbaseDialect select limit/offset feature is based on the Firebird's select statement syntax. So, in order to prevent incompabilities and confussion, in addition to the InterbaseDialect, adding a new FirebirdDialect and seperating Firebird and InterBase features will be very helpfull. --------------------------------------------------------------------- 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-09-04 11:33:27
|
The following comment has been added to this issue: Author: Mathias Bogaert Created: Thu, 4 Sep 2003 6:32 AM Body: After verifying it, I'm _certain_ I'm not accessing it from different threads. It has something to do with the object that is removed from the hashmap (and that is in the collection being initialized) already was loaded by the session before. I'll continue trying to reproduce in a testcase. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-296 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-296 Summary: ConcurrentModificationException when initializing collection Type: Bug Status: Assigned Priority: Major Project: Hibernate2 Components: core Versions: 2.1 Assignee: Gavin King Reporter: Mathias Bogaert Created: Thu, 28 Aug 2003 6:49 AM Updated: Thu, 28 Aug 2003 3:41 PM Environment: 2.1 beta 2 from CVS Description: When initializing a collection, I get the following stacktrace (not seen with Hibernate 2.0.3): 8047 ERROR [tcpConnection-81-0] (webwork.dispatcher.ServletDispatcher:188) - Could not execute action java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.remove(HashMap.java:801) at net.sf.hibernate.impl.SessionImpl.endLoadingCollections(SessionImpl.java:2973) at net.sf.hibernate.loader.Loader.doResultSet(Loader.java:224) at net.sf.hibernate.loader.Loader.doFind(Loader.java:113) at net.sf.hibernate.loader.Loader.loadCollection(Loader.java:720) at net.sf.hibernate.loader.Loader.loadCollection(Loader.java:703) at net.sf.hibernate.loader.OneToManyLoader.initialize(OneToManyLoader.java:74) at net.sf.hibernate.impl.SessionImpl.initialize(SessionImpl.java:3101) at net.sf.hibernate.collection.PersistentCollection.forceLoad(PersistentCollection.java:236) at net.sf.hibernate.Hibernate.initialize(Hibernate.java:255) at com.intrasoft.persistence.hibernate.HibernatePersistenceService.initialize(HibernatePersistenceService.java:143) at com.intrasoft.sysaudit.mission.action.wizard.AbstractMissionStepAction.initializeMission(AbstractMissionStepAction.java:112) at com.intrasoft.sysaudit.mission.action.wizard.AbstractMissionStepAction.saveMissionInSession(AbstractMissionStepAction.java:74) at com.intrasoft.sysaudit.mission.action.wizard.MissionStep1.doExecute(MissionStep1.java:173) at com.opensymphony.xwork.ActionSupport.execute(ActionSupport.java:31) Here is my code: if (mission.getUnit() != null) { persistenceService.initialize(mission.getUnit().getUsers()); } and in HibernatePersistenceService: public void initialize(Object objectToInitialize) { try { if (!Hibernate.isInitialized(objectToInitialize)) { Hibernate.initialize(objectToInitialize); } } catch (HibernateException e) { throw new InfrastructureException(e); } } --------------------------------------------------------------------- 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-09-04 03:50:27
|
Message: The following issue has been closed. Resolver: Gavin King Date: Wed, 3 Sep 2003 10:48 PM I have answered this in the forum. It actually all seems to be working as e= xpected ... except after some playing I did find and fix a related bug. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?= key=3DHB-307 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-307 Summary: null values on save with Set & Composite-element, many-to-many= w xtra cols Type: Bug Status: Closed Priority: Minor Resolution: REJECTED Project: Hibernate2 Components:=20 core Versions: 2.1 beta 1 Assignee:=20 Reporter: Jeff Boring Created: Wed, 3 Sep 2003 11:14 AM Updated: Wed, 3 Sep 2003 10:48 PM Environment: Hibernate v2.1 beta 1, Oracle v8, Eclipse, Win2000 Description: NPE on save of an entity mapped to a Set with a composite-element. This iss= ue relates to forum post http://forum.hibernate.org/viewtopic.php?t=3D161. = Wanted to try with v2.1 beta 2 but having trouble with download. You ask for a main method that shows the issue. I assumed I would be able t= o attach my files here but all I see is this text box. So pasting. Let me k= now if & how to send files. jef...@si... When saving an AppUser with 1 Role, fails on commit as marked - npe. Tracki= ng it down led to postFlush of SessionImpl, the "snapshot =3D collection.ge= tSnapshot(loadedPersister); //re-snapshot"=09line. This call invokes UserRo= le.hashCode but user is null so get npe. Other properties are fiine. This w= orks fine without UserRole.hashcode but deletes the collection. Below are the main method and a stacktrace. public static void main(String[] args) throws HibernateException { =09=09 =09=09try { =09=09=09cfg =3D new Configuration(); =09=09=09cfg.addClass(AppUser.class); =09=09=09cfg.addClass(Role.class); =09=09=09sf =3D cfg.buildSessionFactory(); =09=09} =09=09catch (Exception e ){ =09=09=09e.printStackTrace(); =09=09=09return; =09=09} =09=09 =09=09Session sess =3D null; Transaction xac =3D null; =09=09Role roleA =3D null; Role roleB =3D null; AppUser user =3D null; User= Role userxref =3D null; =09=09 =09=09// TRANSACTION / UOW #1 =09=09try { =09=09=09sess =3D sf.openSession(); =09=09=09xac =3D sess.beginTransaction(); =09=09=09 =09=09=09roleA =3D new Role( new Long (1), "Role A"); =09=09=09roleB =3D new Role( new Long (2), "Role B"); =09=09=09user =3D new AppUser( new Long(100), "Jeff Boring "); =09=09=09 =09=09=09userxref =3D new UserRole("Serving as role A on project", roleA, u= ser ); =09=09=09user.getRoles().add( userxref ); =09=09=09 =09=09=09sess.save( roleA ); =09=09=09sess.save( roleB ); =09=09=09sess.save( user ); =09=09=09 =09=09=09xac.commit(); // FAILS HERE - NPA =09=09} =09=09catch (Exception e ){ =09=09=09e.printStackTrace(); =09=09=09xac.rollback(); =09=09} =09=09finally { =09=09=09try { =09=09=09=09sess.close(); =09=09=09}=20 =09=09=09catch (HibernateException e1) { e1.printStackTrace(); } =09=09} CONSOLE/STACK TRACE 12:04:11,939 INFO Environment:413 - Hibernate 2.1 beta 1 12:04:11,979 INFO Environment:447 - loaded properties from resource hibern= ate.properties: {hibernate.default_schema=3Dtgbpdba9, hibernate.connection.= driver_class=3Doracle.jdbc.driver.OracleDriver, hibernate.cglib.use_reflect= ion_optimizer=3Dtrue, hibernate.max_fetch_depth=3D2, hibernate.dialect=3Dne= t.sf.hibernate.dialect.OracleDialect, hibernate.jdbc.use_streams_for_binary= =3Dtrue, hibernate.jdbc.batch_size=3D0, hibernate.query.substitutions=3Dtru= e 1, false 0, yes 'Y', no 'N', hibernate.query.imports=3Dnet.sf.hibernate.t= est, net.sf.hibernate.eg, hibernate.proxool.pool_alias=3Dpool1, hibernate.c= onnection.username=3DTGBPDBA9, hibernate.hbm2ddl.auto=3Dcreate-drop, hibern= ate.connection.url=3Djdbc:oracle:thin:@sccci.scsm.siemens.com:1521:OT17, hi= bernate.show_sql=3Dtrue, hibernate.connection.password=3DTGBPDBA9, hibernat= e.statement_cache.size=3D25, hibernate.connection.pool_size=3D1} 12:04:11,999 INFO Environment:461 - using java.io streams to persist binar= y types 12:04:11,999 INFO Environment:462 - using CGLIB reflection optimizer 12:04:12,009 INFO Environment:472 - JVM proxy support: true 12:04:12,020 INFO Configuration:288 - Mapping resource: AppUser.hbm.xml 12:04:13,381 DEBUG DTDEntityResolver:20 - trying to locate http://hibernate= .sourceforge.net/hibernate-mapping-2.0.dtd in classpath under net/sf/hibern= ate/ 12:04:13,381 DEBUG DTDEntityResolver:29 - found http://hibernate.sourceforg= e.net/hibernate-mapping-2.0.dtd in classpath 12:04:13,782 INFO Binder:179 - Mapping class: AppUser -> AppUser 12:04:14,062 DEBUG Binder:390 - Mapped property: userskey -> userskey, type= : long 12:04:14,103 DEBUG Binder:390 - Mapped property: name -> name, type: string 12:04:14,113 INFO Binder:458 - Mapping collection: AppUser.roles -> UserRo= le 12:04:14,153 DEBUG Binder:390 - Mapped property: roles, type: java.util.Set 12:04:14,163 INFO Configuration:288 - Mapping resource: Role.hbm.xml 12:04:14,193 DEBUG DTDEntityResolver:20 - trying to locate http://hibernate= .sourceforge.net/hibernate-mapping-2.0.dtd in classpath under net/sf/hibern= ate/ 12:04:14,203 DEBUG DTDEntityResolver:29 - found http://hibernate.sourceforg= e.net/hibernate-mapping-2.0.dtd in classpath 12:04:14,253 INFO Binder:179 - Mapping class: Role -> ROLE 12:04:14,253 DEBUG Binder:390 - Mapped property: roleskey -> roleskey, type= : long 12:04:14,253 DEBUG Binder:390 - Mapped property: roleDescrip -> roleDescrip= , type: string 12:04:14,253 INFO Configuration:495 - processing one-to-many association m= appings 12:04:14,253 DEBUG Binder:1137 - Second pass for collection: AppUser.roles 12:04:14,263 DEBUG Binder:390 - Mapped property: noteComment -> noteComment= , type: string 12:04:14,273 DEBUG Binder:390 - Mapped property: role -> roleskey, type: Ro= le 12:04:21,283 DEBUG Binder:1149 - Mapped collection key: userskey, element: = noteComment, roleskey, type: UserRole 12:04:21,293 INFO Configuration:504 - processing one-to-one association pr= operty references 12:04:21,303 INFO Configuration:529 - processing foreign key constraints 12:04:21,303 DEBUG Configuration:539 - resolving reference to class: Role 12:04:21,303 DEBUG Configuration:539 - resolving reference to class: AppUse= r 12:04:21,443 INFO SessionFactoryImpl:113 - building session factory 12:04:21,533 INFO Dialect:83 - Using dialect: net.sf.hibernate.dialect.Ora= cleDialect 12:04:21,543 INFO SettingsFactory:56 - Maximim outer join fetch depth: 2 12:04:21,543 INFO SettingsFactory:60 - Use outer join fetching: true 12:04:21,573 INFO DriverManagerConnectionProvider:41 - Hibernate connectio= n pool size: 1 12:04:21,583 INFO DriverManagerConnectionProvider:70 - using driver: oracl= e.jdbc.driver.OracleDriver at URL: jdbc:oracle:thin:@sccci.scsm.siemens.com= :1521:OT17 12:04:21,583 INFO DriverManagerConnectionProvider:71 - connection properti= es: {user=3DTGBPDBA9, password=3DTGBPDBA9} 12:04:21,603 DEBUG DriverManagerConnectionProvider:77 - total checked-out c= onnections: 0 12:04:21,603 DEBUG DriverManagerConnectionProvider:90 - opening new JDBC co= nnection 12:04:24,207 DEBUG DriverManagerConnectionProvider:103 - created connection= to: jdbc:oracle:thin:@sccci.scsm.siemens.com:1521:OT17, Isolation Level: 2 12:04:24,217 DEBUG DriverManagerConnectionProvider:117 - returning connecti= on to pool, pool size: 1 12:04:24,217 INFO SettingsFactory:85 - Use scrollable result sets: true 12:04:24,227 INFO SettingsFactory:89 - Default schema set to: tgbpdba9 12:04:24,227 INFO SettingsFactory:92 - echoing all SQL to stdout 12:04:24,227 INFO SettingsFactory:95 - Query language substitutions: {no= =3D'N', true=3D1, yes=3D'Y', false=3D0} 12:04:24,227 DEBUG SessionFactoryImpl:119 - instantiating session factory w= ith properties: {java.runtime.name=3DJava(TM) 2 Runtime Environment, Standa= rd Edition, hibernate.connection.password=3DTGBPDBA9, sun.boot.library.path= =3DC:\Program Files\Java\j2re1.4.2\bin, hibernate.default_schema=3Dtgbpdba9= , java.vm.version=3D1.4.2-b28, hibernate.proxool.pool_alias=3Dpool1, hibern= ate.connection.username=3DTGBPDBA9, java.vm.vendor=3DSun Microsystems Inc.,= java.vendor.url=3Dhttp://java.sun.com/, path.separator=3D;, java.vm.name= =3DJava HotSpot(TM) Client VM, file.encoding.pkg=3Dsun.io, user.country=3DU= S, sun.os.patch.level=3DService Pack 3, java.vm.specification.name=3DJava V= irtual Machine Specification, user.dir=3DC:\Data\Common\workspace\pma\Sandb= ox, java.runtime.version=3D1.4.2-b28, java.awt.graphicsenv=3Dsun.awt.Win32G= raphicsEnvironment, java.endorsed.dirs=3DC:\Program Files\Java\j2re1.4.2\li= b\endorsed, os.arch=3Dx86, java.io.tmpdir=3DC:\DOCUME~1\boringj\LOCALS~1\Te= mp\, line.separator=3D , java.vm.specification.vendor=3DSun Microsystems Inc., user.variant=3D, os= .name=3DWindows 2000, sun.java2d.fontpath=3D, java.library.path=3DC:\Progra= m Files\Java\j2re1.4.2\bin;.;C:\WINNT\System32;C:\WINNT;C:\Program Files\Or= acle\jre\1.1.7\bin\;C:\Oracle\Ora81\bin\;C:\WINNT\system32;C:\WINNT;C:\WINN= T\System32\Wbem;C:\Program Files\CatPC\Bin;C:\Program Files\CatPC\Windows\S= ystem32;C:\Program Files\CatPC\Windows\System;C:\Program Files\Executive So= ftware\DiskeeperWorkstation\;C:\Program Files\Oracle\jre\1.1.7\bin;U:\Appli= cation Data\Lotus\Notes;C:\Oracle\Ora81\bin;%C:\WINNT%\system32;%C:\WINNT%;= %C:\WINNT%\System32\Wbem;C:\Program Files\Executive Software\DiskeeperWorks= tation;C:\j2sdk1.4.2\bin;C:\Program Files\Rational\ClearCase\bin;C:\Program= Files\Rational\common;C:\PROGRA~1\ULTRAE~1, java.specification.name=3DJava= Platform API Specification, java.class.version=3D48.0, hibernate.connectio= n.pool_size=3D1, java.util.prefs.PreferencesFactory=3Djava.util.prefs.Windo= wsPreferencesFactory, os.version=3D5.0, user.home=3DC:\Documents and Settin= gs\boringj, user.timezone=3DAmerica/New_York, java.awt.printerjob=3Dsun.awt= .windows.WPrinterJob, file.encoding=3DCp1252, java.specification.version=3D= 1.4, hibernate.connection.driver_class=3Doracle.jdbc.driver.OracleDriver, j= ava.class.path=3DC:\Data\Common\workspace\pma\Sandbox;C:\Data\Common\worksp= ace\pma\Hibernate2.1;Q:\It56\Library\hibernate\hibernate-2.1\lib\xml-apis.j= ar;Q:\It56\Library\hibernate\hibernate-2.1\lib\c3p0.jar;Q:\It56\Library\hib= ernate\hibernate-2.1\lib\cglib-asm.jar;Q:\It56\Library\hibernate\hibernate-= 2.1\lib\commons-beanutils.jar;Q:\It56\Library\hibernate\hibernate-2.1\lib\c= ommons-collections.jar;Q:\It56\Library\hibernate\hibernate-2.1\lib\commons-= dbcp.jar;Q:\It56\Library\hibernate\hibernate-2.1\lib\commons-lang.jar;Q:\It= 56\Library\hibernate\hibernate-2.1\lib\commons-logging.jar;Q:\It56\Library\= hibernate\hibernate-2.1\lib\commons-pool.jar;Q:\It56\Library\hibernate\hibe= rnate-2.1\lib\connector.jar;Q:\It56\Library\hibernate\hibernate-2.1\lib\dom= 4j.jar;Q:\It56\Library\hibernate\hibernate-2.1\lib\jaas.jar;Q:\It56\Library= \hibernate\hibernate-2.1\lib\jcs.jar;Q:\It56\Library\hibernate\hibernate-2.= 1\lib\jdbc2_0-stdext.jar;Q:\It56\Library\hibernate\hibernate-2.1\lib\jta.ja= r;Q:\It56\Library\hibernate\hibernate-2.1\lib\junit.jar;Q:\It56\Library\hib= ernate\hibernate-2.1\lib\odmg.jar;Q:\It56\Library\hibernate\hibernate-2.1\l= ib\optional.jar;Q:\It56\Library\hibernate\hibernate-2.1\lib\proxool.jar;Q:\= It56\Library\hibernate\hibernate-2.1\lib\xalan.jar;Q:\It56\Library\hibernat= e\hibernate-2.1\lib\xerces.jar;Q:\It56\Library\hibernate\hibernate-2.1\lib\= ant.jar;C:\jakarta-tomcat-4.1\common\lib\jdbc2_0-stdext.jar;C:\jakarta-tomc= at-4.1\common\lib\classes12.jar;Q:\It56\Library\jakarta-log4j\jakarta-log4j= -1.2.8\dist\lib\log4j-1.2.8.jar;Q:\It56\Library\commons-lang\commons-lang-1= .0.1\commons-lang-1.0.1.jar, user.name=3Dboringj, hibernate.query.substitut= ions=3Dtrue 1, false 0, yes 'Y', no 'N', hibernate.show_sql=3Dtrue, java.vm= .specification.version=3D1.0, java.home=3DC:\Program Files\Java\j2re1.4.2, = sun.arch.data.model=3D32, hibernate.dialect=3Dnet.sf.hibernate.dialect.Orac= leDialect, hibernate.connection.url=3Djdbc:oracle:thin:@sccci.scsm.siemens.= com:1521:OT17, user.language=3Den, java.specification.vendor=3DSun Microsys= tems Inc., awt.toolkit=3Dsun.awt.windows.WToolkit, hibernate.cglib.use_refl= ection_optimizer=3Dtrue, java.vm.info=3Dmixed mode, hibernate.jdbc.use_stre= ams_for_binary=3Dtrue, java.version=3D1.4.2, java.ext.dirs=3DC:\Program Fil= es\Java\j2re1.4.2\lib\ext, sun.boot.class.path=3DC:\Program Files\Java\j2re= 1.4.2\lib\rt.jar;C:\Program Files\Java\j2re1.4.2\lib\i18n.jar;C:\Program Fi= les\Java\j2re1.4.2\lib\sunrsasign.jar;C:\Program Files\Java\j2re1.4.2\lib\j= sse.jar;C:\Program Files\Java\j2re1.4.2\lib\jce.jar;C:\Program Files\Java\j= 2re1.4.2\lib\charsets.jar;C:\Program Files\Java\j2re1.4.2\classes, java.ven= dor=3DSun Microsystems Inc., hibernate.jdbc.batch_size=3D0, file.separator= =3D\, hibernate.query.imports=3Dnet.sf.hibernate.test, net.sf.hibernate.eg,= hibernate.hbm2ddl.auto=3Dcreate-drop, java.vendor.url.bug=3Dhttp://java.su= n.com/cgi-bin/bugreport.cgi, hibernate.statement_cache.size=3D25, sun.io.un= icode.encoding=3DUnicodeLittle, sun.cpu.endian=3Dlittle, hibernate.max_fetc= h_depth=3D2, sun.cpu.isalist=3Dpentium i486 i386} 12:04:24,257 INFO PreparedStatementCache:60 - prepared statement cache siz= e: 25 12:04:25,038 DEBUG SessionFactoryObjectFactory:39 - initializing class Sess= ionFactoryObjectFactory 12:04:25,058 DEBUG SessionFactoryObjectFactory:76 - registered: 01c9a4eef76= 8327d00f768328b440000 (unnamed) 12:04:25,058 INFO SessionFactoryObjectFactory:82 - no JNDI name configured 12:04:25,058 DEBUG SessionFactoryImpl:179 - instantiated session factory 12:04:25,068 INFO Dialect:83 - Using dialect: net.sf.hibernate.dialect.Ora= cleDialect 12:04:25,078 INFO Configuration:495 - processing one-to-many association m= appings 12:04:25,088 INFO Configuration:504 - processing one-to-one association pr= operty references 12:04:25,088 INFO Configuration:529 - processing foreign key constraints 12:04:25,088 INFO Configuration:495 - processing one-to-many association m= appings 12:04:25,088 INFO Configuration:504 - processing one-to-one association pr= operty references 12:04:25,088 INFO Configuration:529 - processing foreign key constraints 12:04:25,098 INFO SchemaExport:96 - Running hbm2ddl schema export 12:04:25,108 INFO SchemaExport:115 - exporting generated schema to databas= e 12:04:25,108 INFO DriverManagerConnectionProvider:41 - Hibernate connectio= n pool size: 1 12:04:25,108 INFO DriverManagerConnectionProvider:70 - using driver: oracl= e.jdbc.driver.OracleDriver at URL: jdbc:oracle:thin:@sccci.scsm.siemens.com= :1521:OT17 12:04:25,108 INFO DriverManagerConnectionProvider:71 - connection properti= es: {user=3DTGBPDBA9, password=3DTGBPDBA9} 12:04:25,108 DEBUG DriverManagerConnectionProvider:77 - total checked-out c= onnections: 0 12:04:25,118 DEBUG DriverManagerConnectionProvider:90 - opening new JDBC co= nnection 12:04:26,741 DEBUG DriverManagerConnectionProvider:103 - created connection= to: jdbc:oracle:thin:@sccci.scsm.siemens.com:1521:OT17, Isolation Level: 2 12:04:26,981 DEBUG SchemaExport:128 - alter table UserRole drop constraint = FKF3F76701F02A3A82 12:04:27,101 DEBUG SchemaExport:128 - alter table UserRole drop constraint = FKF3F76701F02BF357 12:04:27,231 DEBUG SchemaExport:128 - drop table AppUser cascade constraint= s 12:04:27,402 DEBUG SchemaExport:128 - drop table UserRole cascade constrain= ts 12:04:27,562 DEBUG SchemaExport:128 - drop table ROLE cascade constraints 12:04:27,742 DEBUG SchemaExport:144 - create table AppUser ( userskey NUMBER(19,0) not null, name VARCHAR2(20), primary key (userskey) ) 12:04:27,922 DEBUG SchemaExport:144 - create table UserRole ( userskey NUMBER(19,0) not null, noteComment VARCHAR2(255) not null, roleskey NUMBER(19,0) ) 12:04:28,063 DEBUG SchemaExport:144 - create table ROLE ( roleskey NUMBER(19,0) not null, roleDescrip VARCHAR2(10) not null, primary key (roleskey) ) 12:04:28,243 DEBUG SchemaExport:144 - alter table UserRole add constraint F= KF3F76701F02A3A82 foreign key (roleskey) references ROLE 12:04:28,373 DEBUG SchemaExport:144 - alter table UserRole add constraint F= KF3F76701F02BF357 foreign key (userskey) references AppUser 12:04:28,503 INFO SchemaExport:154 - schema export complete 12:04:28,583 DEBUG DriverManagerConnectionProvider:117 - returning connecti= on to pool, pool size: 1 12:04:28,583 INFO DriverManagerConnectionProvider:144 - cleaning up connec= tion pool: jdbc:oracle:thin:@sccci.scsm.siemens.com:1521:OT17 12:04:28,663 INFO Dialect:83 - Using dialect: net.sf.hibernate.dialect.Ora= cleDialect 12:04:28,673 INFO Configuration:495 - processing one-to-many association m= appings 12:04:28,673 INFO Configuration:504 - processing one-to-one association pr= operty references 12:04:28,673 INFO Configuration:529 - processing foreign key constraints 12:04:28,683 INFO Configuration:495 - processing one-to-many association m= appings 12:04:28,683 INFO Configuration:504 - processing one-to-one association pr= operty references 12:04:28,693 INFO Configuration:529 - processing foreign key constraints 12:04:28,703 INFO DriverManagerConnectionProvider:144 - cleaning up connec= tion pool: jdbc:oracle:thin:@sccci.scsm.siemens.com:1521:OT17 12:04:32,429 DEBUG SessionImpl:444 - opened session 12:04:32,499 DEBUG JDBCTransaction:36 - begin 12:04:32,509 DEBUG DriverManagerConnectionProvider:77 - total checked-out c= onnections: 0 12:04:32,509 DEBUG DriverManagerConnectionProvider:83 - using pooled JDBC c= onnection, pool size: 0 12:04:36,455 DEBUG SessionImpl:691 - saving [Role#1] 12:04:36,485 DEBUG SessionImpl:691 - saving [Role#2] 12:04:36,485 DEBUG SessionImpl:691 - saving [AppUser#100] 12:04:36,485 DEBUG Cascades:336 - processing cascades for: AppUser 12:04:36,495 DEBUG Cascades:344 - done processing cascades for: AppUser 12:04:36,515 DEBUG SessionImpl:2561 - Wrapped collection in role: AppUser.r= oles 12:04:37,226 DEBUG Cascades:336 - processing cascades for: AppUser 12:04:37,226 DEBUG Cascades:275 - cascading to collection: AppUser.roles 12:04:37,226 DEBUG Cascades:344 - done processing cascades for: AppUser 12:04:40,661 DEBUG JDBCTransaction:54 - commit 12:04:42,293 DEBUG SessionImpl:2043 - flushing session 12:04:42,303 DEBUG Cascades:336 - processing cascades for: AppUser 12:04:42,303 DEBUG Cascades:275 - cascading to collection: AppUser.roles 12:04:42,303 DEBUG Cascades:344 - done processing cascades for: AppUser 12:04:42,313 DEBUG SessionImpl:2149 - Flushing entities and processing refe= renced collections 12:04:42,323 DEBUG SessionImpl:2591 - Collection found: [AppUser.roles#100]= , was: [<unreferenced>] 12:04:42,323 DEBUG SessionImpl:2433 - Processing unreferenced collections 12:04:42,333 DEBUG SessionImpl:2444 - Scheduling collection removes/(re)cre= ates/updates 12:04:42,333 DEBUG SessionImpl:2055 - Flushed: 3 insertions, 0 updates, 0 d= eletions to 3 objects 12:04:42,343 DEBUG SessionImpl:2060 - Flushed: 1 (re)creations, 0 updates, = 0 removals to 1 collections 12:04:42,343 DEBUG SessionImpl:2090 - executing flush 12:04:42,353 DEBUG EntityPersister:422 - Inserting entity: Role#1 12:04:42,363 DEBUG BatcherImpl:176 - about to open: 0 open PreparedStatemen= ts, 0 open ResultSets 12:04:42,363 DEBUG SessionFactoryImpl:393 - prepared statement get: insert = into tgbpdba9.ROLE (roleDescrip, roleskey) values (?, ?) Hibernate: insert into tgbpdba9.ROLE (roleDescrip, roleskey) values (?, ?) 12:04:42,373 DEBUG PreparedStatementCache:78 - preparing statement: insert = into tgbpdba9.ROLE (roleDescrip, roleskey) values (?, ?) 12:04:42,483 DEBUG EntityPersister:324 - Dehydrating entity: Role#1 12:04:42,483 DEBUG StringType:44 - binding 'Role A' to parameter: 1 12:04:42,483 DEBUG LongType:44 - binding '1' to parameter: 2 12:04:42,614 DEBUG EntityPersister:422 - Inserting entity: Role#2 12:04:42,614 DEBUG EntityPersister:324 - Dehydrating entity: Role#2 12:04:42,614 DEBUG StringType:44 - binding 'Role B' to parameter: 1 12:04:42,624 DEBUG LongType:44 - binding '2' to parameter: 2 12:04:42,704 DEBUG EntityPersister:422 - Inserting entity: AppUser#100 12:04:42,704 DEBUG BatcherImpl:183 - done closing: 0 open PreparedStatement= s, 0 open ResultSets 12:04:42,714 DEBUG PreparedStatementCache:102 - recaching 12:04:42,714 DEBUG PreparedStatementCache:137 - total checked-out statement= s: 0 12:04:42,714 DEBUG PreparedStatementCache:138 - checked out: [] 12:04:42,714 DEBUG BatcherImpl:176 - about to open: 0 open PreparedStatemen= ts, 0 open ResultSets 12:04:42,714 DEBUG SessionFactoryImpl:393 - prepared statement get: insert = into tgbpdba9.AppUser (name, userskey) values (?, ?) Hibernate: insert into tgbpdba9.AppUser (name, userskey) values (?, ?) 12:04:42,724 DEBUG PreparedStatementCache:78 - preparing statement: insert = into tgbpdba9.AppUser (name, userskey) values (?, ?) 12:04:42,814 DEBUG EntityPersister:324 - Dehydrating entity: AppUser#100 12:04:42,814 DEBUG StringType:44 - binding 'Jeff Boring ' to parameter: 1 12:04:42,824 DEBUG LongType:44 - binding '100' to parameter: 2 12:04:42,904 DEBUG BatcherImpl:183 - done closing: 0 open PreparedStatement= s, 0 open ResultSets 12:04:42,914 DEBUG PreparedStatementCache:102 - recaching 12:04:42,914 DEBUG PreparedStatementCache:137 - total checked-out statement= s: 0 12:04:42,914 DEBUG PreparedStatementCache:138 - checked out: [] 12:04:42,914 DEBUG CollectionPersister:667 - Inserting collection: AppUser.= roles#100 12:04:42,924 DEBUG BatcherImpl:176 - about to open: 0 open PreparedStatemen= ts, 0 open ResultSets 12:04:42,924 DEBUG SessionFactoryImpl:393 - prepared statement get: insert = into tgbpdba9.UserRole (userskey, noteComment, roleskey) values (?, ?, ?) Hibernate: insert into tgbpdba9.UserRole (userskey, noteComment, roleskey) = values (?, ?, ?) 12:04:42,924 DEBUG PreparedStatementCache:78 - preparing statement: insert = into tgbpdba9.UserRole (userskey, noteComment, roleskey) values (?, ?, ?) 12:04:43,004 DEBUG LongType:44 - binding '100' to parameter: 1 12:04:43,014 DEBUG StringType:44 - binding 'Serving as role A on project' t= o parameter: 2 12:04:43,014 DEBUG LongType:44 - binding '1' to parameter: 3 12:04:43,104 DEBUG CollectionPersister:693 - done inserting collection 12:04:43,104 DEBUG BatcherImpl:183 - done closing: 0 open PreparedStatement= s, 0 open ResultSets 12:04:43,114 DEBUG PreparedStatementCache:102 - recaching 12:04:43,114 DEBUG PreparedStatementCache:137 - total checked-out statement= s: 0 12:04:43,114 DEBUG PreparedStatementCache:138 - checked out: [] 12:04:45,027 DEBUG SessionImpl:2464 - post flush 12:04:48,302 DEBUG SessionImpl:478 - transaction completion java.lang.NullPointerException --------------------------------------------------------------------- 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-09-04 03:48:28
|
Message: The following issue has been closed. Resolver: Gavin King Date: Wed, 3 Sep 2003 10:47 PM Thanks. I applied this patch. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-306 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-306 Summary: improved error checking in ForeignGenerator Type: Patch Status: Closed Priority: Trivial Resolution: FIXED Project: Hibernate2 Components: core Fix Fors: 2.1 beta 3 Versions: 2.0.3 Assignee: Reporter: Ludovic Orban Created: Wed, 3 Sep 2003 2:44 AM Updated: Wed, 3 Sep 2003 10:47 PM Environment: hibernate 2 CVS version Description: This patch just adds an extra check on a possible null value. In case of problem, the output is much more user-friendly. --------------------------------------------------------------------- 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-09-04 02:01:32
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-308 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-308 Summary: Criteria.iterate() and Criteria.getQueryString() Type: New Feature Status: Unassigned Priority: Major Project: Hibernate2 Assignee: Reporter: YeHuisheng Created: Wed, 3 Sep 2003 9:00 PM Updated: Wed, 3 Sep 2003 9:00 PM Description: 1 Criteria does not have iterate() method, so it can not pull object from cache 2 Criteria does not have a method to get the query string it constructs when i use Query class, i can do this: give me the query string, for example "select foo from Foo foo", i can construct a new query "select count(foo) from Foo foo" automaticlly to find out the record count, i think this is useful. --------------------------------------------------------------------- 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-09-04 01:48:27
|
The following comment has been added to this issue: Author: Gavin King Created: Wed, 3 Sep 2003 8:47 PM Body: Ummmmm. Sorry? What are we expected to do about this? Looks like a bug in Oracle, right? --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-305 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-305 Summary: net.sf.hibernate.Query / Oracle 8 vs 8i / ORDER BY / ORA-00907: missing right parenthesis Type: Bug Status: Unassigned Priority: Major Project: Hibernate2 Components: core Versions: 2.0.2 2.0.3 Assignee: Reporter: W. Muir Created: Tue, 2 Sep 2003 7:38 PM Updated: Tue, 2 Sep 2003 7:38 PM Environment: Oracle 8.0.5 / Oracle 8.1.5 Description: Using "ORDER BY" in a query string does NOT work on Oracle 8.0.5, but works fine on Oracle 8.1.5. Exception: ORA-00907: missing right parenthesis ... Query accountQuery = session.createQuery( "FROM com.something.Account x ORDER BY x.identifier" ); accountQuery.setFirstResult( 10 ); accountQuery.setMaxResults( 100 ); accountQuery.list(); java.sql.SQLException: ORA-00907: missing right parenthesis at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.ja at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289) at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:573) at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1 at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Pr at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleS at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(O at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate( at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(O at net.sf.hibernate.impl.BatcherImpl.getResultSet(BatcherImp at net.sf.hibernate.loader.Loader.getResultSet(Loader.java:5 at net.sf.hibernate.loader.Loader.doFind(Loader.java:140) at net.sf.hibernate.loader.Loader.find(Loader.java:620) at net.sf.hibernate.hql.QueryTranslator.find(QueryTranslator at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1 at net.sf.hibernate.impl.QueryImpl.list(QueryImpl.java:76) --------------------------------------------------------------------- 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-09-03 19:51:29
|
The following comment has been added to this issue: Author: Max Rydahl Andersen Created: Wed, 3 Sep 2003 2:50 PM Body: Hi! It seems as you already have the code for the dialect ;) I could start following your instructions, but as I don't have an firebird installation currently available I would appreciate if you could you submit it as an patch ? Please also answer if do not have it - then i'll have to do the "ground-work" ;) --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-293 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-293 Summary: Seperating InterBase and Firebird dialects Type: Improvement Status: Assigned Priority: Major Project: Hibernate2 Components: core Assignee: Max Rydahl Andersen Reporter: Reha CENANI Created: Tue, 26 Aug 2003 6:46 AM Updated: Sat, 30 Aug 2003 5:36 PM Description: At the begining, opensource Firebird (or FirebirdSQL) was based on the same source code of commercial InterBase. But during past three years, lots of improvements are done to the Firebird. Recent versions of these DBMSs have different features and statement syntaxes. For example, their select offset/limit statement syntaxes are not compatible. Hibernate's recent InterbaseDialect select limit/offset feature is based on the Firebird's select statement syntax. So, in order to prevent incompabilities and confussion, in addition to the InterbaseDialect, adding a new FirebirdDialect and seperating Firebird and InterBase features will be very helpfull. --------------------------------------------------------------------- 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-09-03 19:44:27
|
Message: The following issue has been closed. Resolver: Max Rydahl Andersen Date: Wed, 3 Sep 2003 2:43 PM fixed --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-297 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-297 Summary: Named Parameters not recognized in 'order by' section of Query Type: Bug Status: Closed Priority: Major Resolution: FIXED Project: Hibernate2 Components: core Versions: 2.0.1 2.0.2 2.1 beta 1 2.1 beta 2 Assignee: Max Rydahl Andersen Reporter: Roberto S. Tyley Created: Thu, 28 Aug 2003 8:39 AM Updated: Wed, 3 Sep 2003 2:43 PM Environment: java.version=1.4.2 os.name=Windows 2000 Mckoi DB 1.0.2 Description: The following query using named parameters fails: Query q=session.createQuery("from Location loc where (loc.lonLat.UnitX between :minX and :maxX) order by ABS( loc.lonLat.UnitX - :centX )"); q.setDouble("minX", x - r); q.setDouble("maxX", x + r); q.setDouble("centX", x); Iterator locs = q.iterate(); // Fails with QueryException The final bit with 'centX' causes the problem, as the following query, with the 'centX' removed, succeeds: Query q=session.createQuery("from Location loc where (loc.lonLat.UnitX between :minX and :maxX) order by ABS( loc.lonLat.UnitX )"); q.setDouble("minX", x - r); q.setDouble("maxX", x + r); Iterator locs = q.iterate(); // Succeeds Also, using JDBC-style un-named parameters works: Query q=session.createQuery("from Location loc where (loc.lonLat.UnitX between ? and ?) order by ABS( loc.lonLat.UnitX - ? )"); q.setDouble(0, x - r); q.setDouble(1, x + r); q.setDouble(2, x); Iterator locs = q.iterate(); // Succeeds Both of these two succeeding queries bring back all the results I would expect, with the correct ordering - so none of the function-calls or presence of a parameter in the order-by clause should be illegal. The full stack trace is: net.sf.hibernate.QueryException: Named parameter does not appear in Query: centX [from com.thisbedisonfire.madgag.persistence.Location loc where (loc.lonLat.UnitX between :minX and :maxX) order by ABS( loc.lonLat.UnitX - :centX )] at net.sf.hibernate.hql.QueryTranslator.getNamedParameterLocs(QueryTranslator.java:437) at net.sf.hibernate.hql.QueryTranslator.bindNamedParameters(QueryTranslator.java:817) at net.sf.hibernate.loader.Loader.prepareQueryStatement(Loader.java:575) at net.sf.hibernate.hql.QueryTranslator.iterate(QueryTranslator.java:832) at net.sf.hibernate.impl.SessionImpl.iterate(SessionImpl.java:1436) at net.sf.hibernate.impl.QueryImpl.iterate(QueryImpl.java:29) at com.thisbedisonfire.madgag.Main.main(Main.java:105) So, something's going wrong with binding of named parameters... Hope you can help! Roberto S. Tyley --------------------------------------------------------------------- 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-09-03 19:21:27
|
Message: The following issue has been closed. Resolver: Max Rydahl Andersen Date: Wed, 3 Sep 2003 2:21 PM fixed. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-284 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-284 Summary: Add <meta attribute="extends"> to <composite-id> for hbm2java Type: Improvement Status: Closed Priority: Minor Resolution: FIXED Project: Hibernate2 Components: toolset Versions: 2.0.2 Assignee: Max Rydahl Andersen Reporter: Eric Fenderbosch Created: Fri, 22 Aug 2003 1:23 PM Updated: Wed, 3 Sep 2003 2:21 PM Environment: N/A Description: <class name="com.fedex.cc.objectlib.tariff.TariffAccessorialState" table="TARIFF_ACCESSORIAL"> <meta attribute="extends">PersistentState</meta> <composite-id name="id" class="com.fedex.cc.objectlib.tariff.TariffAccessorialIdentity"> <key-property name="seqId" column="SEQ_ID" type="long"/> <key-property name="tariffId" column="TARIFF_ID" type="long"/> <meta attribute="extends">PersistentIdentity</meta> </composite-id> <!-- ... ---> </class> This would generate 2 classes: public class TariffAccessorialState extends PersistentState { ... } public class TariffAccessorialIdentity extends PersistentIdentity { ... } Note that TariffAccessorialIdentity extends PersistentIdentity not PersistentState. --------------------------------------------------------------------- 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-09-03 16:21:27
|
The following issue has been updated: Updater: Jeff Boring (mailto:jef...@se...) Date: Wed, 3 Sep 2003 11:20 AM Comment: OK, here's the files as an eclipse project zip. snap1.gif shows User before= commit. snap2.gif shows User right before npe. Changes: Attachment changed to sandbox.zip --------------------------------------------------------------------- For a full history of the issue, see: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?= key=3DHB-307&page=3Dhistory --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?= key=3DHB-307 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-307 Summary: null values on save with Set & Composite-element, many-to-many= w xtra cols Type: Bug Status: Unassigned Priority: Minor Project: Hibernate2 Components:=20 core Versions: 2.1 beta 1 Assignee:=20 Reporter: Jeff Boring Created: Wed, 3 Sep 2003 11:14 AM Updated: Wed, 3 Sep 2003 11:20 AM Environment: Hibernate v2.1 beta 1, Oracle v8, Eclipse, Win2000 Description: NPE on save of an entity mapped to a Set with a composite-element. This iss= ue relates to forum post http://forum.hibernate.org/viewtopic.php?t=3D161. = Wanted to try with v2.1 beta 2 but having trouble with download. You ask for a main method that shows the issue. I assumed I would be able t= o attach my files here but all I see is this text box. So pasting. Let me k= now if & how to send files. jef...@si... When saving an AppUser with 1 Role, fails on commit as marked - npe. Tracki= ng it down led to postFlush of SessionImpl, the "snapshot =3D collection.ge= tSnapshot(loadedPersister); //re-snapshot"=09line. This call invokes UserRo= le.hashCode but user is null so get npe. Other properties are fiine. This w= orks fine without UserRole.hashcode but deletes the collection. Below are the main method and a stacktrace. public static void main(String[] args) throws HibernateException { =09=09 =09=09try { =09=09=09cfg =3D new Configuration(); =09=09=09cfg.addClass(AppUser.class); =09=09=09cfg.addClass(Role.class); =09=09=09sf =3D cfg.buildSessionFactory(); =09=09} =09=09catch (Exception e ){ =09=09=09e.printStackTrace(); =09=09=09return; =09=09} =09=09 =09=09Session sess =3D null; Transaction xac =3D null; =09=09Role roleA =3D null; Role roleB =3D null; AppUser user =3D null; User= Role userxref =3D null; =09=09 =09=09// TRANSACTION / UOW #1 =09=09try { =09=09=09sess =3D sf.openSession(); =09=09=09xac =3D sess.beginTransaction(); =09=09=09 =09=09=09roleA =3D new Role( new Long (1), "Role A"); =09=09=09roleB =3D new Role( new Long (2), "Role B"); =09=09=09user =3D new AppUser( new Long(100), "Jeff Boring "); =09=09=09 =09=09=09userxref =3D new UserRole("Serving as role A on project", roleA, u= ser ); =09=09=09user.getRoles().add( userxref ); =09=09=09 =09=09=09sess.save( roleA ); =09=09=09sess.save( roleB ); =09=09=09sess.save( user ); =09=09=09 =09=09=09xac.commit(); // FAILS HERE - NPA =09=09} =09=09catch (Exception e ){ =09=09=09e.printStackTrace(); =09=09=09xac.rollback(); =09=09} =09=09finally { =09=09=09try { =09=09=09=09sess.close(); =09=09=09}=20 =09=09=09catch (HibernateException e1) { e1.printStackTrace(); } =09=09} CONSOLE/STACK TRACE 12:04:11,939 INFO Environment:413 - Hibernate 2.1 beta 1 12:04:11,979 INFO Environment:447 - loaded properties from resource hibern= ate.properties: {hibernate.default_schema=3Dtgbpdba9, hibernate.connection.= driver_class=3Doracle.jdbc.driver.OracleDriver, hibernate.cglib.use_reflect= ion_optimizer=3Dtrue, hibernate.max_fetch_depth=3D2, hibernate.dialect=3Dne= t.sf.hibernate.dialect.OracleDialect, hibernate.jdbc.use_streams_for_binary= =3Dtrue, hibernate.jdbc.batch_size=3D0, hibernate.query.substitutions=3Dtru= e 1, false 0, yes 'Y', no 'N', hibernate.query.imports=3Dnet.sf.hibernate.t= est, net.sf.hibernate.eg, hibernate.proxool.pool_alias=3Dpool1, hibernate.c= onnection.username=3DTGBPDBA9, hibernate.hbm2ddl.auto=3Dcreate-drop, hibern= ate.connection.url=3Djdbc:oracle:thin:@sccci.scsm.siemens.com:1521:OT17, hi= bernate.show_sql=3Dtrue, hibernate.connection.password=3DTGBPDBA9, hibernat= e.statement_cache.size=3D25, hibernate.connection.pool_size=3D1} 12:04:11,999 INFO Environment:461 - using java.io streams to persist binar= y types 12:04:11,999 INFO Environment:462 - using CGLIB reflection optimizer 12:04:12,009 INFO Environment:472 - JVM proxy support: true 12:04:12,020 INFO Configuration:288 - Mapping resource: AppUser.hbm.xml 12:04:13,381 DEBUG DTDEntityResolver:20 - trying to locate http://hibernate= .sourceforge.net/hibernate-mapping-2.0.dtd in classpath under net/sf/hibern= ate/ 12:04:13,381 DEBUG DTDEntityResolver:29 - found http://hibernate.sourceforg= e.net/hibernate-mapping-2.0.dtd in classpath 12:04:13,782 INFO Binder:179 - Mapping class: AppUser -> AppUser 12:04:14,062 DEBUG Binder:390 - Mapped property: userskey -> userskey, type= : long 12:04:14,103 DEBUG Binder:390 - Mapped property: name -> name, type: string 12:04:14,113 INFO Binder:458 - Mapping collection: AppUser.roles -> UserRo= le 12:04:14,153 DEBUG Binder:390 - Mapped property: roles, type: java.util.Set 12:04:14,163 INFO Configuration:288 - Mapping resource: Role.hbm.xml 12:04:14,193 DEBUG DTDEntityResolver:20 - trying to locate http://hibernate= .sourceforge.net/hibernate-mapping-2.0.dtd in classpath under net/sf/hibern= ate/ 12:04:14,203 DEBUG DTDEntityResolver:29 - found http://hibernate.sourceforg= e.net/hibernate-mapping-2.0.dtd in classpath 12:04:14,253 INFO Binder:179 - Mapping class: Role -> ROLE 12:04:14,253 DEBUG Binder:390 - Mapped property: roleskey -> roleskey, type= : long 12:04:14,253 DEBUG Binder:390 - Mapped property: roleDescrip -> roleDescrip= , type: string 12:04:14,253 INFO Configuration:495 - processing one-to-many association m= appings 12:04:14,253 DEBUG Binder:1137 - Second pass for collection: AppUser.roles 12:04:14,263 DEBUG Binder:390 - Mapped property: noteComment -> noteComment= , type: string 12:04:14,273 DEBUG Binder:390 - Mapped property: role -> roleskey, type: Ro= le 12:04:21,283 DEBUG Binder:1149 - Mapped collection key: userskey, element: = noteComment, roleskey, type: UserRole 12:04:21,293 INFO Configuration:504 - processing one-to-one association pr= operty references 12:04:21,303 INFO Configuration:529 - processing foreign key constraints 12:04:21,303 DEBUG Configuration:539 - resolving reference to class: Role 12:04:21,303 DEBUG Configuration:539 - resolving reference to class: AppUse= r 12:04:21,443 INFO SessionFactoryImpl:113 - building session factory 12:04:21,533 INFO Dialect:83 - Using dialect: net.sf.hibernate.dialect.Ora= cleDialect 12:04:21,543 INFO SettingsFactory:56 - Maximim outer join fetch depth: 2 12:04:21,543 INFO SettingsFactory:60 - Use outer join fetching: true 12:04:21,573 INFO DriverManagerConnectionProvider:41 - Hibernate connectio= n pool size: 1 12:04:21,583 INFO DriverManagerConnectionProvider:70 - using driver: oracl= e.jdbc.driver.OracleDriver at URL: jdbc:oracle:thin:@sccci.scsm.siemens.com= :1521:OT17 12:04:21,583 INFO DriverManagerConnectionProvider:71 - connection properti= es: {user=3DTGBPDBA9, password=3DTGBPDBA9} 12:04:21,603 DEBUG DriverManagerConnectionProvider:77 - total checked-out c= onnections: 0 12:04:21,603 DEBUG DriverManagerConnectionProvider:90 - opening new JDBC co= nnection 12:04:24,207 DEBUG DriverManagerConnectionProvider:103 - created connection= to: jdbc:oracle:thin:@sccci.scsm.siemens.com:1521:OT17, Isolation Level: 2 12:04:24,217 DEBUG DriverManagerConnectionProvider:117 - returning connecti= on to pool, pool size: 1 12:04:24,217 INFO SettingsFactory:85 - Use scrollable result sets: true 12:04:24,227 INFO SettingsFactory:89 - Default schema set to: tgbpdba9 12:04:24,227 INFO SettingsFactory:92 - echoing all SQL to stdout 12:04:24,227 INFO SettingsFactory:95 - Query language substitutions: {no= =3D'N', true=3D1, yes=3D'Y', false=3D0} 12:04:24,227 DEBUG SessionFactoryImpl:119 - instantiating session factory w= ith properties: {java.runtime.name=3DJava(TM) 2 Runtime Environment, Standa= rd Edition, hibernate.connection.password=3DTGBPDBA9, sun.boot.library.path= =3DC:\Program Files\Java\j2re1.4.2\bin, hibernate.default_schema=3Dtgbpdba9= , java.vm.version=3D1.4.2-b28, hibernate.proxool.pool_alias=3Dpool1, hibern= ate.connection.username=3DTGBPDBA9, java.vm.vendor=3DSun Microsystems Inc.,= java.vendor.url=3Dhttp://java.sun.com/, path.separator=3D;, java.vm.name= =3DJava HotSpot(TM) Client VM, file.encoding.pkg=3Dsun.io, user.country=3DU= S, sun.os.patch.level=3DService Pack 3, java.vm.specification.name=3DJava V= irtual Machine Specification, user.dir=3DC:\Data\Common\workspace\pma\Sandb= ox, java.runtime.version=3D1.4.2-b28, java.awt.graphicsenv=3Dsun.awt.Win32G= raphicsEnvironment, java.endorsed.dirs=3DC:\Program Files\Java\j2re1.4.2\li= b\endorsed, os.arch=3Dx86, java.io.tmpdir=3DC:\DOCUME~1\boringj\LOCALS~1\Te= mp\, line.separator=3D , java.vm.specification.vendor=3DSun Microsystems Inc., user.variant=3D, os= .name=3DWindows 2000, sun.java2d.fontpath=3D, java.library.path=3DC:\Progra= m Files\Java\j2re1.4.2\bin;.;C:\WINNT\System32;C:\WINNT;C:\Program Files\Or= acle\jre\1.1.7\bin\;C:\Oracle\Ora81\bin\;C:\WINNT\system32;C:\WINNT;C:\WINN= T\System32\Wbem;C:\Program Files\CatPC\Bin;C:\Program Files\CatPC\Windows\S= ystem32;C:\Program Files\CatPC\Windows\System;C:\Program Files\Executive So= ftware\DiskeeperWorkstation\;C:\Program Files\Oracle\jre\1.1.7\bin;U:\Appli= cation Data\Lotus\Notes;C:\Oracle\Ora81\bin;%C:\WINNT%\system32;%C:\WINNT%;= %C:\WINNT%\System32\Wbem;C:\Program Files\Executive Software\DiskeeperWorks= tation;C:\j2sdk1.4.2\bin;C:\Program Files\Rational\ClearCase\bin;C:\Program= Files\Rational\common;C:\PROGRA~1\ULTRAE~1, java.specification.name=3DJava= Platform API Specification, java.class.version=3D48.0, hibernate.connectio= n.pool_size=3D1, java.util.prefs.PreferencesFactory=3Djava.util.prefs.Windo= wsPreferencesFactory, os.version=3D5.0, user.home=3DC:\Documents and Settin= gs\boringj, user.timezone=3DAmerica/New_York, java.awt.printerjob=3Dsun.awt= .windows.WPrinterJob, file.encoding=3DCp1252, java.specification.version=3D= 1.4, hibernate.connection.driver_class=3Doracle.jdbc.driver.OracleDriver, j= ava.class.path=3DC:\Data\Common\workspace\pma\Sandbox;C:\Data\Common\worksp= ace\pma\Hibernate2.1;Q:\It56\Library\hibernate\hibernate-2.1\lib\xml-apis.j= ar;Q:\It56\Library\hibernate\hibernate-2.1\lib\c3p0.jar;Q:\It56\Library\hib= ernate\hibernate-2.1\lib\cglib-asm.jar;Q:\It56\Library\hibernate\hibernate-= 2.1\lib\commons-beanutils.jar;Q:\It56\Library\hibernate\hibernate-2.1\lib\c= ommons-collections.jar;Q:\It56\Library\hibernate\hibernate-2.1\lib\commons-= dbcp.jar;Q:\It56\Library\hibernate\hibernate-2.1\lib\commons-lang.jar;Q:\It= 56\Library\hibernate\hibernate-2.1\lib\commons-logging.jar;Q:\It56\Library\= hibernate\hibernate-2.1\lib\commons-pool.jar;Q:\It56\Library\hibernate\hibe= rnate-2.1\lib\connector.jar;Q:\It56\Library\hibernate\hibernate-2.1\lib\dom= 4j.jar;Q:\It56\Library\hibernate\hibernate-2.1\lib\jaas.jar;Q:\It56\Library= \hibernate\hibernate-2.1\lib\jcs.jar;Q:\It56\Library\hibernate\hibernate-2.= 1\lib\jdbc2_0-stdext.jar;Q:\It56\Library\hibernate\hibernate-2.1\lib\jta.ja= r;Q:\It56\Library\hibernate\hibernate-2.1\lib\junit.jar;Q:\It56\Library\hib= ernate\hibernate-2.1\lib\odmg.jar;Q:\It56\Library\hibernate\hibernate-2.1\l= ib\optional.jar;Q:\It56\Library\hibernate\hibernate-2.1\lib\proxool.jar;Q:\= It56\Library\hibernate\hibernate-2.1\lib\xalan.jar;Q:\It56\Library\hibernat= e\hibernate-2.1\lib\xerces.jar;Q:\It56\Library\hibernate\hibernate-2.1\lib\= ant.jar;C:\jakarta-tomcat-4.1\common\lib\jdbc2_0-stdext.jar;C:\jakarta-tomc= at-4.1\common\lib\classes12.jar;Q:\It56\Library\jakarta-log4j\jakarta-log4j= -1.2.8\dist\lib\log4j-1.2.8.jar;Q:\It56\Library\commons-lang\commons-lang-1= .0.1\commons-lang-1.0.1.jar, user.name=3Dboringj, hibernate.query.substitut= ions=3Dtrue 1, false 0, yes 'Y', no 'N', hibernate.show_sql=3Dtrue, java.vm= .specification.version=3D1.0, java.home=3DC:\Program Files\Java\j2re1.4.2, = sun.arch.data.model=3D32, hibernate.dialect=3Dnet.sf.hibernate.dialect.Orac= leDialect, hibernate.connection.url=3Djdbc:oracle:thin:@sccci.scsm.siemens.= com:1521:OT17, user.language=3Den, java.specification.vendor=3DSun Microsys= tems Inc., awt.toolkit=3Dsun.awt.windows.WToolkit, hibernate.cglib.use_refl= ection_optimizer=3Dtrue, java.vm.info=3Dmixed mode, hibernate.jdbc.use_stre= ams_for_binary=3Dtrue, java.version=3D1.4.2, java.ext.dirs=3DC:\Program Fil= es\Java\j2re1.4.2\lib\ext, sun.boot.class.path=3DC:\Program Files\Java\j2re= 1.4.2\lib\rt.jar;C:\Program Files\Java\j2re1.4.2\lib\i18n.jar;C:\Program Fi= les\Java\j2re1.4.2\lib\sunrsasign.jar;C:\Program Files\Java\j2re1.4.2\lib\j= sse.jar;C:\Program Files\Java\j2re1.4.2\lib\jce.jar;C:\Program Files\Java\j= 2re1.4.2\lib\charsets.jar;C:\Program Files\Java\j2re1.4.2\classes, java.ven= dor=3DSun Microsystems Inc., hibernate.jdbc.batch_size=3D0, file.separator= =3D\, hibernate.query.imports=3Dnet.sf.hibernate.test, net.sf.hibernate.eg,= hibernate.hbm2ddl.auto=3Dcreate-drop, java.vendor.url.bug=3Dhttp://java.su= n.com/cgi-bin/bugreport.cgi, hibernate.statement_cache.size=3D25, sun.io.un= icode.encoding=3DUnicodeLittle, sun.cpu.endian=3Dlittle, hibernate.max_fetc= h_depth=3D2, sun.cpu.isalist=3Dpentium i486 i386} 12:04:24,257 INFO PreparedStatementCache:60 - prepared statement cache siz= e: 25 12:04:25,038 DEBUG SessionFactoryObjectFactory:39 - initializing class Sess= ionFactoryObjectFactory 12:04:25,058 DEBUG SessionFactoryObjectFactory:76 - registered: 01c9a4eef76= 8327d00f768328b440000 (unnamed) 12:04:25,058 INFO SessionFactoryObjectFactory:82 - no JNDI name configured 12:04:25,058 DEBUG SessionFactoryImpl:179 - instantiated session factory 12:04:25,068 INFO Dialect:83 - Using dialect: net.sf.hibernate.dialect.Ora= cleDialect 12:04:25,078 INFO Configuration:495 - processing one-to-many association m= appings 12:04:25,088 INFO Configuration:504 - processing one-to-one association pr= operty references 12:04:25,088 INFO Configuration:529 - processing foreign key constraints 12:04:25,088 INFO Configuration:495 - processing one-to-many association m= appings 12:04:25,088 INFO Configuration:504 - processing one-to-one association pr= operty references 12:04:25,088 INFO Configuration:529 - processing foreign key constraints 12:04:25,098 INFO SchemaExport:96 - Running hbm2ddl schema export 12:04:25,108 INFO SchemaExport:115 - exporting generated schema to databas= e 12:04:25,108 INFO DriverManagerConnectionProvider:41 - Hibernate connectio= n pool size: 1 12:04:25,108 INFO DriverManagerConnectionProvider:70 - using driver: oracl= e.jdbc.driver.OracleDriver at URL: jdbc:oracle:thin:@sccci.scsm.siemens.com= :1521:OT17 12:04:25,108 INFO DriverManagerConnectionProvider:71 - connection properti= es: {user=3DTGBPDBA9, password=3DTGBPDBA9} 12:04:25,108 DEBUG DriverManagerConnectionProvider:77 - total checked-out c= onnections: 0 12:04:25,118 DEBUG DriverManagerConnectionProvider:90 - opening new JDBC co= nnection 12:04:26,741 DEBUG DriverManagerConnectionProvider:103 - created connection= to: jdbc:oracle:thin:@sccci.scsm.siemens.com:1521:OT17, Isolation Level: 2 12:04:26,981 DEBUG SchemaExport:128 - alter table UserRole drop constraint = FKF3F76701F02A3A82 12:04:27,101 DEBUG SchemaExport:128 - alter table UserRole drop constraint = FKF3F76701F02BF357 12:04:27,231 DEBUG SchemaExport:128 - drop table AppUser cascade constraint= s 12:04:27,402 DEBUG SchemaExport:128 - drop table UserRole cascade constrain= ts 12:04:27,562 DEBUG SchemaExport:128 - drop table ROLE cascade constraints 12:04:27,742 DEBUG SchemaExport:144 - create table AppUser ( userskey NUMBER(19,0) not null, name VARCHAR2(20), primary key (userskey) ) 12:04:27,922 DEBUG SchemaExport:144 - create table UserRole ( userskey NUMBER(19,0) not null, noteComment VARCHAR2(255) not null, roleskey NUMBER(19,0) ) 12:04:28,063 DEBUG SchemaExport:144 - create table ROLE ( roleskey NUMBER(19,0) not null, roleDescrip VARCHAR2(10) not null, primary key (roleskey) ) 12:04:28,243 DEBUG SchemaExport:144 - alter table UserRole add constraint F= KF3F76701F02A3A82 foreign key (roleskey) references ROLE 12:04:28,373 DEBUG SchemaExport:144 - alter table UserRole add constraint F= KF3F76701F02BF357 foreign key (userskey) references AppUser 12:04:28,503 INFO SchemaExport:154 - schema export complete 12:04:28,583 DEBUG DriverManagerConnectionProvider:117 - returning connecti= on to pool, pool size: 1 12:04:28,583 INFO DriverManagerConnectionProvider:144 - cleaning up connec= tion pool: jdbc:oracle:thin:@sccci.scsm.siemens.com:1521:OT17 12:04:28,663 INFO Dialect:83 - Using dialect: net.sf.hibernate.dialect.Ora= cleDialect 12:04:28,673 INFO Configuration:495 - processing one-to-many association m= appings 12:04:28,673 INFO Configuration:504 - processing one-to-one association pr= operty references 12:04:28,673 INFO Configuration:529 - processing foreign key constraints 12:04:28,683 INFO Configuration:495 - processing one-to-many association m= appings 12:04:28,683 INFO Configuration:504 - processing one-to-one association pr= operty references 12:04:28,693 INFO Configuration:529 - processing foreign key constraints 12:04:28,703 INFO DriverManagerConnectionProvider:144 - cleaning up connec= tion pool: jdbc:oracle:thin:@sccci.scsm.siemens.com:1521:OT17 12:04:32,429 DEBUG SessionImpl:444 - opened session 12:04:32,499 DEBUG JDBCTransaction:36 - begin 12:04:32,509 DEBUG DriverManagerConnectionProvider:77 - total checked-out c= onnections: 0 12:04:32,509 DEBUG DriverManagerConnectionProvider:83 - using pooled JDBC c= onnection, pool size: 0 12:04:36,455 DEBUG SessionImpl:691 - saving [Role#1] 12:04:36,485 DEBUG SessionImpl:691 - saving [Role#2] 12:04:36,485 DEBUG SessionImpl:691 - saving [AppUser#100] 12:04:36,485 DEBUG Cascades:336 - processing cascades for: AppUser 12:04:36,495 DEBUG Cascades:344 - done processing cascades for: AppUser 12:04:36,515 DEBUG SessionImpl:2561 - Wrapped collection in role: AppUser.r= oles 12:04:37,226 DEBUG Cascades:336 - processing cascades for: AppUser 12:04:37,226 DEBUG Cascades:275 - cascading to collection: AppUser.roles 12:04:37,226 DEBUG Cascades:344 - done processing cascades for: AppUser 12:04:40,661 DEBUG JDBCTransaction:54 - commit 12:04:42,293 DEBUG SessionImpl:2043 - flushing session 12:04:42,303 DEBUG Cascades:336 - processing cascades for: AppUser 12:04:42,303 DEBUG Cascades:275 - cascading to collection: AppUser.roles 12:04:42,303 DEBUG Cascades:344 - done processing cascades for: AppUser 12:04:42,313 DEBUG SessionImpl:2149 - Flushing entities and processing refe= renced collections 12:04:42,323 DEBUG SessionImpl:2591 - Collection found: [AppUser.roles#100]= , was: [<unreferenced>] 12:04:42,323 DEBUG SessionImpl:2433 - Processing unreferenced collections 12:04:42,333 DEBUG SessionImpl:2444 - Scheduling collection removes/(re)cre= ates/updates 12:04:42,333 DEBUG SessionImpl:2055 - Flushed: 3 insertions, 0 updates, 0 d= eletions to 3 objects 12:04:42,343 DEBUG SessionImpl:2060 - Flushed: 1 (re)creations, 0 updates, = 0 removals to 1 collections 12:04:42,343 DEBUG SessionImpl:2090 - executing flush 12:04:42,353 DEBUG EntityPersister:422 - Inserting entity: Role#1 12:04:42,363 DEBUG BatcherImpl:176 - about to open: 0 open PreparedStatemen= ts, 0 open ResultSets 12:04:42,363 DEBUG SessionFactoryImpl:393 - prepared statement get: insert = into tgbpdba9.ROLE (roleDescrip, roleskey) values (?, ?) Hibernate: insert into tgbpdba9.ROLE (roleDescrip, roleskey) values (?, ?) 12:04:42,373 DEBUG PreparedStatementCache:78 - preparing statement: insert = into tgbpdba9.ROLE (roleDescrip, roleskey) values (?, ?) 12:04:42,483 DEBUG EntityPersister:324 - Dehydrating entity: Role#1 12:04:42,483 DEBUG StringType:44 - binding 'Role A' to parameter: 1 12:04:42,483 DEBUG LongType:44 - binding '1' to parameter: 2 12:04:42,614 DEBUG EntityPersister:422 - Inserting entity: Role#2 12:04:42,614 DEBUG EntityPersister:324 - Dehydrating entity: Role#2 12:04:42,614 DEBUG StringType:44 - binding 'Role B' to parameter: 1 12:04:42,624 DEBUG LongType:44 - binding '2' to parameter: 2 12:04:42,704 DEBUG EntityPersister:422 - Inserting entity: AppUser#100 12:04:42,704 DEBUG BatcherImpl:183 - done closing: 0 open PreparedStatement= s, 0 open ResultSets 12:04:42,714 DEBUG PreparedStatementCache:102 - recaching 12:04:42,714 DEBUG PreparedStatementCache:137 - total checked-out statement= s: 0 12:04:42,714 DEBUG PreparedStatementCache:138 - checked out: [] 12:04:42,714 DEBUG BatcherImpl:176 - about to open: 0 open PreparedStatemen= ts, 0 open ResultSets 12:04:42,714 DEBUG SessionFactoryImpl:393 - prepared statement get: insert = into tgbpdba9.AppUser (name, userskey) values (?, ?) Hibernate: insert into tgbpdba9.AppUser (name, userskey) values (?, ?) 12:04:42,724 DEBUG PreparedStatementCache:78 - preparing statement: insert = into tgbpdba9.AppUser (name, userskey) values (?, ?) 12:04:42,814 DEBUG EntityPersister:324 - Dehydrating entity: AppUser#100 12:04:42,814 DEBUG StringType:44 - binding 'Jeff Boring ' to parameter: 1 12:04:42,824 DEBUG LongType:44 - binding '100' to parameter: 2 12:04:42,904 DEBUG BatcherImpl:183 - done closing: 0 open PreparedStatement= s, 0 open ResultSets 12:04:42,914 DEBUG PreparedStatementCache:102 - recaching 12:04:42,914 DEBUG PreparedStatementCache:137 - total checked-out statement= s: 0 12:04:42,914 DEBUG PreparedStatementCache:138 - checked out: [] 12:04:42,914 DEBUG CollectionPersister:667 - Inserting collection: AppUser.= roles#100 12:04:42,924 DEBUG BatcherImpl:176 - about to open: 0 open PreparedStatemen= ts, 0 open ResultSets 12:04:42,924 DEBUG SessionFactoryImpl:393 - prepared statement get: insert = into tgbpdba9.UserRole (userskey, noteComment, roleskey) values (?, ?, ?) Hibernate: insert into tgbpdba9.UserRole (userskey, noteComment, roleskey) = values (?, ?, ?) 12:04:42,924 DEBUG PreparedStatementCache:78 - preparing statement: insert = into tgbpdba9.UserRole (userskey, noteComment, roleskey) values (?, ?, ?) 12:04:43,004 DEBUG LongType:44 - binding '100' to parameter: 1 12:04:43,014 DEBUG StringType:44 - binding 'Serving as role A on project' t= o parameter: 2 12:04:43,014 DEBUG LongType:44 - binding '1' to parameter: 3 12:04:43,104 DEBUG CollectionPersister:693 - done inserting collection 12:04:43,104 DEBUG BatcherImpl:183 - done closing: 0 open PreparedStatement= s, 0 open ResultSets 12:04:43,114 DEBUG PreparedStatementCache:102 - recaching 12:04:43,114 DEBUG PreparedStatementCache:137 - total checked-out statement= s: 0 12:04:43,114 DEBUG PreparedStatementCache:138 - checked out: [] 12:04:45,027 DEBUG SessionImpl:2464 - post flush 12:04:48,302 DEBUG SessionImpl:478 - transaction completion java.lang.NullPointerException --------------------------------------------------------------------- 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-09-03 16:14:28
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?= key=3DHB-307 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-307 Summary: null values on save with Set & Composite-element, many-to-many= w xtra cols Type: Bug Status: Unassigned Priority: Minor Project: Hibernate2 Components:=20 core Versions: 2.1 beta 1 Assignee:=20 Reporter: Jeff Boring Created: Wed, 3 Sep 2003 11:14 AM Updated: Wed, 3 Sep 2003 11:14 AM Environment: Hibernate v2.1 beta 1, Oracle v8, Eclipse, Win2000 Description: NPE on save of an entity mapped to a Set with a composite-element. This iss= ue relates to forum post http://forum.hibernate.org/viewtopic.php?t=3D161. = Wanted to try with v2.1 beta 2 but having trouble with download. You ask for a main method that shows the issue. I assumed I would be able t= o attach my files here but all I see is this text box. So pasting. Let me k= now if & how to send files. jef...@si... When saving an AppUser with 1 Role, fails on commit as marked - npe. Tracki= ng it down led to postFlush of SessionImpl, the "snapshot =3D collection.ge= tSnapshot(loadedPersister); //re-snapshot"=09line. This call invokes UserRo= le.hashCode but user is null so get npe. Other properties are fiine. This w= orks fine without UserRole.hashcode but deletes the collection. Below are the main method and a stacktrace. public static void main(String[] args) throws HibernateException { =09=09 =09=09try { =09=09=09cfg =3D new Configuration(); =09=09=09cfg.addClass(AppUser.class); =09=09=09cfg.addClass(Role.class); =09=09=09sf =3D cfg.buildSessionFactory(); =09=09} =09=09catch (Exception e ){ =09=09=09e.printStackTrace(); =09=09=09return; =09=09} =09=09 =09=09Session sess =3D null; Transaction xac =3D null; =09=09Role roleA =3D null; Role roleB =3D null; AppUser user =3D null; User= Role userxref =3D null; =09=09 =09=09// TRANSACTION / UOW #1 =09=09try { =09=09=09sess =3D sf.openSession(); =09=09=09xac =3D sess.beginTransaction(); =09=09=09 =09=09=09roleA =3D new Role( new Long (1), "Role A"); =09=09=09roleB =3D new Role( new Long (2), "Role B"); =09=09=09user =3D new AppUser( new Long(100), "Jeff Boring "); =09=09=09 =09=09=09userxref =3D new UserRole("Serving as role A on project", roleA, u= ser ); =09=09=09user.getRoles().add( userxref ); =09=09=09 =09=09=09sess.save( roleA ); =09=09=09sess.save( roleB ); =09=09=09sess.save( user ); =09=09=09 =09=09=09xac.commit(); // FAILS HERE - NPA =09=09} =09=09catch (Exception e ){ =09=09=09e.printStackTrace(); =09=09=09xac.rollback(); =09=09} =09=09finally { =09=09=09try { =09=09=09=09sess.close(); =09=09=09}=20 =09=09=09catch (HibernateException e1) { e1.printStackTrace(); } =09=09} CONSOLE/STACK TRACE 12:04:11,939 INFO Environment:413 - Hibernate 2.1 beta 1 12:04:11,979 INFO Environment:447 - loaded properties from resource hibern= ate.properties: {hibernate.default_schema=3Dtgbpdba9, hibernate.connection.= driver_class=3Doracle.jdbc.driver.OracleDriver, hibernate.cglib.use_reflect= ion_optimizer=3Dtrue, hibernate.max_fetch_depth=3D2, hibernate.dialect=3Dne= t.sf.hibernate.dialect.OracleDialect, hibernate.jdbc.use_streams_for_binary= =3Dtrue, hibernate.jdbc.batch_size=3D0, hibernate.query.substitutions=3Dtru= e 1, false 0, yes 'Y', no 'N', hibernate.query.imports=3Dnet.sf.hibernate.t= est, net.sf.hibernate.eg, hibernate.proxool.pool_alias=3Dpool1, hibernate.c= onnection.username=3DTGBPDBA9, hibernate.hbm2ddl.auto=3Dcreate-drop, hibern= ate.connection.url=3Djdbc:oracle:thin:@sccci.scsm.siemens.com:1521:OT17, hi= bernate.show_sql=3Dtrue, hibernate.connection.password=3DTGBPDBA9, hibernat= e.statement_cache.size=3D25, hibernate.connection.pool_size=3D1} 12:04:11,999 INFO Environment:461 - using java.io streams to persist binar= y types 12:04:11,999 INFO Environment:462 - using CGLIB reflection optimizer 12:04:12,009 INFO Environment:472 - JVM proxy support: true 12:04:12,020 INFO Configuration:288 - Mapping resource: AppUser.hbm.xml 12:04:13,381 DEBUG DTDEntityResolver:20 - trying to locate http://hibernate= .sourceforge.net/hibernate-mapping-2.0.dtd in classpath under net/sf/hibern= ate/ 12:04:13,381 DEBUG DTDEntityResolver:29 - found http://hibernate.sourceforg= e.net/hibernate-mapping-2.0.dtd in classpath 12:04:13,782 INFO Binder:179 - Mapping class: AppUser -> AppUser 12:04:14,062 DEBUG Binder:390 - Mapped property: userskey -> userskey, type= : long 12:04:14,103 DEBUG Binder:390 - Mapped property: name -> name, type: string 12:04:14,113 INFO Binder:458 - Mapping collection: AppUser.roles -> UserRo= le 12:04:14,153 DEBUG Binder:390 - Mapped property: roles, type: java.util.Set 12:04:14,163 INFO Configuration:288 - Mapping resource: Role.hbm.xml 12:04:14,193 DEBUG DTDEntityResolver:20 - trying to locate http://hibernate= .sourceforge.net/hibernate-mapping-2.0.dtd in classpath under net/sf/hibern= ate/ 12:04:14,203 DEBUG DTDEntityResolver:29 - found http://hibernate.sourceforg= e.net/hibernate-mapping-2.0.dtd in classpath 12:04:14,253 INFO Binder:179 - Mapping class: Role -> ROLE 12:04:14,253 DEBUG Binder:390 - Mapped property: roleskey -> roleskey, type= : long 12:04:14,253 DEBUG Binder:390 - Mapped property: roleDescrip -> roleDescrip= , type: string 12:04:14,253 INFO Configuration:495 - processing one-to-many association m= appings 12:04:14,253 DEBUG Binder:1137 - Second pass for collection: AppUser.roles 12:04:14,263 DEBUG Binder:390 - Mapped property: noteComment -> noteComment= , type: string 12:04:14,273 DEBUG Binder:390 - Mapped property: role -> roleskey, type: Ro= le 12:04:21,283 DEBUG Binder:1149 - Mapped collection key: userskey, element: = noteComment, roleskey, type: UserRole 12:04:21,293 INFO Configuration:504 - processing one-to-one association pr= operty references 12:04:21,303 INFO Configuration:529 - processing foreign key constraints 12:04:21,303 DEBUG Configuration:539 - resolving reference to class: Role 12:04:21,303 DEBUG Configuration:539 - resolving reference to class: AppUse= r 12:04:21,443 INFO SessionFactoryImpl:113 - building session factory 12:04:21,533 INFO Dialect:83 - Using dialect: net.sf.hibernate.dialect.Ora= cleDialect 12:04:21,543 INFO SettingsFactory:56 - Maximim outer join fetch depth: 2 12:04:21,543 INFO SettingsFactory:60 - Use outer join fetching: true 12:04:21,573 INFO DriverManagerConnectionProvider:41 - Hibernate connectio= n pool size: 1 12:04:21,583 INFO DriverManagerConnectionProvider:70 - using driver: oracl= e.jdbc.driver.OracleDriver at URL: jdbc:oracle:thin:@sccci.scsm.siemens.com= :1521:OT17 12:04:21,583 INFO DriverManagerConnectionProvider:71 - connection properti= es: {user=3DTGBPDBA9, password=3DTGBPDBA9} 12:04:21,603 DEBUG DriverManagerConnectionProvider:77 - total checked-out c= onnections: 0 12:04:21,603 DEBUG DriverManagerConnectionProvider:90 - opening new JDBC co= nnection 12:04:24,207 DEBUG DriverManagerConnectionProvider:103 - created connection= to: jdbc:oracle:thin:@sccci.scsm.siemens.com:1521:OT17, Isolation Level: 2 12:04:24,217 DEBUG DriverManagerConnectionProvider:117 - returning connecti= on to pool, pool size: 1 12:04:24,217 INFO SettingsFactory:85 - Use scrollable result sets: true 12:04:24,227 INFO SettingsFactory:89 - Default schema set to: tgbpdba9 12:04:24,227 INFO SettingsFactory:92 - echoing all SQL to stdout 12:04:24,227 INFO SettingsFactory:95 - Query language substitutions: {no= =3D'N', true=3D1, yes=3D'Y', false=3D0} 12:04:24,227 DEBUG SessionFactoryImpl:119 - instantiating session factory w= ith properties: {java.runtime.name=3DJava(TM) 2 Runtime Environment, Standa= rd Edition, hibernate.connection.password=3DTGBPDBA9, sun.boot.library.path= =3DC:\Program Files\Java\j2re1.4.2\bin, hibernate.default_schema=3Dtgbpdba9= , java.vm.version=3D1.4.2-b28, hibernate.proxool.pool_alias=3Dpool1, hibern= ate.connection.username=3DTGBPDBA9, java.vm.vendor=3DSun Microsystems Inc.,= java.vendor.url=3Dhttp://java.sun.com/, path.separator=3D;, java.vm.name= =3DJava HotSpot(TM) Client VM, file.encoding.pkg=3Dsun.io, user.country=3DU= S, sun.os.patch.level=3DService Pack 3, java.vm.specification.name=3DJava V= irtual Machine Specification, user.dir=3DC:\Data\Common\workspace\pma\Sandb= ox, java.runtime.version=3D1.4.2-b28, java.awt.graphicsenv=3Dsun.awt.Win32G= raphicsEnvironment, java.endorsed.dirs=3DC:\Program Files\Java\j2re1.4.2\li= b\endorsed, os.arch=3Dx86, java.io.tmpdir=3DC:\DOCUME~1\boringj\LOCALS~1\Te= mp\, line.separator=3D , java.vm.specification.vendor=3DSun Microsystems Inc., user.variant=3D, os= .name=3DWindows 2000, sun.java2d.fontpath=3D, java.library.path=3DC:\Progra= m Files\Java\j2re1.4.2\bin;.;C:\WINNT\System32;C:\WINNT;C:\Program Files\Or= acle\jre\1.1.7\bin\;C:\Oracle\Ora81\bin\;C:\WINNT\system32;C:\WINNT;C:\WINN= T\System32\Wbem;C:\Program Files\CatPC\Bin;C:\Program Files\CatPC\Windows\S= ystem32;C:\Program Files\CatPC\Windows\System;C:\Program Files\Executive So= ftware\DiskeeperWorkstation\;C:\Program Files\Oracle\jre\1.1.7\bin;U:\Appli= cation Data\Lotus\Notes;C:\Oracle\Ora81\bin;%C:\WINNT%\system32;%C:\WINNT%;= %C:\WINNT%\System32\Wbem;C:\Program Files\Executive Software\DiskeeperWorks= tation;C:\j2sdk1.4.2\bin;C:\Program Files\Rational\ClearCase\bin;C:\Program= Files\Rational\common;C:\PROGRA~1\ULTRAE~1, java.specification.name=3DJava= Platform API Specification, java.class.version=3D48.0, hibernate.connectio= n.pool_size=3D1, java.util.prefs.PreferencesFactory=3Djava.util.prefs.Windo= wsPreferencesFactory, os.version=3D5.0, user.home=3DC:\Documents and Settin= gs\boringj, user.timezone=3DAmerica/New_York, java.awt.printerjob=3Dsun.awt= .windows.WPrinterJob, file.encoding=3DCp1252, java.specification.version=3D= 1.4, hibernate.connection.driver_class=3Doracle.jdbc.driver.OracleDriver, j= ava.class.path=3DC:\Data\Common\workspace\pma\Sandbox;C:\Data\Common\worksp= ace\pma\Hibernate2.1;Q:\It56\Library\hibernate\hibernate-2.1\lib\xml-apis.j= ar;Q:\It56\Library\hibernate\hibernate-2.1\lib\c3p0.jar;Q:\It56\Library\hib= ernate\hibernate-2.1\lib\cglib-asm.jar;Q:\It56\Library\hibernate\hibernate-= 2.1\lib\commons-beanutils.jar;Q:\It56\Library\hibernate\hibernate-2.1\lib\c= ommons-collections.jar;Q:\It56\Library\hibernate\hibernate-2.1\lib\commons-= dbcp.jar;Q:\It56\Library\hibernate\hibernate-2.1\lib\commons-lang.jar;Q:\It= 56\Library\hibernate\hibernate-2.1\lib\commons-logging.jar;Q:\It56\Library\= hibernate\hibernate-2.1\lib\commons-pool.jar;Q:\It56\Library\hibernate\hibe= rnate-2.1\lib\connector.jar;Q:\It56\Library\hibernate\hibernate-2.1\lib\dom= 4j.jar;Q:\It56\Library\hibernate\hibernate-2.1\lib\jaas.jar;Q:\It56\Library= \hibernate\hibernate-2.1\lib\jcs.jar;Q:\It56\Library\hibernate\hibernate-2.= 1\lib\jdbc2_0-stdext.jar;Q:\It56\Library\hibernate\hibernate-2.1\lib\jta.ja= r;Q:\It56\Library\hibernate\hibernate-2.1\lib\junit.jar;Q:\It56\Library\hib= ernate\hibernate-2.1\lib\odmg.jar;Q:\It56\Library\hibernate\hibernate-2.1\l= ib\optional.jar;Q:\It56\Library\hibernate\hibernate-2.1\lib\proxool.jar;Q:\= It56\Library\hibernate\hibernate-2.1\lib\xalan.jar;Q:\It56\Library\hibernat= e\hibernate-2.1\lib\xerces.jar;Q:\It56\Library\hibernate\hibernate-2.1\lib\= ant.jar;C:\jakarta-tomcat-4.1\common\lib\jdbc2_0-stdext.jar;C:\jakarta-tomc= at-4.1\common\lib\classes12.jar;Q:\It56\Library\jakarta-log4j\jakarta-log4j= -1.2.8\dist\lib\log4j-1.2.8.jar;Q:\It56\Library\commons-lang\commons-lang-1= .0.1\commons-lang-1.0.1.jar, user.name=3Dboringj, hibernate.query.substitut= ions=3Dtrue 1, false 0, yes 'Y', no 'N', hibernate.show_sql=3Dtrue, java.vm= .specification.version=3D1.0, java.home=3DC:\Program Files\Java\j2re1.4.2, = sun.arch.data.model=3D32, hibernate.dialect=3Dnet.sf.hibernate.dialect.Orac= leDialect, hibernate.connection.url=3Djdbc:oracle:thin:@sccci.scsm.siemens.= com:1521:OT17, user.language=3Den, java.specification.vendor=3DSun Microsys= tems Inc., awt.toolkit=3Dsun.awt.windows.WToolkit, hibernate.cglib.use_refl= ection_optimizer=3Dtrue, java.vm.info=3Dmixed mode, hibernate.jdbc.use_stre= ams_for_binary=3Dtrue, java.version=3D1.4.2, java.ext.dirs=3DC:\Program Fil= es\Java\j2re1.4.2\lib\ext, sun.boot.class.path=3DC:\Program Files\Java\j2re= 1.4.2\lib\rt.jar;C:\Program Files\Java\j2re1.4.2\lib\i18n.jar;C:\Program Fi= les\Java\j2re1.4.2\lib\sunrsasign.jar;C:\Program Files\Java\j2re1.4.2\lib\j= sse.jar;C:\Program Files\Java\j2re1.4.2\lib\jce.jar;C:\Program Files\Java\j= 2re1.4.2\lib\charsets.jar;C:\Program Files\Java\j2re1.4.2\classes, java.ven= dor=3DSun Microsystems Inc., hibernate.jdbc.batch_size=3D0, file.separator= =3D\, hibernate.query.imports=3Dnet.sf.hibernate.test, net.sf.hibernate.eg,= hibernate.hbm2ddl.auto=3Dcreate-drop, java.vendor.url.bug=3Dhttp://java.su= n.com/cgi-bin/bugreport.cgi, hibernate.statement_cache.size=3D25, sun.io.un= icode.encoding=3DUnicodeLittle, sun.cpu.endian=3Dlittle, hibernate.max_fetc= h_depth=3D2, sun.cpu.isalist=3Dpentium i486 i386} 12:04:24,257 INFO PreparedStatementCache:60 - prepared statement cache siz= e: 25 12:04:25,038 DEBUG SessionFactoryObjectFactory:39 - initializing class Sess= ionFactoryObjectFactory 12:04:25,058 DEBUG SessionFactoryObjectFactory:76 - registered: 01c9a4eef76= 8327d00f768328b440000 (unnamed) 12:04:25,058 INFO SessionFactoryObjectFactory:82 - no JNDI name configured 12:04:25,058 DEBUG SessionFactoryImpl:179 - instantiated session factory 12:04:25,068 INFO Dialect:83 - Using dialect: net.sf.hibernate.dialect.Ora= cleDialect 12:04:25,078 INFO Configuration:495 - processing one-to-many association m= appings 12:04:25,088 INFO Configuration:504 - processing one-to-one association pr= operty references 12:04:25,088 INFO Configuration:529 - processing foreign key constraints 12:04:25,088 INFO Configuration:495 - processing one-to-many association m= appings 12:04:25,088 INFO Configuration:504 - processing one-to-one association pr= operty references 12:04:25,088 INFO Configuration:529 - processing foreign key constraints 12:04:25,098 INFO SchemaExport:96 - Running hbm2ddl schema export 12:04:25,108 INFO SchemaExport:115 - exporting generated schema to databas= e 12:04:25,108 INFO DriverManagerConnectionProvider:41 - Hibernate connectio= n pool size: 1 12:04:25,108 INFO DriverManagerConnectionProvider:70 - using driver: oracl= e.jdbc.driver.OracleDriver at URL: jdbc:oracle:thin:@sccci.scsm.siemens.com= :1521:OT17 12:04:25,108 INFO DriverManagerConnectionProvider:71 - connection properti= es: {user=3DTGBPDBA9, password=3DTGBPDBA9} 12:04:25,108 DEBUG DriverManagerConnectionProvider:77 - total checked-out c= onnections: 0 12:04:25,118 DEBUG DriverManagerConnectionProvider:90 - opening new JDBC co= nnection 12:04:26,741 DEBUG DriverManagerConnectionProvider:103 - created connection= to: jdbc:oracle:thin:@sccci.scsm.siemens.com:1521:OT17, Isolation Level: 2 12:04:26,981 DEBUG SchemaExport:128 - alter table UserRole drop constraint = FKF3F76701F02A3A82 12:04:27,101 DEBUG SchemaExport:128 - alter table UserRole drop constraint = FKF3F76701F02BF357 12:04:27,231 DEBUG SchemaExport:128 - drop table AppUser cascade constraint= s 12:04:27,402 DEBUG SchemaExport:128 - drop table UserRole cascade constrain= ts 12:04:27,562 DEBUG SchemaExport:128 - drop table ROLE cascade constraints 12:04:27,742 DEBUG SchemaExport:144 - create table AppUser ( userskey NUMBER(19,0) not null, name VARCHAR2(20), primary key (userskey) ) 12:04:27,922 DEBUG SchemaExport:144 - create table UserRole ( userskey NUMBER(19,0) not null, noteComment VARCHAR2(255) not null, roleskey NUMBER(19,0) ) 12:04:28,063 DEBUG SchemaExport:144 - create table ROLE ( roleskey NUMBER(19,0) not null, roleDescrip VARCHAR2(10) not null, primary key (roleskey) ) 12:04:28,243 DEBUG SchemaExport:144 - alter table UserRole add constraint F= KF3F76701F02A3A82 foreign key (roleskey) references ROLE 12:04:28,373 DEBUG SchemaExport:144 - alter table UserRole add constraint F= KF3F76701F02BF357 foreign key (userskey) references AppUser 12:04:28,503 INFO SchemaExport:154 - schema export complete 12:04:28,583 DEBUG DriverManagerConnectionProvider:117 - returning connecti= on to pool, pool size: 1 12:04:28,583 INFO DriverManagerConnectionProvider:144 - cleaning up connec= tion pool: jdbc:oracle:thin:@sccci.scsm.siemens.com:1521:OT17 12:04:28,663 INFO Dialect:83 - Using dialect: net.sf.hibernate.dialect.Ora= cleDialect 12:04:28,673 INFO Configuration:495 - processing one-to-many association m= appings 12:04:28,673 INFO Configuration:504 - processing one-to-one association pr= operty references 12:04:28,673 INFO Configuration:529 - processing foreign key constraints 12:04:28,683 INFO Configuration:495 - processing one-to-many association m= appings 12:04:28,683 INFO Configuration:504 - processing one-to-one association pr= operty references 12:04:28,693 INFO Configuration:529 - processing foreign key constraints 12:04:28,703 INFO DriverManagerConnectionProvider:144 - cleaning up connec= tion pool: jdbc:oracle:thin:@sccci.scsm.siemens.com:1521:OT17 12:04:32,429 DEBUG SessionImpl:444 - opened session 12:04:32,499 DEBUG JDBCTransaction:36 - begin 12:04:32,509 DEBUG DriverManagerConnectionProvider:77 - total checked-out c= onnections: 0 12:04:32,509 DEBUG DriverManagerConnectionProvider:83 - using pooled JDBC c= onnection, pool size: 0 12:04:36,455 DEBUG SessionImpl:691 - saving [Role#1] 12:04:36,485 DEBUG SessionImpl:691 - saving [Role#2] 12:04:36,485 DEBUG SessionImpl:691 - saving [AppUser#100] 12:04:36,485 DEBUG Cascades:336 - processing cascades for: AppUser 12:04:36,495 DEBUG Cascades:344 - done processing cascades for: AppUser 12:04:36,515 DEBUG SessionImpl:2561 - Wrapped collection in role: AppUser.r= oles 12:04:37,226 DEBUG Cascades:336 - processing cascades for: AppUser 12:04:37,226 DEBUG Cascades:275 - cascading to collection: AppUser.roles 12:04:37,226 DEBUG Cascades:344 - done processing cascades for: AppUser 12:04:40,661 DEBUG JDBCTransaction:54 - commit 12:04:42,293 DEBUG SessionImpl:2043 - flushing session 12:04:42,303 DEBUG Cascades:336 - processing cascades for: AppUser 12:04:42,303 DEBUG Cascades:275 - cascading to collection: AppUser.roles 12:04:42,303 DEBUG Cascades:344 - done processing cascades for: AppUser 12:04:42,313 DEBUG SessionImpl:2149 - Flushing entities and processing refe= renced collections 12:04:42,323 DEBUG SessionImpl:2591 - Collection found: [AppUser.roles#100]= , was: [<unreferenced>] 12:04:42,323 DEBUG SessionImpl:2433 - Processing unreferenced collections 12:04:42,333 DEBUG SessionImpl:2444 - Scheduling collection removes/(re)cre= ates/updates 12:04:42,333 DEBUG SessionImpl:2055 - Flushed: 3 insertions, 0 updates, 0 d= eletions to 3 objects 12:04:42,343 DEBUG SessionImpl:2060 - Flushed: 1 (re)creations, 0 updates, = 0 removals to 1 collections 12:04:42,343 DEBUG SessionImpl:2090 - executing flush 12:04:42,353 DEBUG EntityPersister:422 - Inserting entity: Role#1 12:04:42,363 DEBUG BatcherImpl:176 - about to open: 0 open PreparedStatemen= ts, 0 open ResultSets 12:04:42,363 DEBUG SessionFactoryImpl:393 - prepared statement get: insert = into tgbpdba9.ROLE (roleDescrip, roleskey) values (?, ?) Hibernate: insert into tgbpdba9.ROLE (roleDescrip, roleskey) values (?, ?) 12:04:42,373 DEBUG PreparedStatementCache:78 - preparing statement: insert = into tgbpdba9.ROLE (roleDescrip, roleskey) values (?, ?) 12:04:42,483 DEBUG EntityPersister:324 - Dehydrating entity: Role#1 12:04:42,483 DEBUG StringType:44 - binding 'Role A' to parameter: 1 12:04:42,483 DEBUG LongType:44 - binding '1' to parameter: 2 12:04:42,614 DEBUG EntityPersister:422 - Inserting entity: Role#2 12:04:42,614 DEBUG EntityPersister:324 - Dehydrating entity: Role#2 12:04:42,614 DEBUG StringType:44 - binding 'Role B' to parameter: 1 12:04:42,624 DEBUG LongType:44 - binding '2' to parameter: 2 12:04:42,704 DEBUG EntityPersister:422 - Inserting entity: AppUser#100 12:04:42,704 DEBUG BatcherImpl:183 - done closing: 0 open PreparedStatement= s, 0 open ResultSets 12:04:42,714 DEBUG PreparedStatementCache:102 - recaching 12:04:42,714 DEBUG PreparedStatementCache:137 - total checked-out statement= s: 0 12:04:42,714 DEBUG PreparedStatementCache:138 - checked out: [] 12:04:42,714 DEBUG BatcherImpl:176 - about to open: 0 open PreparedStatemen= ts, 0 open ResultSets 12:04:42,714 DEBUG SessionFactoryImpl:393 - prepared statement get: insert = into tgbpdba9.AppUser (name, userskey) values (?, ?) Hibernate: insert into tgbpdba9.AppUser (name, userskey) values (?, ?) 12:04:42,724 DEBUG PreparedStatementCache:78 - preparing statement: insert = into tgbpdba9.AppUser (name, userskey) values (?, ?) 12:04:42,814 DEBUG EntityPersister:324 - Dehydrating entity: AppUser#100 12:04:42,814 DEBUG StringType:44 - binding 'Jeff Boring ' to parameter: 1 12:04:42,824 DEBUG LongType:44 - binding '100' to parameter: 2 12:04:42,904 DEBUG BatcherImpl:183 - done closing: 0 open PreparedStatement= s, 0 open ResultSets 12:04:42,914 DEBUG PreparedStatementCache:102 - recaching 12:04:42,914 DEBUG PreparedStatementCache:137 - total checked-out statement= s: 0 12:04:42,914 DEBUG PreparedStatementCache:138 - checked out: [] 12:04:42,914 DEBUG CollectionPersister:667 - Inserting collection: AppUser.= roles#100 12:04:42,924 DEBUG BatcherImpl:176 - about to open: 0 open PreparedStatemen= ts, 0 open ResultSets 12:04:42,924 DEBUG SessionFactoryImpl:393 - prepared statement get: insert = into tgbpdba9.UserRole (userskey, noteComment, roleskey) values (?, ?, ?) Hibernate: insert into tgbpdba9.UserRole (userskey, noteComment, roleskey) = values (?, ?, ?) 12:04:42,924 DEBUG PreparedStatementCache:78 - preparing statement: insert = into tgbpdba9.UserRole (userskey, noteComment, roleskey) values (?, ?, ?) 12:04:43,004 DEBUG LongType:44 - binding '100' to parameter: 1 12:04:43,014 DEBUG StringType:44 - binding 'Serving as role A on project' t= o parameter: 2 12:04:43,014 DEBUG LongType:44 - binding '1' to parameter: 3 12:04:43,104 DEBUG CollectionPersister:693 - done inserting collection 12:04:43,104 DEBUG BatcherImpl:183 - done closing: 0 open PreparedStatement= s, 0 open ResultSets 12:04:43,114 DEBUG PreparedStatementCache:102 - recaching 12:04:43,114 DEBUG PreparedStatementCache:137 - total checked-out statement= s: 0 12:04:43,114 DEBUG PreparedStatementCache:138 - checked out: [] 12:04:45,027 DEBUG SessionImpl:2464 - post flush 12:04:48,302 DEBUG SessionImpl:478 - transaction completion java.lang.NullPointerException --------------------------------------------------------------------- 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-09-03 14:06:28
|
The following comment has been added to this issue: Author: tekno Created: Wed, 3 Sep 2003 9:06 AM Body: It would be nice to be able to specify default values for properties, components etc. Especially primitive type nullable columns which irritatingly throw null pointer exceptions if the column value is not set. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-31 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-31 Summary: Component not null Type: Improvement Status: Unassigned Priority: Minor Project: Hibernate2 Assignee: Reporter: Max Rydahl Andersen Created: Sat, 3 May 2003 10:18 AM Updated: Tue, 13 May 2003 6:27 AM Description: Component not null When all properties of component have null value Hibernate not instantiate that class. It will be nice to be able define will or will not component be instantiated in case all properties are null. For example if there are no values of columns "address_city" and "address_street" but address must not be null the instance of Address class must be assigned to property Enterprise.address. <class name="Enterprise"> <property name="name"/> <component name="address" class="Address" <b>not-null="true"</b>> <property name="city" column="address_city"/> <property name="street" column="address_street"/> </component> </class> With best regards. Dmitry M.ivlev http://sourceforge.net/tracker/index.php?func=detail&aid=706054&group_id=40712&atid=428711 --------------------------------------------------------------------- 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-09-03 08:48:27
|
The following issue has been updated: Updater: Fernando Martins (mailto:fm...@de...) Date: Wed, 3 Sep 2003 3:47 AM Comment: I've been using for some time the 'old' patched hibernate2-swarmcache by John Watkinson in developement of my project. And I was a little impatient to try the new Hibernate 2.1 Beta features. So I adjusted the SwarmCache.java and wrote a new SwarmCacheProvider.java for running Swarmcache in the new HB 2.1. Probably John or Gavin can adjust it even better, but I just wanted to try it by myself and maybe someone else can also use it, if it finds usefull. Changes: Attachment changed to SwarmCacheProvider.java --------------------------------------------------------------------- For a full history of the issue, see: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-47&page=history --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-47 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-47 Summary: Clustered Read/Write Caching Type: Patch Status: Assigned Priority: Critical Project: Hibernate2 Fix Fors: 2.1 Assignee: Gavin King Reporter: Max Rydahl Andersen Created: Sat, 3 May 2003 10:30 AM Updated: Wed, 3 Sep 2003 3:47 AM Description: Clustered Read/Write Caching This patch adds the ability to do read-write caching in a clustered environment. This is accomplished by way of the SwarmCache caching engine. It in turn uses Javagroups to implement efficient, multicast-based cache communication. You can read a detailed description of SwarmCache at http://swarmcache.sf.net. Included in the patch is a readme that explains how it works and how to apply it. John Watkinson http://sourceforge.net/tracker/index.php?func=detail&aid=722039&group_id=40712&atid=428710 --------------------------------------------------------------------- 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-09-03 08:43:27
|
The following issue has been updated: Updater: Fernando Martins (mailto:fm...@de...) Date: Wed, 3 Sep 2003 3:42 AM Changes: Attachment changed to SwarmCache.java --------------------------------------------------------------------- For a full history of the issue, see: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-47&page=history --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-47 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-47 Summary: Clustered Read/Write Caching Type: Patch Status: Assigned Priority: Critical Project: Hibernate2 Fix Fors: 2.1 Assignee: Gavin King Reporter: Max Rydahl Andersen Created: Sat, 3 May 2003 10:30 AM Updated: Wed, 3 Sep 2003 3:42 AM Description: Clustered Read/Write Caching This patch adds the ability to do read-write caching in a clustered environment. This is accomplished by way of the SwarmCache caching engine. It in turn uses Javagroups to implement efficient, multicast-based cache communication. You can read a detailed description of SwarmCache at http://swarmcache.sf.net. Included in the patch is a readme that explains how it works and how to apply it. John Watkinson http://sourceforge.net/tracker/index.php?func=detail&aid=722039&group_id=40712&atid=428710 --------------------------------------------------------------------- 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-09-03 07:45:33
|
The following issue has been updated: Updater: Ludovic Orban (mailto:lo...@te...) Date: Wed, 3 Sep 2003 2:45 AM 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-306&page=history --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-306 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-306 Summary: improved error checking in ForeignGenerator Type: Patch Status: Unassigned Priority: Trivial Project: Hibernate2 Components: core Versions: 2.0.3 Assignee: Reporter: Ludovic Orban Created: Wed, 3 Sep 2003 2:44 AM Updated: Wed, 3 Sep 2003 2:45 AM Environment: hibernate 2 CVS version Description: This patch just adds an extra check on a possible null value. In case of problem, the output is much more user-friendly. --------------------------------------------------------------------- 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-09-03 07:45:33
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-306 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-306 Summary: improved error checking in ForeignGenerator Type: Patch Status: Unassigned Priority: Trivial Project: Hibernate2 Components: core Versions: 2.0.3 Assignee: Reporter: Ludovic Orban Created: Wed, 3 Sep 2003 2:44 AM Updated: Wed, 3 Sep 2003 2:44 AM Environment: hibernate 2 CVS version Description: This patch just adds an extra check on a possible null value. In case of problem, the output is much more user-friendly. --------------------------------------------------------------------- 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-09-03 00:39:27
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-305 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-305 Summary: net.sf.hibernate.Query / Oracle 8 vs 8i / ORDER BY / ORA-00907: missing right parenthesis Type: Bug Status: Unassigned Priority: Major Project: Hibernate2 Components: core Versions: 2.0.2 2.0.3 Assignee: Reporter: W. Muir Created: Tue, 2 Sep 2003 7:38 PM Updated: Tue, 2 Sep 2003 7:38 PM Environment: Oracle 8.0.5 / Oracle 8.1.5 Description: Using "ORDER BY" in a query string does NOT work on Oracle 8.0.5, but works fine on Oracle 8.1.5. Exception: ORA-00907: missing right parenthesis ... Query accountQuery = session.createQuery( "FROM com.something.Account x ORDER BY x.identifier" ); accountQuery.setFirstResult( 10 ); accountQuery.setMaxResults( 100 ); accountQuery.list(); java.sql.SQLException: ORA-00907: missing right parenthesis at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.ja at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289) at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:573) at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1 at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Pr at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleS at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(O at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate( at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(O at net.sf.hibernate.impl.BatcherImpl.getResultSet(BatcherImp at net.sf.hibernate.loader.Loader.getResultSet(Loader.java:5 at net.sf.hibernate.loader.Loader.doFind(Loader.java:140) at net.sf.hibernate.loader.Loader.find(Loader.java:620) at net.sf.hibernate.hql.QueryTranslator.find(QueryTranslator at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1 at net.sf.hibernate.impl.QueryImpl.list(QueryImpl.java:76) --------------------------------------------------------------------- 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-09-02 13:28:25
|
Message: The following issue has been re-assigned. Assignee: Max Rydahl Andersen (mailto:xa...@xa...) --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?= key=3DHB-304 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-304 Summary: Velocity renderer Type: Improvement Status: Assigned Priority: Minor Project: Hibernate2 Components:=20 toolset Assignee: Max Rydahl Andersen Reporter: Didier Girard Created: Tue, 2 Sep 2003 7:06 AM Updated: Tue, 2 Sep 2003 8:27 AM Description: Here is the code of my basic Velocity renderer : import java.io.PrintWriter; import java.io.StringWriter; import java.util.Iterator; import java.util.Map; import java.util.Properties; import org.apache.velocity.VelocityContext; import org.apache.velocity.app.Velocity; import net.sf.hibernate.tool.hbm2java.AbstractRenderer; import net.sf.hibernate.tool.hbm2java.ClassMapping; import net.sf.hibernate.tool.hbm2java.Field; abstract public class AbstractHBM2JavaVelocityRenderer extends AbstractRend= erer { public void render(String savedToPackage, String savedToClass, ClassMap= ping classMapping, Map class2classmap, PrintWriter mainwriter) throws Excep= tion { StringWriter strWriter =3D null; String template =3D getTemplate(); strWriter =3D mergeTemplate(template, savedToPackage, savedToClass,= classMapping, class2classmap); mainwriter.print(strWriter.toString()); } private Field findIdentifier(ClassMapping classMapping) { Field result =3D null; for (Iterator fields =3D classMapping.getFields().iterator(); field= s.hasNext();) { Field field =3D (Field) fields.next(); if (field.isGeneratedAsProperty() && field.isIdentifier() && (r= esult =3D=3D null)) { result =3D field; } } return result; } public StringWriter mergeTemplate(String template, String savedToPackag= e, String savedToClass, ClassMapping classMapping, Map class2classmap) thro= ws Exception { Properties p =3D new Properties(); p.setProperty("resource.loader", "class"); p.setProperty("class.resource.loader.description", "Velocity Classp= ath Resource Loader"); p.setProperty("class.resource.loader.class", "org.apache.velocity.r= untime.resource.loader.ClasspathResourceLoader"); Velocity.init(p); VelocityContext context =3D new VelocityContext(); context.put("savedToPackage", savedToPackage); context.put("savedToClass", savedToClass); context.put("classMapping", classMapping); context.put("class2classmap", class2classmap); Field idEntity =3D findIdentifier(classMapping); context.put("idEntity", idEntity); StringWriter strWriter =3D new StringWriter(); Velocity.mergeTemplate(template, "ISO-8859-1", context, strWriter); return strWriter; } =20 public abstract String getTemplate(); } Here is a example of template : package ${classMapping.getGeneratedPackageName()}; #set($entity =3D "${classMapping.Name}" ) #set($entityLowerCase =3D "${classMapping.Name.toLowerCase()}" ) /** API du service Entreprise g=C3=A9n=C3=A9r=C3=A9 pour l'entit=C3=A9 $sav= edToClass. * @author hibernateGenerator **/ public interface $savedToClass extends Service { =09public $entity find${entity}(${idEntity.ClassType.getFullyQualifiedName(= )} in_${entityLowerCase}Id) throws ServiceException; =09public void delete${entity}(${entity} in_${entityLowerCase}) throws Serv= iceException; =09public $entity add${entity}(${entity} in_${entityLowerCase}) throws Serv= iceException; =09public $entity update${entity}(${entity} in_${entityLowerCase}) throws S= erviceException; } =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-09-02 12:06:27
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?= key=3DHB-304 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-304 Summary: Velocity renderer Type: Improvement Status: Unassigned Priority: Minor Project: Hibernate2 Components:=20 toolset Assignee:=20 Reporter: Didier Girard Created: Tue, 2 Sep 2003 7:06 AM Updated: Tue, 2 Sep 2003 7:06 AM Description: Here is the code of my basic Velocity renderer : import java.io.PrintWriter; import java.io.StringWriter; import java.util.Iterator; import java.util.Map; import java.util.Properties; import org.apache.velocity.VelocityContext; import org.apache.velocity.app.Velocity; import net.sf.hibernate.tool.hbm2java.AbstractRenderer; import net.sf.hibernate.tool.hbm2java.ClassMapping; import net.sf.hibernate.tool.hbm2java.Field; abstract public class AbstractHBM2JavaVelocityRenderer extends AbstractRend= erer { public void render(String savedToPackage, String savedToClass, ClassMap= ping classMapping, Map class2classmap, PrintWriter mainwriter) throws Excep= tion { StringWriter strWriter =3D null; String template =3D getTemplate(); strWriter =3D mergeTemplate(template, savedToPackage, savedToClass,= classMapping, class2classmap); mainwriter.print(strWriter.toString()); } private Field findIdentifier(ClassMapping classMapping) { Field result =3D null; for (Iterator fields =3D classMapping.getFields().iterator(); field= s.hasNext();) { Field field =3D (Field) fields.next(); if (field.isGeneratedAsProperty() && field.isIdentifier() && (r= esult =3D=3D null)) { result =3D field; } } return result; } public StringWriter mergeTemplate(String template, String savedToPackag= e, String savedToClass, ClassMapping classMapping, Map class2classmap) thro= ws Exception { Properties p =3D new Properties(); p.setProperty("resource.loader", "class"); p.setProperty("class.resource.loader.description", "Velocity Classp= ath Resource Loader"); p.setProperty("class.resource.loader.class", "org.apache.velocity.r= untime.resource.loader.ClasspathResourceLoader"); Velocity.init(p); VelocityContext context =3D new VelocityContext(); context.put("savedToPackage", savedToPackage); context.put("savedToClass", savedToClass); context.put("classMapping", classMapping); context.put("class2classmap", class2classmap); Field idEntity =3D findIdentifier(classMapping); context.put("idEntity", idEntity); StringWriter strWriter =3D new StringWriter(); Velocity.mergeTemplate(template, "ISO-8859-1", context, strWriter); return strWriter; } =20 public abstract String getTemplate(); } Here is a example of template : package ${classMapping.getGeneratedPackageName()}; #set($entity =3D "${classMapping.Name}" ) #set($entityLowerCase =3D "${classMapping.Name.toLowerCase()}" ) /** API du service Entreprise g=C3=A9n=C3=A9r=C3=A9 pour l'entit=C3=A9 $sav= edToClass. * @author hibernateGenerator **/ public interface $savedToClass extends Service { =09public $entity find${entity}(${idEntity.ClassType.getFullyQualifiedName(= )} in_${entityLowerCase}Id) throws ServiceException; =09public void delete${entity}(${entity} in_${entityLowerCase}) throws Serv= iceException; =09public $entity add${entity}(${entity} in_${entityLowerCase}) throws Serv= iceException; =09public $entity update${entity}(${entity} in_${entityLowerCase}) throws S= erviceException; } =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-09-02 08:09:39
|
Message: The following issue has been closed. Resolver: Gavin King Date: Tue, 2 Sep 2003 3:08 AM fixed in 2.1 branch in CVS --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-295 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-295 Summary: Session.refresh leaves old data in JCS cache Type: Bug Status: Closed Priority: Minor Resolution: FIXED Project: Hibernate2 Components: core Fix Fors: 2.1 beta 3 Versions: 2.0.2 Assignee: Gavin King Reporter: John Kristian Created: Wed, 27 Aug 2003 3:01 PM Updated: Tue, 2 Sep 2003 3:08 AM Environment: Windows XP, Microsoft SQL Server, JBoss 3 Description: http://sourceforge.net/forum/message.php?msg_id=2078891 Session session = sessionFactory.openSession(); Foo foo = session.load(Foo.class, id); // (1) // Now execute SQL via JDBC (not Hibernate) that changes the data from which foo is mapped. // (2) workaround: sessionFactory.evict(Foo.class, id); session.refresh(foo); // foo is copied from the database session.close(); session = sf.openSession(); Foo foo2 = session.load(Foo.class, id); // At this point, foo2 contains different data than foo. // foo2 contains the old data that foo contained at (1) above. session.close(); foo2 should contain the new data, just like foo. Ideally, session.refresh() would copy the new data into the cache. At least, it should invalidate the old cached data. One can work around this problem, by calling sessionFactory.evict at (2) above. --------------------------------------------------------------------- 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-09-02 05:03:31
|
Message: The following issue has been closed. Resolver: David Channon Date: Tue, 2 Sep 2003 12:01 AM User issue. I will add the extra tests I completed for the recent select parser changes. I will also include a new() test aswell. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-300 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-300 Summary: select new Foo(...) does not work (was ok in 2.0.1) Type: Bug Status: Closed Priority: Major Resolution: REJECTED Project: Hibernate2 Components: core Versions: 2.0.2 2.0.3 2.1 beta 1 2.1 beta 2 Assignee: David Channon Reporter: Thilo Jahke Created: Fri, 29 Aug 2003 8:28 AM Updated: Tue, 2 Sep 2003 12:01 AM Description: The simple HQL Query select new Foo(i.name, a.street, ...) from person i left outer join address a ... did work fine in Hibernate 2.0.1 but not in the newer versions. I get the error net.sf.hibernate.QueryException: undefined alias: i Thilo --------------------------------------------------------------------- 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-09-02 04:59:28
|
The following comment has been added to this issue: Author: David Channon Created: Mon, 1 Sep 2003 11:59 PM Body: This is a user issue not a hibernate bug. Following is the supplied query. It is missing the closing parenthesis to close the new in the select clause. It did involve a joined subclass so I loaded the mappings and created the classes anyway and the query worked fine. String select = new String("select distinct new SuchErgebnisInteressenten(interessent.oid, "+ "interessent.name1, interessent.name2, interessent.geburtsdatum, adresse.strasse, adresse.plz, "+ "adresse.ort, adresse.telefonp "); String alias = new String("from Interessent interessent "+ "left outer join interessent.adresseSet adresse "); Query query = sess.createQuery(select + alias); List ergebnis = query.list(); --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-300 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-300 Summary: select new Foo(...) does not work (was ok in 2.0.1) Type: Bug Status: In Progress Priority: Major Project: Hibernate2 Components: core Versions: 2.0.2 2.0.3 2.1 beta 1 2.1 beta 2 Assignee: David Channon Reporter: Thilo Jahke Created: Fri, 29 Aug 2003 8:28 AM Updated: Mon, 1 Sep 2003 1:20 AM Description: The simple HQL Query select new Foo(i.name, a.street, ...) from person i left outer join address a ... did work fine in Hibernate 2.0.1 but not in the newer versions. I get the error net.sf.hibernate.QueryException: undefined alias: i Thilo --------------------------------------------------------------------- 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-09-01 22:38:27
|
The following comment has been added to this issue: Author: Gavin King Created: Mon, 1 Sep 2003 5:38 PM Body: Yeah, just add a test to the test suite. If the user doesn't get back to you, just close the issue. Thanks David. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-300 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-300 Summary: select new Foo(...) does not work (was ok in 2.0.1) Type: Bug Status: In Progress Priority: Major Project: Hibernate2 Components: core Versions: 2.0.2 2.0.3 2.1 beta 1 2.1 beta 2 Assignee: David Channon Reporter: Thilo Jahke Created: Fri, 29 Aug 2003 8:28 AM Updated: Mon, 1 Sep 2003 1:20 AM Description: The simple HQL Query select new Foo(i.name, a.street, ...) from person i left outer join address a ... did work fine in Hibernate 2.0.1 but not in the newer versions. I get the error net.sf.hibernate.QueryException: undefined alias: i Thilo --------------------------------------------------------------------- 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 |