Hi, Use "mvn dependency:tree" in the module which pom.xml is being changed. Also in your application. This way you will see which version is in the classpath and how it is referenced.
Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Dec 24, 2014 at 7:24 AM, Branham, Jeremy [HR] < jeremy.d.bran...@sprint.com> wrote: > The line numbers didn't match because a different version of the class was > being loaded. > I added a null check that solved the issue, but the code running hadn't > picked up the change yet. > > > Jeremy D. Branham > Tel: **DOTNET > > > -----Original Message----- > From: Branham, Jeremy [HR] > Sent: Tuesday, December 23, 2014 11:04 PM > To: users@isis.apache.org > Subject: Working on a branch with latest datanucleus > > Sorry for the massive stack trace, but I was looking for some pointers on > what might be happing here. > I'm having a bit of difficulty debugging because the line numbers reported > don't seem to match the source files, and even when stepping through the > code. [maybe something wrong in my dev env] > > I'm working on a branch with a newer datanucleus support [4.0.4] and seems > to be an issue with the spec loader. > I understand if there is no support for this yet. > > > 22:52:01,445 [Reflections main INFO ] Reflections took > 421 ms to scan 7 urls, producing 148 keys and 716 values > 22:52:01,523 [ServiceInstantiator main DEBUG] loading class for > service: dom.simple.SimpleObjects > 22:52:01,523 [ServiceInstantiator main DEBUG] loading class for > service: fixture.simple.SimpleObjectsFixturesService > 22:52:01,523 [ServiceInstantiator main DEBUG] loading class for > service: org.apache.isis.applib.annotation.Bulk$InteractionContext > 22:52:01,571 [ServiceInstantiator main DEBUG] loading class for > service: > org.apache.isis.applib.services.bookmark.BookmarkHolderActionContributions > 22:52:01,571 [ServiceInstantiator main DEBUG] loading class for > service: > org.apache.isis.applib.services.classdiscovery.ClassDiscoveryServiceUsingReflections > 22:52:01,571 [ServiceInstantiator main DEBUG] loading class for > service: org.apache.isis.applib.services.clock.ClockService > 22:52:01,571 [ServiceInstantiator main DEBUG] loading class for > service: org.apache.isis.applib.services.command.CommandContext > 22:52:01,571 [ServiceInstantiator main DEBUG] loading class for > service: org.apache.isis.applib.services.queryresultscache.QueryResultsCache > 22:52:01,571 [ServiceInstantiator main DEBUG] loading class for > service: org.apache.isis.applib.services.scratchpad.Scratchpad > 22:52:01,571 [ServiceInstantiator main DEBUG] loading class for > service: > org.apache.isis.core.metamodel.services.bookmarks.BookmarkServiceDefault > 22:52:01,571 [ServiceInstantiator main DEBUG] loading class for > service: > org.apache.isis.core.metamodel.services.container.DomainObjectContainerDefault > 22:52:01,571 [ServiceInstantiator main DEBUG] loading class for > service: > org.apache.isis.core.runtime.services.background.BackgroundServiceDefault > 22:52:01,571 [ServiceInstantiator main DEBUG] loading class for > service: org.apache.isis.core.runtime.services.memento.MementoServiceDefault > 22:52:01,571 [ServiceInstantiator main DEBUG] loading class for > service: > org.apache.isis.core.runtime.services.xmlsnapshot.XmlSnapshotServiceDefault > 22:52:01,571 [ServiceInstantiator main DEBUG] loading class for > service: org.apache.isis.core.wrapper.WrapperFactoryDefault > 22:52:01,587 [ServiceInstantiator main DEBUG] loading class for > service: > org.apache.isis.objectstore.jdo.applib.service.exceprecog.ExceptionRecognizerCompositeForJdoObjectStore > 22:52:01,618 [ServiceInstantiator main DEBUG] loading class for > service: > org.apache.isis.objectstore.jdo.datanucleus.service.eventbus.EventBusServiceJdo > 22:52:01,618 [ServiceInstantiator main DEBUG] loading class for > service: > org.apache.isis.objectstore.jdo.datanucleus.service.support.IsisJdoSupportImpl > 22:52:01,618 [ServiceInstantiator main DEBUG] loading class for > service: > org.apache.isis.viewer.restfulobjects.rendering.service.RepresentationServiceForRestfulObjects > 22:52:01,712 [ServicesInjectorDefault main DEBUG] injected > org.apache.isis.core.metamodel.services.container.DomainObjectContainerDefault@397c8a21 > into SimpleObjects@529d935d[] > 22:52:01,712 [ServicesInjectorDefault main DEBUG] injected > org.apache.isis.core.runtime.services.memento.MementoServiceDefault@6cdd377c > into SimpleObjectsFixturesService@2f65e5ba[] > 22:52:01,712 [ServicesInjectorDefault main DEBUG] injected > org.apache.isis.core.metamodel.services.bookmarks.BookmarkServiceDefault@4acd2ea5 > into SimpleObjectsFixturesService@2f65e5ba[] > 22:52:01,712 [ServicesInjectorDefault main DEBUG] injected > org.apache.isis.applib.services.classdiscovery.ClassDiscoveryServiceUsingReflections@64b17900 > into SimpleObjectsFixturesService@2f65e5ba[] > 22:52:01,712 [ServicesInjectorDefault main DEBUG] injected > org.apache.isis.core.metamodel.services.container.DomainObjectContainerDefault@397c8a21 > into SimpleObjectsFixturesService@2f65e5ba[] > 22:52:01,712 [ServicesInjectorDefault main DEBUG] injected > org.apache.isis.core.metamodel.services.bookmarks.BookmarkServiceDefault@4acd2ea5 > into BookmarkHolderActionContributions@3f7f22a5[] > 22:52:01,712 [ServicesInjectorDefault main DEBUG] injected > org.apache.isis.core.metamodel.services.container.DomainObjectContainerDefault@397c8a21 > into ClassDiscoveryServiceUsingReflections@64b17900[] > 22:52:01,712 [ServicesInjectorDefault main DEBUG] injected > org.apache.isis.core.wrapper.WrapperFactoryDefault@33bb9f34 into > BookmarkServiceDefault@4acd2ea5[] > 22:52:01,712 [ServicesInjectorDefault main DEBUG] injected > org.apache.isis.core.wrapper.WrapperFactoryDefault@33bb9f34 into > DomainObjectContainerDefault@397c8a21[] > 22:52:01,712 [ServicesInjectorDefault main DEBUG] injected > org.apache.isis.core.metamodel.services.bookmarks.BookmarkServiceDefault@4acd2ea5 > into BackgroundServiceDefault@4898c8f9[] > 22:52:01,712 [ServicesInjectorDefault main DEBUG] injected > org.apache.isis.core.runtime.services.ServiceInstantiator$2@26b278ab into > BackgroundServiceDefault@4898c8f9[] > 22:52:01,727 [ObjectReflectorDefault main DEBUG] initialising > org.apache.isis.core.metamodel.specloader.ObjectReflectorDefault@1e6144db > 22:52:01,727 [ServicesInjectorDefault main DEBUG] injected > org.apache.isis.core.metamodel.services.container.DomainObjectContainerDefault@397c8a21 > into SimpleObjects@529d935d[] > 22:52:01,727 [ServicesInjectorDefault main DEBUG] injected > org.apache.isis.core.runtime.services.memento.MementoServiceDefault@6cdd377c > into SimpleObjectsFixturesService@2f65e5ba[] > 22:52:01,727 [ServicesInjectorDefault main DEBUG] injected > org.apache.isis.core.metamodel.services.bookmarks.BookmarkServiceDefault@4acd2ea5 > into SimpleObjectsFixturesService@2f65e5ba[] > 22:52:01,727 [ServicesInjectorDefault main DEBUG] injected > org.apache.isis.applib.services.classdiscovery.ClassDiscoveryServiceUsingReflections@64b17900 > into SimpleObjectsFixturesService@2f65e5ba[] > 22:52:01,727 [ServicesInjectorDefault main DEBUG] injected > org.apache.isis.core.metamodel.services.container.DomainObjectContainerDefault@397c8a21 > into SimpleObjectsFixturesService@2f65e5ba[] > 22:52:01,727 [ServicesInjectorDefault main DEBUG] injected > org.apache.isis.core.metamodel.services.bookmarks.BookmarkServiceDefault@4acd2ea5 > into BookmarkHolderActionContributions@3f7f22a5[] > 22:52:01,727 [ServicesInjectorDefault main DEBUG] injected > org.apache.isis.core.metamodel.services.container.DomainObjectContainerDefault@397c8a21 > into ClassDiscoveryServiceUsingReflections@64b17900[] > 22:52:01,727 [ServicesInjectorDefault main DEBUG] injected > org.apache.isis.core.wrapper.WrapperFactoryDefault@33bb9f34 into > BookmarkServiceDefault@4acd2ea5[] > 22:52:01,727 [ServicesInjectorDefault main DEBUG] injected > org.apache.isis.core.wrapper.WrapperFactoryDefault@33bb9f34 into > DomainObjectContainerDefault@397c8a21[] > 22:52:01,727 [ServicesInjectorDefault main DEBUG] injected > org.apache.isis.core.metamodel.services.bookmarks.BookmarkServiceDefault@4acd2ea5 > into BackgroundServiceDefault@4898c8f9[] > 22:52:01,727 [ServicesInjectorDefault main DEBUG] injected > org.apache.isis.core.runtime.services.ServiceInstantiator$2@26b278ab into > BackgroundServiceDefault@4898c8f9[] > 22:52:14,042 [ObjectSpecificationAbstract main DEBUG] Superclass > java.lang.Object > 22:52:14,152 [ObjectSpecificationAbstract main DEBUG] Superclass > java.lang.Object > 22:52:14,167 [IsisWicketApplication main ERROR] Failed to > initialize > com.google.inject.ProvisionException: Guice provision errors: > > 1) Error in custom provider, java.lang.NullPointerException > at > org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:132) > at > org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:132) > while locating org.apache.isis.core.runtime.system.IsisSystem > for field at > org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.system(IsisWicketApplication.java:138) > while locating webapp.SimpleApplication > > 1 error > at > com.google.inject.internal.Errors.throwProvisionExceptionIfErrorsExist(Errors.java:451) > at > com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:65) > at > com.google.inject.internal.InjectorImpl.injectMembers(InjectorImpl.java:944) > at > org.apache.isis.viewer.wicket.viewer.IsisWicketApplication.init(IsisWicketApplication.java:248) > at webapp.SimpleApplication.init(SimpleApplication.java:81) > at > org.apache.wicket.Application.initApplication(Application.java:823) > at > org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:424) > at > org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:351) > at > org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713) > at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) > at > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) > at > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518) > at > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) > at > org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) > at org.mortbay.jetty.Server.doStart(Server.java:224) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132) > at > org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:454) > at > org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:396) > at > org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210) > at > org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184) > at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152) > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555) > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:158) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) > at > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) > at > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) > at org.codehaus.classworlds.Launcher.main(Launcher.java:46) > Caused by: java.lang.NullPointerException > at > org.apache.isis.core.metamodel.specloader.classsubstitutor.ClassSubstitutor.getClass(ClassSubstitutor.java:54) > at > org.apache.isis.core.metamodel.specloader.classsubstitutor.ClassSubstitutor.getClass(ClassSubstitutor.java:55) > at > org.apache.isis.core.metamodel.specloader.specimpl.dflt.ObjectSpecificationDefault.introspectTypeHierarchyAndMembers(ObjectSpecificationDefault.java:146) > at > org.apache.isis.core.metamodel.specloader.ObjectReflectorDefault.introspectIfRequired(ObjectReflectorDefault.java:499) > at > org.apache.isis.core.metamodel.specloader.ObjectReflectorDefault.loadSpecificationForSubstitutedClass(ObjectReflectorDefault.java:400) > at > org.apache.isis.core.metamodel.specloader.ObjectReflectorDefault.internalLoadSpecification(ObjectReflectorDefault.java:378) > at > org.apache.isis.core.metamodel.specloader.ObjectReflectorDefault.loadSpecifications(ObjectReflectorDefault.java:415) > at > org.apache.isis.core.metamodel.specloader.ObjectReflectorDefault.loadSpecifications(ObjectReflectorDefault.java:428) > at > org.apache.isis.core.metamodel.specloader.specimpl.FacetedMethodsBuilder.representsAction(FacetedMethodsBuilder.java:455) > at > org.apache.isis.core.metamodel.specloader.specimpl.FacetedMethodsBuilder.findActionFacetedMethod(FacetedMethodsBuilder.java:404) > at > org.apache.isis.core.metamodel.specloader.specimpl.FacetedMethodsBuilder.findActionFacetedMethods(FacetedMethodsBuilder.java:388) > at > org.apache.isis.core.metamodel.specloader.specimpl.FacetedMethodsBuilder.findActionFacetedMethods(FacetedMethodsBuilder.java:367) > at > org.apache.isis.core.metamodel.specloader.specimpl.FacetedMethodsBuilder.getActionFacetedMethods(FacetedMethodsBuilder.java:343) > at > org.apache.isis.core.metamodel.specloader.specimpl.dflt.ObjectSpecificationDefault.createActions(ObjectSpecificationDefault.java:222) > at > org.apache.isis.core.metamodel.specloader.specimpl.dflt.ObjectSpecificationDefault.introspectTypeHierarchyAndMembers(ObjectSpecificationDefault.java:167) > at > org.apache.isis.core.metamodel.specloader.ObjectReflectorDefault.introspectIfRequired(ObjectReflectorDefault.java:499) > at > org.apache.isis.core.metamodel.specloader.ObjectReflectorDefault.loadSpecificationForSubstitutedClass(ObjectReflectorDefault.java:400) > at > org.apache.isis.core.metamodel.specloader.ObjectReflectorDefault.internalLoadSpecification(ObjectReflectorDefault.java:378) > at > org.apache.isis.core.metamodel.specloader.ObjectReflectorDefault.primeCache(ObjectReflectorDefault.java:269) > at > org.apache.isis.core.metamodel.specloader.ObjectReflectorDefault.initAndValidate(ObjectReflectorDefault.java:244) > at > org.apache.isis.core.metamodel.specloader.ObjectReflectorDefault.init(ObjectReflectorDefault.java:205) > at > org.apache.isis.core.runtime.system.session.IsisSessionFactoryDefault.init(IsisSessionFactoryDefault.java:192) > at > org.apache.isis.core.runtime.system.IsisSystemFixturesHookAbstract.init(IsisSystemFixturesHookAbstract.java:120) > at > org.apache.isis.core.runtime.runner.IsisInjectModule.provideIsisSystem(IsisInjectModule.java:133) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at > com.google.inject.internal.ProviderMethod.get(ProviderMethod.java:104) > at > com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40) > at > com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46) > at > com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031) > at > com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) > at com.google.inject.Scopes$1$1.get(Scopes.java:65) > at > com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40) > at > com.google.inject.internal.SingleFieldInjector.inject(SingleFieldInjector.java:53) > at > com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:110) > at > com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:75) > at > com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:73) > at > com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024) > at > com.google.inject.internal.MembersInjectorImpl.injectAndNotify(MembersInjectorImpl.java:73) > at > com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:60) > ... 50 more > 22:52:14,167 [WicketFilter main ERROR] The initialization > of an application with name 'WicketFilter' has failed. > com.google.inject.ProvisionException: Guice provision errors: > > > > ________________________________ > > This e-mail may contain Sprint proprietary information intended for the > sole use of the recipient(s). Any use by others is prohibited. If you are > not the intended recipient, please contact the sender and delete all copies > of the message. > > ________________________________ > > This e-mail may contain Sprint proprietary information intended for the > sole use of the recipient(s). Any use by others is prohibited. If you are > not the intended recipient, please contact the sender and delete all copies > of the message. >