1

挿入/クエリなどの作業を行うために PlayORM を使用する必要がある Web アプリがあります。私のコードはローカルでは問題なく実行されますが、次の警告メッセージが表示されます。

com.alvazan.orm.impl.meta.scan.ScannerForClass processIdFieldWorksWARN: クラス = クラスの二重スキャンを回避しました com.alvazan.orm.impl.meta.data.MetaClassSingle すべて正常に動作しますが、スタック トレースをお送りください。 java.lang.RuntimeException: null at com.alvazan.orm.impl.meta.scan.ScannerForClass.processIdFieldWorks(ScannerForClass.java:234) [playorm-1.4.3.jar:1.4.3 December 13 2012]

しかし、JSF ページでそのコードを実行しようとすると、コードが機能しません。エラーメッセージは次のとおりです。

INFO caoimpl.meta.scan.ScannerForClass - スキャン クラス = クラス com.alvazan.orm.api.z8spi.meta.DboColumnMeta java.lang.RuntimeException: スキャン クラスの失敗 (連鎖例外を参照) = クラス com.alvazan.orm.api. z8spi.meta.DboColumnMeta

この問題を解決するために何ができるか誰かが知っていますか?

アップデート:

  • 最初のスタック トレース - ローカルで正常に動作します (外部サイトの Web を実行)

2013-02-13 19:20:18,173 com.alvazan.orm.impl.meta.scan.ScannerForClass processIdFieldWorksWARN: クラス = クラスの二重スキャンを回避しました com.alvazan.orm.impl.meta.data.MetaClassSingle すべてが引き続き機能します問題ありませんが、スタック トレースを送信して、なぜこれが発生したのかを確認してください。 1.4.3.jar:1.4.3 2012 年 12 月 13 日] com.alvazan.orm.impl.meta.scan.ScannerForClass.inspectFieldImpl(ScannerForClass.java:206) [playorm-1.4.3.jar:1.4.3 12 月 13 日] 2012] com.alvazan.orm.impl.meta.scan.ScannerForClass.inspectField(ScannerForClass.java:193) [playorm-1.4.3.jar:1.4.3 2012 年 12 月 13 日] com.alvazan.orm.impl で。 meta.scan.ScannerForClass.scanFields(ScannerForClass.java:188) [playorm-1.4.3.jar:1.4.3 2012 年 12 月 13 日] com.alvazan.orm.impl.meta.scan.ScannerForClass.scanSingle(ScannerForClass.java:111) [playorm-1.4.3.jar:1.4.3 2012 年 12 月 13 日] com.alvazan.orm .impl.meta.scan.ScannerForClass.scanMultipleClasses(ScannerForClass.java:104) [playorm-1.4.3.jar:1.4.3 2012 年 12 月 13 日] com.alvazan.orm.impl.meta.scan.ScannerForClass.addClass( ScannerForClass.java:64) [playorm-1.4.3.jar:1.4.3 2012 年 12 月 13 日] com.alvazan.orm.layer0.base.MyClassAnnotationDiscoveryListener.scanClass(MyClassAnnotationDiscoveryListener.java:42) [playorm-1.4.3. jar:1.4.3 2012 年 12 月 13 日] com.alvazan.orm.layer0.base.MyClassAnnotationDiscoveryListener.discovered(MyClassAnnotationDiscoveryListener.java:34) [playorm-1.4.3.jar:1.4.3 2012 年 12 月 13 日] com.impetus で.annovention.Discoverer.discoverAndIntimateForClassAnnotations(Discoverer.java:197) [playorm-1.4.3.jar:1.4.3 2012 年 12 月 13 日] com.impetus.annovention.Discoverer.discover(Discoverer.java:155) [playorm-1.4.3.jar:1.4.3 2012 年 12 月 13 日] ] com.alvazan.orm.layer0.base.BaseEntityManagerFactoryImpl.rescan (BaseEntityManagerFactoryImpl.java:82) で [playorm-1.4.3.jar:1.4.3 2012 年 12 月 13 日] com.alvazan.orm.layer0.base.BaseEntityManagerFactoryImpl で.setup(BaseEntityManagerFactoryImpl.java:133) [playorm-1.4.3.jar:1.4.3 2012 年 12 月 13 日] com.alvazan.orm.impl.bindings.BootstrapImpl.createInstanceImpl(BootstrapImpl.java:64) [playorm-1.4 .3.jar:1.4.3 2012 年 12 月 13 日] com.alvazan.orm.impl.bindings.BootstrapImpl.createInstance(BootstrapImpl.java:35) [playorm-1.4.3.jar:1.4.3 2012 年 12 月 13 日] com.alvazan.orm.api.base.Bootstrap.create(Bootstrap.java:57) [playorm-1.4.3.jar:1.4.3 2012 年 12 月 13 日] com.alvazan.orm.api.base.Bootstrap.create(Bootstrap.java:52) [playorm-1.4.3.jar:1.4.3 2012 年 12 月 13 日] com.alvazan.orm.api.base.Bootstrap.create(Bootstrap) .java:45) [playorm-1.4.3.jar:1.4.3 2012 年 12 月 13 日] com.alvazan.orm.api.base.Bootstrap.create(Bootstrap.java:24) [playorm-1.4.3.jar] :1.4.3 2012 年 12 月 13 日] com.s1mbi0se.dmp.da.dao.PlayOrmConfiguration.init(PlayOrmConfiguration.java:45) [classes/:na] com.s1mbi0se.dmp.da.dao.PlayOrmConfiguration.getEntityManager( PlayOrmConfiguration.java:51) [classes/:na] at com.s1mbi0se.dmp.da.dao.AbstractDao.getEm(AbstractDao.java:10) [classes/:na] at com.s1mbi0se.dmp.da.dao. UserDao.findInputPhase(UserDao.java:201) [classes/:na] com.s1mbi0se.dmp.da.bean.InputPhaseStru.manageInputPhase(InputPhaseStru.java:105) [classes/:na] com.s1mbi0se.dashboard で。サービス。DashboardService.readSolrLogFile(DashboardService.java:44) [classes/:na] com.s1mbi0se.dashboard.service.DashboardService.main(DashboardService.java:29) [classes/:na]

  • 2 番目のスタック トレース - 機能しない (Web 環境)

