| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 3178 人关注过本帖
标题:DB2查询问题
只看楼主 加入收藏
想你的天空
Rank: 2
等 级:新手上路
威 望:5
帖 子:610
专家分:0
注 册:2004-12-30
收藏
 问题点数:0 回复次数:12 
DB2查询问题
tomcat启动信息:


2007-1-11 20:23:59 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: E:\soft\jdk\bin;E:\soft\tomcat\bin
2007-1-11 20:24:00 org.apache.coyote.http11.Http11BaseProtocol init
信息: Initializing Coyote HTTP/1.1 on http-80
2007-1-11 20:24:00 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 2750 ms
2007-1-11 20:24:00 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2007-1-11 20:24:00 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/5.5.17
2007-1-11 20:24:00 org.apache.catalina.core.StandardHost start
信息: XML validation disabled
2007-1-11 20:24:03 org.apache.catalina.core.ApplicationContext log
信息: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
2007-01-11 20:24:11,875 INFO [main] org.springframework.web.struts.ContextLoaderPlugIn (ContextLoaderPlugIn.java:218) - ContextLoaderPlugIn for Struts ActionServlet 'action, module '': initialization started
2007-01-11 20:24:11,890 INFO [main] org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/film] (ApplicationContext.java:646) - Initializing WebApplicationContext for Struts ActionServlet 'action', module ''
2007-01-11 20:24:12,359 INFO [main] org.springframework.core.CollectionFactory (CollectionFactory.java:66) - JDK 1.4+ collections available
2007-01-11 20:24:12,468 INFO [main] org.springframework.core.CollectionFactory (CollectionFactory.java:71) - Commons Collections 3.x available
2007-01-11 20:24:12,671 INFO [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader (XmlBeanDefinitionReader.java:163) - Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext.xml]
2007-01-11 20:24:14,437 INFO [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader (XmlBeanDefinitionReader.java:163) - Loading XML bean definitions from ServletContext resource [/WEB-INF/viewContext.xml]
2007-01-11 20:24:14,750 INFO [main] org.springframework.beans.factory.xml.XmlBeanDefinitionReader (XmlBeanDefinitionReader.java:163) - Loading XML bean definitions from ServletContext resource [/WEB-INF/serviceContext.xml]
2007-01-11 20:24:14,781 INFO [main] org.springframework.web.context.support.XmlWebApplicationContext (AbstractRefreshableApplicationContext.java:92) - Bean factory for application context [WebApplicationContext for namespace 'action-servlet']: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [dataSource,sessionFactory,BaseHibernateDAO,AdminDAO,FilmDAO,HallDAO,TicketDAO,SpectatorDAO,AdminServiceImpl,FilmServiceImpl,HallServiceImpl,TicketServiceImpl,SpectatorServiceImpl,transactionManager,adminServiceProxy,filmServiceProxy,hallServiceProxy,spectatorServiceProxy,ticketServiceProxy,/adminHandle,/filmHandle,/hallHandle,/spectatorHandle,/ticketHandle]; root of BeanFactory hierarchy
2007-01-11 20:24:14,984 INFO [main] org.springframework.web.context.support.XmlWebApplicationContext (AbstractApplicationContext.java:290) - 24 beans defined in application context [WebApplicationContext for namespace 'action-servlet']
2007-01-11 20:24:15,046 INFO [main] org.springframework.web.context.support.XmlWebApplicationContext (AbstractApplicationContext.java:432) - Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@2e6c66]
2007-01-11 20:24:15,078 INFO [main] org.springframework.web.context.support.XmlWebApplicationContext (AbstractApplicationContext.java:454) - Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@7bbfb8]
2007-01-11 20:24:15,171 INFO [main] org.springframework.ui.context.support.UiApplicationContextUtils (UiApplicationContextUtils.java:83) - Unable to locate ThemeSource with name 'themeSource': using default [org.springframework.ui.context.support.ResourceBundleThemeSource@c3362f]
2007-01-11 20:24:15,187 INFO [main] org.springframework.beans.factory.support.DefaultListableBeanFactory (DefaultListableBeanFactory.java:268) - Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [dataSource,sessionFactory,BaseHibernateDAO,AdminDAO,FilmDAO,HallDAO,TicketDAO,SpectatorDAO,AdminServiceImpl,FilmServiceImpl,HallServiceImpl,TicketServiceImpl,SpectatorServiceImpl,transactionManager,adminServiceProxy,filmServiceProxy,hallServiceProxy,spectatorServiceProxy,ticketServiceProxy,/adminHandle,/filmHandle,/hallHandle,/spectatorHandle,/ticketHandle]; root of BeanFactory hierarchy]
2007-01-11 20:24:15,890 INFO [main] org.hibernate.cfg.Environment (Environment.java:464) - Hibernate 3.0.5
2007-01-11 20:24:15,921 INFO [main] org.hibernate.cfg.Environment (Environment.java:477) - hibernate.properties not found
2007-01-11 20:24:15,937 INFO [main] org.hibernate.cfg.Environment (Environment.java:510) - using CGLIB reflection optimizer
2007-01-11 20:24:15,968 INFO [main] org.hibernate.cfg.Environment (Environment.java:540) - using JDK 1.4 java.sql.Timestamp handling
2007-01-11 20:24:17,171 DEBUG [main] org.hibernate.util.DTDEntityResolver (DTDEntityResolver.java:42) - trying to locate http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath under org/hibernate/
2007-01-11 20:24:17,187 DEBUG [main] org.hibernate.util.DTDEntityResolver (DTDEntityResolver.java:53) - found http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath
2007-01-11 20:24:17,984 INFO [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:260) - Mapping class: model.Admin -> admin
2007-01-11 20:24:18,046 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: id -> id
2007-01-11 20:24:18,296 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: userid -> userid
2007-01-11 20:24:18,296 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: password -> password
2007-01-11 20:24:18,328 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: position -> position
2007-01-11 20:24:18,328 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: phone -> phone
2007-01-11 20:24:18,328 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: address -> address
2007-01-11 20:24:18,343 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: remark -> remark
2007-01-11 20:24:18,359 DEBUG [main] org.hibernate.util.DTDEntityResolver (DTDEntityResolver.java:42) - trying to locate http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath under org/hibernate/
2007-01-11 20:24:18,375 DEBUG [main] org.hibernate.util.DTDEntityResolver (DTDEntityResolver.java:53) - found http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath
2007-01-11 20:24:18,515 INFO [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:260) - Mapping class: model.Spectator -> spectator
2007-01-11 20:24:18,515 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: id -> id
2007-01-11 20:24:18,609 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: ticket
搜索更多相关主题的帖子: apache catalina tomcat org library 
2007-01-11 20:26
想你的天空
Rank: 2
等 级:新手上路
威 望:5
帖 子:610
专家分:0
注 册:2004-12-30
收藏
得分:0 
2007-01-11 20:06:35,765 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: name -> name
2007-01-11 20:06:35,765 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: phone -> phone
2007-01-11 20:06:35,765 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: sid -> sid
2007-01-11 20:06:35,765 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: age -> age
2007-01-11 20:06:35,765 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: remark -> remark
2007-01-11 20:06:35,765 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: certificate -> certificate
2007-01-11 20:06:35,781 DEBUG [main] org.hibernate.util.DTDEntityResolver (DTDEntityResolver.java:42) - trying to locate http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath under org/hibernate/
2007-01-11 20:06:35,781 DEBUG [main] org.hibernate.util.DTDEntityResolver (DTDEntityResolver.java:53) - found http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath
2007-01-11 20:06:35,843 INFO [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:260) - Mapping class: model.Hall -> hall
2007-01-11 20:06:35,843 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: id -> id
2007-01-11 20:06:35,875 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: tickets
2007-01-11 20:06:35,875 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: hid -> hid
2007-01-11 20:06:35,875 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: place -> place
2007-01-11 20:06:35,875 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: number -> number
2007-01-11 20:06:35,875 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: remark -> remark
2007-01-11 20:06:35,890 DEBUG [main] org.hibernate.util.DTDEntityResolver (DTDEntityResolver.java:42) - trying to locate http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath under org/hibernate/
2007-01-11 20:06:35,890 DEBUG [main] org.hibernate.util.DTDEntityResolver (DTDEntityResolver.java:53) - found http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath
2007-01-11 20:06:35,937 INFO [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:260) - Mapping class: model.Ticket -> ticket
2007-01-11 20:06:35,937 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: id -> id
2007-01-11 20:06:36,312 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: film -> film_id
2007-01-11 20:06:36,312 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: hall -> hall_id
2007-01-11 20:06:36,312 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: spectator -> spectator_id
2007-01-11 20:06:36,328 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: tid -> tid
2007-01-11 20:06:36,328 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: date -> date
2007-01-11 20:06:36,328 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: seatId -> seatId
2007-01-11 20:06:36,328 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: money -> money
2007-01-11 20:06:36,328 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: remark -> remark
2007-01-11 20:06:36,343 DEBUG [main] org.hibernate.util.DTDEntityResolver (DTDEntityResolver.java:42) - trying to locate http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath under org/hibernate/
2007-01-11 20:06:36,343 DEBUG [main] org.hibernate.util.DTDEntityResolver (DTDEntityResolver.java:53) - found http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd in classpath
2007-01-11 20:06:36,375 INFO [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:260) - Mapping class: model.Film -> film
2007-01-11 20:06:36,390 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: id -> id
2007-01-11 20:06:36,390 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: tickets
2007-01-11 20:06:36,390 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: company -> company
2007-01-11 20:06:36,390 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: director -> director
2007-01-11 20:06:36,390 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: fid -> fid
2007-01-11 20:06:36,390 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: name -> name
2007-01-11 20:06:36,390 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: playactor -> playactor
2007-01-11 20:06:36,390 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: type -> type
2007-01-11 20:06:36,390 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: grade -> grade
2007-01-11 20:06:36,406 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: comment -> comment
2007-01-11 20:06:36,406 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: limitDate -> limitDate
2007-01-11 20:06:36,406 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:1099) - Mapped property: publishDate -> publishDate
2007-01-11 20:06:36,406 INFO [main] org.springframework.orm.hibernate3.LocalSessionFactoryBean (LocalSessionFactoryBean.java:749) - Building new Hibernate SessionFactory
2007-01-11 20:06:36,406 DEBUG [main] org.hibernate.cfg.Configuration (Configuration.java:998) - Preparing to build session factory with filters : {}
2007-01-11 20:06:36,406 INFO [main] org.hibernate.cfg.Configuration (Configuration.java:875) - processing extends queue
2007-01-11 20:06:36,421 INFO [main] org.hibernate.cfg.Configuration (Configuration.java:879) - processing collection mappings
2007-01-11 20:06:36,421 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:2466) - Second pass for collection: model.Hall.tickets
2007-01-11 20:06:36,421 INFO [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:2041) - Mapping collection: model.Hall.tickets -> ticket
2007-01-11 20:06:36,421 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:2482) - Mapped collection key: hall_id, one-to-many: model.Ticket
2007-01-11 20:06:36,421 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:2466) - Second pass for collection: model.Film.tickets
2007-01-11 20:06:36,421 INFO [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:2041) - Mapping collection: model.Film.tickets -> ticket
2007-01-11 20:06:36,421 DEBUG [main] org.hibernate.cfg.HbmBinder (HbmBinder.java:2482) - Mapped collection key: film_id, one-to-many: model.Ticket
2007-01-11 20:06:36,437 INFO [main] org.hibernate.cfg.Configuration (Configuration.java:888) - processing association property references
2007-01-11 20:06:36,437 INFO [main] org.hibernate.cfg.Configuration (Configuration.java:917) - processing foreign key constraints
2007-01-11 20:06:36,437 DEBUG [main] org.hibernate.cfg.Configuration (Configuration.java:964) - resolving reference to class: model.Film
2007-01-11 20:06:36,437 DEBUG [main] org.hibernate.cfg.Configuration (Configuration.java:964) - resolving reference to class: model.Spectator
2007-01-11 20:06:36,437 DEBUG [main] org.hibernate.cfg.Configuration (Configuration.java:964) - resolving reference to class: model.Hall
2007-01-11 20:06:36,484 INFO [main] org.hibernate.connection.ConnectionProviderFactory (ConnectionProviderFactory.java:53) - Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
2007-01-11 20:06:37,906 DEBUG [main] org.hibernate.cfg.SettingsFactory (SettingsFactory.java:295) - could not get database version from JDBC metadata
2007-01-11 20:06:37,906 INFO [main] org.hibernate.cfg.SettingsFactory (SettingsFactory.java:77) - RDBMS: DB2/NT, version: SQL08010
2007-01-11 20:06:37,906 INFO [main] org.hibernate.cfg.SettingsFactory (SettingsFactory.java:78) - JDBC driver: IBM DB2 JDBC Universal Driver Architecture, version: 1.0.581
2007-01-11 20:06:38,015 INFO [main] org.hibernate.dialect.Dialect ( Dialect.java:92) - Using dialect: org.hibernate.dialect.DB2Dialect
2007-01-11 20:06:38,046 INFO [main] org.hibernate.transaction.TransactionFactoryFactory (TransactionFactoryFactory.java:31) - Using default transaction strategy (direct JDBC transactions)
2007-01-11 20:06:38,093 INFO [main] org.hibernate.transaction.TransactionManagerLookupFactory (TransactionManagerLookupFactory.java:33) - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
2007-01-11 20:06:38,093 INFO [main] org.hibernate.cfg.SettingsFactory (SettingsFactory.java:125) - Automatic flush during beforeCompletion(): disabled
2007-01-11 20:06:38,093 INFO [main] org.hibernate.cfg.SettingsFactory (SettingsFactory.java:129) - Automatic session close at end of transaction: disabled
2007-01-11 20:06:38,109 INFO [main] org.hibernate.cfg.SettingsFactory (SettingsFactory.java:144) - Scrollable result sets: enabled
2007-01-11 20:06:38,109 DEBUG [main] org.hibernate.cfg.SettingsFactory (SettingsFactory.java:148) - Wrap result sets: disabled
2007-01-11 20:06:38,109 INFO [main] org.hibernate.cfg.SettingsFactory (SettingsFactory.java:152) - JDBC3 getGeneratedKeys(): disabled
2007-01-11 20:06:38,109 INFO [main] org.hibernate.cfg.SettingsFactory (SettingsFactory.java:160) - Connection release mode: on_close
2007-01-11 20:06:38,109 INFO [main] org.hibernate.cfg.SettingsFactory (SettingsFactory.java:187) - Default batch fetch size: 1
2007-01-11 20:06:38,109 INFO [main] org.hibernate.cfg.SettingsFactory (SettingsFactory.java:191) - Generate SQL with comments: disabled
2007-01-11 20:06:38,109 INFO [main] org.hibernate.cfg.SettingsFactory (SettingsFactory.java:195) - Order SQL updates by primary key: disabled
2007-01-11 20:06:38,109 INFO [main] org.hibernate.cfg.SettingsFactory (SettingsFactory.java:334) - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
2007-01-11 20:06:38,140 INFO [main] org.hibernate.hql.ast.ASTQueryTranslatorFactory (ASTQueryTranslatorFactory.java:21) - Using ASTQueryTranslatorFactory
2007-01-11 20:06:38,140 INFO [main] org.hibernate.cfg.SettingsFactory (SettingsFactory.java:203) - Query language substitutions: {}
2007-01-11 20:06:38,140 INFO [main] org.hibernate.cfg.SettingsFactory (SettingsFactory.java:209) - Second-level cache: enabled
2007-01-11 20:06:38,140 INFO [main] org.hibernate.cfg.SettingsFactory (SettingsFactory.java:213) - Query cache: disabled
2007-01-11 20:06:38,140 INFO [main] org.hibernate.cfg.SettingsFactory (SettingsFactory.java:321) - Cache provider: org.hibernate.cache.EhCacheProvider
2007-01-11 20:06:38,187 INFO [main] org.hibernate.cfg.SettingsFactory (SettingsFactory.java:228) - Optimize cache for minimal puts: disabled
2007-01-11 20:06:38,187 INFO [main] org.hibernate.cfg.SettingsFactory (SettingsFactory.java:237) - Structured second-level cache entries: disabled

