-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 
Author Message
 Post subject: JDK 1.3
PostPosted: Fri Aug 29, 2003 9:18 am 
Newbie

Joined: Fri Aug 29, 2003 9:12 am
Posts: 5
Does Hibernate work on JDK 1.3? I tried to make it run but I can't. Is there anybody who could help me?

I tried to run the NetworkDemo example. Here is the output:


16:14:28,828 INFO Environment:401 - Hibernate 2.0.1
16:14:28,828 INFO Environment:435 - loaded properties from resource hibernate.properties: {hibernate.connection.driver_class=oracle.jdbc.driver.OracleDriver, hibernate.cglib.use_reflection_optimizer=true, hibernate.dialect=net.sf.hibernate.dialect.OracleDialect, hibernate.jdbc.use_streams_for_binary=true, hibernate.jdbc.batch_size=0, hibernate.query.substitutions=true 1, false 0, yes 'Y', no 'N', hibernate.query.imports=net.sf.hibernate.test, net.sf.hibernate.eg, hibernate.proxool.pool_alias=pool1, hibernate.connection.username=mihai_admin, hibernate.connection.url=jdbc:oracle:thin:@orname:1521:orname, hibernate.show_sql=false, hibernate.connection.password=a, hibernate.statement_cache.size=25, hibernate.connection.pool_size=1}
16:14:28,843 INFO Environment:449 - using java.io streams to persist binary types
16:14:28,843 INFO Environment:450 - using CGLIB reflection optimizer
16:14:28,843 INFO Environment:460 - JVM proxy support: true
16:14:28,859 INFO Configuration:283 - Mapping resource: net/sf/hibernate/eg/Vertex.hbm.xml
16:14:29,390 DEBUG DTDEntityResolver:20 - trying to locate http://hibernate.sourceforge.net/hibern ... ng-2.0.dtd in classpath under net/sf/hibernate/
16:14:29,390 DEBUG DTDEntityResolver:29 - found http://hibernate.sourceforge.net/hibern ... ng-2.0.dtd in classpath
16:14:29,578 INFO Binder:176 - Mapping class: net.sf.hibernate.eg.Vertex -> vertex
[color=red]java.lang.ExceptionInInitializerError: java.lang.NullPointerException
at java.util.HashMap.put(HashMap.java:327)
at net.sf
.hibernate.type.TypeFactory.<clinit>(TypeFactory.java:50)
at net.sf.hibernate.util.ReflectHelper.reflectedPropertyType(ReflectHelper.java:255)
at net.sf.hibernate.mapping.Value.setTypeByReflection(Value.java:91)
at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:219)
at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1076)
at net.sf.hibernate.cfg.Configuration.add(Configuration.java:230)
at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:252)
at net.sf.hibernate.cfg.Configuration.addClass(Configuration.java:286)
at net.sf.hibernate.eg.NetworkDemo.main(NetworkDemo.java:31)[/color]
Exception in thread "main" Process terminated with exit code 1


Thank you.


Top
 Profile  
 
 Post subject: hib on jdk 1.3
PostPosted: Fri Aug 29, 2003 10:03 am 
Beginner
Beginner

Joined: Fri Aug 29, 2003 10:01 am
Posts: 34
Location: florence, italy
1.2.5 works fine on JDK 1.3.1_08. Regards


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 29, 2003 10:13 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Hibernate is build with the latest stable JDK 1.4, this error may be a binary incompatibility with JDK 1.3. Recompile the hibernate.jar (ant jar) with JDK 1.3.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 29, 2003 10:19 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
I also remembered this bug from old forum postings. It looks like this is a combination/issue with both Tomcat and the JDK. Here's the old thread:

http://sourceforge.net/forum/message.php?msg_id=2062040

I would appreciate if you can reproduce it and debug the problem for us. Please add your experiences either to the JIRA tracking system or the community area on the wiki at: http://www.hibernate.org/74.html (see the last entry).

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 29, 2003 10:53 am 
Newbie

Joined: Fri Aug 29, 2003 9:12 am
Posts: 5
Thank you :D

It works just fine after recompiling hibernate.jar using jdk 1.3.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 19, 2007 11:10 am 
Newbie

Joined: Wed Jul 19, 2006 9:08 am
Posts: 2
Location: London, UK
Here is the Hibernate 3.1 recompiled with Java 1.3.

http://linea.ltd.uk/downloads/hibernate ... ava1.3.jar

Visit: http://linea.ltd.uk | http://www.4cornersclub.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.