19:05:54.090 [http-bio-8080-exec-3] INFO c.alvazan.orm.logging.NoSqlRawLogger - [rawlogger] NoSQL Service Provider の起動と接続 19:05:54.101 [http-bio-8080-exec- 3] INFO caolsdcColumnFamilyHelper - キースペース=dmpExisting 列ファミリー=[inputphasestru, stringindice, dbocolumnmeta, integerindice, user, dbodatabasemeta, dbotablemeta] 注: 列ファミリーを持たないエンティティを保存すると、新しい列ファミリーが自動的に作成されます 19:05:54.101 [http-bio-8080-exec-3] INFO caolbBaseEntityManagerFactoryImpl - nosql.Persistence.class 19:05:54.102 で jar のスキャンを開始します [http-bio-8080-exec-3] INFO ciannovention.ClasspathDiscoverer - スキャン用の jar ファイルを追加します=jar:ファイル:/opt/apache-tomcat-7.0.30/wtpwebapps/teste28/WEB-INF/lib/playorm-1.4.3.jar!/ 19:05:54.102 [http-bio-8080-exec-3 ] INFO ciannovention.ClasspathDiscoverer - スキャン用のjarファイルを追加=jar:file:/opt/apache-tomcat-7.0.30/lib/playorm-1.4.3.jar!/ 19:05:54.102 [http-bio-8080-exec- 3] INFO ciannovention.ClasspathDiscoverer - スキャン用のjarファイルを追加=jar:file:/opt/apache-tomcat-7.0.30/wtpwebapps/teste28/WEB-INF/lib/dmpDataAccess-0.0.1-SNAPSHOT.jar!/ 19 :05:54.119 [http-bio-8080-exec-3] DEBUG caolbMyClassAnnotationDiscoveryListener - class=com.alvazan.orm.api.z8spi.meta.DboColumnMeta anno=com.alvazan.orm.api.base.anno.NoSqlEntity 19: 05:54.119 [http-bio-8080-exec-3] INFO caoimpl.meta.scan.ScannerForClass - スキャン クラス = クラス com.alvazan.orm.api.z8spi.meta.DboColumnMeta java.lang.RuntimeException: スキャン クラスの失敗(チェーンされた例外を参照)=class com.alvazan.orm.api.z8spi.meta.DboColumnMeta at com.alvazan.orm.layer0.base.MyClassAnnotationDiscoveryListener.scanClass(MyClassAnnotationDiscoveryListener.java:44) com.alvazan.orm.layer0.base.MyClassAnnotationDiscoveryListener.discovered(MyClassAnnotationDiscoveryListener.java:34) com.impetus.annovention.Discoverer.discoverAndIntimateForClassAnnotations(Discoverer.java:197) で.impetus.annovention.Discoverer.discover(Discoverer.java:155) com.alvazan.orm.layer0.base.BaseEntityManagerFactoryImpl.rescan(BaseEntityManagerFactoryImpl.java:82) com.alvazan.orm.layer0.base.BaseEntityManagerFactoryImpl.setup (BaseEntityManagerFactoryImpl.java:133) com.alvazan.orm.impl.bindings.BootstrapImpl.createInstanceImpl(BootstrapImpl.java:64) で com.alvazan.orm.impl.bindings.BootstrapImpl.createInstance(BootstrapImpl.java:35) でcom.alvazan.orm.api.base.Bootstrap.create(Bootstrap.java:57) com.alvazan.orm.api.base.Bootstrap.create(Bootstrap.java:52) at com.alvazan.orm.api.base.Bootstrap.create(Bootstrap.java:45) at com.alvazan.orm.api.base. com.s1mbi0se.dmp.da.dao.PlayOrmConfiguration.init(PlayOrmConfiguration.java:45) の Bootstrap.create(Bootstrap.java:24) com.s1mbi0se.dmp.da.dao.PlayOrmConfiguration.getEntityManager(PlayOrmConfiguration.java: 51) com.s1mbi0se.dmp.da.dao.PlayOrmConfiguration.init(PlayOrmConfiguration.java:45) で com.s1mbi0se.dmp.da.dao.PlayOrmConfiguration.getEntityManager(PlayOrmConfiguration.java:51) で com.s1mbi0se.dmp .da.dao.AbstractDao.getEm(AbstractDao.java:10) com.s1mbi0se.dmp.da.dao.UserDao.findInputPhase(UserDao.java:201) com.s1mbi0se.dmp.da.bean.InputPhaseStru.manageInputPhase (InputPhaseStru.java:105) com.s1mbi0se.dashboard.service.DashboardService.readSolrLogFile(DashboardService.java:44) の com.s1mbi0se.dashboard.mbean.DashboardMBean.getTestehash(DashboardMBean.java:18) の sun.reflect.NativeMethodAccessorImpl.invoke0(ネイティブ メソッド) の sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) で sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) で java.lang.reflect.Method.invoke(Method.java:597) で javax.el.BeanELResolver.getValue(BeanELResolver.java:87) で) org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:169) で javax.el.CompositeELResolver.getValue(CompositeELResolver.java:67) で org.apache.el.parser.AstValue で。 org.apache.jasper.el.JspValueExpression の org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:185) の getValue(AstValue.java:183)。getValue(JspValueExpression.java:106) で javax.faces.component._DeltaStateHelper.eval(_DeltaStateHelper.java:246) で javax.faces.component.UIOutput.getValue(UIOutput.java:67) で javax.faces.component.UIInput org.apache.myfaces.shared.renderkit.RendererUtils.getValue(RendererUtils.java:505) の .getValue(UIInput.java:150) org.apache.myfaces.shared.renderkit.RendererUtils.getStringValue(RendererUtils.java:331) の) org.apache.myfaces.shared.renderkit.html.HtmlTextRendererBase.renderInputBegin(HtmlTextRendererBase.java:197) で org.apache.myfaces.shared.renderkit.html.HtmlTextRendererBase.renderInput(HtmlTextRendererBase.java:186) で org. apache.myfaces.shared.renderkit.html.HtmlTextRendererBase.encodeEnd(HtmlTextRendererBase.java:75) で javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:580) で javax.org.apache.myfaces.shared.view.JspViewDeclarationLanguageBase.actuallyRenderView(JspViewDeclarationLanguageBase.java: 362) org.apache.myfaces.shared.view.JspViewDeclarationLanguageBase.renderView(JspViewDeclarationLanguageBase.java:199) で org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:285) で org.apache.myfaces.lifecycle .RenderResponseExecutor.execute(RenderResponseExecutor.java:115) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:241) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:199) at org. org.apache.catalina.core の apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)。ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) org .apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve) .java:99) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929) で org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) で org.apache.catalina. connector.CoyoteAdapter.service(CoyoteAdapter.java:407) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002) org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585) で org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) で java.util.concurrent で.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) 原因: com.google.inject.ProvisionException: Guice プロビジョニング エラー:908) at java.lang.Thread.run(Thread.java:662) 原因: com.google.inject.ProvisionException: Guice プロビジョニング エラー:908) at java.lang.Thread.run(Thread.java:662) 原因: com.google.inject.ProvisionException: Guice プロビジョニング エラー:

