red part , see
February 23 , 2012 3:55:59 pm org.hibernate.annotations.common.Version
INFO: HCANN000001: Hibernate Commons Annotations {4.0.1.Final}
February 23 , 2012 3:55:59 pm org.hibernate.Version logVersion
INFO: HHH000412: Hibernate Core {4.1.0.Final}
February 23 , 2012 3:55:59 pm org.hibernate.cfg.Environment
INFO: HHH000206: hibernate.properties not found
February 23 , 2012 3:55:59 pm org.hibernate.cfg.Environment buildBytecodeProvider
INFO: HHH000021: Bytecode provider name: javassist
February 23 , 2012 3:55:59 pm org.hibernate.cfg.Configuration configure
INFO: HHH000043: Configuring from resource: / hibernate.cfg.xml
February 23 , 2012 3:55:59 pm org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: HHH000040: Configuration resource: / hibernate.cfg.xml
February 23 , 2012 3:56:00 pm org.hibernate.cfg.Configuration addResource
INFO: HHH000221: Reading mappings from resource: com / mh / entity / Student.hbm.xml
February 23 , 2012 3:56:00 pm org.hibernate.cfg.Configuration doConfigure
INFO: HHH000041: Configured SessionFactory: null
February 23 , 2012 3:56:00 pm org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO: HHH000402: Using Hibernate built-in connection pool (not for production use!)
February 23 , 2012 3:56:00 pm org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO: HHH000115: Hibernate connection pool size: 20
February 23 , 2012 3:56:00 pm org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO: HHH000006: Autocommit mode: false
February 23 , 2012 3:56:00 pm org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO: HHH000401: using driver [oracle.jdbc.driver.OracleDriver] at URL [jdbc: oracle: thin: @ localhost: 1521: orcl]
February 23 , 2012 3:56:00 pm org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO: HHH000046: Connection properties: {user = PBUser, password = ****}
February 23 , 2012 3:56:01 pm org.hibernate.dialect.Dialect
INFO: HHH000400: Using dialect: org.hibernate.dialect.Oracle10gDialect
February 23 , 2012 3:56:01 pm org.hibernate.engine.jdbc.internal.LobCreatorBuilder useContextualLobCreation
INFO: HHH000424: Disabling contextual LOB creation as createClob () method threw error: java.lang.reflect.InvocationTargetException
February 23 , 2012 3:56:01 pm org.hibernate.engine.transaction.internal.TransactionFactoryInitiator initiateService
INFO: HHH000399: Using default transaction strategy (direct JDBC transactions)
February 23 , 2012 3:56:01 pm org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory
INFO: HHH000397: Using ASTQueryTranslatorFactory
Hibernate:
insert
into
STUDENT
(name, age, ID)
values
(?,?,?)
------ Solution ------------------------------------ --------
java through jdbc connect sqlserver and oracle when this exception. While this exception , but has no effect on the entire application . This exception occurs because the jar package version is wrong. Oracle10g the jdbc connection with ojdbc6.jar (1942k), connect sqlserver2008 with sqljdbc.jar (570k), rather than sqljdbc4.jar (567k)
------ Solution ------------------------------------ --------
your program has LOB type of field you, if you have an idea LOB type of processing and other differences .
LOB type of processing described in google.
just learning , you do not engage in the LOB .
Estimate your field type in question . Of course, there may be problems # 2 .
------ Solution ---------------------------------------- ----
jar package version problems, especially oracle
------ Solution --------------------- -----------------------
you talk createClob () in and see what happens ?
------ Solution ---------------------------------------- ----
put your bean object stickers look
------ Solution ------------------------ --------------------
look at the next, does this thing just INFO level , meaning that only a reminder, do not really matter .
INFO: HHH000424: Disabling contextual LOB creation as createClob () method threw error: java.lang.reflect.InvocationTargetException
Also checked, some approaches that can close off this thing :
http://stackoverflow.com/questions/4588755/hibernate-disabling-contextual-lob-creation-as-createclob-method-threw-error
------ For reference only --- ------------------------------------
hey wood was it ?
------ For reference only -------------------------------------- -
upstairs , are big Niu , and I this is the use of oracle, jar package using Hibernate4.0, oracle is 11g, ojdbc14.jar. Is already up to date . . This version of the problem is really no solution . .
------ For reference only -------------------------------------- -
INFO: HHH000400: Using dialect: org.hibernate.dialect.Oracle10gDialect
February 23 , 2012 3:56:01 pm org.hibernate.engine.jdbc.internal.LobCreatorBuilder useContextualLobCreation
you are playing Oracle11g? But your Hibernate using Oracle10gDialect, may be the problem here , right ?
but not used Hibernate long time , so what's not conclusive .
------ For reference only -------------------------------------- -
Hibernate4 official sources said in 11g and 10g are Oracle10gDialect. .
------ For reference only -------------------------------------- -
simply did not use createClob (). . . One way to estimate the underlying
------ For reference only -------------------------------- -------
Well, I can feel at ease to go
------ For reference only ------------------------ ---------------
As you noticed, this exception isn't a real problem. It happens during the boot, when Hibernate tries to retrieve some meta information from the database. If this annoys you, you can disable it:
hibernate.temp.use_jdbc_metadata_defaults = false
mabe try.
------ For reference only ------------------------------ ---------
I have encountered this problem , replaced odbc6.jar, the problem is solved !
------ For reference only -------------------------------------- -
positive solution !
------ For reference only -------------------------------------- -
Thank you very much , I just started using oracale10g.jar, replaced ojdbc6.jar solved
 
没有评论:
发表评论