JsonMappingException while getting control mode from URAdmin scipt

Hi!

I’m trying to run e-series 5.11.1 URsim remotely from a docker container (running nvidia/opengl image + openjdk-8), however, when trying to start-ursim.sh UR10 I get the following error:

06:48:56.533 **ERROR - Problem getting control mode from URAdmin script** {thread: AWT-EventQueue-0 , loggerClass: com.ur.polyscope.security.impl.cybersecurity.service.impl.ControlModeRepositoryImpl}
com.ur.polyscope.security.impl.cybersecurity.service.SecurityException: Exception occurred in URAdmin
	at com.ur.polyscope.security.impl.cybersecurity.service.impl.AbstractRepository.getState(AbstractRepository.java:37) ~[polyscope-security-impl-7.7.20.jar:?]
	at com.ur.polyscope.security.impl.cybersecurity.service.impl.ControlModeRepositoryImpl.getState(ControlModeRepositoryImpl.java:17) ~[polyscope-security-impl-7.7.20.jar:?]
	at com.ur.polyscope.security.impl.cybersecurity.service.impl.ControlModeRepositoryImpl.isRemoteControlActive(ControlModeRepositoryImpl.java:35) [polyscope-security-impl-7.7.20.jar:?]
	at com.ur.polyscope.safety.remotecontrol.RemoteControlConfiguration.isRemoteControlFilteringEnabled(RemoteControlConfiguration.java:51) [polyscope-internal-remotecontrol-10.11.107.jar:?]
	at com.ur.polyscope.safety.remotecontrol.RemoteControlImpl.<init>(RemoteControlImpl.java:52) [polyscope-internal-remotecontrol-10.11.107.jar:?]
	at com.ur.polyscope.safety.remotecontrol.RemoteControlImpl$$FastClassByGuice$$89ee47ce.newInstance(<generated>) [polyscope-internal-remotecontrol-10.11.107.jar:?]
	at com.google.inject.internal.DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:89) [guice-4.1.0.jar:?]
	at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:111) [guice-4.1.0.jar:?]
	at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:90) [guice-4.1.0.jar:?]
	at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:268) [guice-4.1.0.jar:?]
	at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46) [guice-4.1.0.jar:?]
	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092) [guice-4.1.0.jar:?]
	at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) [guice-4.1.0.jar:?]
	at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:194) [guice-4.1.0.jar:?]
	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41) [guice-4.1.0.jar:?]
	at com.google.inject.internal.FactoryProxy.get(FactoryProxy.java:56) [guice-4.1.0.jar:?]
	at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38) [guice-4.1.0.jar:?]
	at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62) [guice-4.1.0.jar:?]
	at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:110) [guice-4.1.0.jar:?]
	at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:90) [guice-4.1.0.jar:?]
	at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:268) [guice-4.1.0.jar:?]
	at com.google.inject.internal.SingleParameterInjector.inject(SingleParameterInjector.java:38) [guice-4.1.0.jar:?]
	at com.google.inject.internal.SingleParameterInjector.getAll(SingleParameterInjector.java:62) [guice-4.1.0.jar:?]
	at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:110) [guice-4.1.0.jar:?]
	at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:90) [guice-4.1.0.jar:?]
	at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:268) [guice-4.1.0.jar:?]
	at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1019) [guice-4.1.0.jar:?]
	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1085) [guice-4.1.0.jar:?]
	at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1015) [guice-4.1.0.jar:?]
	at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1054) [guice-4.1.0.jar:?]
	at com.ur.injection.GuiceBuilder.get(GuiceBuilder.java:30) [polyscope-lang-3.7.3.jar:?]
	at com.ur.g5.internal.impl.ServiceBinderImpl.load(ServiceBinderImpl.java:236) [polyscope-internal-g5-10.11.107.jar:?]
	at gui.main.URGUI$6.run(URGUI.java:404) [polyscope-internal-view-10.11.107.jar:?]
	at gui.main.URGUI$BlockingTaskRunner$1.call(URGUI.java:539) [polyscope-internal-view-10.11.107.jar:?]
	at gui.main.URGUI$BlockingTaskRunner$1.call(URGUI.java:1) [polyscope-internal-view-10.11.107.jar:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_292]
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301) [?:1.8.0_292]
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) [?:1.8.0_292]
	at java.awt.EventQueue.access$500(EventQueue.java:97) [?:1.8.0_292]
	at java.awt.EventQueue$3.run(EventQueue.java:709) [?:1.8.0_292]
	at java.awt.EventQueue$3.run(EventQueue.java:703) [?:1.8.0_292]
	at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_292]
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) [?:1.8.0_292]
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) [?:1.8.0_292]
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205) [?:1.8.0_292]
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) [?:1.8.0_292]
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) [?:1.8.0_292]
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) [?:1.8.0_292]
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) [?:1.8.0_292]
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) [?:1.8.0_292]
**Caused by: com.ur.polyscope.security.impl.cybersecurity.service.URAdminException: com.fasterxml.jackson.databind.JsonMappingException: No content to map due to end-of-input**
 at [Source: ; line: 1, column: 0]
	at com.ur.polyscope.security.impl.cybersecurity.service.impl.CommandInvoker.invokeURAdmin(CommandInvoker.java:46) ~[?:?]
	at com.ur.polyscope.security.impl.cybersecurity.service.impl.SecurityServiceImpl.invokeCommand(SecurityServiceImpl.java:34) ~[?:?]
	at com.ur.polyscope.security.impl.cybersecurity.service.impl.SecurityServiceImpl.getState(SecurityServiceImpl.java:39) ~[?:?]
	at com.ur.polyscope.security.impl.cybersecurity.service.impl.AbstractRepository.getState(AbstractRepository.java:35) ~[?:?]
	... 49 more
1 Like

Hello @Ebbe and @jbm,

Could you help with this problem?

1 Like

Inside the tar file you will find the folder /usr/bin. You can copy the content to /usr/bin of the host.

Ebbe

2 Likes

Thanks for your comments!

After correcting some small error on my side and implementing this solution the problem is fixed and URsim works.

3 Likes