1) コンストラクターの注入エラー、java.lang.NoClassDefFoundError: com.alvazan.orm.impl.meta.data.MetaClassInheritance.(MetaClassInheritance.java:25 でクラス com.alvazan.orm.api.z8spi.meta.DboTableMeta を初期化できませんでした。 ) com.alvazan.orm.impl.meta.data.MetaClassInheritance の検索中

1 エラー com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:987) で com.alvazan.orm.impl.meta.data.MetaInfo.findOrCreate(MetaInfo.java:58) で com.alvazan. orm.impl.meta.scan.ScannerForClass.addClass(ScannerForClass.java:59) at com.alvazan.orm.layer0.base.MyClassAnnotationDiscoveryListener.scanClass(MyClassAnnotationDiscoveryListener.java:42) ... 63 以上 原因: java.lang .NoClassDefFoundError: クラス com.alvazan.orm.api.z8spi.meta.DboTableMeta を com.alvazan.orm.impl.meta.data.MetaAbstractClass.(MetaAbstractClass.java:17) で com.alvazan.orm.impl で初期化できませんでした.meta.data.MetaClassInheritance.(MetaClassInheritance.java:25) com.alvazan.orm.impl.meta.data.MetaClassInheritance$$FastClassByGuice$$9298a112.newInstance() com.google.inject.internal.cglib.reflect で.$FastConstructor.newInstance(FastConstructor.java:40) at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:60) at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85) at com. google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254) at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:978) at com.google.inject.internal.InjectorImpl. callInContext(InjectorImpl.java:1024) at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:974) ... 66 もっと見るinject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254) at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:978) at com.google.inject.internal.InjectorImpl.callInContext( InjectorImpl.java:1024) at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:974) ... 66 もっと見るinject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254) at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:978) at com.google.inject.internal.InjectorImpl.callInContext( InjectorImpl.java:1024) at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:974) ... 66 もっと見る


