ROS2 Java Примеры: com.intellij.openapi.externalSystem.model.ExternalSystemException: Невозможно вызвать метод split () для нулевого объекта - PullRequest
0 голосов
/ 30 апреля 2020

Я клонировал ROS2 Java примеров и пытался собрать их с помощью Gradle, используя Intelij, Gradle 6.3 и Java 14. Однако при импорте проекта возникает следующее исключение. Я завершил установку ROS2 и могу успешно запускать примеры в cpp и python. Я копирую полную трассировку стека. Версия ROS2 на моем компьютере - ros2-dashing-20200319- windows -amd64.

  • Исключение составляет: com.intellij.openapi.externalSystem.model.ExternalSystemException: Невозможно вызвать метод split () для нулевого объекта в org.jetbrains.plugins.gradle.model.ProjectImportAction.addBuildModels (ProjectImportAction. java: 272) в org.jetbrains.plugins.gradle.model.ProjectImportAction.execute (ProjectImportAction * 130). ) в org.jetbrains.plugins.gradle.model.ProjectImportAction.execute (ProjectImportAction. java: 56) в org.gradle.tooling.internal.consumer.connection.InternalBuildActionAdapter.execute (InternalBuildActionAdapter. *). org.gradle.tooling.internal.provider.runner.ClientProvidedPhasedActionRunner $ ActionRunningListener.runAction (ClientProvidedPhasedActionRunner. java: 120) в org.gradle.tooling.internal.provider.runner. 110) в org.gradle.tooling.internal.provider.runner .ClientProvidedPhasedActionRunner $ ActionRunningListener.buildFinished (ClientProvidedPhasedActionRunner. java: 104) в jdk.internal.reflect.GeneratedMethodAccessor39.invoke (Неизвестный источник) в java. *: 43) в org.gradle.internal.dispatch.ReflectionDispatch.dispatch (ReflectionDispatch. java: 36) в org.gradle.internal.dispatch.ReflectionDispatch.dispatch (ReflectionDispatch. java: 24) в org.gradle .internal.event.DefaultListenerManager $ ListenerDetails.dispatch (DefaultListenerManager. java: 382) в org.gradle.internal.event.DefaultListenerManager $ ListenerDetails.dispatch (DefaultListenerManager. java: 364) в org. .AbstractBroadcastDispatch.dispatch (AbstractBroadcastDispatch. java: 58) в org.gradle.internal.event.DefaultListenerManager $ EventBroadcast $ ListenerDispatch.dispatch (DefaultListenerManager. java: 352) в org. EventLBerg. $ ListenerDispatch.dispatch (DefaultListenerManager. java: 339) в org.gradle.internal.event.AbstractBroadcastDispatch.dispatch (AbstractBroadcastDispatch. java: 42) в org.gradle.internal.event.BroadcastDispatch (SingletonDispatch $ Singleton). java: 231) в org.gradle.internal.event.BroadcastDispatch $ SingletonDispatch.dispatch (BroadcastDispatch. java: 150) в org.gradle.internal.event.AbstractBroadcastDispatch.dispatch (AbstractBroadcastDispatch. * 5834): в org.gradle.internal.event.BroadcastDispatch $ CompositeDispatch.dispatch (BroadcastDispatch. java: 325) по адресу org.gradle.internal.event.BroadcastDispatch $ CompositeDispatch.dispatch (BroadcastDispatch. java: 23grag) .internal.event.ListenerBroadcast.dispatch (ListenerBroadcast. java: 141) в org.gradle.internal.event.ListenerBroadcast.dispatch (ListenerBroadcast. java: 37) в org.gradle.internal.dispatch.ProxyDispatchingler. .invoke (ProxyDispatchAdapter. java: 94) на com.sun.proxy. $ Proxy18.bui ldFinished (Неизвестный источник) в org.gradle.initialization.DefaultGradleLauncher.finishBuild (DefaultGradleLauncher. java: 184) в org.gradle.initialization.DefaultGradleLauncher.finishBuild (DefaultGradleLauncher. * 127g): at at. invocation.GradleBuildController $ 1.create (GradleBuildController. java: 75) в org.gradle.internal.invocation.GradleBuildController $ 1.create (GradleBuildController. java: 67) в org.gradle.aultWorks DefaultWorkerLeaseService. java: 189) в org.gradle. internal.work.StopShieldingWorkerLeaseService.withLocks (StopShieldingWorkerLeaseService. java: 40) в org.gradle.internal.invocation.GradleBuildController.doBuild (GradleBuildController. * 1046r). GradleBuildController. java: 56) в org.gradle.tooling.internal.provider.runner.ClientProvidedPhasedActionRunner.run (ClientProvidedPhasedActionRunner. java: 60) в org.gradle.launcher.exe c Объединение с армией . java: 35) в org.gradle.launcher.exe c .ChainingBuildActionRunner.run (ChainingBuildActionRunner. java: 35) в org.gradle.launcher.exe c .BuildOutcomeReportingBuildActionRunner.run. 1054 *: 63) в org.gradle.tooling. 39) в орг.гралде. launcher.exe c .RunAsBuildOperationBuildActionRunner $ 3.call (RunAsBuildOperationBuildActionRunner. java: 51) в org.gradle.launcher.exe c .RunAsBuildOperationBuildActionRunner $ 3.call (RunAsBuild 10). internal.operations.DefaultBuildOperationExecutor $ CallableBuildOperationWorker.execute (DefaultBuildOperationExecutor. java: 416) по адресу org.gradle.internal.operations.DefaultBuildOperationExecutor $ CallableBuildOperationWorker.execute. DefaultBuildOperationExecutor $ 1.execute (DefaultBuildOperationExecutor. java: 165) в org.gradle.internal.operations.DefaultBuildOperationExecutor.execute (DefaultBuildOperationExecutor. java: 250) в org.gradle.internal.operations.Defec .UperationOutor. 1066 *: 158) в org.gradle.internal.operations.DefaultBuildOperationExecutor.call (DefaultBuildOperationExecutor. java: 102) в org.gradle.internal. operations.DelegatingBuildOperationExecutor.call (DelegatingBuildOperationExecutor. java: 36) в org.gradle.launcher.exe c .RunAsBuildOperationBuildActionRunner.run (RunAsBuildOperationBuildActionRunner. java: 45) или InProcessBuildActionExecuter $ 1.transform (InProcessBuildActionExecuter. java: 50) в org.gradle.launcher.exe c .InProcessBuildActionExecuter $ 1.transform (InProcessBuildActionExecuter. java: 47) в org.otternal.Soft (DefaultRootBuildState. java: 80) по адресу org.gradle.launcher.exe c .InProcessBuildActionExecuter.execute (InProcessBuildActionExecuter. java: 47) по адресу org.gradle.launcher.exe c .InProcessBuildAecuTecureUctionExecutionInecu.Exec. . java: 31) в org.gradle.launcher.exe c .BuildTreeScopeBuildActionExecuter.execute (BuildTreeScopeBuildActionExecuter. java: 42) в org.gradle.launcher.exe c .BuildTreeScopeBuildAecuExecuBuildActionExecu.u.Uu.U 1083 *: 28) в или g.gradle. tooling.internal.provider.SubscribeableBuildActionExecuter.execute (SubscribeableBuildActionExecuter. java: 60) в org.gradle.tooling.internal.provider.SubscribeableBuildActionExecuter.execute (SubscribeableBuildActionExecuter.). обеспечитьr.SessionScopeBuildActionExecuter.execute (SessionScopeBuildActionExecuter. java: 68) в org.gradle.tooling.internal.provider.SessionScopeBuildActionExecuter.execute (SessionScopeBuildActionExecuter. * 10. выполнить (GradleThreadBuildActionExecuter. java: 37) в org.gradle. tooling.internal.provider.GradleThreadBuildActionExecuter.execute (GradleThreadBuildActionExecuter. java: 26) в org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute * 43.инагл. provider.ParallelismConfigurationBuildActionExecuter.execute (ParallelismConfigurationBuildActionExecuter. java: 29) в org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute (StartParamsValidatingActionExg. execute (StartParamsValidatingActionExecuter. java: 32) по адресу org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute (SessionFailureReportingActionExecuter. java: 55) по адресу org.gradle.toileExporture.tering.porting (). java: 41) в org.gradle.tooling.internal.provider.SetupLoggingActionExecute r.execute (SetupLoggingActionExecuter. java: 48) в org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute (SetupLoggingActionExecuter. java: 32) в org.gradle.launcher.daemon.server.exe c .ExecuteBuild.doBuild (ExecuteBuild. java: 68) в org.gradle.launcher.daemon.server.exe c .BuildCommandOnly.execute (BuildCommandOnly. java: 37) в org.gradle.launcher.daemon. server.api.DaemonCommandExecution.proceed (DaemonCommandExecution. java: 104) в org.gradle.launcher.daemon.server.exe c .WatchForDisconnection.execute (WatchForDisconnection. java: 39) в org.gradle.launcher .daemon.server.api.DaemonCommandExecution.proceed (DaemonCommandExecution. java: 104) в org.gradle.launcher.daemon.server.exe c .ResetDeprecationLogger.execute (ResetDeprecationLogger. java: 29 at) или gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed (DaemonCommandExecution. java: 104) в org.gradle.launcher.daemon.server.exe c .RequestStopIfSingleUsedDaemon.execute (RequestStopIfS) UsedDaemon. java: 35) в org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed (DaemonCommandExecution. java: 104) в org.gradle.launcher.daemon.server.exe c .ForwardClientInput $ 2.create (ForwardClientInput. java: 78) в org.gradle.launcher.daemon.server.exe c .ForwardClientInput $ 2.create (ForwardClientInput. java: 75) в org.gradle.util.Swapper. swap (Swapper. java: 38) в org.gradle.launcher.daemon.server.exe c .ForwardClientInput.execute (ForwardClientInput. java: 75) в org.gradle.launcher.daemon.server.api .DaemonCommandExecution.proceed (DaemonCommandExecution. java: 104) в org.gradle.launcher.daemon.server.exe c .LogAndCheckHealth.execute (LogAndCheckHealth. java: 55) в org.gradle.laher. server.api.DaemonCommandExecution.proceed (DaemonCommandExecution. java: 104) в org.gradle.launcher.daemon.server.exe c .LogToClient.doBuild (LogToClient. java: 63) в org.gradle.launcher .daemon.server.exe c .BuildCommandOnly.execute (BuildCommandOnly java:. 37) в org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed (DaemonCommandExecution. java: 104) в org.gradle.launcher.daemon.server.exe c .EstablishBuildEnvironment.doBuild (EstablishBuild). : 82) в org.gradle.launcher.daemon.server.exe c .BuildCommandOnly.execute (BuildCommandOnly. java: 37) в org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed (DaemonCommand java: 104) в org.gradle.launcher.daemon.server.exe c .StartBuildOrRespondWithBusy $ 1.run (StartBuildOrRespondWithBusy. java: 52) в org.gradle.launcher.daemon.server.DaemonState $ (DaemonStateCoordinator. java: 297) в org.gradle.internal.concurrent.ExecutorPolicy $ CatchAndRecordFailures.onExecute (ExecutorPolicy. java: 64) в org.gradle.internal.concurrent.ManagedExecutorImpl $. *: 48) в орг. gradle.internal.concurrent.ThreadFactoryImpl $ ManagedThreadRunnable.run (ThreadFactoryImpl. java: 56) java .lang.NullPointerException: невозможно вызвать метод split () для нулевого объекта в org.codehaus. groovy .runtime.NullOject. invokeMethod (NullObject. java: 91) в org.codehaus. groovy .runtime.callsite.PogoMetaClassSite.call (PogoMetaClassSite. java: 43) в org.codehaus. groovy .runtime.callsite.Call. defaultCall (CallSiteArray. java: 47) в org.codehaus. groovy .runtime.callsite.NullCallSite.call (NullCallSite. java: 34) в org.codehaus. groovy .runtime.callsite.CallSiteArray. defaultCall (CallSiteArray. java: 47) в org.codehaus. groovy .runtime.callsite.PogoMetaClassSite.call (PogoMetaClassSite. java: 52) в org.codehaus. groovy .runtime.callsite.AbstractCallSite.AbstractCallSite. вызов (AbstractCallSite. java: 127) для org.ros2.tools.gradle.JavaAmentPluginExtension.updateJavaDependencies (JavaAmentPluginExtension. groovy: 58) для jdk.internal.reflect.GeneratedMethodAccessor81.invoke 11 (неизвестный источник). основание / jdk.inter nal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl. java: 43) в java .base / java .lang.reflect.Method.invoke (Метод. java: 564) в org.codehaus. groovy .reflection.CachedMethod.invoke (CachedMethod. java: 101) в groovy .lang.MetaMethod.doMethodInvoke (MetaMethod. java: 323) в groovy .lang.MetaClassImpl.inlkeMetho (67MetChomeItolass 11). *: 1217) at org.codehaus. groovy .runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN (ScriptBytecodeAdapter. java: 94) в org.ros2.tools.gradle.JavaAmentPluginExtension.this $ dist $ invoke 1170 $ Java. ) в org.ros2.tools.gradle.JavaAmentPluginExtension $ 1.methodMissing (JavaAmentPluginExtension. groovy) в jdk.internal.reflect.GeneratedMethodAccessor80.invoke (Неизвестный источник) в java .base / jdk.internal.ormp.Imp. invoke (DelegatingMethodAccessorImpl. java: 43) в java .base / java .lang.reflect.Method.invoke (Method. java: 564) в org.codehaus. groovy .reflection.CachedMethod. Invoke (CachedMethod. * 1 178 *: 101) в groovy .lang.MetaClassImpl.invokeMissingMethod (MetaClassImpl. java: 958) в groovy .lang.MetaClassImpl.invokePropertyOrMissing (MetaClassImpl. java 83): 1286): 1286). MetaClassImpl.invokeMethod (MetaClassImpl. java: 1219) в org.codehaus. groovy .runtime.callsite.PogoMetaClassSite.callCurrent (PogoMetaClassSite. java: 64) в org.codecite. AbstractCallSite.callCurrent (AbstractCallSite. java: 160) в org.ros2.tools.gradle.JavaAmentPluginExtension $ 1.beforeResolve (JavaAmentPluginExtension. groovy: 69) в jdk.internal.reflect.Generated * MetohodAccessor79.inknown (неизвестно). 1190 * .base / jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl. java: 43) в java .base / java .lang.reflect.Method.invoke (Метод. java: 564) в org.gradle.internal.dispatch.ReflectionDispatch.dispatch (ReflectionDispatch. java: 36) в org.gradle.internal.dispatch.ReflectionDispatch.dispatch (ReflectionDispatch. java: 24) в org.gradle.internal.event .Defau ltListenerManager $ ListenerDetails.dispatch (DefaultListenerManager. java: 382) в org.gradle.internal.event.DefaultListenerManager $ ListenerDetails.dispatch (DefaultListenerManager. java: 364) в org.gradle.isis.batch.vent.patch.vent. AbstractBroadcastDispatch. java: 58) в org.gradle.internal.event.DefaultListenerManager $ EventBroadcast $ ListenerDispatch.dispatch (DefaultListenerManager. java: 352) в org.gradle.internal.event.DefaultListenerManager $ EventBroadpatch ($ EventBroadcast DefaultListenerManager. java: 339) в org.gradle.internal.event. 231) в org.gradle.internal.event.BroadcastDispatch $ SingletonDispatch.dispatch (BroadcastDispatch. java: 150) в org.gradle.internal.event.ListenerBroadcast.dispatch (ListenerBroadcast. java: 141) в org.gradle.internal.event.ListenerBroadcast.dispatch (ListenerBroadcast. java: 37) в org .gradle.internal.dispatch.ProxyDispatchAdapter $ DispatchingInvocationHandler.invoke (ProxyDispatchAdapter. java: 94) в com.sun.proxy. $ Proxy29.beforeResolve (Неизвестный источник) в org.gradle.api.internal.artifefaultconf .performPreResolveActions (DefaultConfiguration. java: 674) в org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.access $ 400 (DefaultConfiguration. java: 141) в org.gradle.api.internal.artifacts.configurations. DefaultConfiguration $ 1.run (DefaultConfiguration. java: 618) в org.gradle.internal.operations.DefaultBuildOperationExecutor $ RunnableBuildOperationWorker.execute (DefaultBuildOperationExecutor. java: 402) в org.gradle.internal.operationerO (DefaultBuildOperationExecutor. java : 394) в org.gradle.internal.operations.DefaultBuildOperationExecutor $ 1.execute (DefaultBuildOperationExecutor. java: 165) в org.gradle.internal.operations.DefaultBuildOperationExecutor.execute (DefaultBuildOperationExecutor. * 1214g.grag): .internal.operations.DefaultBuildOperationExecutor.execute (DefaultBuildOperationExecutor. java: 158) в org.gradle.internal.operations.DefaultBuildOperationExecutor.run (DefaultBuildOperationExecutor. java: 92) в org.gradle.OperationExoperationo (DelegatingBuildOperationExecutor. java: 31) по адресу org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.resolveGraphIfRequired (DefaultConfiguration. java: 611) по адресу org.gradle.api.internal.artifacts.configurations.Dlambault. $ resolExclusively $ 4 (DefaultConfiguration. java: 592) в org.gradle.api.internal.project.DefaultProjectStateRegistry $ SafeExclusiveLockImpl.withLock (DefaultProjectStateRegistry. java: 289) в org.gradle.api.internal.ar tifacts.configurations.DefaultConfiguration.resolveExclusively (DefaultConfiguration. java: 590) в org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.resolveToStateOrLater (DefaultConfiguration. java: 576) в org.internal. artifacts.configurations.DefaultConfiguration.getResolvedConfiguration (DefaultConfiguration. java: 554) в org.gradle.api.internal.artifacts.configurations.DefaultConfiguration_Decorated.getResolvedConfiguration (Неизвестный источник) в org.jetbrains.plutoololvegra. .DependencyResolverImpl.resolveDependencies (DependencyResolverImpl. java: 153) по адресу org.jetbrains.plugins.gradle.tooling.util.resolve.DependencyResolverImpl.getDependencies (DependencyResolg. .util.resolve.DependencyResolverImpl.resolveDependencies (DependencyResolverImpl. java: 131) в org.jetbrains.plugins.gradle.tooling.util.DependencyResolver $ resolDependencies.call (Неизвестный источник) в org.pl. adle.tooling.builder.ExternalProjectBuilderImpl $ _getSourceSets_closure1.doCall (ExternalProjectBuilderImpl. groovy: 440) в java .base / jdk.internal.reflect.NativeMethodAccessorImpl.invokease * 12-й дочерний метод (родной). .reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl. java: 62) в java .base / jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl. 43 *. 1234 *) в 1232. .lang.reflect.Method.invoke (Метод. java: 564) в org.codehaus. groovy .reflection.CachedMethod.invoke (CachedMethod. java: 101) в groovy .lang.MetaMethod.doMethodInvoke (MetaMethod. java: 323) в org.codehaus. groovy .runtime.metaclass.ClosureMetaClass.invokeMethod (ClosureMetaClass. java: 263) в groovy .lang.MetaClassImpl.invokeMlasshota. : 1041) в groovy .lang.Closure.call (Закрытие. java: 405) в groovy. lang.Closure.call (Closure. java: 421) в org.gradle.util.ClosureBackedAction.execute (ClosureBackedAction. java: 71) в org.gradle.util.ConfigureUtil.configureTarget (ConfigureUtil. java: 154) в org.gradle.util.ConfigureUtil.configure (ConfigureUtil. java: 105) в org.gradle.util.ConfigureUtil $ WrappedConfigureAction.execute (ConfigureUtil. java: 166) в org.gradle.api.internal .DefaultDomainObjectCollection.all (DefaultDomainObjectCollection. java: 163) в org.gradle.api.internal.DefaultDomainObjectCollection.all (DefaultDomainObjectCollection. java: 198) в org.gradle.api.DomainObjectCollection $ $ ) в org.jetbrains.plugins.gradle.tooling.builder.ExternalProjectBuilderImpl.getSourceSets (ExternalProjectBuilderImpl. groovy: 240) в org.jetbrains.plugins.gradle.tooling.builder. ) в org.jetbrains.plugins.gradle.tooling.builder.ExternalProjectBuilderImpl.buildAll (ExternalProjectBuilderImpl. groovy: 70) в o rg.jetbrains.plugins.gradle.tooling.internal.ExtraModelBuilder.buildAll (ExtraModelBuilder. java: 101) в org.gradle.tooling.provider.model.internal.DefaultToolingModelBuilderRegistryMol : 104) at org.gradle.api.internal.project.DefaultProjectStateRegistry.withLenientState (DefaultProjectStateRegistry. java: 134) по адресу org.gradle.tooling.provider.model.internal.DefaultToolingModelBuilderRegistry $ BulloLoGoToLoToLoOUWR_ToWeOrWR_OrWeWeOrWR *: 100) в org.gradle.internal.operations.DefaultBuildOperationExecutor $ CallableBuildOperationWorker.execute (DefaultBuildOperationExecutor. java: 416) в org.gradle.internal.operations.DefaultBuildOperationExecutor в ................................................. ............................................. org.gradle.internal .concurrent.Threa dFactoryImpl $ ManagedThreadRunnable.run (ThreadFactoryImpl. java: 56) в java .base / java .lang.Thread.run (Thread. java: 832)
...