[此贴子已经被作者于2007-1-11 20:28:44编辑过]


2007-01-11 20:26
想你的天空
Rank: 2
等 级:新手上路
威 望:5
帖 子:610
专家分:0
注 册:2004-12-30
收藏
得分:0 
2007-01-11 20:06:38,187 DEBUG [main] org.hibernate.exception.SQLExceptionConverterFactory (SQLExceptionConverterFactory.java:52) - Using dialect defined converter
2007-01-11 20:06:38,218 INFO [main] org.hibernate.cfg.SettingsFactory (SettingsFactory.java:257) - Echoing all SQL to stdout
2007-01-11 20:06:38,234 INFO [main] org.hibernate.cfg.SettingsFactory (SettingsFactory.java:261) - Statistics: disabled
2007-01-11 20:06:38,234 INFO [main] org.hibernate.cfg.SettingsFactory (SettingsFactory.java:265) - Deleted entity synthetic identifier rollback: disabled
2007-01-11 20:06:38,250 INFO [main] org.hibernate.cfg.SettingsFactory (SettingsFactory.java:279) - Default entity-mode: pojo
2007-01-11 20:06:38,750 INFO [main] org.hibernate.impl.SessionFactoryImpl (SessionFactoryImpl.java:152) - building session factory
2007-01-11 20:06:38,750 DEBUG [main] org.hibernate.impl.SessionFactoryImpl (SessionFactoryImpl.java:161) - Session factory constructed with filter configurations : {}
2007-01-11 20:06:38,750 DEBUG [main] org.hibernate.impl.SessionFactoryImpl (SessionFactoryImpl.java:164) - instantiating session factory with properties: {java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, sun.boot.library.path=E:\soft\jdk\jre\bin, java.vm.version=1.5.0_08-b03, shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar, java.vm.vendor=Sun Microsystems Inc., java.vendor.url=http://java.sun.com/, path.separator=;, java.vm.name=Java HotSpot(TM) Client VM, tomcat.util.buf.StringCache.byte.enabled=true, file.encoding.pkg=sun.io, user.country=CN, sun.os.patch.level=Service Pack 2, java.vm.specification.name=Java Virtual Machine Specification, user.dir=E:\soft\tomcat\bin, java.runtime.version=1.5.0_08-b03, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=E:\soft\tomcat/common/endorsed, os.arch=x86, java.io.tmpdir=E:\soft\tomcat\temp, line.separator=
, java.vm.specification.vendor=Sun Microsystems Inc., user.variant=, java.naming.factory.url.pkgs=org.apache.naming, os.name=Windows XP, sun.jnu.encoding=GBK, java.library.path=E:\soft\jdk\bin;E:\soft\tomcat\bin, java.specification.name=Java Platform API Specification, java.class.version=49.0, sun.management.compiler=HotSpot Client Compiler, os.version=5.1, sun.io.useCanonCaches=false, user.home=C:\Documents and Settings\lab, user.timezone=Asia/Shanghai, catalina.useNaming=true, hibernate.connection.release_mode=on_close, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=GBK, java.specification.version=1.5, catalina.home=E:\soft\tomcat, java.class.path=E:\soft\tomcat/bin/bootstrap.jar;E:\soft\jdk/lib/tools.jar, user.name=lab, hibernate.show_sql=true, java.naming.factory.initial=org.apache.naming.java.javaURLContextFactory, package.definition=sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper., java.vm.specification.version=1.0, java.home=E:\soft\jdk\jre, sun.arch.data.model=32, hibernate.dialect=org.hibernate.dialect.DB2Dialect, user.language=zh, java.specification.vendor=Sun Microsystems Inc., awt.toolkit=sun.awt.windows.WToolkit, hibernate.cglib.use_reflection_optimizer=true, java.vm.info=mixed mode, java.version=1.5.0_08, java.ext.dirs=E:\soft\jdk\jre\lib\ext, sun.boot.class.path=E:\soft\jdk\jre\lib\rt.jar;E:\soft\jdk\jre\lib\i18n.jar;E:\soft\jdk\jre\lib\sunrsasign.jar;E:\soft\jdk\jre\lib\jsse.jar;E:\soft\jdk\jre\lib\jce.jar;E:\soft\jdk\jre\lib\charsets.jar;E:\soft\jdk\jre\classes, server.loader=${catalina.home}/server/classes,${catalina.home}/server/lib/*.jar, java.vendor=Sun Microsystems Inc., catalina.base=E:\soft\tomcat, file.separator=\, hibernate.connection.provider_class=org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, common.loader=${catalina.home}/common/classes,${catalina.home}/common/i18n/*.jar,${catalina.home}/common/endorsed/*.jar,${catalina.home}/common/lib/*.jar, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, package.access=sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.,sun.beans., sun.desktop=windows, sun.cpu.isalist=}
2007-01-11 20:06:38,812 WARN [main] net.sf.ehcache.config.Configurator (Configurator.java:126) - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/E:/soft/tomcat/webapps/film/WEB-INF/lib/ehcache-1.1.jar!/ehcache-failsafe.xml
2007-01-11 20:06:40,203 DEBUG [main] org.hibernate.persister.entity.BasicEntityPersister (BasicEntityPersister.java:2220) - Static SQL for entity: model.Admin
2007-01-11 20:06:40,203 DEBUG [main] org.hibernate.persister.entity.BasicEntityPersister (BasicEntityPersister.java:2222) - Version select: select id from admin where id =?
2007-01-11 20:06:40,218 DEBUG [main] org.hibernate.persister.entity.BasicEntityPersister (BasicEntityPersister.java:2223) - Snapshot select: select admin_.id, admin_.userid as userid0_, admin_.password as password0_, admin_.position as position0_, admin_.phone as phone0_, admin_.address as address0_, admin_.remark as remark0_ from admin admin_ where admin_.id=?
2007-01-11 20:06:40,218 DEBUG [main] org.hibernate.persister.entity.BasicEntityPersister (BasicEntityPersister.java:2225) - Insert 0: insert into admin (userid, password, position, phone, address, remark, id) values (?, ?, ?, ?, ?, ?, ?)
2007-01-11 20:06:40,250 DEBUG [main] org.hibernate.persister.entity.BasicEntityPersister (BasicEntityPersister.java:2226) - Update 0: update admin set userid=?, password=?, position=?, phone=?, address=?, remark=? where id=?
2007-01-11 20:06:40,250 DEBUG [main] org.hibernate.persister.entity.BasicEntityPersister (BasicEntityPersister.java:2227) - Delete 0: delete from admin where id=?
2007-01-11 20:06:40,421 DEBUG [main] org.hibernate.persister.entity.BasicEntityPersister (BasicEntityPersister.java:2220) - Static SQL for entity: model.Hall
2007-01-11 20:06:40,421 DEBUG [main] org.hibernate.persister.entity.BasicEntityPersister (BasicEntityPersister.java:2222) - Version select: select id from hall where id =?
2007-01-11 20:06:40,421 DEBUG [main] org.hibernate.persister.entity.BasicEntityPersister (BasicEntityPersister.java:2223) - Snapshot select: select hall_.id, hall_.hid as hid2_, hall_.place as place2_, hall_.number as number2_, hall_.remark as remark2_ from hall hall_ where hall_.id=?
2007-01-11 20:06:40,421 DEBUG [main] org.hibernate.persister.entity.BasicEntityPersister (BasicEntityPersister.java:2225) - Insert 0: insert into hall (hid, place, number, remark, id) values (?, ?, ?, ?, ?)
2007-01-11 20:06:40,421 DEBUG [main] org.hibernate.persister.entity.BasicEntityPersister (BasicEntityPersister.java:2226) - Update 0: update hall set hid=?, place=?, number=?, remark=? where id=?
2007-01-11 20:06:40,421 DEBUG [main] org.hibernate.persister.entity.BasicEntityPersister (BasicEntityPersister.java:2227) - Delete 0: delete from hall where id=?
2007-01-11 20:06:40,578 DEBUG [main] org.hibernate.persister.entity.BasicEntityPersister (BasicEntityPersister.java:2220) - Static SQL for entity: model.Ticket
2007-01-11 20:06:40,578 DEBUG [main] org.hibernate.persister.entity.BasicEntityPersister (BasicEntityPersister.java:2222) - Version select: select id from ticket where id =?
2007-01-11 20:06:40,578 DEBUG [main] org.hibernate.persister.entity.BasicEntityPersister (BasicEntityPersister.java:2223) - Snapshot select: select ticket_.id, ticket_.film_id as film2_3_, ticket_.hall_id as hall3_3_, ticket_.spectator_id as spectator4_3_, ticket_.tid as tid3_, ticket_.date as date3_, ticket_.seatId as seatId3_, ticket_.money as money3_, ticket_.remark as remark3_ from ticket ticket_ where ticket_.id=?
2007-01-11 20:06:40,578 DEBUG [main] org.hibernate.persister.entity.BasicEntityPersister (BasicEntityPersister.java:2225) - Insert 0: insert into ticket (film_id, hall_id, spectator_id, tid, date, seatId, money, remark, id) values (?, ?, ?, ?, ?, ?, ?, ?, ?)
2007-01-11 20:06:40,593 DEBUG [main] org.hibernate.persister.entity.BasicEntityPersister (BasicEntityPersister.java:2226) - Update 0: update ticket set film_id=?, hall_id=?, spectator_id=?, tid=?, date=?, seatId=?, money=?, remark=? where id=?
2007-01-11 20:06:40,593 DEBUG [main] org.hibernate.persister.entity.BasicEntityPersister (BasicEntityPersister.java:2227) - Delete 0: delete from ticket where id=?
2007-01-11 20:06:40,671 DEBUG [main] org.hibernate.persister.entity.BasicEntityPersister (BasicEntityPersister.java:2220) - Static SQL for entity: model.Spectator
2007-01-11 20:06:40,671 DEBUG [main] org.hibernate.persister.entity.BasicEntityPersister (BasicEntityPersister.java:2222) - Version select: select id from spectator where id =?
2007-01-11 20:06:40,687 DEBUG [main] org.hibernate.persister.entity.BasicEntityPersister (BasicEntityPersister.java:2223) - Snapshot select: select spectator_.id, spectator_.name as name1_, spectator_.phone as phone1_, spectator_.sid as sid1_, spectator_.age as age1_, spectator_.remark as remark1_, spectator_.certificate as certific7_1_ from spectator spectator_ where spectator_.id=?

2007-01-11 20:29
想你的天空
Rank: 2
等 级:新手上路
威 望:5
帖 子:610
专家分:0
注 册:2004-12-30
收藏
得分:0 

2007-01-11 20:06:40,687 DEBUG [main] org.hibernate.persister.entity.BasicEntityPersister (BasicEntityPersister.java:2225) - Insert 0: insert into spectator (name, phone, sid, age, remark, certificate, id) values (?, ?, ?, ?, ?, ?, ?)
2007-01-11 20:06:40,687 DEBUG [main] org.hibernate.persister.entity.BasicEntityPersister (BasicEntityPersister.java:2226) - Update 0: update spectator set name=?, phone=?, sid=?, age=?, remark=?, certificate=? where id=?
2007-01-11 20:06:40,687 DEBUG [main] org.hibernate.persister.entity.BasicEntityPersister (BasicEntityPersister.java:2227) - Delete 0: delete from spectator where id=?
2007-01-11 20:06:40,812 DEBUG [main] org.hibernate.persister.entity.BasicEntityPersister (BasicEntityPersister.java:2220) - Static SQL for entity: model.Film
2007-01-11 20:06:40,812 DEBUG [main] org.hibernate.persister.entity.BasicEntityPersister (BasicEntityPersister.java:2222) - Version select: select id from film where id =?
2007-01-11 20:06:40,812 DEBUG [main] org.hibernate.persister.entity.BasicEntityPersister (BasicEntityPersister.java:2223) - Snapshot select: select film_.id, film_.company as company4_, film_.director as director4_, film_.fid as fid4_, film_.name as name4_, film_.playactor as playactor4_, film_.type as type4_, film_.grade as grade4_, film_.comment as comment4_, film_.limitDate as limitDate4_, film_.publishDate as publish11_4_ from film film_ where film_.id=?
2007-01-11 20:06:40,812 DEBUG [main] org.hibernate.persister.entity.BasicEntityPersister (BasicEntityPersister.java:2225) - Insert 0: insert into film (company, director, fid, name, playactor, type, grade, comment, limitDate, publishDate, id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
2007-01-11 20:06:40,812 DEBUG [main] org.hibernate.persister.entity.BasicEntityPersister (BasicEntityPersister.java:2226) - Update 0: update film set company=?, director=?, fid=?, name=?, playactor=?, type=?, grade=?, comment=?, limitDate=?, publishDate=? where id=?
2007-01-11 20:06:40,812 DEBUG [main] org.hibernate.persister.entity.BasicEntityPersister (BasicEntityPersister.java:2227) - Delete 0: delete from film where id=?
2007-01-11 20:06:40,843 DEBUG [main] org.hibernate.persister.collection.AbstractCollectionPersister (AbstractCollectionPersister.java:479) - Static SQL for collection: model.Film.tickets
2007-01-11 20:06:40,843 DEBUG [main] org.hibernate.persister.collection.AbstractCollectionPersister (AbstractCollectionPersister.java:480) - Row insert: update ticket set film_id=? where id=?
2007-01-11 20:06:40,843 DEBUG [main] org.hibernate.persister.collection.AbstractCollectionPersister (AbstractCollectionPersister.java:482) - Row delete: update ticket set film_id=null where film_id=? and id=?
2007-01-11 20:06:40,843 DEBUG [main] org.hibernate.persister.collection.AbstractCollectionPersister (AbstractCollectionPersister.java:483) - One-shot delete: update ticket set film_id=null where film_id=?
2007-01-11 20:06:40,843 DEBUG [main] org.hibernate.persister.collection.AbstractCollectionPersister (AbstractCollectionPersister.java:479) - Static SQL for collection: model.Hall.tickets
2007-01-11 20:06:40,859 DEBUG [main] org.hibernate.persister.collection.AbstractCollectionPersister (AbstractCollectionPersister.java:480) - Row insert: update ticket set hall_id=? where id=?
2007-01-11 20:06:40,859 DEBUG [main] org.hibernate.persister.collection.AbstractCollectionPersister (AbstractCollectionPersister.java:482) - Row delete: update ticket set hall_id=null where hall_id=? and id=?
2007-01-11 20:06:40,859 DEBUG [main] org.hibernate.persister.collection.AbstractCollectionPersister (AbstractCollectionPersister.java:483) - One-shot delete: update ticket set hall_id=null where hall_id=?
2007-01-11 20:06:40,953 DEBUG [main] org.hibernate.loader.entity.EntityLoader (EntityLoader.java:95) - Static select for entity model.Admin: select admin0_.id as id0_, admin0_.userid as userid0_0_, admin0_.password as password0_0_, admin0_.position as position0_0_, admin0_.phone as phone0_0_, admin0_.address as address0_0_, admin0_.remark as remark0_0_ from admin admin0_ where admin0_.id=?
2007-01-11 20:06:40,953 DEBUG [main] org.hibernate.loader.entity.EntityLoader (EntityLoader.java:95) - Static select for entity model.Admin: select admin0_.id as id0_, admin0_.userid as userid0_0_, admin0_.password as password0_0_, admin0_.position as position0_0_, admin0_.phone as phone0_0_, admin0_.address as address0_0_, admin0_.remark as remark0_0_ from admin admin0_ where admin0_.id=?
2007-01-11 20:06:40,968 DEBUG [main] org.hibernate.loader.entity.EntityLoader (EntityLoader.java:95) - Static select for entity model.Admin: select admin0_.id as id0_, admin0_.userid as userid0_0_, admin0_.password as password0_0_, admin0_.position as position0_0_, admin0_.phone as phone0_0_, admin0_.address as address0_0_, admin0_.remark as remark0_0_ from admin admin0_ where admin0_.id=? for update with rr
2007-01-11 20:06:40,968 DEBUG [main] org.hibernate.loader.entity.EntityLoader (EntityLoader.java:95) - Static select for entity model.Admin: select admin0_.id as id0_, admin0_.userid as userid0_0_, admin0_.password as password0_0_, admin0_.position as position0_0_, admin0_.phone as phone0_0_, admin0_.address as address0_0_, admin0_.remark as remark0_0_ from admin admin0_ where admin0_.id=? for update with rr
2007-01-11 20:06:40,968 DEBUG [main] org.hibernate.loader.entity.EntityLoader (EntityLoader.java:95) - Static select for entity model.Hall: select hall0_.id as id0_, hall0_.hid as hid2_0_, hall0_.place as place2_0_, hall0_.number as number2_0_, hall0_.remark as remark2_0_ from hall hall0_ where hall0_.id=?
2007-01-11 20:06:40,968 DEBUG [main] org.hibernate.loader.entity.EntityLoader (EntityLoader.java:95) - Static select for entity model.Hall: select hall0_.id as id0_, hall0_.hid as hid2_0_, hall0_.place as place2_0_, hall0_.number as number2_0_, hall0_.remark as remark2_0_ from hall hall0_ where hall0_.id=?
2007-01-11 20:06:40,968 DEBUG [main] org.hibernate.loader.entity.EntityLoader (EntityLoader.java:95) - Static select for entity model.Hall: select hall0_.id as id0_, hall0_.hid as hid2_0_, hall0_.place as place2_0_, hall0_.number as number2_0_, hall0_.remark as remark2_0_ from hall hall0_ where hall0_.id=? for update with rr
2007-01-11 20:06:40,968 DEBUG [main] org.hibernate.loader.entity.EntityLoader (EntityLoader.java:95) - Static select for entity model.Hall: select hall0_.id as id0_, hall0_.hid as hid2_0_, hall0_.place as place2_0_, hall0_.number as number2_0_, hall0_.remark as remark2_0_ from hall hall0_ where hall0_.id=? for update with rr
2007-01-11 20:06:40,984 DEBUG [main] org.hibernate.loader.entity.EntityLoader (EntityLoader.java:95) - Static select for entity model.Ticket: select ticket0_.id as id0_, ticket0_.film_id as film2_3_0_, ticket0_.hall_id as hall3_3_0_, ticket0_.spectator_id as spectator4_3_0_, ticket0_.tid as tid3_0_, ticket0_.date as date3_0_, ticket0_.seatId as seatId3_0_, ticket0_.money as money3_0_, ticket0_.remark as remark3_0_ from ticket ticket0_ where ticket0_.id=?
2007-01-11 20:06:40,984 DEBUG [main] org.hibernate.loader.entity.EntityLoader (EntityLoader.java:95) -

2007-01-11 20:30
想你的天空
Rank: 2
等 级:新手上路
威 望:5
帖 子:610
专家分:0
注 册:2004-12-30
收藏
得分:0 
Static select for entity model.Ticket: select ticket0_.id as id0_, ticket0_.film_id as film2_3_0_, ticket0_.hall_id as hall3_3_0_, ticket0_.spectator_id as spectator4_3_0_, ticket0_.tid as tid3_0_, ticket0_.date as date3_0_, ticket0_.seatId as seatId3_0_, ticket0_.money as money3_0_, ticket0_.remark as remark3_0_ from ticket ticket0_ where ticket0_.id=?
2007-01-11 20:06:40,984 DEBUG [main] org.hibernate.loader.entity.EntityLoader (EntityLoader.java:95) - Static select for entity model.Ticket: select ticket0_.id as id0_, ticket0_.film_id as film2_3_0_, ticket0_.hall_id as hall3_3_0_, ticket0_.spectator_id as spectator4_3_0_, ticket0_.tid as tid3_0_, ticket0_.date as date3_0_, ticket0_.seatId as seatId3_0_, ticket0_.money as money3_0_, ticket0_.remark as remark3_0_ from ticket ticket0_ where ticket0_.id=? for update with rr
2007-01-11 20:06:40,984 DEBUG [main] org.hibernate.loader.entity.EntityLoader (EntityLoader.java:95) - Static select for entity model.Ticket: select ticket0_.id as id0_, ticket0_.film_id as film2_3_0_, ticket0_.hall_id as hall3_3_0_, ticket0_.spectator_id as spectator4_3_0_, ticket0_.tid as tid3_0_, ticket0_.date as date3_0_, ticket0_.seatId as seatId3_0_, ticket0_.money as money3_0_, ticket0_.remark as remark3_0_ from ticket ticket0_ where ticket0_.id=? for update with rr
2007-01-11 20:06:40,984 DEBUG [main] org.hibernate.loader.entity.EntityLoader (EntityLoader.java:95) - Static select for entity model.Spectator: select spectator0_.id as id0_, spectator0_.name as name1_0_, spectator0_.phone as phone1_0_, spectator0_.sid as sid1_0_, spectator0_.age as age1_0_, spectator0_.remark as remark1_0_, spectator0_.certificate as certific7_1_0_ from spectator spectator0_ where spectator0_.id=?
2007-01-11 20:06:40,984 DEBUG [main] org.hibernate.loader.entity.EntityLoader (EntityLoader.java:95) - Static select for entity model.Spectator: select spectator0_.id as id0_, spectator0_.name as name1_0_, spectator0_.phone as phone1_0_, spectator0_.sid as sid1_0_, spectator0_.age as age1_0_, spectator0_.remark as remark1_0_, spectator0_.certificate as certific7_1_0_ from spectator spectator0_ where spectator0_.id=?
2007-01-11 20:06:40,984 DEBUG [main] org.hibernate.loader.entity.EntityLoader (EntityLoader.java:95) - Static select for entity model.Spectator: select spectator0_.id as id0_, spectator0_.name as name1_0_, spectator0_.phone as phone1_0_, spectator0_.sid as sid1_0_, spectator0_.age as age1_0_, spectator0_.remark as remark1_0_, spectator0_.certificate as certific7_1_0_ from spectator spectator0_ where spectator0_.id=? for update with rr
2007-01-11 20:06:41,000 DEBUG [main] org.hibernate.loader.entity.EntityLoader (EntityLoader.java:95) - Static select for entity model.Spectator: select spectator0_.id as id0_, spectator0_.name as name1_0_, spectator0_.phone as phone1_0_, spectator0_.sid as sid1_0_, spectator0_.age as age1_0_, spectator0_.remark as remark1_0_, spectator0_.certificate as certific7_1_0_ from spectator spectator0_ where spectator0_.id=? for update with rr
2007-01-11 20:06:41,000 DEBUG [main] org.hibernate.loader.entity.EntityLoader (EntityLoader.java:95) - Static select for entity model.Film: select film0_.id as id0_, film0_.company as company4_0_, film0_.director as director4_0_, film0_.fid as fid4_0_, film0_.name as name4_0_, film0_.playactor as playactor4_0_, film0_.type as type4_0_, film0_.grade as grade4_0_, film0_.comment as comment4_0_, film0_.limitDate as limitDate4_0_, film0_.publishDate as publish11_4_0_ from film film0_ where film0_.id=?
2007-01-11 20:06:41,000 DEBUG [main] org.hibernate.loader.entity.EntityLoader (EntityLoader.java:95) - Static select for entity model.Film: select film0_.id as id0_, film0_.company as company4_0_, film0_.director as director4_0_, film0_.fid as fid4_0_, film0_.name as name4_0_, film0_.playactor as playactor4_0_, film0_.type as type4_0_, film0_.grade as grade4_0_, film0_.comment as comment4_0_, film0_.limitDate as limitDate4_0_, film0_.publishDate as publish11_4_0_ from film film0_ where film0_.id=?
2007-01-11 20:06:41,000 DEBUG [main] org.hibernate.loader.entity.EntityLoader (EntityLoader.java:95) - Static select for entity model.Film: select film0_.id as id0_, film0_.company as company4_0_, film0_.director as director4_0_, film0_.fid as fid4_0_, film0_.name as name4_0_, film0_.playactor as playactor4_0_, film0_.type as type4_0_, film0_.grade as grade4_0_, film0_.comment as comment4_0_, film0_.limitDate as limitDate4_0_, film0_.publishDate as publish11_4_0_ from film film0_ where film0_.id=? for update with rr
2007-01-11 20:06:41,000 DEBUG [main] org.hibernate.loader.entity.EntityLoader (EntityLoader.java:95) - Static select for entity model.Film: select film0_.id as id0_, film0_.company as company4_0_, film0_.director as director4_0_, film0_.fid as fid4_0_, film0_.name as name4_0_, film0_.playactor as playactor4_0_, film0_.type as type4_0_, film0_.grade as grade4_0_, film0_.comment as comment4_0_, film0_.limitDate as limitDate4_0_, film0_.publishDate as publish11_4_0_ from film film0_ where film0_.id=? for update with rr
2007-01-11 20:06:41,093 DEBUG [main] org.hibernate.loader.collection.OneToManyLoader (OneToManyLoader.java:106) - Static select for one-to-many model.Film.tickets: select tickets0_.film_id as film2_1_, tickets0_.id as id1_, tickets0_.id as id0_, tickets0_.film_id as film2_3_0_, tickets0_.hall_id as hall3_3_0_, tickets0_.spectator_id as spectator4_3_0_, tickets0_.tid as tid3_0_, tickets0_.date as date3_0_, tickets0_.seatId as seatId3_0_, tickets0_.money as money3_0_, tickets0_.remark as remark3_0_ from ticket tickets0_ where tickets0_.film_id=?
2007-01-11 20:06:41,093 DEBUG [main] org.hibernate.loader.collection.OneToManyLoader (OneToManyLoader.java:106) - Static select for one-to-many model.Hall.tickets: select tickets0_.hall_id as hall3_1_, tickets0_.id as id1_, tickets0_.id as id0_, tickets0_.film_id as film2_3_0_, tickets0_.hall_id as hall3_3_0_, tickets0_.spectator_id as spectator4_3_0_, tickets0_.tid as tid3_0_, tickets0_.date as date3_0_, tickets0_.seatId as seatId3_0_, tickets0_.money as money3_0_, tickets0_.remark as remark3_0_ from ticket tickets0_ where tickets0_.hall_id=?
2007-01-11 20:06:41,109 DEBUG [main] org.hibernate.impl.SessionFactoryObjectFactory (SessionFactoryObjectFactory.java:39) - initializing class SessionFactoryObjectFactory
2007-01-11 20:06:41,109 DEBUG [main] org.hibernate.impl.SessionFactoryObjectFactory (SessionFactoryObjectFactory.java:76) - registered: 5e93582810110d710110110d7cc50000 (unnamed)
2007-01-11 20:06:41,125 INFO [main] org.hibernate.impl.SessionFactoryObjectFactory (SessionFactoryObjectFactory.java:82) - Not binding factory to JNDI, no JNDI name configured
2007-01-11 20:06:41,125 DEBUG [main] org.hibernate.impl.SessionFactoryImpl (SessionFactoryImpl.java:262) - instantiated session factory
2007-01-11 20:06:41,125 INFO [main] org.hibernate.impl.SessionFactoryImpl (SessionFactoryImpl.java:379) - Checking 0 named queries
2007-01-11 20:06:41,515 INFO [main] org.springframework.orm.hibernate3.HibernateTransactionManager (HibernateTransactionManager.java:396) - Using DataSource [org.apache.commons.dbcp.BasicDataSource@c11557] of Hibernate SessionFactory for HibernateTransactionManager
2007-01-11 20:06:41,531 INFO [main] org.springframework.aop.framework.DefaultAopProxyFactory (DefaultAopProxyFactory.java:59) - CGLIB2 available: proxyTargetClass feature enabled
2007-01-11 20:06:42,046 INFO [main] org.springframework.web.struts.ContextLoaderPlugIn (ContextLoaderPlugIn.java:298) - Using context class 'org.springframework.web.context.support.XmlWebApplicationContext' for servlet 'action'
2007-01-11 20:06:42,046 INFO [main] org.springframework.web.struts.ContextLoaderPlugIn (ContextLoaderPlugIn.java:235) - ContextLoaderPlugIn for Struts ActionServlet 'action', module '': initialization completed in 10015 ms
2007-1-11 20:06:42 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
2007-1-11 20:06:42 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
2007-1-11 20:06:42 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
2007-1-11 20:06:42 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
2007-1-11 20:06:43 org.apache.coyote.http11.Http11BaseProtocol start
信息: Starting Coyote HTTP/1.1 on http-80
2007-1-11 20:06:44 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2007-1-11 20:06:44 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/110 config=null
2007-1-11 20:06:44 org.apache.catalina.storeconfig.StoreLoader load
信息: Find registry server-registry.xml at classpath resource
2007-1-11 20:06:44 org.apache.catalina.startup.Catalina start
信息: Server startup in 20547 ms

2007-01-11 20:30
想你的天空
Rank: 2
等 级:新手上路
威 望:5
帖 子:610
专家分:0
注 册:2004-12-30
收藏
得分:0 

Junit 测试错误



org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: could not inspect JDBC autocommit mode; uncategorized SQLException for SQL [???]; SQL state [null]; error code [-99999]; bug check; nested exception is com.ibm.db2.jcc.b.SQLException: bug check
com.ibm.db2.jcc.b.SQLException: bug check
at com.ibm.db2.jcc.b.o.a(o.java:1308)
at com.ibm.db2.jcc.b.o.k(o.java:410)
at com.ibm.db2.jcc.b.o.K(o.java:968)
at com.ibm.db2.jcc.b.cg.getString(cg.java:543)
at com.ibm.db2.jcc.b.cl.getMessage(cl.java:228)
at com.ibm.db2.jcc.b.SQLException.getMessage(SQLException.java:177)
at java.lang.Throwable.getLocalizedMessage(Unknown Source)
at java.lang.Throwable.toString(Unknown Source)
at org.apache.log4j.spi.VectorWriter.println(ThrowableInformation.java:97)
at java.lang.Throwable.printStackTrace(Unknown Source)
at org.apache.log4j.spi.ThrowableInformation.getThrowableStrRep(ThrowableInformation.java:59)
at org.apache.log4j.spi.LoggingEvent.getThrowableStrRep(LoggingEvent.java:342)
at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:304)
at org.apache.log4j.WriterAppender.append(WriterAppender.java:159)
at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)
at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65)
at org.apache.log4j.Category.callAppenders(Category.java:203)
at org.apache.log4j.Category.forcedLog(Category.java:388)
at org.apache.log4j.Category.log(Category.java:853)
at org.apache.commons.logging.impl.Log4JLogger.debug(Log4JLogger.java:121)
at org.hibernate.util.JDBCExceptionReporter.logExceptions(JDBCExceptionReporter.java:63)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:42)
at org.hibernate.loader.Loader.doList(Loader.java:1596)
at org.hibernate.loader.Loader.list(Loader.java:1577)
at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:111)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1322)
at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:300)
at org.springframework.orm.hibernate3.HibernateTemplate$38.doInHibernate(HibernateTemplate.java:1012)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:366)
at org.springframework.orm.hibernate3.HibernateTemplate.findByExample(HibernateTemplate.java:1001)
at org.springframework.orm.hibernate3.HibernateTemplate.findByExample(HibernateTemplate.java:994)
at dao.impl.AdminDAO.findByExample(AdminDAO.java:76)
at service.impl.AdminServiceImpl.isAdmin(AdminServiceImpl.java:22)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:165)
at $Proxy1.isAdmin(Unknown Source)
at junit.Junit.testIsAdmin(Junit.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)


2007-01-11 20:31
想你的天空
Rank: 2
等 级:新手上路
威 望:5
帖 子:610
专家分:0
注 册:2004-12-30
收藏
得分:0 
控制台显示的错误:

2007-01-11 20:31:00,968 DEBUG [main] org.hibernate.util.JDBCExceptionReporter (JDBCExceptionReporter.java:63) - could not execute query [select this_.id as id0_, this_.userid as userid0_0_, this_.password as password0_0_, this_.position as position0_0_, this_.phone as phone0_0_, this_.address as address0_0_, this_.remark as remark0_0_ from admin this_ where (this_.userid=? and this_.password=?)]
com.ibm.db2.jcc.b.SQLException: ROOT.ADMIN
at com.ibm.db2.jcc.b.ce.e(ce.java:1093)
at com.ibm.db2.jcc.b.ce.a(ce.java:869)
at com.ibm.db2.jcc.a.bd.g(bd.java:125)
at com.ibm.db2.jcc.a.bd.a(bd.java:40)
at com.ibm.db2.jcc.a.r.a(r.java:31)
at com.ibm.db2.jcc.a.bp.g(bp.java:141)
at com.ibm.db2.jcc.b.ce.h(ce.java:853)
at com.ibm.db2.jcc.b.cf.G(cf.java:1185)
at com.ibm.db2.jcc.b.cf.a(cf.java:1497)
at com.ibm.db2.jcc.b.cf.executeQuery(cf.java:303)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:92)
at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:120)
at org.hibernate.loader.Loader.getResultSet(Loader.java:1272)
at org.hibernate.loader.Loader.doQuery(Loader.java:391)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:218)
at org.hibernate.loader.Loader.doList(Loader.java:1593)
at org.hibernate.loader.Loader.list(Loader.java:1577)
at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:111)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1322)
at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:300)
at org.springframework.orm.hibernate3.HibernateTemplate$38.doInHibernate(HibernateTemplate.java:1012)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:366)
at org.springframework.orm.hibernate3.HibernateTemplate.findByExample(HibernateTemplate.java:1001)
at org.springframework.orm.hibernate3.HibernateTemplate.findByExample(HibernateTemplate.java:994)
at dao.impl.AdminDAO.findByExample(AdminDAO.java:76)
at service.impl.AdminServiceImpl.isAdmin(AdminServiceImpl.java:22)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:165)
at $Proxy1.isAdmin(Unknown Source)
at junit.Junit.testIsAdmin(Junit.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
2007-01-11 20:31:02,921 WARN [main] org.hibernate.util.JDBCExceptionReporter (JDBCExceptionReporter.java:71) - SQL Error: -204, SQLState: 42704
2007-01-11 20:31:02,937 ERROR [main] org.hibernate.util.JDBCExceptionReporter (JDBCExceptionReporter.java:72) - ROOT.ADMIN
2007-01-11 20:31:02,937 WARN [main] org.hibernate.util.JDBCExceptionReporter (JDBCExceptionReporter.java:71) - SQL Error: -727, SQLState: 56098
2007-01-11 20:31:02,937 ERROR [main] org.hibernate.util.JDBCExceptionReporter (JDBCExceptionReporter.java:72) - 2;-204;42704;ROOT.ADMIN
2007-01-11 20:31:02,937 WARN [main] org.hibernate.util.JDBCExceptionReporter (JDBCExceptionReporter.java:71) - SQL Error: -727, SQLState: 56098
2007-01-11 20:31:02,937 ERROR [main] org.hibernate.util.JDBCExceptionReporter (JDBCExceptionReporter.java:72) - 2;-204;42704;ROOT.ADMIN
2007-01-11 20:31:02,937 DEBUG [main] org.hibernate.jdbc.JDBCContext (JDBCContext.java:322) - after autocommit
2007-01-11 20:31:02,953 DEBUG [main] org.hibernate.util.JDBCExceptionReporter (JDBCExceptionReporter.java:63) - could not inspect JDBC autocommit mode [???]
com.ibm.db2.jcc.b.SQLException: bug check
at com.ibm.db2.jcc.b.o.a(o.java:1308)
at com.ibm.db2.jcc.b.o.k(o.java:410)
at com.ibm.db2.jcc.b.o.K(o.java:968)
at com.ibm.db2.jcc.b.cg.getString(cg.java:543)
at com.ibm.db2.jcc.b.cl.getMessage(cl.java:228)
at com.ibm.db2.jcc.b.SQLException.getMessage(SQLException.java:177)
at java.lang.Throwable.getLocalizedMessage(Unknown Source)
at java.lang.Throwable.toString(Unknown Source)
at org.apache.log4j.spi.VectorWriter.println(ThrowableInformation.java:97)
at java.lang.Throwable.printStackTrace(Unknown Source)
at org.apache.log4j.spi.ThrowableInformation.getThrowableStrRep(ThrowableInformation.java:59)
at org.apache.log4j.spi.LoggingEvent.getThrowableStrRep(LoggingEvent.java:342)
at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:304)
at org.apache.log4j.WriterAppender.append(WriterAppender.java:159)
at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)
at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65)
at org.apache.log4j.Category.callAppenders(Category.java:203)
at org.apache.log4j.Category.forcedLog(Category.java:388)
at org.apache.log4j.Category.log(Category.java:853)
at org.apache.commons.logging.impl.Log4JLogger.debug(Log4JLogger.java:121)
at org.hibernate.util.JDBCExceptionReporter.logExceptions(JDBCExceptionReporter.java:63)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:42)
at org.hibernate.loader.Loader.doList(Loader.java:1596)
at org.hibernate.loader.Loader.list(Loader.java:1577)
at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:111)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1322)
at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:300)
at org.springframework.orm.hibernate3.HibernateTemplate$38.doInHibernate(HibernateTemplate.java:1012)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:366)
at org.springframework.orm.hibernate3.HibernateTemplate.findByExample(HibernateTemplate.java:1001)
at org.springframework.orm.hibernate3.HibernateTemplate.findByExample(HibernateTemplate.java:994)
at dao.impl.AdminDAO.findByExample(AdminDAO.java:76)
at service.impl.AdminServiceImpl.isAdmin(AdminServiceImpl.java:22)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:165)
at $Proxy1.isAdmin(Unknown Source)
at junit.Junit.testIsAdmin(Junit.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
2007-01-11 20:31:02,953 WARN [main] org.hibernate.util.JDBCExceptionReporter (JDBCExceptionReporter.java:71) - SQL Error: -99999, SQLState: null
2007-01-11 20:31:02,953 ERROR [main] org.hibernate.util.JDBCExceptionReporter (JDBCExceptionReporter.java:72) - bug check
2007-01-11 20:31:02,953 DEBUG [main] org.hibernate.impl.SessionImpl (SessionImpl.java:269) - closing session
2007-01-11 20:31:02,953 DEBUG [main] org.hibernate.jdbc.ConnectionManager (ConnectionManager.java:317) - closing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
2007-01-11 20:31:02,953 DEBUG [main] org.hibernate.jdbc.JDBCContext (JDBCContext.java:283) - after transaction completion
2007-01-11 20:31:02,953 DEBUG [main] org.hibernate.impl.SessionImpl (SessionImpl.java:403) - after transaction completion
2007-01-11 20:31:02,953 ERROR [main] dao.impl.AdminDAO (AdminDAO.java:80) - find by example failed
org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: could not inspect JDBC autocommit mode; uncategorized SQLException for SQL [???]; SQL state [null]; error code [-99999]; bug check; nested exception is com.ibm.db2.jcc.b.SQLException: bug check
com.ibm.db2.jcc.b.SQLException: bug check
at com.ibm.db2.jcc.b.o.a(o.java:1308)
at com.ibm.db2.jcc.b.o.k(o.java:410)
at com.ibm.db2.jcc.b.o.K(o.java:968)
at com.ibm.db2.jcc.b.cg.getString(cg.java:543)
at com.ibm.db2.jcc.b.cl.getMessage(cl.java:228)
at com.ibm.db2.jcc.b.SQLException.getMessage(SQLException.java:177)
at java.lang.Throwable.getLocalizedMessage(Unknown Source)
at java.lang.Throwable.toString(Unknown Source)
at org.apache.log4j.spi.VectorWriter.println(ThrowableInformation.java:97)
at java.lang.Throwable.printStackTrace(Unknown Source)
at org.apache.log4j.spi.ThrowableInformation.getThrowableStrRep(ThrowableInformation.java:59)
at org.apache.log4j.spi.LoggingEvent.getThrowableStrRep(LoggingEvent.java:342)
at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:304)
at org.apache.log4j.WriterAppender.append(WriterAppender.java:159)
at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)
at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65)
at org.apache.log4j.Category.callAppenders(Category.java:203)
at org.apache.log4j.Category.forcedLog(Category.java:388)
at org.apache.log4j.Category.log(Category.java:853)
at org.apache.commons.logging.impl.Log4JLogger.debug(Log4JLogger.java:121)
at org.hibernate.util.JDBCExceptionReporter.logExceptions(JDBCExceptionReporter.java:63)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:42)
at org.hibernate.loader.Loader.doList(Loader.java:1596)
at org.hibernate.loader.Loader.list(Loader.java:1577)
at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:111)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1322)
at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:300)
at org.springframework.orm.hibernate3.HibernateTemplate$38.doInHibernate(HibernateTemplate.java:1012)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:366)
at org.springframework.orm.hibernate3.HibernateTemplate.findByExample(HibernateTemplate.java:1001)
at org.springframework.orm.hibernate3.HibernateTemplate.findByExample(HibernateTemplate.java:994)
at dao.impl.AdminDAO.findByExample(AdminDAO.java:76)
at service.impl.AdminServiceImpl.isAdmin(AdminServiceImpl.java:22)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:165)
at $Proxy1.isAdmin(Unknown Source)
at junit.Junit.testIsAdmin(Junit.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

2007-01-11 20:33
无理取闹
Rank: 9Rank: 9Rank: 9
等 级:贵宾
威 望:53
帖 子:4264
专家分:0
注 册:2006-7-26
收藏
得分:0 
这么一堆东西我都晕了

win32汇编
病毒 加密
目前兴趣所在
2007-01-11 21:51
想你的天空
Rank: 2
等 级:新手上路
威 望:5
帖 子:610
专家分:0
注 册:2004-12-30
收藏
得分:0 

package service.impl;

import java.util.List;

import model.Admin;
import dao.IAdminDAO;
import service.IAdminService;

public class AdminServiceImpl implements IAdminService {

private IAdminDAO adminDAO;

/**
* 验证权限
* @return
*/
public boolean isAdmin(String userid, String password){
Admin admin = new Admin();
admin.setUserid(userid);
admin.setPassword(password);

List<Admin> list = adminDAO.findByExample(admin);

if( list.size()==0 ){ //用户名不存在
return false;
}

return true;
}

public Admin adminDetail(String userid){

List<Admin> list = adminDAO.findByUserid(userid);
return list.get(0);
}

public void updateAdminMessage(Admin admin){
adminDAO.attachDirty(admin);
}

public IAdminDAO getAdminDAO() {
return adminDAO;
}

public void setAdminDAO(IAdminDAO adminDAO) {
this.adminDAO = adminDAO;
}

}