スタックトレース全体に従います...

*** first stack trace - works fine locally (running outsite web)**

2013-02-13 19:20:18,173 com.alvazan.orm.impl.meta.scan.ScannerForClass processIdFieldWorksWARN: We avoided double scanning a class=class com.alvazan.orm.impl.meta.data.MetaClassSingle Everything will still work fine, but please send us the stack trace so we can see why this is happening
java.lang.RuntimeException: null
    at com.alvazan.orm.impl.meta.scan.ScannerForClass.processIdFieldWorks(ScannerForClass.java:234) [playorm-1.4.3.jar:1.4.3 December 13 2012]
    at com.alvazan.orm.impl.meta.scan.ScannerForClass.inspectFieldImpl(ScannerForClass.java:206) [playorm-1.4.3.jar:1.4.3 December 13 2012]
    at com.alvazan.orm.impl.meta.scan.ScannerForClass.inspectField(ScannerForClass.java:193) [playorm-1.4.3.jar:1.4.3 December 13 2012]
    at com.alvazan.orm.impl.meta.scan.ScannerForClass.scanFields(ScannerForClass.java:188) [playorm-1.4.3.jar:1.4.3 December 13 2012]
    at com.alvazan.orm.impl.meta.scan.ScannerForClass.scanSingle(ScannerForClass.java:111) [playorm-1.4.3.jar:1.4.3 December 13 2012]
    at com.alvazan.orm.impl.meta.scan.ScannerForClass.scanMultipleClasses(ScannerForClass.java:104) [playorm-1.4.3.jar:1.4.3 December 13 2012]
    at com.alvazan.orm.impl.meta.scan.ScannerForClass.addClass(ScannerForClass.java:64) [playorm-1.4.3.jar:1.4.3 December 13 2012]
    at com.alvazan.orm.layer0.base.MyClassAnnotationDiscoveryListener.scanClass(MyClassAnnotationDiscoveryListener.java:42) [playorm-1.4.3.jar:1.4.3 December 13 2012]
    at com.alvazan.orm.layer0.base.MyClassAnnotationDiscoveryListener.discovered(MyClassAnnotationDiscoveryListener.java:34) [playorm-1.4.3.jar:1.4.3 December 13 2012]
    at com.impetus.annovention.Discoverer.discoverAndIntimateForClassAnnotations(Discoverer.java:197) [playorm-1.4.3.jar:1.4.3 December 13 2012]
    at com.impetus.annovention.Discoverer.discover(Discoverer.java:155) [playorm-1.4.3.jar:1.4.3 December 13 2012]
    at com.alvazan.orm.layer0.base.BaseEntityManagerFactoryImpl.rescan(BaseEntityManagerFactoryImpl.java:82) [playorm-1.4.3.jar:1.4.3 December 13 2012]
    at com.alvazan.orm.layer0.base.BaseEntityManagerFactoryImpl.setup(BaseEntityManagerFactoryImpl.java:133) [playorm-1.4.3.jar:1.4.3 December 13 2012]
    at com.alvazan.orm.impl.bindings.BootstrapImpl.createInstanceImpl(BootstrapImpl.java:64) [playorm-1.4.3.jar:1.4.3 December 13 2012]
    at com.alvazan.orm.impl.bindings.BootstrapImpl.createInstance(BootstrapImpl.java:35) [playorm-1.4.3.jar:1.4.3 December 13 2012]
    at com.alvazan.orm.api.base.Bootstrap.create(Bootstrap.java:57) [playorm-1.4.3.jar:1.4.3 December 13 2012]
    at com.alvazan.orm.api.base.Bootstrap.create(Bootstrap.java:52) [playorm-1.4.3.jar:1.4.3 December 13 2012]
    at com.alvazan.orm.api.base.Bootstrap.create(Bootstrap.java:45) [playorm-1.4.3.jar:1.4.3 December 13 2012]
    at com.alvazan.orm.api.base.Bootstrap.create(Bootstrap.java:24) [playorm-1.4.3.jar:1.4.3 December 13 2012]
    at com.s1mbi0se.dmp.da.dao.PlayOrmConfiguration.init(PlayOrmConfiguration.java:45) [classes/:na]
    at com.s1mbi0se.dmp.da.dao.PlayOrmConfiguration.getEntityManager(PlayOrmConfiguration.java:51) [classes/:na]
    at com.s1mbi0se.dmp.da.dao.AbstractDao.getEm(AbstractDao.java:10) [classes/:na]
    at com.s1mbi0se.dmp.da.dao.UserDao.findInputPhase(UserDao.java:201) [classes/:na]
    at com.s1mbi0se.dmp.da.bean.InputPhaseStru.manageInputPhase(InputPhaseStru.java:105) [classes/:na]
    at com.s1mbi0se.dashboard.service.DashboardService.readSolrLogFile(DashboardService.java:44) [classes/:na]
    at com.s1mbi0se.dashboard.service.DashboardService.main(DashboardService.java:29) [classes/:na]


