-->
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: weblogic&hibnernate?
PostPosted: Sun Aug 29, 2004 11:27 pm 
Newbie

Joined: Sun Aug 29, 2004 11:03 pm
Posts: 1
Hibernate-2.1 final
<br>weblogic 6.1


why?

[code]
<2004-8-30 上午10时13分26秒> <Notice> <WebLogicServer> <ListenThread listening o
n port 7001>
<2004-8-30 上午10时13分27秒> <Notice> <WebLogicServer> <Started WebLogic Admin S
erver "myserver" for domain "mydomain" running in Production Mode>
- Hibernate 2.1 final
- loaded properties from resource hibernate.properties: {hibernate.cglib.use_ref
lection_optimizer=true, hibernate.cache.provider_class=net.sf.hibernate.cache.Ha
shtableCacheProvider, hibernate.transaction.manager_lookup_class=net.sf.hibernat
e.transaction.WeblogicTransactionManagerLookup, hibernate.max_fetch_depth=1, hib
ernate.dialect=net.sf.hibernate.dialect.OracleDialect, hibernate.jdbc.use_stream
s_for_binary=true, hibernate.jdbc.batch_size=0, hibernate.query.substitutions=tr
ue 1, false 0, yes 'Y', no 'N', hibernate.proxool.pool_alias=pool1, hibernate.co
nnection.datasource=csms2sysjndi, hibernate.show_sql=true, hibernate.connection.
provider_class=net.sf.hibernate.connection.DatasourceConnectionProvider, hiberna
te.connection.pool_size=1}
- using java.io streams to persist binary types
- using CGLIB reflection optimizer
- JVM does not support LinkedHasMap, LinkedHashSet - ordered maps and sets disab
led
- using workaround for JVM bug in java.sql.Timestamp
- Mapping resource: com/cao/Tool/Person.hbm.xml
- Mapping class: com.cao.Tool.Person -> Person
- Using dialect: net.sf.hibernate.dialect.OracleDialect
- processing one-to-many association mappings
- processing one-to-one association property references
- processing foreign key constraints
- processing one-to-many association mappings
- processing one-to-one association property references
- processing foreign key constraints
- Running hbm2ddl schema export
- writing generated schema to file: e:\sql2.txt
- exporting generated schema to database
- Initializing connection provider: net.sf.hibernate.connection.DatasourceConnec
tionProvider
- JNDI InitialContext properties:{}
- Using datasource: csms2sysjndi
drop table Person cascade constraints
create table Person (
id VARCHAR2(255) not null,
name VARCHAR2(255),
address VARCHAR2(255),
primary key (id)
)
- schema export complete
- processing one-to-many association mappings
- processing one-to-one association property references
- processing foreign key constraints
- Using dialect: net.sf.hibernate.dialect.OracleDialect
- Maximim outer join fetch depth: 1
- Use outer join fetching: true
- Initializing connection provider: net.sf.hibernate.connection.DatasourceConnec
tionProvider
- JNDI InitialContext properties:{}
- Using datasource: csms2sysjndi
- instantiating TransactionManagerLookup: net.sf.hibernate.transaction.WeblogicT
ransactionManagerLookup
- instantiated TransactionManagerLookup
- Use scrollable result sets: true
- echoing all SQL to stdout
- Query language substitutions: {false=0, no='N', yes='Y', true=1}
- cache provider: net.sf.hibernate.cache.HashtableCacheProvider
- instantiating and configuring caches
- building session factory
<2004-8-30 上午10时45分00秒> <Error> <HTTP> <[WebAppServletContext(-12110398,Def
aultWebApp,/DefaultWebApp)] Servlet failed with Exception
java.lang.NoSuchMethodError: net.sf.hibernate.persister.AbstractEntityPersister:
method getTableName()Ljava/lang/String; not found
at net.sf.hibernate.persister.AbstractEntityPersister.generateSelectVers
ionString(AbstractEntityPersister.java:1188)
at net.sf.hibernate.persister.EntityPersister.<init>(EntityPersister.jav
a:916)
at net.sf.hibernate.persister.PersisterFactory.createClassPersister(Pers
isterFactory.java:41)
at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.ja
va:136)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.
java:726)
at com.cao.Tool.TestPerson.exe(TestPerson.java:68)
at com.cao.Tool.TestPerson.testName(TestPerson.java:54)
at jsp_servlet._cao.__myhib._jspService(__myhib.java:107)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:263)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:2390)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:1959)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>
[code]

[/code]


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 06, 2004 12:03 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
check you getter/setter pairs

BTW I used to have some trouble with Hibernate in WL7 due to JDK 1.4 backport bug, I had to recompile Hibernate with my JDK 1.3.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 16, 2004 6:21 am 
Newbie

Joined: Thu Sep 16, 2004 3:41 am
Posts: 7
Location: chennai,india
we r developing a product using hibernate to provide ease to users for the development of tools that can be developed without any hassles and r providing support for various app.servers and databases compatibility .we r facing trouble with sqlserver2000 and weblogic8.1


java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Unsupported data conversion.
at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.base.BaseData.unsupportedConversion(Unknown Source)
at com.microsoft.jdbc.base.BaseData.getBlob(Unknown Source)
at com.microsoft.jdbc.base.BaseResultSet.getBlob(Unknown Source)
pmInstanceID: 1095317693156
at com.microsoft.jdbc.base.BaseResultSet.getBlob(Unknown Source)
at weblogic.jdbc.wrapper.ResultSet_com_microsoft_jdbc_base_BaseResultSet.getBlob(Unknown Source)
at com.wos.utils.log.StatusInformation.getInputParamXml(StatusInformation.java:1471)
at com.wos.runtime.InvokeInvoker.execute(InvokeInvoker.java:247)
at com.wos.runtime.SequenceInvoker.execute(SequenceInvoker.java:91)
at com.wos.runtime.ActivityThreadPeer.run(ActivityThreadPeer.java:128)
com.wos.faults.BPELException: Error unable to fetch input xml from data base [Microsoft][SQLServer 2000 Driver for JDBC]Unsuppo
rted data conversion. : [Microsoft][SQLServer 2000 Driver for JDBC]Unsupported data conversion.
at com.wos.utils.log.StatusInformation.getInputParamXml(StatusInformation.java:1479)
at com.wos.runtime.InvokeInvoker.execute(InvokeInvoker.java:247)
at com.wos.runtime.SequenceInvoker.execute(SequenceInvoker.java:91)
at com.wos.runtime.ActivityThreadPeer.run(ActivityThreadPeer.java:128)
Sequence stop() called....
Process1222222222 stop() called....
Sequence Error -> Activity GetCountries1 encountered the following error Error unable to fetch input xml from data base [Micros
oft][SQLServer 2000 Driver for JDBC]Unsupported data conversion. : [Microsoft][SQLServer 2000 Driver for JDBC]Unsupported data c
onversion.


can u guide me plz. [/i]


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 04, 2004 2:00 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Don't use the Microsoft JDBC driver it sucks
Use jTDS for example, it's free, it's good, it works

_________________
Emmanuel


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.