2007-01-11 23:57
想你的天空
Rank: 2
等 级:新手上路
威 望:5
帖 子:610
专家分:0
注 册:2004-12-30
收藏
得分:0 

package model;
// default package

/**
* @hibernate.class table="admin"
*/
public class Admin implements java.io.Serializable {

private static final long serialVersionUID = -4189537965746427533L;

private Long id;
private String userid;
private String password;
private String position;
private String phone;
private String address;
private String remark;

/**
* @hibernate.id generator-class="increment" unsaved-value="null" length="10"
*/
public Long getId() {
return this.id;
}

public void setId(Long id) {
this.id = id;
}

/**
* @hibernate.property length="30" unique="true"
*/
public String getUserid() {
return this.userid;
}
public void setUserid(String userid) {
this.userid = userid;
}

/**
* @hibernate.property length="200"
*/
public String getPassword() {
return this.password;
}

public void setPassword(String password) {
this.password = password;
}

/**
* @hibernate.property length="100"
*/
public String getPosition() {
return this.position;
}
public void setPosition(String position) {
this.position = position;
}

/**
* @hibernate.property length="40"
*/
public String getPhone() {
return this.phone;
}
public void setPhone(String phone) {
this.phone = phone;
}

/**
* @hibernate.property length="100"
*/
public String getAddress() {
return this.address;
}

public void setAddress(String address) {
this.address = address;
}

/**
* @hibernate.property length="200"
*/
public String getRemark() {
return this.remark;
}

public void setRemark(String remark) {
this.remark = remark;
}
}


2007-01-12 00:23
快速回复:DB2查询问题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.054089 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved