hello,
while trying to connect to a SQL Server...am gettiing the following exception
please help me in sorting out this problm
thanks in advance
14:50:55,795 INFO [MyHibernateRun] Loggin Started!!!
14:50:55,851 INFO [Environment] Hibernate 3.0.5
14:50:55,851 INFO [Environment] Hibernate 3.0.5
14:50:55,853 INFO [Environment] hibernate.properties not found
14:50:55,853 INFO [Environment] hibernate.properties not found
14:50:55,858 INFO [Environment] using CGLIB reflection optimizer
14:50:55,858 INFO [Environment] using CGLIB reflection optimizer
14:50:55,861 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
14:50:55,861 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
14:50:56,011 INFO [Configuration] Mapping resource: myHibernateTry/Info.hbm.xml
14:50:56,011 INFO [Configuration] Mapping resource: myHibernateTry/Info.hbm.xml
14:50:56,186 DEBUG [DTDEntityResolver] trying to locate
http://hibernate.sourceforge.net/hibern ... ng-3.0.dtd in classpath under org/hibernate/
14:50:56,186 DEBUG [DTDEntityResolver] trying to locate
http://hibernate.sourceforge.net/hibern ... ng-3.0.dtd in classpath under org/hibernate/
14:50:56,188 DEBUG [DTDEntityResolver] found
http://hibernate.sourceforge.net/hibern ... ng-3.0.dtd in classpath
14:50:56,188 DEBUG [DTDEntityResolver] found
http://hibernate.sourceforge.net/hibern ... ng-3.0.dtd in classpath
14:50:56,381 INFO [HbmBinder] Mapping class: myHibernateTry.Info -> Info
14:50:56,381 INFO [HbmBinder] Mapping class: myHibernateTry.Info -> Info
14:50:56,389 DEBUG [HbmBinder] Mapped property: id -> id
14:50:56,389 DEBUG [HbmBinder] Mapped property: id -> id
14:50:56,402 DEBUG [HbmBinder] Mapped property: rollnumber -> rollnumber
14:50:56,402 DEBUG [HbmBinder] Mapped property: rollnumber -> rollnumber
14:50:56,403 DEBUG [HbmBinder] Mapped property: name -> name
14:50:56,403 DEBUG [HbmBinder] Mapped property: name -> name
14:50:56,404 INFO [Configuration] configuring from resource: /hibernate.cfg.xml
14:50:56,404 INFO [Configuration] configuring from resource: /hibernate.cfg.xml
14:50:56,404 INFO [Configuration] Configuration resource: /hibernate.cfg.xml
14:50:56,404 INFO [Configuration] Configuration resource: /hibernate.cfg.xml
14:50:56,406 DEBUG [DTDEntityResolver] trying to locate
http://hibernate.sourceforge.net/hibern ... on-3.0.dtd in classpath under org/hibernate/
14:50:56,406 DEBUG [DTDEntityResolver] trying to locate
http://hibernate.sourceforge.net/hibern ... on-3.0.dtd in classpath under org/hibernate/
14:50:56,407 DEBUG [DTDEntityResolver] found
http://hibernate.sourceforge.net/hibern ... on-3.0.dtd in classpath
14:50:56,407 DEBUG [DTDEntityResolver] found
http://hibernate.sourceforge.net/hibern ... on-3.0.dtd in classpath
14:50:56,429 DEBUG [Configuration] hibernate.connection.driver_class=com.microsoft.jdbc.sqlserver.SQLServerDriver
14:50:56,429 DEBUG [Configuration] hibernate.connection.driver_class=com.microsoft.jdbc.sqlserver.SQLServerDriver
14:50:56,430 DEBUG [Configuration] hibernate.connection.url=jdbc:microsoft:sqlserver://192.168.0.128;DatabaseName=MyTestDB;SelectMethod=Cursor
14:50:56,430 DEBUG [Configuration] hibernate.connection.url=jdbc:microsoft:sqlserver://192.168.0.128;DatabaseName=MyTestDB;SelectMethod=Cursor
14:50:56,431 DEBUG [Configuration] hibernate.dialect=org.hibernate.dialect.SQLServerDialect
14:50:56,431 DEBUG [Configuration] hibernate.dialect=org.hibernate.dialect.SQLServerDialect
14:50:56,431 DEBUG [Configuration] hibernate.connection.username=sa
14:50:56,431 DEBUG [Configuration] hibernate.connection.username=sa
14:50:56,431 DEBUG [Configuration] hibernate.connection.password=
14:50:56,431 DEBUG [Configuration] hibernate.connection.password=
14:50:56,433 DEBUG [Configuration] hibernate.hbm2ddl.auto=update
14:50:56,433 DEBUG [Configuration] hibernate.hbm2ddl.auto=update
14:50:56,433 DEBUG [Configuration] transaction.factory_class=org.hibernate.transaction.JDBCTransactionFactory
14:50:56,433 DEBUG [Configuration] transaction.factory_class=org.hibernate.transaction.JDBCTransactionFactory
14:50:56,434 INFO [Configuration] Configured SessionFactory: MySessionFactory
14:50:56,434 INFO [Configuration] Configured SessionFactory: MySessionFactory
14:50:56,435 DEBUG [Configuration] properties: {hibernate.connection.password=, java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, transaction.factory_class=org.hibernate.transaction.JDBCTransactionFactory, sun.boot.library.path=/usr/local/jdk1.5.0_06/jre/lib/i386, java.vm.version=1.5.0_06-b05, hibernate.connection.username=sa, java.vm.vendor=Sun Microsystems Inc., java.vendor.url=http://java.sun.com/, path.separator=:, java.vm.name=Java HotSpot(TM) Client VM, file.encoding.pkg=sun.io, user.country=US, sun.os.patch.level=unknown, java.vm.specification.name=Java Virtual Machine Specification, user.dir=/home/Naresh G L/MyProject/MyHibernateConnect, java.runtime.version=1.5.0_06-b05, java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment, java.endorsed.dirs=/usr/local/jdk1.5.0_06/jre/lib/endorsed, os.arch=i386, java.io.tmpdir=/tmp, line.separator=
, java.vm.specification.vendor=Sun Microsystems Inc., os.name=Linux, sun.jnu.encoding=UTF-8, java.library.path=/usr/local/jdk1.5.0_06/jre/lib/i386/client:/usr/local/jdk1.5.0_06/jre/lib/i386:/usr/local/jdk1.5.0_06/jre/../lib/i386:/usr/local/lib, java.specification.name=Java Platform API Specification, java.class.version=49.0, sun.management.compiler=HotSpot Client Compiler, hibernate.transaction.factory_class=org.hibernate.transaction.JDBCTransactionFactory, os.version=2.4.22-1.2115.nptl, user.home=/home/ayush, user.timezone=Asia/Calcutta, java.awt.printerjob=sun.print.PSPrinterJob, file.encoding=UTF-8, java.specification.version=1.5, hibernate.connection.driver_class=com.microsoft.jdbc.sqlserver.SQLServerDriver, user.name=ayush, java.class.path=/home/Naresh G L/MyProject/MyHibernateConnect/bin:/home/ayush/hiber/cglib-2.1.3.jar:/home/ayush/hiber/commons-collections-2.1.1.jar:/home/ayush/hiber/commons-logging-1.0.4.jar:/home/ayush/hiber/dom4j-1.6.1.jar:/home/ayush/hiber/ehcache-1.1.jar:/home/ayush/hiber/jdbc2_0-stdext.jar:/home/ayush/hiber/jta.jar:/home/ayush/hiber/log4j-1.2.11.jar:/home/ayush/hiber/xerces-2.6.2.jar:/home/ayush/hiber/xml-apis.jar:/home/ayush/jpos-required-jars/hibernate3.jar:/home/ayush/Naresh/Xtras/SQLDriver/lib/msbase.jar:/home/ayush/Naresh/Xtras/SQLDriver/lib/mssqlserver.jar:/home/ayush/Naresh/Xtras/SQLDriver/lib/msutil.jar:/home/ayush/Naresh/Xtras/asm-3.0_RC1.jar, java.vm.specification.version=1.0, java.home=/usr/local/jdk1.5.0_06/jre, sun.arch.data.model=32, hibernate.dialect=org.hibernate.dialect.SQLServerDialect, hibernate.connection.url=jdbc:microsoft:sqlserver://192.168.0.128;DatabaseName=MyTestDB;SelectMethod=Cursor, user.language=en, java.specification.vendor=Sun Microsystems Inc., hibernate.cglib.use_reflection_optimizer=true, java.vm.info=mixed mode, sharing, java.version=1.5.0_06, java.ext.dirs=/usr/local/jdk1.5.0_06/jre/lib/ext, sun.boot.class.path=/usr/local/jdk1.5.0_06/jre/lib/rt.jar:/usr/local/jdk1.5.0_06/jre/lib/i18n.jar:/usr/local/jdk1.5.0_06/jre/lib/sunrsasign.jar:/usr/local/jdk1.5.0_06/jre/lib/jsse.jar:/usr/local/jdk1.5.0_06/jre/lib/jce.jar:/usr/local/jdk1.5.0_06/jre/lib/charsets.jar:/usr/local/jdk1.5.0_06/jre/classes, java.vendor=Sun Microsystems Inc., file.separator=/, hibernate.session_factory_name=MySessionFactory, hibernate.hbm2ddl.auto=update, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, sun.cpu.isalist=}
14:50:56,435 DEBUG [Configuration] properties: {hibernate.connection.password=, java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, transaction.factory_class=org.hibernate.transaction.JDBCTransactionFactory, sun.boot.library.path=/usr/local/jdk1.5.0_06/jre/lib/i386, java.vm.version=1.5.0_06-b05, hibernate.connection.username=sa, java.vm.vendor=Sun Microsystems Inc., java.vendor.url=http://java.sun.com/, path.separator=:, java.vm.name=Java HotSpot(TM) Client VM, file.encoding.pkg=sun.io, user.country=US, sun.os.patch.level=unknown, java.vm.specification.name=Java Virtual Machine Specification, user.dir=/home/Naresh G L/MyProject/MyHibernateConnect, java.runtime.version=1.5.0_06-b05, java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment, java.endorsed.dirs=/usr/local/jdk1.5.0_06/jre/lib/endorsed, os.arch=i386, java.io.tmpdir=/tmp, line.separator=
, java.vm.specification.vendor=Sun Microsystems Inc., os.name=Linux, sun.jnu.encoding=UTF-8, java.library.path=/usr/local/jdk1.5.0_06/jre/lib/i386/client:/usr/local/jdk1.5.0_06/jre/lib/i386:/usr/local/jdk1.5.0_06/jre/../lib/i386:/usr/local/lib, java.specification.name=Java Platform API Specification, java.class.version=49.0, sun.management.compiler=HotSpot Client Compiler, hibernate.transaction.factory_class=org.hibernate.transaction.JDBCTransactionFactory, os.version=2.4.22-1.2115.nptl, user.home=/home/ayush, user.timezone=Asia/Calcutta, java.awt.printerjob=sun.print.PSPrinterJob, file.encoding=UTF-8, java.specification.version=1.5, hibernate.connection.driver_class=com.microsoft.jdbc.sqlserver.SQLServerDriver, user.name=ayush, java.class.path=/home/Naresh G L/MyProject/MyHibernateConnect/bin:/home/ayush/hiber/cglib-2.1.3.jar:/home/ayush/hiber/commons-collections-2.1.1.jar:/home/ayush/hiber/commons-logging-1.0.4.jar:/home/ayush/hiber/dom4j-1.6.1.jar:/home/ayush/hiber/ehcache-1.1.jar:/home/ayush/hiber/jdbc2_0-stdext.jar:/home/ayush/hiber/jta.jar:/home/ayush/hiber/log4j-1.2.11.jar:/home/ayush/hiber/xerces-2.6.2.jar:/home/ayush/hiber/xml-apis.jar:/home/ayush/jpos-required-jars/hibernate3.jar:/home/ayush/Naresh/Xtras/SQLDriver/lib/msbase.jar:/home/ayush/Naresh/Xtras/SQLDriver/lib/mssqlserver.jar:/home/ayush/Naresh/Xtras/SQLDriver/lib/msutil.jar:/home/ayush/Naresh/Xtras/asm-3.0_RC1.jar, java.vm.specification.version=1.0, java.home=/usr/local/jdk1.5.0_06/jre, sun.arch.data.model=32, hibernate.dialect=org.hibernate.dialect.SQLServerDialect, hibernate.connection.url=jdbc:microsoft:sqlserver://192.168.0.128;DatabaseName=MyTestDB;SelectMethod=Cursor, user.language=en, java.specification.vendor=Sun Microsystems Inc., hibernate.cglib.use_reflection_optimizer=true, java.vm.info=mixed mode, sharing, java.version=1.5.0_06, java.ext.dirs=/usr/local/jdk1.5.0_06/jre/lib/ext, sun.boot.class.path=/usr/local/jdk1.5.0_06/jre/lib/rt.jar:/usr/local/jdk1.5.0_06/jre/lib/i18n.jar:/usr/local/jdk1.5.0_06/jre/lib/sunrsasign.jar:/usr/local/jdk1.5.0_06/jre/lib/jsse.jar:/usr/local/jdk1.5.0_06/jre/lib/jce.jar:/usr/local/jdk1.5.0_06/jre/lib/charsets.jar:/usr/local/jdk1.5.0_06/jre/classes, java.vendor=Sun Microsystems Inc., file.separator=/, hibernate.session_factory_name=MySessionFactory, hibernate.hbm2ddl.auto=update, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, sun.cpu.isalist=}
14:50:56,440 DEBUG [Configuration] Preparing to build session factory with filters : {}
14:50:56,440 DEBUG [Configuration] Preparing to build session factory with filters : {}
14:50:56,441 INFO [Configuration] processing extends queue
14:50:56,441 INFO [Configuration] processing extends queue
14:50:56,441 INFO [Configuration] processing collection mappings
14:50:56,441 INFO [Configuration] processing collection mappings
14:50:56,442 INFO [Configuration] processing association property references
14:50:56,442 INFO [Configuration] processing association property references
14:50:56,442 INFO [Configuration] processing foreign key constraints
14:50:56,442 INFO [Configuration] processing foreign key constraints
14:50:56,551 INFO [DriverManagerConnectionProvider] Using Hibernate built-in connection pool (not for production use!)
14:50:56,551 INFO [DriverManagerConnectionProvider] Using Hibernate built-in connection pool (not for production use!)
14:50:56,639 INFO [DriverManagerConnectionProvider] Hibernate connection pool size: 20
14:50:56,639 INFO [DriverManagerConnectionProvider] Hibernate connection pool size: 20
14:50:56,640 INFO [DriverManagerConnectionProvider] autocommit mode: false
14:50:56,640 INFO [DriverManagerConnectionProvider] autocommit mode: false
14:50:56,952 INFO [DriverManagerConnectionProvider] using driver: com.microsoft.jdbc.sqlserver.SQLServerDriver at URL: jdbc:microsoft:sqlserver://192.168.0.128;DatabaseName=MyTestDB;SelectMethod=Cursor
14:50:56,952 INFO [DriverManagerConnectionProvider] using driver: com.microsoft.jdbc.sqlserver.SQLServerDriver at URL: jdbc:microsoft:sqlserver://192.168.0.128;DatabaseName=MyTestDB;SelectMethod=Cursor
14:50:56,953 INFO [DriverManagerConnectionProvider] connection properties: {user=sa, password=}
14:50:56,953 INFO [DriverManagerConnectionProvider] connection properties: {user=sa, password=}
14:50:56,954 DEBUG [DriverManagerConnectionProvider] total checked-out connections: 0
14:50:56,954 DEBUG [DriverManagerConnectionProvider] total checked-out connections: 0
14:50:56,954 DEBUG [DriverManagerConnectionProvider] opening new JDBC connection
14:50:56,954 DEBUG [DriverManagerConnectionProvider] opening new JDBC connection
14:50:57,425 DEBUG [DriverManagerConnectionProvider] created connection to: jdbc:microsoft:sqlserver://192.168.0.128;DatabaseName=MyTestDB;SelectMethod=Cursor, Isolation Level: 2
14:50:57,425 DEBUG [DriverManagerConnectionProvider] created connection to: jdbc:microsoft:sqlserver://192.168.0.128;DatabaseName=MyTestDB;SelectMethod=Cursor, Isolation Level: 2
14:50:57,460 DEBUG [SettingsFactory] could not get database version from JDBC metadata
14:50:57,460 DEBUG [SettingsFactory] could not get database version from JDBC metadata
14:50:57,461 INFO [SettingsFactory] RDBMS: Microsoft SQL Server, version: Microsoft SQL Server 2000 - 8.00.194 (Intel X86)
Aug 6 2000 00:57:48
Copyright (c) 1988-2000 Microsoft Corporation
Developer Edition on Windows NT 5.0 (Build 2195: Service Pack 4)
14:50:57,461 INFO [SettingsFactory] RDBMS: Microsoft SQL Server, version: Microsoft SQL Server 2000 - 8.00.194 (Intel X86)
Aug 6 2000 00:57:48
Copyright (c) 1988-2000 Microsoft Corporation
Developer Edition on Windows NT 5.0 (Build 2195: Service Pack 4)
14:50:57,462 INFO [SettingsFactory] JDBC driver: SQLServer, version: 2.2.0037
14:50:57,462 INFO [SettingsFactory] JDBC driver: SQLServer, version: 2.2.0037
14:50:57,463 DEBUG [DriverManagerConnectionProvider] returning connection to pool, pool size: 1
14:50:57,463 DEBUG [DriverManagerConnectionProvider] returning connection to pool, pool size: 1
14:50:57,491 INFO [Dialect] Using dialect: org.hibernate.dialect.SQLServerDialect
14:50:57,491 INFO [Dialect] Using dialect: org.hibernate.dialect.SQLServerDialect
14:50:57,499 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.transaction.JDBCTransactionFactory
14:50:57,499 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.transaction.JDBCTransactionFactory
14:50:57,503 INFO [TransactionManagerLookupFactory] No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
14:50:57,503 INFO [TransactionManagerLookupFactory] No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
14:50:57,503 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
14:50:57,503 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
14:50:57,504 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
14:50:57,504 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
14:50:57,506 INFO [SettingsFactory] Scrollable result sets: enabled
14:50:57,506 INFO [SettingsFactory] Scrollable result sets: enabled
14:50:57,507 DEBUG [SettingsFactory] Wrap result sets: disabled
14:50:57,507 DEBUG [SettingsFactory] Wrap result sets: disabled
14:50:57,507 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): disabled
14:50:57,507 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): disabled
14:50:57,508 INFO [SettingsFactory] Connection release mode: null
14:50:57,508 INFO [SettingsFactory] Connection release mode: null
14:50:57,511 INFO [SettingsFactory] Default batch fetch size: 1
14:50:57,511 INFO [SettingsFactory] Default batch fetch size: 1
14:50:57,511 INFO [SettingsFactory] Generate SQL with comments: disabled
14:50:57,511 INFO [SettingsFactory] Generate SQL with comments: disabled
14:50:57,512 INFO [SettingsFactory] Order SQL updates by primary key: disabled
14:50:57,512 INFO [SettingsFactory] Order SQL updates by primary key: disabled
14:50:57,512 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
14:50:57,512 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
14:50:57,515 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
14:50:57,515 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
14:50:57,516 INFO [SettingsFactory] Query language substitutions: {}
14:50:57,516 INFO [SettingsFactory] Query language substitutions: {}
14:50:57,516 INFO [SettingsFactory] Second-level cache: enabled
14:50:57,516 INFO [SettingsFactory] Second-level cache: enabled
14:50:57,517 INFO [SettingsFactory] Query cache: disabled
14:50:57,517 INFO [SettingsFactory] Query cache: disabled
14:50:57,517 INFO [SettingsFactory] Cache provider: org.hibernate.cache.EhCacheProvider
14:50:57,517 INFO [SettingsFactory] Cache provider: org.hibernate.cache.EhCacheProvider
14:50:57,524 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
14:50:57,524 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
14:50:57,525 INFO [SettingsFactory] Structured second-level cache entries: disabled
14:50:57,525 INFO [SettingsFactory] Structured second-level cache entries: disabled
14:50:57,527 DEBUG [SQLExceptionConverterFactory] Using dialect defined converter
14:50:57,527 DEBUG [SQLExceptionConverterFactory] Using dialect defined converter
14:50:57,533 INFO [SettingsFactory] Statistics: disabled
14:50:57,533 INFO [SettingsFactory] Statistics: disabled
14:50:57,534 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
14:50:57,534 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
14:50:57,544 INFO [SettingsFactory] Default entity-mode: pojo
14:50:57,544 INFO [SettingsFactory] Default entity-mode: pojo
Exception in thread "main" java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(Z)V
at net.sf.cglib.core.DebuggingClassWriter.<init>(DebuggingClassWriter.java:47)
at net.sf.cglib.core.DefaultGeneratorStrategy.getClassWriter(DefaultGeneratorStrategy.java:30)
at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:24)
at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216)
at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104)
at org.hibernate.impl.SessionFactoryImpl.<clinit>(SessionFactoryImpl.java:321)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1005)
at myHibernateTry.MyHibernateRun.<init>(MyHibernateRun.java:23)
at myHibernateTry.MyHibernateRun.main(MyHibernateRun.java:42)