2014-10-03 5 views
2

웹 응용 프로그램에 익숙하지 만 웹 응용 프로그램에 대한 기본적인 이해를 사용하여 이전에 작동했던 응용 프로그램을 수정하려고합니다. 이 응용 프로그램은 더 이상 도움을 요청할 수없는 다른 사람이 작성했습니다. 나는 당신이 올바른 방향으로 나를 가리킬 수 있기를 바랍니다. 며칠 동안 Google을 사용한 후에도 해결책을 찾지 못했습니다.서비스를 시작하지 못했습니다. jboss.deployment.unit - StartException

나는 Jboss 7과 jboss-eap 런타임 서버를 사용하고 있습니다. 설치된 JDK는 1.7.0_60입니다 (다른 프로그램이 새 버전을 사용하기를 거부하기 때문에 ...); 그러나 JDK 1.8.0_20에서 같은 문제가 발생합니다. 나 또한 Maven 3.0.4와 Hibernate (어떤 버전을 찾을 수 없는가)를 사용한다.

응용 프로그램이 거의 완전히 전개 된 것처럼 보이지만 결국에는 StartException 오류와 여러 원인 (Nullpointers 및 IllegalState)이 발생합니다. 나는 어디에서 봐야할지 모르겠다. 최대 절전 모드 구성에 문제가 있습니까? 아니면 다른 문제입니까?

도움을 주시면 대단히 감사하겠습니다. 더 많은 정보가 필요하면 그냥 물어보십시오. (필자는 아주 새롭기 때문에, 해당되는 경우 특정 파일 등을 찾는 위치에 대해 매우 구체적 일 수 있기를 바랍니다.)

감사합니다, 세기

예외 스택 :

내가 문제를 해결 한

13:41:55,745 INFO [org.hibernate.cfg.Configuration] (ServerService Thread Pool -- 50) HHH000041: Configured SessionFactory: null 
13:41:56,354 INFO [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 50) HHH000400: Using dialect: org.hibernate.dialect.SQLServerDialect 
13:41:56,593 WARN [org.hibernate.mapping.RootClass] (ServerService Thread Pool -- 50) HHH000038: Composite-id class does not override equals(): test.model.Class1 
13:41:56,594 WARN [org.hibernate.mapping.RootClass] (ServerService Thread Pool -- 50) HHH000039: Composite-id class does not override hashCode(): test.model.Class2 
13:41:56,619 INFO [org.hibernate.engine.transaction.internal.TransactionFactoryInitiator] (ServerService Thread Pool -- 50) HHH000399: Using default transaction strategy (direct JDBC transactions) 
13:41:56,631 INFO [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (ServerService Thread Pool -- 50) HHH000397: Using ASTQueryTranslatorFactory 
13:41:56,751 INFO [org.hibernate.validator.internal.util.Version] (ServerService Thread Pool -- 50) HV000001: Hibernate Validator 4.3.1.Final-redhat-1 
13:41:58,180 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 50) MSC000001: Failed to start service jboss.deployment.unit."test.war".component.test.START: org.jboss.msc.service.StartException in service jboss.deployment.unit."test.war".component.test.START: java.lang.IllegalStateException: JBAS011048: Failed to construct component instance 
at org.jboss.as.ee.component.ComponentStartService$1.run(ComponentStartService.java:57) [jboss-as-ee-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10] 
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_60] 
at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_60] 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_60] 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_60] 
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_60] 
at org.jboss.threads.JBossThread.run(JBossThread.java:122) 
Caused by: java.lang.IllegalStateException: JBAS011048: Failed to construct component instance 
at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:163) [jboss-as-ee-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10] 
at org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:85) [jboss-as-ee-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10] 
at org.jboss.as.ejb3.component.singleton.SingletonComponent.getComponentInstance(SingletonComponent.java:126) 
at org.jboss.as.ejb3.component.singleton.SingletonComponent.start(SingletonComponent.java:141) 
at org.jboss.as.ee.component.ComponentStartService$1.run(ComponentStartService.java:54) [jboss-as-ee-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10] 
... 6 more 
Caused by: javax.ejb.EJBException: java.lang.NullPointerException 
at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:165) 
at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:250) 
at org.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:344) 
at org.jboss.as.ejb3.tx.LifecycleCMTTxInterceptor.processInvocation(LifecycleCMTTxInterceptor.java:66) 
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.2.Final-redhat-1.jar:1.1.2.Final-redhat-1] 
at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) 
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.2.Final-redhat-1.jar:1.1.2.Final-redhat-1] 
at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45) [jboss-as-ee-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10] 
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.2.Final-redhat-1.jar:1.1.2.Final-redhat-1] 
at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.2.Final-redhat-1.jar:1.1.2.Final-redhat-1] 
at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:161) [jboss-as-ee-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10] 
... 10 more 
Caused by: java.lang.NullPointerException 
at test.process.test.init(test.java:73) 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_60] 
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_60] 
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_60] 
at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_60] 
at org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptorFactory$ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptorFactory.java:130) [jboss-as-ee-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10] 
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.2.Final-redhat-1.jar:1.1.2.Final-redhat-1] 
at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation-1.1.2.Final-redhat-1.jar:1.1.2.Final-redhat-1] 
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.2.Final-redhat-1.jar:1.1.2.Final-redhat-1] 
at org.jboss.as.weld.injection.WeldInjectionInterceptor.processInvocation(WeldInjectionInterceptor.java:73) 
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.2.Final-redhat-1.jar:1.1.2.Final-redhat-1] 
at org.jboss.as.ee.component.ManagedReferenceInterceptorFactory$ManagedReferenceInterceptor.processInvocation(ManagedReferenceInterceptorFactory.java:95) [jboss-as-ee-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10] 
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.2.Final-redhat-1.jar:1.1.2.Final-redhat-1] 
at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation-1.1.2.Final-redhat-1.jar:1.1.2.Final-redhat-1] 
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.2.Final-redhat-1.jar:1.1.2.Final-redhat-1] 
at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50) [jboss-as-ee-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10] 
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.2.Final-redhat-1.jar:1.1.2.Final-redhat-1] 
at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:248) 
... 19 more 
+0

스택 트레이스 : test.process.test.init (test.java:73)에서는 73 행의 test.java 파일을보고 무슨 일이 일어나는지 잘 이해해야합니다. –

+0

답장을 보내 주셔서 감사합니다! 웬일인지, 나는 문제를 보지 않았다. init 메소드를 점검했지만이 메소드 내부의 값이 null로 남아 있음을 인식하지 못했습니다. 이제 변수가 채워지지 않은 이유를 알아야하지만, 적어도 내가 어디에서 봐야하는지 알고 있어야합니다. 분명히 필요한 새로운 관점을 가져 주셔서 감사합니다. – Century

답변

2

(I는 개인 정보 보호를 위해 '시험'에 어떤 이름을 변경 한), 그것은이었다 빈 개체를 초래 한 데이터베이스 문제로 인해 초기 NullpointerException이 발생했습니다. 다른 예외는 Nullpointer의 결과였습니다. 객체가 채워지면 전쟁이 올바르게 전개됩니다.

관련 문제