*** second stack trace - not works ( web environment)**


19:05:54.090 [http-bio-8080-exec-3] INFO  c.alvazan.orm.logging.NoSqlRawLogger - [rawlogger] starting NoSQL Service Provider and connecting
19:05:54.101 [http-bio-8080-exec-3] INFO  c.a.o.l.s.d.c.ColumnFamilyHelper - On keyspace=dmpExisting column families=[inputphasestru, stringindice, dbocolumnmeta, integerindice, user, dbodatabasemeta, dbotablemeta]
NOTE: WE WILL CREATE new column families automatically as you save entites that have no column family
19:05:54.101 [http-bio-8080-exec-3] INFO  c.a.o.l.b.BaseEntityManagerFactoryImpl - Begin scanning for jars with nosql.Persistence.class
19:05:54.102 [http-bio-8080-exec-3] INFO  c.i.annovention.ClasspathDiscoverer - adding jar file for scanning=jar:file:/opt/apache-tomcat-7.0.30/wtpwebapps/teste28/WEB-INF/lib/playorm-1.4.3.jar!/
19:05:54.102 [http-bio-8080-exec-3] INFO  c.i.annovention.ClasspathDiscoverer - adding jar file for scanning=jar:file:/opt/apache-tomcat-7.0.30/lib/playorm-1.4.3.jar!/
19:05:54.102 [http-bio-8080-exec-3] INFO  c.i.annovention.ClasspathDiscoverer - adding jar file for scanning=jar:file:/opt/apache-tomcat-7.0.30/wtpwebapps/teste28/WEB-INF/lib/dmpDataAccess-0.0.1-SNAPSHOT.jar!/
19:05:54.119 [http-bio-8080-exec-3] DEBUG c.a.o.l.b.MyClassAnnotationDiscoveryListener - class=com.alvazan.orm.api.z8spi.meta.DboColumnMeta anno=com.alvazan.orm.api.base.anno.NoSqlEntity
19:05:54.119 [http-bio-8080-exec-3] INFO  c.a.o.impl.meta.scan.ScannerForClass - scanning class=class com.alvazan.orm.api.z8spi.meta.DboColumnMeta
java.lang.RuntimeException: Failure scanning class(see chained exception)=class com.alvazan.orm.api.z8spi.meta.DboColumnMeta
    at com.alvazan.orm.layer0.base.MyClassAnnotationDiscoveryListener.scanClass(MyClassAnnotationDiscoveryListener.java:44)
    at com.alvazan.orm.layer0.base.MyClassAnnotationDiscoveryListener.discovered(MyClassAnnotationDiscoveryListener.java:34)
    at com.impetus.annovention.Discoverer.discoverAndIntimateForClassAnnotations(Discoverer.java:197)
    at com.impetus.annovention.Discoverer.discover(Discoverer.java:155)
    at com.alvazan.orm.layer0.base.BaseEntityManagerFactoryImpl.rescan(BaseEntityManagerFactoryImpl.java:82)
    at com.alvazan.orm.layer0.base.BaseEntityManagerFactoryImpl.setup(BaseEntityManagerFactoryImpl.java:133)
    at com.alvazan.orm.impl.bindings.BootstrapImpl.createInstanceImpl(BootstrapImpl.java:64)
    at com.alvazan.orm.impl.bindings.BootstrapImpl.createInstance(BootstrapImpl.java:35)
    at com.alvazan.orm.api.base.Bootstrap.create(Bootstrap.java:57)
    at com.alvazan.orm.api.base.Bootstrap.create(Bootstrap.java:52)
    at com.alvazan.orm.api.base.Bootstrap.create(Bootstrap.java:45)
    at com.alvazan.orm.api.base.Bootstrap.create(Bootstrap.java:24)
    at com.s1mbi0se.dmp.da.dao.PlayOrmConfiguration.init(PlayOrmConfiguration.java:45)
    at com.s1mbi0se.dmp.da.dao.PlayOrmConfiguration.getEntityManager(PlayOrmConfiguration.java:51)
    at com.s1mbi0se.dmp.da.dao.PlayOrmConfiguration.init(PlayOrmConfiguration.java:45)
    at com.s1mbi0se.dmp.da.dao.PlayOrmConfiguration.getEntityManager(PlayOrmConfiguration.java:51)
    at com.s1mbi0se.dmp.da.dao.AbstractDao.getEm(AbstractDao.java:10)
    at com.s1mbi0se.dmp.da.dao.UserDao.findInputPhase(UserDao.java:201)
    at com.s1mbi0se.dmp.da.bean.InputPhaseStru.manageInputPhase(InputPhaseStru.java:105)
    at com.s1mbi0se.dashboard.service.DashboardService.readSolrLogFile(DashboardService.java:44)
    at com.s1mbi0se.dashboard.mbean.DashboardMBean.getTestehash(DashboardMBean.java:18)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at javax.el.BeanELResolver.getValue(BeanELResolver.java:87)
    at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:67)
    at org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:169)
    at org.apache.el.parser.AstValue.getValue(AstValue.java:183)
    at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:185)
    at org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:106)
    at javax.faces.component._DeltaStateHelper.eval(_DeltaStateHelper.java:246)
    at javax.faces.component.UIOutput.getValue(UIOutput.java:67)
    at javax.faces.component.UIInput.getValue(UIInput.java:150)
    at org.apache.myfaces.shared.renderkit.RendererUtils.getValue(RendererUtils.java:505)
    at org.apache.myfaces.shared.renderkit.RendererUtils.getStringValue(RendererUtils.java:331)
    at org.apache.myfaces.shared.renderkit.html.HtmlTextRendererBase.renderInputBegin(HtmlTextRendererBase.java:197)
    at org.apache.myfaces.shared.renderkit.html.HtmlTextRendererBase.renderInput(HtmlTextRendererBase.java:186)
    at org.apache.myfaces.shared.renderkit.html.HtmlTextRendererBase.encodeEnd(HtmlTextRendererBase.java:75)
    at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:580)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:762)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:758)
    at org.apache.myfaces.shared.view.JspViewDeclarationLanguageBase.actuallyRenderView(JspViewDeclarationLanguageBase.java:362)
    at org.apache.myfaces.shared.view.JspViewDeclarationLanguageBase.renderView(JspViewDeclarationLanguageBase.java:199)
    at org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:285)
    at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:115)
    at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:241)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:199)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
