当休眠使用查询获取业务对象并尝试解析该业务对象的关联时,我在Wildfly日志中遇到错误。
我将应用程序从WILDFLY 10升级到WILDLFY 14并将HIBERNATE从4.3.11升级到5.3.6 Final后,我遇到了错误。
我正在数据库中使用Postgress 9.3版本。
我试图在像这样的休眠状态下搜索代理对象问题,但一无所获。在这方面需要帮助。
Wildfly错误日志如下:
2018-09-24 15:14:38,194 DEBUG [org.hibernate.resource.transaction.backend.jta.internal.JtaTransactionCoordinatorImpl] (default task-1) Hibernate RegisteredSynchronization successfully registered with JTA platform
2018-09-24 15:14:38,195 DEBUG [org.hibernate.SQL] (default task-1) select fileattach0_.primarykey as primaryk2_38_0_, fileattach0_.createdate as createda3_38_0_, fileattach0_.createtime as createti4_38_0_, fileattach0_.version as version5_38_0_, fileattach0_.lastmodifiedtime as lastmodi6_38_0_, fileattach0_.updatedate as updateda7_38_0_, fileattach0_.tk_convertedvideo as tk_conv48_38_0_, fileattach0_.tk_description as tk_descr8_38_0_, fileattach0_.tk_filescanstatus as tk_files9_38_0_, fileattach0_.tk_folder as tk_fold49_38_0_, fileattach0_.tk_includeinvita as tk_incl10_38_0_, fileattach0_.tk_iscomplete as tk_isco11_38_0_, fileattach0_.tk_lastupdatedate as tk_last12_38_0_, fileattach0_.tk_name as tk_name13_38_0_, fileattach0_.tk_person as tk_pers50_38_0_, fileattach0_.tk_previewvideo as tk_prev51_38_0_, fileattach0_.tk_score as tk_scor14_38_0_, fileattach0_.tk_sourcevideo as tk_sour52_38_0_, fileattach0_.tk_totalmean as tk_tota15_38_0_, fileattach0_.tk_type as tk_type16_38_0_, fileattach0_.tk_activitygrade as tk_acti60_38_0_, fileattach0_.tk_answer as tk_answ61_38_0_, fileattach0_.tk_artifact as tk_arti62_38_0_, fileattach0_.tk_assessmentactivity as tk_asse63_38_0_, fileattach0_.tk_committeetemplate as tk_comm64_38_0_, fileattach0_.tk_context as tk_cont30_38_0_, fileattach0_.tk_courseoffered as tk_cour65_38_0_, fileattach0_.tk_courseofferedtaught as tk_cour66_38_0_, fileattach0_.tk_coverletterjobapplication as tk_cove67_38_0_, fileattach0_.tk_datafile as tk_data68_38_0_, fileattach0_.tk_edvafilelocation as tk_edva31_38_0_, fileattach0_.tk_emailmessage as tk_emai69_38_0_, fileattach0_.tk_employmententity as tk_empl70_38_0_, fileattach0_.tk_examtemplate as tk_exam71_38_0_, fileattach0_.tk_extension as tk_exte32_38_0_, fileattach0_.tk_facultyschoolcategory as tk_facu72_38_0_, fileattach0_.tk_feedback as tk_feed73_38_0_, fileattach0_.tk_filelocation as tk_file33_38_0_, fileattach0_.tk_filename as tk_file34_38_0_, fileattach0_.tk_filepathassociation as tk_file74_38_0_, fileattach0_.tk_filesize as tk_file35_38_0_, fileattach0_.tk_formimport as tk_form75_38_0_, fileattach0_.tk_framework as tk_fram76_38_0_, fileattach0_.tk_importfiletype as tk_impo36_38_0_, fileattach0_.tk_iss3uploadinprogress as tk_iss37_38_0_, fileattach0_.tk_lessonactivity as tk_less56_38_0_, fileattach0_.tk_lesson as tk_less77_38_0_, fileattach0_.tk_major as tk_majo78_38_0_, fileattach0_.tk_measure as tk_meas79_38_0_, fileattach0_.tk_message as tk_mess80_38_0_, fileattach0_.tk_metafile as tk_meta81_38_0_, fileattach0_.tk_mission as tk_miss82_38_0_, fileattach0_.tk_narrative as tk_narr83_38_0_, fileattach0_.tk_plandataentry as tk_plan84_38_0_, fileattach0_.tk_portfoliofeedback as tk_port85_38_0_, fileattach0_.tk_portfoliotemplate as tk_port86_38_0_, fileattach0_.tk_profileperson as tk_prof87_38_0_, fileattach0_.tk_program as tk_prog88_38_0_, fileattach0_.tk_report as tk_repo89_38_0_, fileattach0_.tk_resumejobapplication as tk_resu90_38_0_, fileattach0_.tk_school as tk_scho91_38_0_, fileattach0_.tk_section as tk_sect92_38_0_, fileattach0_.tk_sort as tk_sort38_38_0_, fileattach0_.tk_technicalservicemessage as tk_tech93_38_0_, fileattach0_.tk_templatereport as tk_temp94_38_0_, fileattach0_.tk_topicgrade as tk_topi95_38_0_, fileattach0_.tk_topic as tk_topi96_38_0_, fileattach0_.tk_tpaportfolio as tk_tpap97_38_0_, fileattach0_.tk_transcriptschooldetail as tk_tran98_38_0_, fileattach0_.tk_virtuallocation as tk_virt39_38_0_ from public.tk_artifact fileattach0_ where fileattach0_.primarykey=? and fileattach0_.classidentity='com.tlbo.bo.artifact.impl.FileAttachmentImpl'
2018-09-24 15:14:38,195 DEBUG [com.mchange.v2.resourcepool.BasicResourcePool] (default task-1) trace com.mchange.v2.resourcepool.BasicResourcePool@438eb199 [managed: 20, unused: 19, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@6c52266d)
2018-09-24 15:14:38,195 DEBUG [com.mchange.v2.async.ThreadPoolAsynchronousRunner] (default task-1) com.mchange.v2.async.ThreadPoolAsynchronousRunner@6e41a9ef: Adding task to queue -- com.mchange.v2.c3p0.stmt.GooGooStatementCache$1StmtAcquireTask@72dd4c7d
2018-09-24 15:14:38,195 DEBUG [com.mchange.v2.c3p0.stmt.GooGooStatementCache] (default task-1) cxnStmtMgr.statementSet( org.postgresql.jdbc4.Jdbc4Connection@2612b76f ).size(): 3
2018-09-24 15:14:38,195 DEBUG [com.mchange.v2.c3p0.stmt.GooGooStatementCache] (default task-1) checkoutStatement: com.mchange.v2.c3p0.stmt.GlobalMaxOnlyStatementCache stats -- total size: 3; checked out: 1; num connections: 1; num keys: 3
2018-09-24 15:14:38,198 DEBUG [org.hibernate.loader.plan.exec.process.internal.ResultSetProcessorImpl] (default task-1) Starting ResultSet row #0
2018-09-24 15:14:38,198 DEBUG [org.hibernate.loader.plan.exec.process.internal.EntityReferenceInitializerImpl] (default task-1) On call to EntityIdentifierReaderImpl#resolve, EntityKey was already known; should only happen on root returns with an optional identifier specified
2018-09-24 15:14:38,227 DEBUG [org.hibernate.engine.internal.TwoPhaseLoad] (default task-1) Resolving associations for [com.tlbo.bo.artifact.impl.FileAttachmentImpl#190aa8c077d8fa3b161f9cbf51677ce]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) 15:14:38.288 [default task-1] ERROR com.tlbo.bo.BaseBusinessMethods - com.tlbo.bo.personinfo.impl.client.PersonImpl$HibernateProxy$cCWcZAbjImplM from [Module "deployment.ctools.ear.ctservices.jar" from Service Module Loader]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) java.lang.ClassNotFoundException: com.tlbo.bo.personinfo.impl.client.PersonImpl$HibernateProxy$cCWcZAbjImplM from [Module "deployment.ctools.ear.ctservices.jar" from Service Module Loader]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:255) ~[?:?]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410) ~[?:?]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) ~[?:?]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116) ~[?:?]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at java.lang.Class.forName0(Native Method) ~[?:1.8.0_31]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at java.lang.Class.forName(Class.java:260) ~[?:1.8.0_31]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at com.tlbo.bo.BaseBusinessMethods.addMethodToMap(BaseBusinessMethods.java:152) [ctservices.jar:?]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at com.tlbo.bo.BaseBusinessMethods.getMethods(BaseBusinessMethods.java:106) [ctservices.jar:?]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at com.tlbo.bo.BaseBusinessObject.<init>(BaseBusinessObject.java:65) [ctservices.jar:?]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at com.tlbo.bo.BaseServerObject.<init>(BaseServerObject.java:53) [ctservices.jar:?]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at com.tlbo.bo.personinfo.impl.PersonImpl.<init>(PersonImpl.java:376) [ctservices.jar:?]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at com.tlbo.bo.personinfo.impl.PersonImpl$HibernateProxy$cCWcZAbj.<init>(Unknown Source) [ctservices.jar:?]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_31]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) [?:1.8.0_31]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [?:1.8.0_31]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at java.lang.reflect.Constructor.newInstance(Constructor.java:408) [?:1.8.0_31]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at java.lang.Class.newInstance(Class.java:438) [?:1.8.0_31]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at org.hibernate.proxy.pojo.bytebuddy.ByteBuddyProxyFactory.getProxy(ByteBuddyProxyFactory.java:90) [hibernate-core-5.3.6.Final.jar!/:5.3.6.Final]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at org.hibernate.tuple.entity.AbstractEntityTuplizer.createProxy(AbstractEntityTuplizer.java:701) [hibernate-core-5.3.6.Final.jar!/:5.3.6.Final]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at org.hibernate.persister.entity.AbstractEntityPersister.createProxy(AbstractEntityPersister.java:4791) [hibernate-core-5.3.6.Final.jar!/:5.3.6.Final]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at org.hibernate.event.internal.DefaultLoadEventListener.createProxyIfNecessary(DefaultLoadEventListener.java:362) [hibernate-core-5.3.6.Final.jar!/:5.3.6.Final]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at org.hibernate.event.internal.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:277) [hibernate-core-5.3.6.Final.jar!/:5.3.6.Final]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at org.hibernate.event.internal.DefaultLoadEventListener.doOnLoad(DefaultLoadEventListener.java:124) [hibernate-core-5.3.6.Final.jar!/:5.3.6.Final]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at org.hibernate.event.internal.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:92) [hibernate-core-5.3.6.Final.jar!/:5.3.6.Final]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at org.hibernate.internal.SessionImpl.fireLoad(SessionImpl.java:1257) [hibernate-core-5.3.6.Final.jar!/:5.3.6.Final]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at org.hibernate.internal.SessionImpl.internalLoad(SessionImpl.java:1140) [hibernate-core-5.3.6.Final.jar!/:5.3.6.Final]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:682) [hibernate-core-5.3.6.Final.jar!/:5.3.6.Final]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at org.hibernate.type.EntityType.resolve(EntityType.java:464) [hibernate-core-5.3.6.Final.jar!/:5.3.6.Final]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at org.hibernate.type.ManyToOneType.resolve(ManyToOneType.java:239) [hibernate-core-5.3.6.Final.jar!/:5.3.6.Final]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at org.hibernate.engine.internal.TwoPhaseLoad.doInitializeEntity(TwoPhaseLoad.java:172) [hibernate-core-5.3.6.Final.jar!/:5.3.6.Final]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at org.hibernate.engine.internal.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:129) [hibernate-core-5.3.6.Final.jar!/:5.3.6.Final]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at org.hibernate.loader.plan.exec.process.internal.AbstractRowReader.performTwoPhaseLoad(AbstractRowReader.java:238) [hibernate-core-5.3.6.Final.jar!/:5.3.6.Final]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at org.hibernate.loader.plan.exec.process.internal.AbstractRowReader.finishUp(AbstractRowReader.java:209) [hibernate-core-5.3.6.Final.jar!/:5.3.6.Final]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at org.hibernate.loader.plan.exec.process.internal.ResultSetProcessorImpl.extractResults(ResultSetProcessorImpl.java:133) [hibernate-core-5.3.6.Final.jar!/:5.3.6.Final]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoader.executeLoad(AbstractLoadPlanBasedLoader.java:122) [hibernate-core-5.3.6.Final.jar!/:5.3.6.Final]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoader.executeLoad(AbstractLoadPlanBasedLoader.java:86) [hibernate-core-5.3.6.Final.jar!/:5.3.6.Final]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at org.hibernate.loader.entity.plan.AbstractLoadPlanBasedEntityLoader.load(AbstractLoadPlanBasedEntityLoader.java:188) [hibernate-core-5.3.6.Final.jar!/:5.3.6.Final]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:4269) [hibernate-core-5.3.6.Final.jar!/:5.3.6.Final]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at org.hibernate.event.internal.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:511) [hibernate-core-5.3.6.Final.jar!/:5.3.6.Final]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at org.hibernate.event.internal.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:481) [hibernate-core-5.3.6.Final.jar!/:5.3.6.Final]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at org.hibernate.event.internal.DefaultLoadEventListener.load(DefaultLoadEventListener.java:222) [hibernate-core-5.3.6.Final.jar!/:5.3.6.Final]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at org.hibernate.event.internal.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:281) [hibernate-core-5.3.6.Final.jar!/:5.3.6.Final]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at org.hibernate.event.internal.DefaultLoadEventListener.doOnLoad(DefaultLoadEventListener.java:124) [hibernate-core-5.3.6.Final.jar!/:5.3.6.Final]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at org.hibernate.event.internal.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:92) [hibernate-core-5.3.6.Final.jar!/:5.3.6.Final]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at org.hibernate.internal.SessionImpl.fireLoad(SessionImpl.java:1257) [hibernate-core-5.3.6.Final.jar!/:5.3.6.Final]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at org.hibernate.internal.SessionImpl.access$1900(SessionImpl.java:207) [hibernate-core-5.3.6.Final.jar!/:5.3.6.Final]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.doLoad(SessionImpl.java:2874) [hibernate-core-5.3.6.Final.jar!/:5.3.6.Final]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.load(SessionImpl.java:2848) [hibernate-core-5.3.6.Final.jar!/:5.3.6.Final]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at org.hibernate.internal.SessionImpl.get(SessionImpl.java:1093) [hibernate-core-5.3.6.Final.jar!/:5.3.6.Final]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at com.tlbo.ejb.api.BaseServiceEJB.findByPrimaryKey(BaseServiceEJB.java:199) [ctservices.jar:?]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at com.tlbo.ejb.api.datamanager.DataManagerEJB.findByPrimaryKey(DataManagerEJB.java:63) [ctservices.jar:?]
2018-09-24 15:14:38,308 INFO [stdout] (default task-1) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]
2018-09-24 15:14:38,309 INFO [stdout] (default task-1) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_31]
2018-09-24 15:14:38,309 INFO [stdout] (default task-1) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_31]
2018-09-24 15:14:38,309 INFO [stdout] (default task-1) at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_31]
2018-09-24 15:14:38,309 INFO [stdout] (default task-1) at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52) [wildfly-ee-14.0.0.Final.jar!/:14.0.0.Final]
2018-09-24 15:14:38,309 INFO [stdout] (default task-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) [jboss-invocation-1.5.1.Final.jar!/:1.5.1.Final]
2018-09-24 15:14:38,309 INFO [stdout] (default task-1) at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509) [jboss-invocation-1.5.1.Final.jar!/:1.5.1.Final]
2018-09-24 15:14:38,309 INFO [stdout] (default task-1) at org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:90) [wildfly-weld-common-14.0.0.Final.jar!/:14.0.0.Final]
2018-09-24 15:14:38,309 INFO [stdout] (default task-1) at org.jboss.as.weld.interceptors.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:101) [wildfly-weld-common-14.0.0.Final.jar!/:14.0.0.Final]
2018-09-24 15:14:38,309 INFO [stdout] (default task-1) at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63) [wildfly-ee-14.0.0.Final.jar!/:14.0.0.Final]
2018-09-24 15:14:38,309 INFO [stdout] (default task-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) [jboss-invocation-1.5.1.Final.jar!/:1.5.1.Final]
2018-09-24 15:14:38,309 INFO [stdout] (default task-1) at
2018-09-24 15:14:38,309 INFO [stdout] (default task-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) [jboss-invocation-1.5.1.Final.jar!/:1.5.1.Final]
2018-09-24 15:14:38,309 INFO [stdout] (default task-1) at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:509) [jboss-invocation-1.5.1.Final.jar!/:1.5.1.Final]
2018-09-24 15:14:38,309 INFO [stdout] (default task-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) [jboss-invocation-1.5.1.Final.jar!/:1.5.1.Final]
2018-09-24 15:14:38,309 INFO [stdout] (default task-1) at org.jboss.as.ejb3.deployment.processors.StartupAwaitInterceptor.processInvocation(StartupAwaitInterceptor.java:22) [wildfly-ejb3-14.0.0.Final.jar!/:14.0.0.Final]
2018-09-24 15:14:38,309 INFO [stdout] (default task-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) [jboss-invocation-1.5.1.Final.jar!/:1.5.1.Final]
2018-09-24 15:14:38,309 INFO [stdout] (default task-1) at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64) [wildfly-ejb3-14.0.0.Final.jar!/:14.0.0.Final]
2018-09-24 15:14:38,309 INFO [stdout] (default task-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) [jboss-invocation-1.5.1.Final.jar!/:1.5.1.Final]
2018-09-24 15:14:38,309 INFO [stdout] (default task-1) at org.jboss.as.ejb3.deployment.processors.EjbSuspendInterceptor.processInvocation(EjbSuspendInterceptor.java:57) [wildfly-ejb3-14.0.0.Final.jar!/:14.0.0.Final]
2018-09-24 15:14:38,309 INFO [stdout] (default task-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) [jboss-invocation-1.5.1.Final.jar!/:1.5.1.Final]
2018-09-24 15:14:38,309 INFO [stdout] (default task-1) at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:67) [wildfly-ejb3-14.0.0.Final.jar!/:14.0.0.Final]
2018-09-24 15:14:38,309 INFO [stdout] (default task-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) [jboss-invocation-1.5.1.Final.jar!/:1.5.1.Final]
2018-09-24 15:14:38,309 INFO [stdout] (default task-1) at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50) [wildfly-ee-14.0.0.Final.jar!/:14.0.0.Final]
2018-09-24 15:14:38,309 INFO [stdout] (default task-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) [jboss-invocation-1.5.1.Final.jar!/:1.5.1.Final]
2018-09-24 15:14:38,309 INFO [stdout] (default task-1) at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:60) [jboss-invocation-1.5.1.Final.jar!/:1.5.1.Final]
2018-09-24 15:14:38,309 INFO [stdout] (default task-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) [jboss-invocation-1.5.1.Final.jar!/:1.5.1.Final]
2018-09-24 15:14:38,309 INFO [stdout] (default task-1) at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:438) [jboss-invocation-1.5.1.Final.jar!/:1.5.1.Final]
2018-09-24 15:14:38,309 INFO [stdout] (default task-1) at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:619) [wildfly-elytron-1.6.0.Final.jar!/:1.6.0.Final]
2018-09-24 15:14:38,309 INFO [stdout] (default task-1) at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:57) [jboss-invocation-1.5.1.Final.jar!/:1.5.1.Final]
2018-09-24 15:14:38,309 INFO [stdout] (default task-1) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) [jboss-invocation-1.5.1.Final.jar!/:1.5.1.Final]
2018-09-24 15:14:38,309 INFO [stdout] (default task-1) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53) [jboss-invocation-1.5.1.Final.jar!/:1.5.1.Final]
2018-09-24 15:14:38,309 INFO [stdout] (default task-1) at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:198) [wildfly-ee-14.0.0.Final.jar!/:14.0.0.Final]
2018-09-24 15:14:38,309 INFO [stdout] (default task-1) at org.jboss.as.ejb3.remote.AssociationImpl$$Lambda$890/1532402465.apply(Unknown Source) [wildfly-ejb3-14.0.0.Final.jar!/:14.0.0.Final]
2018-09-24 15:14:38,309 INFO [stdout] (default task-1) at org.wildfly.security.auth.server.SecurityIdentity.runAsFunctionEx(SecurityIdentity.java:382) [wildfly-elytron-1.6.0.Final.jar!/:1.6.0.Final]
2018-09-24 15:14:38,309 INFO [stdout] (default task-1) at org.jboss.as.ejb3.remote.AssociationImpl.invokeWithIdentity(AssociationImpl.java:556) [wildfly-ejb3-14.0.0.Final.jar!/:14.0.0.Final]
2018-09-24 15:14:38,309 INFO [stdout] (default task-1) at org.jboss.as.ejb3.remote.AssociationImpl.invokeMethod(AssociationImpl.java:537) [wildfly-ejb3-14.0.0.Final.jar!/:14.0.0.Final]
2018-09-24 15:14:38,310 INFO [stdout] (default task-1) at org.jboss.as.ejb3.remote.AssociationImpl.lambda$receiveInvocationRequest$0(AssociationImpl.java:195) [wildfly-ejb3-14.0.0.Final.jar!/:14.0.0.Final]
2018-09-24 15:14:38,310 INFO [stdout] (default task-1) at org.jboss.as.ejb3.remote.AssociationImpl$$Lambda$888/1707853589.run(Unknown Source) [wildfly-ejb3-14.0.0.Final.jar!/:14.0.0.Final]
2018-09-24 15:14:38,310 INFO [stdout] (default task-1) at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35) [jboss-threads-2.3.2.Final.jar!/:2.3.2.Final]
2018-09-24 15:14:38,310 INFO [stdout] (default task-1) at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985) [jboss-threads-2.3.2.Final.jar!/:2.3.2.Final]
2018-09-24 15:14:38,310 INFO [stdout] (default task-1) at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487) [jboss-threads-2.3.2.Final.jar!/:2.3.2.Final]
2018-09-24 15:14:38,310 INFO [stdout] (default task-1) at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378) [jboss-threads-2.3.2.Final.jar!/:2.3.2.Final]
2018-09-24 15:14:38,310 INFO [stdout] (default task-1) at java.lang.Thread.run(Thread.java:745) [?:1.8.0_31]
我的persistence.xml如下:
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
version="2.0">
<persistence-unit name="CampusTools" transaction-type="JTA">
<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
<jta-data-source>java:/PostgresDS</jta-data-source>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQL93Dialect"/>
<property name="hibernate.show_sql" value="false"/>
<property name="hibernate.format_sql" value="false" />
<property name="hibernate.transaction.jta.platform" value="org.hibernate.engine.transaction.jta.platform.spi.JtaPlatform"/>
<property name="hibernate.session_factory_name" value="java:/jboss/SessionFactory"/>
<property name="hibernate.cache.use_query_cache" value="true"/>
<property name="hibernate.cache.use_second_level_cache" value="true"/>
<property name="hibernate.javax.cache.cache_manager" value="java:jboss/infinispan/container/hibernate"/>
<property name="hibernate.current_session_context_class" value="jta" />
<property name="hibernate.connection.provider_class" value="org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider"/>
<property name="hibernate.c3p0.min_size" value="20"/>
<property name="hibernate.c3p0.max_size" value="200"/>
<property name="hibernate.c3p0.timeout" value="300"/>
<property name="hibernate.c3p0.max_statements" value="50"/>
<property name="hibernate.c3p0.idle_test_period" value="3000"/>
<property name="hibernate.connection.driver_class" value="org.postgresql.Driver" />
<property name="hibernate.connection.url" value="jdbc:postgresql://localhost:5001/ctools" />
<property name="hibernate.connection.username" value="myuser" />
<property name="hibernate.connection.password" value="mypass" />
</properties>
</persistence-unit>
</persistence>