0 Replies Latest reply on Oct 11, 2017 6:16 AM by Asim Khalil

    Wildfly 10.1 / Jackrabbit (java.rmi.ConnectIOException: error during JRMP connection establishment; )

    Asim Khalil Newbie

      HI,

       

      I want to access the jackrabbit repository using remote rmi, I am using the following code to access.

       

      ClientRepositoryFactory  factory = new ClientRepositoryFactory();

      Repository repository = factory.getRepository("rmi://localhost:8080/jackrabbit");

       

      It gives me the ClientRepositoryFactory, but when I try to login to that repository. I get the following exception.

       

      Please help

       

       

      #repository: org.apache.jackrabbit.rmi.client.ClientRepositoryFactory$1@6025e1b6ERROR UtilEngine -     [java] com.os.sp.common.exception.cmr.CMRDataException: Repository error     [java]     at com.os.sp.cmr.engine.DocumentManagementEngine.hasNode(DocumentManagementEngine.java:352)     [java]     at com.os.sp.cmr.engine.DocumentManagementEngine.hasNode(DocumentManagementEngine.java:333)     [java]     at com.os.sp.cmr.engine.UtilEngine.createFolder(UtilEngine.java:292)     [java]     at com.os.sp.cmr.engine.UtilEngine.createSystemFolders(UtilEngine.java:250)     [java]     at com.os.sp.installer.folders.SystemFoldersInstaller.install(SystemFoldersInstaller.java:68)     [java]     at com.os.sp.installer.BaseInstaller.run(BaseInstaller.java:90)     [java]     at com.os.sp.installer.folders.SystemFoldersInstaller.main(SystemFoldersInstaller.java:37)     [java] Caused by: org.apache.jackrabbit.rmi.client.RemoteRepositoryException: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:     [java]     java.net.SocketTimeoutException: Read timed out     [java]     at org.apache.jackrabbit.rmi.client.SafeClientRepository.remoteLogin(SafeClientRepository.java:113)     [java]     at org.apache.jackrabbit.rmi.client.SafeClientRepository.login(SafeClientRepository.java:121)     [java]     at org.apache.jackrabbit.rmi.client.SafeClientRepository.login(SafeClientRepository.java:132)     [java]     at com.os.sp.cmr.engine.GeneralManagementEngine.getSession(GeneralManagementEngine.java:345)     [java]     at com.os.sp.cmr.engine.DocumentManagementEngine.hasNode(DocumentManagementEngine.java:347)     [java]     ... 6 more     [java] Caused by: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:     [java]     java.net.SocketTimeoutException: Read timed out     [java]     at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:304)     [java]     at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)     [java]     at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:342)     [java]     at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)     [java]     at java.rmi.Naming.lookup(Naming.java:101)     [java]     at org.apache.jackrabbit.rmi.client.ClientRepositoryFactory$1.getRemoteRepository(ClientRepositoryFactory.java:95)     [java]     at org.apache.jackrabbit.rmi.client.SafeClientRepository.remoteLogin(SafeClientRepository.java:109)     [java]     ... 10 more     [java] Caused by: java.net.SocketTimeoutException: Read timed out     [java]     at java.net.SocketInputStream.socketRead0(Native Method)     [java]     at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)     [java]     at java.net.SocketInputStream.read(SocketInputStream.java:171)     [java]     at java.net.SocketInputStream.read(SocketInputStream.java:141)     [java]     at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)     [java]     at java.io.BufferedInputStream.read(BufferedInputStream.java:265)     [java]     at java.io.DataInputStream.readByte(DataInputStream.java:265)     [java]     at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:246)     [java]     ... 16 more