Caused by: com.google.inject.ProvisionException: Guice provision errors:

1) Error injecting constructor, java.lang.NoClassDefFoundError: Could not initialize class com.alvazan.orm.api.z8spi.meta.DboTableMeta
  at com.alvazan.orm.impl.meta.data.MetaClassInheritance.<init>(MetaClassInheritance.java:25)
  while locating com.alvazan.orm.impl.meta.data.MetaClassInheritance

1 error
    at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:987)
    at com.alvazan.orm.impl.meta.data.MetaInfo.findOrCreate(MetaInfo.java:58)
    at com.alvazan.orm.impl.meta.scan.ScannerForClass.addClass(ScannerForClass.java:59)
    at com.alvazan.orm.layer0.base.MyClassAnnotationDiscoveryListener.scanClass(MyClassAnnotationDiscoveryListener.java:42)
    ... 63 more
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.alvazan.orm.api.z8spi.meta.DboTableMeta
    at com.alvazan.orm.impl.meta.data.MetaAbstractClass.<init>(MetaAbstractClass.java:17)
    at com.alvazan.orm.impl.meta.data.MetaClassInheritance.<init>(MetaClassInheritance.java:25)
    at com.alvazan.orm.impl.meta.data.MetaClassInheritance$$FastClassByGuice$$9298a112.newInstance(<generated>)
    at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40)
    at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:60)
    at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:85)
    at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
    at com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:978)
    at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024)
    at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:974)
    ... 66 more

