on ‎2018 Sep 12 12:09 AM
Hi ,
While server is working , I get the last codes via git pull and execute "ant updatesystem" . I get the error below. Is there any idea?
Thanks in advance.
org.springframework.beans.FatalBeanException: Context hybris Global Context Factory couldn't be created correctly due to, Error creating bean with name 'defaultRmiRegistryService' defined in class path resource [mediaconversion-global-context.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Failed to create Registry at port '2198'.
Request clarification before answering.
Hello,
Try the following command line on linux:
$ lsof -P | grep ':2198' | awk '{print $2}' | xargs kill -9
After executing this command you should be able to use the port 2198 and initialize or update your platform.
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you sure there isn't any other process already using port 2198 on your local machine?
ant updatesystem starts a minimal platform, and the port 2918 is used for the RMI part of the imagemagick media conversion (configured via property os.rmiregistry.port)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Markus Perndorfer,
I received the following error message after moving to MySQL from HSQLDB.
I did ant clean all and ant initialize the system.
When I change the port number in local.properties file, I receive the same error message for different port number. I am changing the port number after checking it throguh netstat -ano command in windows command prompt.
I also tried with kill the PID which is listening on port number 2198 but getting the same error.
Error is as follow.
de.hybris.platform.core.UninstantiableCoreApplicationContextException: Error creating Spring application context.
at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54) [junit-rt.jar:?]
Caused by: java.lang.IllegalStateException: Failed to create Registry at port '2198'.
at de.hybris.platform.mediaconversion.os.process.impl.DefaultRMIRegistryService.init(DefaultRMIRegistryService.java:98) ~[mediaconversionserver.jar:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1912) ~[spring-beans-5.3.7.jar:5.3.7]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1854) ~[spring-beans-5.3.7.jar:5.3.7]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1782) ~[spring-beans-5.3.7.jar:5.3.7]
... 35 more
Caused by: java.rmi.server.ExportException: Port already in use: 2198; nested exception is:
java.net.BindException: Address already in use: NET_Bind
at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:335) ~[?:?]
at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:243) ~[?:?]
at de.hybris.platform.core.AbstractTenant.doStartupSafe(AbstractTenant.java:803)
at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:412) ~[?:?]
at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:147) ~[?:?]
at de.hybris.platform.core.AbstractTenant.doStartUp(AbstractTenant.java:730)
at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:234) ~[?:?]
at de.hybris.platform.core.Registry.assureTenantStarted(Registry.java:650)
at sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:220) ~[?:?]
at sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:180) ~[?:?]
at de.hybris.platform.core.Registry.activateTenant(Registry.java:711)
at sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:151) ~[?:?]
at de.hybris.platform.core.Registry.setCurrentTenant(Registry.java:560)
at java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:239) ~[?:?]
at de.hybris.platform.util.Utilities.setJUnitTenant(Utilities.java:1425)
at de.hybris.platform.mediaconversion.os.process.impl.DefaultRMIRegistryService.init(DefaultRMIRegistryService.java:94) ~[mediaconversionserver.jar:?]
at de.hybris.platform.testframework.runlistener.PlatformRunListener.testRunStarted(PlatformRunListener.java:38)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at de.hybris.platform.testframework.ChainingRunNotifierWrapper$1.notifyListener(ChainingRunNotifierWrapper.java:97)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at de.hybris.platform.testframework.ChainingRunNotifierWrapper$SafeNotifier.run(ChainingRunNotifierWrapper.java:255)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at de.hybris.platform.testframework.ChainingRunNotifierWrapper.fireTestRunStarted(ChainingRunNotifierWrapper.java:99)
at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
at de.hybris.platform.testframework.HybrisTestClassRunnerLogic.run(HybrisTestClassRunnerLogic.java:103)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1912) ~[spring-beans-5.3.7.jar:5.3.7]
at de.hybris.platform.testframework.HybrisJUnit4ClassRunner.run(HybrisJUnit4ClassRunner.java:58)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1854) ~[spring-beans-5.3.7.jar:5.3.7]
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1782) ~[spring-beans-5.3.7.jar:5.3.7]
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
... 35 more
at com.intellij.rt.junit.IdeaTestRunner$Repeater$1.execute(IdeaTestRunner.java:38)
Caused by: java.net.BindException: Address already in use: NET_Bind
at com.intellij.rt.execution.junit.TestsRepeater.repeat(TestsRepeater.java:11)
at java.net.PlainSocketImpl.bind0(Native Method) ~[?:?]
at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:35)
at java.net.PlainSocketImpl.socketBind(PlainSocketImpl.java:132) ~[?:?]
at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:235)
at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:452) ~[?:?]
at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54)
at java.net.ServerSocket.bind(ServerSocket.java:395) ~[?:?]
(@mperndorfer)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello , Yes , I am pretty sure.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.