Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-1790

[DUPLICATE] Concurrent modification exception at startup

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.15.1
    • 1.16.0
    • Core
    • None

    Description

      I have occasionally next exception during startup

      
      1) Error in custom provider, java.lang.RuntimeException: An error occurred while executing code in a temporary session
        at org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSessionFactory(IsisInjectModule.java:109)
        at org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSessionFactory(IsisInjectModule.java:109)
        while locating org.apache.isis.core.runtime.system.session.IsisSessionFactory
          for field at org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.isisSessionFactory(IsisWicketApplication.java:155)
        while locating domainapp.webapp.BgwWebApplication
      
      1 error
      	at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:455)
      	at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:353)
      	at org.eclipse.jetty.servlet.FilterHolder.initialize(FilterHolder.java:139)
      	at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:725)
      	at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:348)
      	at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1480)
      	at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1442)
      	at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:799)
      	at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:261)
      	at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:540)
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
      	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131)
      	at org.eclipse.jetty.server.Server.start(Server.java:452)
      	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:105)
      	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
      	at org.eclipse.jetty.server.Server.doStart(Server.java:419)
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
      	at org.apache.isis.core.webserver.WebServer.start(WebServer.java:179)
      	at org.apache.isis.core.webserver.WebServer.run(WebServer.java:131)
      	at org.apache.isis.core.webserver.WebServer.main(WebServer.java:98)
      	at org.apache.isis.WebServer.main(WebServer.java:25)
      Caused by: com.google.inject.ProvisionException: Unable to provision, see the following errors:
      
      1) Error in custom provider, java.lang.RuntimeException: An error occurred while executing code in a temporary session
        at org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSessionFactory(IsisInjectModule.java:109)
        at org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSessionFactory(IsisInjectModule.java:109)
        while locating org.apache.isis.core.runtime.system.session.IsisSessionFactory
          for field at org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.isisSessionFactory(IsisWicketApplication.java:155)
        while locating domainapp.webapp.BgwWebApplication
      
      1 error
      	at com.google.inject.internal.Errors.throwProvisionExceptionIfErrorsExist(Errors.java:486)
      	at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:67)
      	at com.google.inject.internal.InjectorImpl.injectMembers(InjectorImpl.java:987)
      	at org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.init(IsisWicketApplication.java:368)
      	at domainapp.webapp.BgwWebApplication.init(BgwWebApplication.java:41)
      	at org.apache.wicket.Application.initApplication(Application.java:953)
      	at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:429)
      	... 20 more
      Caused by: java.lang.RuntimeException: An error occurred while executing code in a temporary session
      	at org.apache.isis.core.runtime.system.session.IsisSessionFactory.doInSession(IsisSessionFactory.java:355)
      	at org.apache.isis.core.runtime.system.session.IsisSessionFactory.doInSession(IsisSessionFactory.java:319)
      	at org.apache.isis.core.runtime.system.session.IsisSessionFactory.doInSession(IsisSessionFactory.java:306)
      	at org.apache.isis.core.runtime.system.session.IsisSessionFactoryBuilder.buildSessionFactory(IsisSessionFactoryBuilder.java:201)
      	at org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSessionFactory(IsisInjectModule.java:118)
      	at org.apache.isis.core.runtime.runner.IsisInjectModule$$FastClassByGuice$$a813f90e.invoke(<generated>)
      	at com.google.inject.internal.ProviderMethod$FastClassProviderMethod.doProvision(ProviderMethod.java:264)
      	at com.google.inject.internal.ProviderMethod$Factory.provision(ProviderMethod.java:401)
      	at com.google.inject.internal.ProviderMethod$Factory.get(ProviderMethod.java:376)
      	at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
      	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092)
      	at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
      	at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:194)
      	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
      	at com.google.inject.internal.SingleFieldInjector.inject(SingleFieldInjector.java:54)
      	at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:132)
      	at com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:93)
      	at com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:80)
      	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1085)
      	at com.google.inject.internal.MembersInjectorImpl.injectAndNotify(MembersInjectorImpl.java:80)
      	at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:62)
      	... 25 more
      Caused by: java.util.ConcurrentModificationException
      	at java.util.HashMap$HashIterator.nextNode(HashMap.java:1437)
      	at java.util.HashMap$ValueIterator.next(HashMap.java:1466)
      	at java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1042)
      	at org.apache.isis.core.metamodel.facets.object.domainobject.DomainObjectAnnotationFacetFactory$1.validate(DomainObjectAnnotationFacetFactory.java:555)
      	at org.apache.isis.core.metamodel.facets.object.domainobject.DomainObjectAnnotationFacetFactory$1.visit(DomainObjectAnnotationFacetFactory.java:544)
      	at org.apache.isis.core.metamodel.specloader.validator.MetaModelValidatorVisiting.validateSpecs(MetaModelValidatorVisiting.java:81)
      	at org.apache.isis.core.metamodel.specloader.validator.MetaModelValidatorVisiting.validateAll(MetaModelValidatorVisiting.java:57)
      	at org.apache.isis.core.metamodel.specloader.validator.MetaModelValidatorVisiting.validate(MetaModelValidatorVisiting.java:48)
      	at org.apache.isis.core.metamodel.specloader.validator.MetaModelValidatorComposite.validate(MetaModelValidatorComposite.java:60)
      	at org.apache.isis.core.metamodel.specloader.SpecificationLoader.validate(SpecificationLoader.java:261)
      	at org.apache.isis.core.metamodel.specloader.SpecificationLoader.validateAndAssert(SpecificationLoader.java:251)
      	at org.apache.isis.core.runtime.system.session.IsisSessionFactoryBuilder$1.run(IsisSessionFactoryBuilder.java:206)
      	at org.apache.isis.core.runtime.system.session.IsisSessionFactory$1.call(IsisSessionFactory.java:322)
      	at org.apache.isis.core.runtime.system.session.IsisSessionFactory$1.call(IsisSessionFactory.java:319)
      	at org.apache.isis.core.runtime.system.session.IsisSessionFactory.doInSession(IsisSessionFactory.java:353)
      	... 45 more
      

      Attachments

        Issue Links

          Activity

            People

              danhaywood Daniel Keir Haywood
              niv Vladimir Nisevic
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: