-->
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.  [ 4 posts ] 
Author Message
 Post subject: Problems running Hibernat 3.1 in JDK131 class version error
PostPosted: Wed Jun 07, 2006 3:28 pm 
Newbie

Joined: Wed Jun 07, 2006 3:21 pm
Posts: 13
Hi ,
I ran my sample hibernate programs in JDK142 fine . But When I tried to compile them under JDK131 I get a version problem . Can we use hibernate 3.1 with jdk1.3 . Please help me .I need them to work in JDK131.



Hibernate version:
3.1.3

Mapping documents:



Full stack trace of any exception that occurs:
bad class file: C:\mystuff\software\hibernate-3.1.3\hibernate-3.1\hibernate3.jar
(org/hibernate/Session.class)
class file has wrong version 48.0, should be 47.0
Please remove or make sure it appears in the correct subdirectory of the classpa
th.

Name and version of the database you are using:
Oracle 9

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:



Thanks ,
ma


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 07, 2006 3:59 pm 
Newbie

Joined: Wed Jun 07, 2006 3:57 pm
Posts: 3
Location: Mexico
Hi,

I think the hibernate3.jar was compiled using a JDK1.4 (Verify this in the META-INF/MANIFEST.MF file inside the JAR file).

I think the JDK you use gives the classes a version number, 47 is for JDK13, 48 for JDK14, and as of what I have seen, 49 for JDK15.

I am not sure, but if there actually is support for Hibernate 3 using a JDK1.3, you would have to rebuild the entire framework.

Regards,

Carlos


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 08, 2006 12:03 pm 
Newbie

Joined: Wed Jun 07, 2006 3:21 pm
Posts: 13
Hi IOC ,
Thanks . I did do the compiling of the hibernate classes and stuck up with the resultsetwrapper class. This class utilizes the updateArray() of the java.sql.ResultSet which is present from version 1.4 . What should I do about this .

Thanks ,
ma


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 08, 2006 3:14 pm 
Newbie

Joined: Wed Jun 07, 2006 3:57 pm
Posts: 3
Location: Mexico
Hi Ma,

I think they have some sort of wrapper classes that provide the functions that are required but not available on JDK1.3.
Download the whole hibernate project, including sources, modify the build.properties (or the buid.xml) to instruct what is the target vm and then compile the entire framework hibernate.

Good luck!

Carlos


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.