ありがとう !

アンドレ

4

1 に答える 1

1

わかりました、実際には2つの別々の問題が進行中です

  1. なぜあなたは2番目のスキャンを受けているのですか
  2. NoClassDefFoundError

最初に NoClassDefFoundError に取り組みましょう。気分を害さないでください、しかし、私はあなたのレベルがわからないので、基本から始めて、ワークアップするつもりです。

  1. NoClassDefError または基本的にhttp://docs.oracle.com/javase/6/docs/api/java/lang/NoClassDefFoundError.htmlが表示されます
  2. jarが見つからない場合に発生する可能性があることはわかっていますが、コードでは、とにかく同じjarにあるはずの別のクラスから呼び出されていることがわかります
  3. このエラーが発生する別の場合は、何らかのフレームワークによって新しく作成されたクラスローダーにいる場合です
  4. この行に com.s1mbi0se.dmp.da.dao.PlayOrmConfiguration.init(PlayOrmConfiguration.java:45) に次のような行を追加する必要があります

    クラス temp = DboColumnMeta.class クラス temp2 = MetaAbstractClass.class temp.getSimpleName(); temp2.​​getSimpleName();

そのクラスがコードに表示されない場合、これはもちろん、コードがアクセスできないという問題です。これで合格か不合格か?

重大な問題ではない問題 #1 にジャンプしましょう。最新バージョンでは、if(log.isDebugEnabled()) savePreviousTrace() を追加したので、両方のトレースを取得できます。時間があれば、git からチェックアウトして、Windows の場合は「./gradlew build」または「gradle.bat build」を実行できます。

コードの下で失敗している場合、上記の行は「失敗するはず」なので、番号2のステータスを教えてください。

ありがとう、ディーン

于 2013-02-14T21:01:46.633 に答える