Hello, all !
I really don´t know what is happening , it seems that is not debugging
even with right configuration
Hibernate version:2.1.7
Mapping documents:
### direct log messages to stdout ###
log4j.debug=true
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE}
? %5p %c{1}:%L - %m%n
log4j.rootLogger=warn,stdout
log4j.logger.net.sf.hibernate=debug
log4j.logger.net.sf.hibernate.type=debug
log4j.logger.net.sf.hibernate.ps.PreparedStatementCache=debug
Code between sessionFactory.openSession() and session.close():
i´m doing a simple select.
Full stack trace of any exception that occurs:
Name and version of the database you are using:
Sybase
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
log4j: Parsing for [root] with value=[warn,stdout].
log4j: Level token is [warn].
log4j: Category root set to WARN
log4j: Parsing appender named "stdout".
log4j: Parsing layout options for "stdout".
log4j: Setting property [conversionPattern] to [%d{ABSOLUTE}].
log4j: End of parsing for "stdout".
log4j: Setting property [target] to [System.out].
log4j: Parsed "stdout" options.
log4j: Parsing for [net.sf.hibernate.ps.PreparedStatementCache] with value=[debug].
log4j: Level token is [debug].
log4j: Category net.sf.hibernate.ps.PreparedStatementCache set to DEBUG
log4j: Handling log4j.additivity.net.sf.hibernate.ps.PreparedStatementCache=[null]
log4j: Parsing for [net.sf.hibernate.type] with value=[debug].
log4j: Level token is [debug].
log4j: Category net.sf.hibernate.type set to DEBUG
log4j: Handling log4j.additivity.net.sf.hibernate.type=[null]
log4j: Parsing for [net.sf.hibernate] with value=[debug].
log4j: Level token is [debug].
log4j: Category net.sf.hibernate set to DEBUG
log4j: Handling log4j.additivity.net.sf.hibernate=[null]
log4j: Finished configuring.
14:40:32,05014:40:32,05014:40:32,05014:40:32,06614:40:32,06614:40:32,39414:40:32,39414:40:32,44114:40:32,44114:40:32,44114:40:32,44114:40:32,44114:40:32,44114:40:32,44114:40:32,44114:40:32,44114:40:32,44114:40:32,44114:40:32,44114:40:32,45714:40:32,58214:40:32,64414:40:32,66014:40:32,66014:40:32,66014:40:32,66014:40:32,67514:40:32,67514:40:32,67514:40:32,67514:40:32,67514:40:32,69114:40:32,69114:40:32,72214:40:32,72214:40:32,72214:40:32,72214:40:32,72214:40:32,72214:40:32,73814:40:32,73814:40:32,73814:40:32,73814:40:32,73814:40:32,73814:40:32,76914:40:32,76914:40:32,76914:40:32,76914:40:32,76914:40:32,76914:40:32,76914:40:32,76914:40:32,76914:40:32,80014:40:32,80014:40:32,80014:40:32,80014:40:32,80014:40:32,80014:40:32,80014:40:32,81614:40:32,81614:40:32,83214:40:32,83214:40:32,83214:40:32,98814:40:32,98814:40:32,98814:40:32,98814:40:32,98814:40:32,98814:40:32,98814:40:33,03514:40:33,03514:40:33,03514:40:33,03514:40:33,03514:40:33,03514:40:33,03514:40:33,03514:40:33,03514:40:33,03514:40:33,03514:40:33,05014:40:33,05014:40:33,06614:40:33,06614:40:33,06614:40:33,06614:40:33,06614:40:33,06614:40:33,06614:40:33,06614:40:33,06614:40:33,06614:40:33,06614:40:33,06614:40:33,08214:40:33,08214:40:33,08214:40:33,09714:40:33,09714:40:33,09714:40:33,09714:40:33,09714:40:33,09714:40:33,09714:40:33,09714:40:33,09714:40:33,09714:40:33,09714:40:33,09714:40:33,09714:40:33,09714:40:33,09714:40:33,09714:40:33,09714:40:33,09714:40:33,09714:40:33,09714:40:33,09714:40:33,09714:40:33,09714:40:33,09714:40:33,09714:40:33,09714:40:33,09714:40:33,09714:40:33,09714:40:33,09714:40:33,09714:40:33,09714:40:33,09714:40:33,09714:40:33,09714:40:33,09714:40:33,09714:40:33,09714:40:33,09714:40:33,09714:40:33,11314:40:33,11314:40:33,12914:40:33,12914:40:33,12914:40:33,19114:40:33,191Initializing c3p0 pool... com.mchange.v2.c3p0.PoolBackedDataSource@1f06dc3 [ connectionPoolDataSource -> com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@fcfa52 [ acquireIncrement -> 1, autoCommitOnClose -> false, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, idleConnectionTestPeriod -> 0, initialPoolSize -> 1, maxIdleTime -> 1800, maxPoolSize -> 5, maxStatements -> 20, minPoolSize -> 1, nestedDataSource -> com.mchange.v2.c3p0.DriverManagerDataSource@1b64e6a [ description -> null, driverClass -> null, factoryClassLocation -> null, jdbcUrl -> jdbc:sybase:Tds:172.22.0.76:5000/phonecall, properties -> {user=phonecall, password=phone123} ] , propertyCycle -> 300, testConnectionOnCheckout -> false ] , factoryClassLocation -> null, numHelperThreads -> 3 ]
14:40:34,16014:40:34,16014:40:34,16014:40:34,16014:40:34,16014:40:34,16014:40:34,16014:40:34,19114:40:34,19114:40:34,70714:40:34,70714:40:34,70714:40:34,70714:40:34,73814:40:34,75414:40:35,08214:40:35,08214:40:35,08214:40:35,31614:40:35,33214:40:35,33214:40:35,34714:40:35,36314:40:35,36314:40:35,36314:40:35,36314:40:35,36314:40:35,36314:40:35,36314:40:35,36314:40:35,36314:40:35,36314:40:35,363Hibernate: select funcionari0_.FUNCIONARIO_ID as FUNCIONA1_, funcionari0_.MATRICULA as MATRICULA, funcionari0_.CARGO as CARGO, funcionari0_.NOME as NOME, funcionari0_.TELEFONE as TELEFONE, funcionari0_.EMAIL as EMAIL from FUNCIONARIOS funcionari0_ where (funcionari0_.NOME=? )
14:40:35,36314:40:35,37914:40:35,42614:40:35,42614:40:35,42614:40:35,42614:40:35,42614:40:35,42614:40:35,42614:40:35,42614:40:35,42614:40:35,42614:40:35,42614:40:35,42614:40:35,42614:40:35,42614:40:35,42614:40:35,42614:40:35,42614:40:35,42614:40:35,42614:40:35,42614:40:35,42614:40:35,42614:40:35,42614:40:35,42614:40:35,42614:40:35,42614:40:35,42614:40:35,42614:40:35,42614:40:35,42614:40:35,42614:40:35,42614:40:35,42614:40:35,44114:40:35,44114:40:35,44114:40:35,44114:40:35,44114:40:35,44114:40:35,44114:40:35,44114:40:35,44114:40:35,44114:40:35,44114:40:35,44114:40:35,44114:40:35,44114:40:35,44114:40:35,44114:40:35,44114:40:35,44114:40:35,44114:40:35,44114:40:35,44114:40:35,45714:40:35,45714:40:35,45714:40:35,45714:40:35,45714:40:35,45714:40:35,45714:40:35,45714:40:35,45714:40:35,45714:40:35,45714:40:35,45714:40:35,45714:40:35,50414:40:35,50414:40:35,50414:40:35,597java.sql.SQLWarning: 010TP: The connection's initial character set, null, could not be converted by the server. The server's proposed character set, Cp850, will be used, with conversions performed by jConnect.
at com.sybase.jdbc2.jdbc.SybConnection.convertToWarnings(SybConnection.java:1308)
at com.sybase.jdbc2.jdbc.SybConnection.chainWarnings(SybConnection.java:1324)
at com.sybase.jdbc2.tds.Tds.processLoginAckToken(Tds.java:2996)
at com.sybase.jdbc2.tds.Tds.doLogin(Tds.java:422)
at com.sybase.jdbc2.tds.Tds.login(Tds.java:350)
at com.sybase.jdbc2.jdbc.SybConnection.tryLogin(SybConnection.java:213)
at com.sybase.jdbc2.jdbc.SybConnection.regularConnect(SybConnection.java:193)
at com.sybase.jdbc2.jdbc.SybConnection.<init>(SybConnection.java:172)
at com.sybase.jdbc2.jdbc.SybConnection.<init>(SybConnection.java:124)
at com.sybase.jdbc2.jdbc.SybDriver.connect(SybDriver.java:181)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:66)
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:76)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1.acquireResource(C3P0PooledConnectionPool.java:66)
at com.mchange.v2.resourcepool.BasicResourcePool.assimilateResource(BasicResourcePool.java:787)
at com.mchange.v2.resourcepool.BasicResourcePool.acquireUntil(BasicResourcePool.java:548)
at com.mchange.v2.resourcepool.BasicResourcePool.access$000(BasicResourcePool.java:35)
at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:972)
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:148)
14:40:35,59714:40:35,59714:40:36,004
|