Java RMI connection refuse












0















I do receive below error:



2019-01-02 16:14:22.789  INFO 3131 --- [           main] com.dbs.rmg.cli.App                      : Started App in 4.619 seconds (JVM running for 5.227)
2019-01-02 16:14:22.907 INFO 3131 --- [)-10.91.xxx.xxx] o.h.h.i.QueryTranslatorFactoryInitiator : HHH000397: Using ASTQueryTranslatorFactory
2019-01-02 16:14:23.158 INFO 3131 --- [)-10.91.xxx.xxx] c.h.rmiio.exporter.RemoteStreamExporter : Using stream exporter com.healthmarketscience.rmiio.exporter.DefaultRemoteStreamExporter
2019-01-02 16:14:33.177 WARN 3131 --- [ main] c.h.rmiio.RemoteInputStreamClient : Retry for caller com.healthmarketscience.rmiio.RemoteInputStreamWrapper$1@2100d047 giving up!
java.rmi.ConnectException: Connection refused to host: 10.91.xxx.xxx; nested exception is:
java.net.ConnectException: Connection refused (Connection refused)
at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619)
at java.rmi/sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:209)
at java.rmi/sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:196)
at java.rmi/sun.rmi.server.UnicastRef.invoke(UnicastRef.java:129)
at java.rmi/java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:209)
at java.rmi/java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:161)
at com.sun.proxy.$Proxy82.usingGZIPCompression(Unknown Source)
at com.healthmarketscience.rmiio.RemoteInputStreamWrapper$1.call(RemoteInputStreamWrapper.java:56)
at com.healthmarketscience.rmiio.RemoteInputStreamWrapper$1.call(RemoteInputStreamWrapper.java:53)
at com.healthmarketscience.rmiio.RemoteRetry.callImpl(RemoteRetry.java:153)
at com.healthmarketscience.rmiio.RemoteRetry.call(RemoteRetry.java:273)
at com.healthmarketscience.rmiio.RemoteRetry.call(RemoteRetry.java:214)
at com.healthmarketscience.rmiio.RemoteInputStreamWrapper.usingGZIPCompression(RemoteInputStreamWrapper.java:52)
at com.healthmarketscience.rmiio.RemoteInputStreamWrapper.usingGZIPCompression(RemoteInputStreamWrapper.java:46)
at com.healthmarketscience.rmiio.RemoteInputStreamClient.wrap(RemoteInputStreamClient.java:80)
at com.healthmarketscience.rmiio.RemoteIteratorClient.initialize(RemoteIteratorClient.java:95)
at com.healthmarketscience.rmiio.RemoteIteratorClient.hasNext(RemoteIteratorClient.java:149)
at com.dbs.rmg.utils.Pipe$6.hasNext(Pipe.java:178)
at com.dbs.rmg.cli.App.run(App.java:92)


I able to store my code via the command execute, but it was stuck on below,



public static <T extends Remote> T getService(Class<T> cls, String IP, int PORT) {
String url = RmiConfig.buildRmiUrl(PORT, cls.getSimpleName());

try {
JobService jobService = new JobServiceImpl();

System.setProperty("java.rmi.server.hostname", IP);
LocateRegistry.createRegistry(PORT);
String location = "//localhost:" + PORT + "/JobService";
Naming.rebind(location, jobService);

return cls.cast(Naming.lookup(url));
} catch (Exception e) {
throw new RuntimeException(e);
}
}


I assume the binding was successful as it can return, but the end it stuck on textIterator.hasNext() which I have no idea what exactly error I have done.



@Override
public void run(String... args) throws Exception {
JobService jobService = Controller.getJobService(this.IP, this.PORT);

try {
Iterator<String> textIterator = Pipe.iterator(jobService.submitAndStreamError(fileType, param, queueName, maxRetry));

String defaultRetry = "0";

while (textIterator.hasNext()) {
defaultRetry = textIterator.next();

System.out.println(defaultRetry);
}

System.exit(Integer.parseInt(defaultRetry));
} catch (Exception e) {
throw new RuntimeException(e);
}
}


Anyone can give some hint as I lost idea to debug on this.










share|improve this question




















  • 1





    Connection refused = firewall or bad port.

    – Antoniossss
    Jan 2 at 8:28











  • i don't think is bad port as after your comment i do retry change the port but same error appear..

    – Chang
    Jan 2 at 8:43











  • i do retry change the port and changing bad port to another bad port would prove nothing. So again - bad port, firewall or bad NAT forwarding.

    – Antoniossss
    Jan 2 at 8:43













  • First you should check if RMI port is open and accessible (but I think it is here), second, you must check the port that remote object is exported on - yes it is not the same port as RMI registry. Registry just holds such information. Last but not least, if you are trying to reach remote object from outside of your private network (since 10.* points to private network) you wiull have to set propert proprty on RMI registry to use external IP address instead of internal one (which it seams you are doing, but maybe you are using wrong ip here). No information on that whatsoever.

    – Antoniossss
    Jan 2 at 8:48













  • yea, i found my bug, it's becoz i wrong set the client become service that's why it cant find out the server and throw connection refuse after giving up!... how can we raise to close this post as no value added on this question.. it's happen on human mistake... lol

    – Chang
    Jan 3 at 10:18
















0















I do receive below error:



2019-01-02 16:14:22.789  INFO 3131 --- [           main] com.dbs.rmg.cli.App                      : Started App in 4.619 seconds (JVM running for 5.227)
2019-01-02 16:14:22.907 INFO 3131 --- [)-10.91.xxx.xxx] o.h.h.i.QueryTranslatorFactoryInitiator : HHH000397: Using ASTQueryTranslatorFactory
2019-01-02 16:14:23.158 INFO 3131 --- [)-10.91.xxx.xxx] c.h.rmiio.exporter.RemoteStreamExporter : Using stream exporter com.healthmarketscience.rmiio.exporter.DefaultRemoteStreamExporter
2019-01-02 16:14:33.177 WARN 3131 --- [ main] c.h.rmiio.RemoteInputStreamClient : Retry for caller com.healthmarketscience.rmiio.RemoteInputStreamWrapper$1@2100d047 giving up!
java.rmi.ConnectException: Connection refused to host: 10.91.xxx.xxx; nested exception is:
java.net.ConnectException: Connection refused (Connection refused)
at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619)
at java.rmi/sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:209)
at java.rmi/sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:196)
at java.rmi/sun.rmi.server.UnicastRef.invoke(UnicastRef.java:129)
at java.rmi/java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:209)
at java.rmi/java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:161)
at com.sun.proxy.$Proxy82.usingGZIPCompression(Unknown Source)
at com.healthmarketscience.rmiio.RemoteInputStreamWrapper$1.call(RemoteInputStreamWrapper.java:56)
at com.healthmarketscience.rmiio.RemoteInputStreamWrapper$1.call(RemoteInputStreamWrapper.java:53)
at com.healthmarketscience.rmiio.RemoteRetry.callImpl(RemoteRetry.java:153)
at com.healthmarketscience.rmiio.RemoteRetry.call(RemoteRetry.java:273)
at com.healthmarketscience.rmiio.RemoteRetry.call(RemoteRetry.java:214)
at com.healthmarketscience.rmiio.RemoteInputStreamWrapper.usingGZIPCompression(RemoteInputStreamWrapper.java:52)
at com.healthmarketscience.rmiio.RemoteInputStreamWrapper.usingGZIPCompression(RemoteInputStreamWrapper.java:46)
at com.healthmarketscience.rmiio.RemoteInputStreamClient.wrap(RemoteInputStreamClient.java:80)
at com.healthmarketscience.rmiio.RemoteIteratorClient.initialize(RemoteIteratorClient.java:95)
at com.healthmarketscience.rmiio.RemoteIteratorClient.hasNext(RemoteIteratorClient.java:149)
at com.dbs.rmg.utils.Pipe$6.hasNext(Pipe.java:178)
at com.dbs.rmg.cli.App.run(App.java:92)


I able to store my code via the command execute, but it was stuck on below,



public static <T extends Remote> T getService(Class<T> cls, String IP, int PORT) {
String url = RmiConfig.buildRmiUrl(PORT, cls.getSimpleName());

try {
JobService jobService = new JobServiceImpl();

System.setProperty("java.rmi.server.hostname", IP);
LocateRegistry.createRegistry(PORT);
String location = "//localhost:" + PORT + "/JobService";
Naming.rebind(location, jobService);

return cls.cast(Naming.lookup(url));
} catch (Exception e) {
throw new RuntimeException(e);
}
}


I assume the binding was successful as it can return, but the end it stuck on textIterator.hasNext() which I have no idea what exactly error I have done.



@Override
public void run(String... args) throws Exception {
JobService jobService = Controller.getJobService(this.IP, this.PORT);

try {
Iterator<String> textIterator = Pipe.iterator(jobService.submitAndStreamError(fileType, param, queueName, maxRetry));

String defaultRetry = "0";

while (textIterator.hasNext()) {
defaultRetry = textIterator.next();

System.out.println(defaultRetry);
}

System.exit(Integer.parseInt(defaultRetry));
} catch (Exception e) {
throw new RuntimeException(e);
}
}


Anyone can give some hint as I lost idea to debug on this.










share|improve this question




















  • 1





    Connection refused = firewall or bad port.

    – Antoniossss
    Jan 2 at 8:28











  • i don't think is bad port as after your comment i do retry change the port but same error appear..

    – Chang
    Jan 2 at 8:43











  • i do retry change the port and changing bad port to another bad port would prove nothing. So again - bad port, firewall or bad NAT forwarding.

    – Antoniossss
    Jan 2 at 8:43













  • First you should check if RMI port is open and accessible (but I think it is here), second, you must check the port that remote object is exported on - yes it is not the same port as RMI registry. Registry just holds such information. Last but not least, if you are trying to reach remote object from outside of your private network (since 10.* points to private network) you wiull have to set propert proprty on RMI registry to use external IP address instead of internal one (which it seams you are doing, but maybe you are using wrong ip here). No information on that whatsoever.

    – Antoniossss
    Jan 2 at 8:48













  • yea, i found my bug, it's becoz i wrong set the client become service that's why it cant find out the server and throw connection refuse after giving up!... how can we raise to close this post as no value added on this question.. it's happen on human mistake... lol

    – Chang
    Jan 3 at 10:18














0












0








0








I do receive below error:



2019-01-02 16:14:22.789  INFO 3131 --- [           main] com.dbs.rmg.cli.App                      : Started App in 4.619 seconds (JVM running for 5.227)
2019-01-02 16:14:22.907 INFO 3131 --- [)-10.91.xxx.xxx] o.h.h.i.QueryTranslatorFactoryInitiator : HHH000397: Using ASTQueryTranslatorFactory
2019-01-02 16:14:23.158 INFO 3131 --- [)-10.91.xxx.xxx] c.h.rmiio.exporter.RemoteStreamExporter : Using stream exporter com.healthmarketscience.rmiio.exporter.DefaultRemoteStreamExporter
2019-01-02 16:14:33.177 WARN 3131 --- [ main] c.h.rmiio.RemoteInputStreamClient : Retry for caller com.healthmarketscience.rmiio.RemoteInputStreamWrapper$1@2100d047 giving up!
java.rmi.ConnectException: Connection refused to host: 10.91.xxx.xxx; nested exception is:
java.net.ConnectException: Connection refused (Connection refused)
at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619)
at java.rmi/sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:209)
at java.rmi/sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:196)
at java.rmi/sun.rmi.server.UnicastRef.invoke(UnicastRef.java:129)
at java.rmi/java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:209)
at java.rmi/java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:161)
at com.sun.proxy.$Proxy82.usingGZIPCompression(Unknown Source)
at com.healthmarketscience.rmiio.RemoteInputStreamWrapper$1.call(RemoteInputStreamWrapper.java:56)
at com.healthmarketscience.rmiio.RemoteInputStreamWrapper$1.call(RemoteInputStreamWrapper.java:53)
at com.healthmarketscience.rmiio.RemoteRetry.callImpl(RemoteRetry.java:153)
at com.healthmarketscience.rmiio.RemoteRetry.call(RemoteRetry.java:273)
at com.healthmarketscience.rmiio.RemoteRetry.call(RemoteRetry.java:214)
at com.healthmarketscience.rmiio.RemoteInputStreamWrapper.usingGZIPCompression(RemoteInputStreamWrapper.java:52)
at com.healthmarketscience.rmiio.RemoteInputStreamWrapper.usingGZIPCompression(RemoteInputStreamWrapper.java:46)
at com.healthmarketscience.rmiio.RemoteInputStreamClient.wrap(RemoteInputStreamClient.java:80)
at com.healthmarketscience.rmiio.RemoteIteratorClient.initialize(RemoteIteratorClient.java:95)
at com.healthmarketscience.rmiio.RemoteIteratorClient.hasNext(RemoteIteratorClient.java:149)
at com.dbs.rmg.utils.Pipe$6.hasNext(Pipe.java:178)
at com.dbs.rmg.cli.App.run(App.java:92)


I able to store my code via the command execute, but it was stuck on below,



public static <T extends Remote> T getService(Class<T> cls, String IP, int PORT) {
String url = RmiConfig.buildRmiUrl(PORT, cls.getSimpleName());

try {
JobService jobService = new JobServiceImpl();

System.setProperty("java.rmi.server.hostname", IP);
LocateRegistry.createRegistry(PORT);
String location = "//localhost:" + PORT + "/JobService";
Naming.rebind(location, jobService);

return cls.cast(Naming.lookup(url));
} catch (Exception e) {
throw new RuntimeException(e);
}
}


I assume the binding was successful as it can return, but the end it stuck on textIterator.hasNext() which I have no idea what exactly error I have done.



@Override
public void run(String... args) throws Exception {
JobService jobService = Controller.getJobService(this.IP, this.PORT);

try {
Iterator<String> textIterator = Pipe.iterator(jobService.submitAndStreamError(fileType, param, queueName, maxRetry));

String defaultRetry = "0";

while (textIterator.hasNext()) {
defaultRetry = textIterator.next();

System.out.println(defaultRetry);
}

System.exit(Integer.parseInt(defaultRetry));
} catch (Exception e) {
throw new RuntimeException(e);
}
}


Anyone can give some hint as I lost idea to debug on this.










share|improve this question
















I do receive below error:



2019-01-02 16:14:22.789  INFO 3131 --- [           main] com.dbs.rmg.cli.App                      : Started App in 4.619 seconds (JVM running for 5.227)
2019-01-02 16:14:22.907 INFO 3131 --- [)-10.91.xxx.xxx] o.h.h.i.QueryTranslatorFactoryInitiator : HHH000397: Using ASTQueryTranslatorFactory
2019-01-02 16:14:23.158 INFO 3131 --- [)-10.91.xxx.xxx] c.h.rmiio.exporter.RemoteStreamExporter : Using stream exporter com.healthmarketscience.rmiio.exporter.DefaultRemoteStreamExporter
2019-01-02 16:14:33.177 WARN 3131 --- [ main] c.h.rmiio.RemoteInputStreamClient : Retry for caller com.healthmarketscience.rmiio.RemoteInputStreamWrapper$1@2100d047 giving up!
java.rmi.ConnectException: Connection refused to host: 10.91.xxx.xxx; nested exception is:
java.net.ConnectException: Connection refused (Connection refused)
at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619)
at java.rmi/sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:209)
at java.rmi/sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:196)
at java.rmi/sun.rmi.server.UnicastRef.invoke(UnicastRef.java:129)
at java.rmi/java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:209)
at java.rmi/java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:161)
at com.sun.proxy.$Proxy82.usingGZIPCompression(Unknown Source)
at com.healthmarketscience.rmiio.RemoteInputStreamWrapper$1.call(RemoteInputStreamWrapper.java:56)
at com.healthmarketscience.rmiio.RemoteInputStreamWrapper$1.call(RemoteInputStreamWrapper.java:53)
at com.healthmarketscience.rmiio.RemoteRetry.callImpl(RemoteRetry.java:153)
at com.healthmarketscience.rmiio.RemoteRetry.call(RemoteRetry.java:273)
at com.healthmarketscience.rmiio.RemoteRetry.call(RemoteRetry.java:214)
at com.healthmarketscience.rmiio.RemoteInputStreamWrapper.usingGZIPCompression(RemoteInputStreamWrapper.java:52)
at com.healthmarketscience.rmiio.RemoteInputStreamWrapper.usingGZIPCompression(RemoteInputStreamWrapper.java:46)
at com.healthmarketscience.rmiio.RemoteInputStreamClient.wrap(RemoteInputStreamClient.java:80)
at com.healthmarketscience.rmiio.RemoteIteratorClient.initialize(RemoteIteratorClient.java:95)
at com.healthmarketscience.rmiio.RemoteIteratorClient.hasNext(RemoteIteratorClient.java:149)
at com.dbs.rmg.utils.Pipe$6.hasNext(Pipe.java:178)
at com.dbs.rmg.cli.App.run(App.java:92)


I able to store my code via the command execute, but it was stuck on below,



public static <T extends Remote> T getService(Class<T> cls, String IP, int PORT) {
String url = RmiConfig.buildRmiUrl(PORT, cls.getSimpleName());

try {
JobService jobService = new JobServiceImpl();

System.setProperty("java.rmi.server.hostname", IP);
LocateRegistry.createRegistry(PORT);
String location = "//localhost:" + PORT + "/JobService";
Naming.rebind(location, jobService);

return cls.cast(Naming.lookup(url));
} catch (Exception e) {
throw new RuntimeException(e);
}
}


I assume the binding was successful as it can return, but the end it stuck on textIterator.hasNext() which I have no idea what exactly error I have done.



@Override
public void run(String... args) throws Exception {
JobService jobService = Controller.getJobService(this.IP, this.PORT);

try {
Iterator<String> textIterator = Pipe.iterator(jobService.submitAndStreamError(fileType, param, queueName, maxRetry));

String defaultRetry = "0";

while (textIterator.hasNext()) {
defaultRetry = textIterator.next();

System.out.println(defaultRetry);
}

System.exit(Integer.parseInt(defaultRetry));
} catch (Exception e) {
throw new RuntimeException(e);
}
}


Anyone can give some hint as I lost idea to debug on this.







java rmiio






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 2 at 8:31









Sergey

4,23421835




4,23421835










asked Jan 2 at 8:23









ChangChang

430921




430921








  • 1





    Connection refused = firewall or bad port.

    – Antoniossss
    Jan 2 at 8:28











  • i don't think is bad port as after your comment i do retry change the port but same error appear..

    – Chang
    Jan 2 at 8:43











  • i do retry change the port and changing bad port to another bad port would prove nothing. So again - bad port, firewall or bad NAT forwarding.

    – Antoniossss
    Jan 2 at 8:43













  • First you should check if RMI port is open and accessible (but I think it is here), second, you must check the port that remote object is exported on - yes it is not the same port as RMI registry. Registry just holds such information. Last but not least, if you are trying to reach remote object from outside of your private network (since 10.* points to private network) you wiull have to set propert proprty on RMI registry to use external IP address instead of internal one (which it seams you are doing, but maybe you are using wrong ip here). No information on that whatsoever.

    – Antoniossss
    Jan 2 at 8:48













  • yea, i found my bug, it's becoz i wrong set the client become service that's why it cant find out the server and throw connection refuse after giving up!... how can we raise to close this post as no value added on this question.. it's happen on human mistake... lol

    – Chang
    Jan 3 at 10:18














  • 1





    Connection refused = firewall or bad port.

    – Antoniossss
    Jan 2 at 8:28











  • i don't think is bad port as after your comment i do retry change the port but same error appear..

    – Chang
    Jan 2 at 8:43











  • i do retry change the port and changing bad port to another bad port would prove nothing. So again - bad port, firewall or bad NAT forwarding.

    – Antoniossss
    Jan 2 at 8:43













  • First you should check if RMI port is open and accessible (but I think it is here), second, you must check the port that remote object is exported on - yes it is not the same port as RMI registry. Registry just holds such information. Last but not least, if you are trying to reach remote object from outside of your private network (since 10.* points to private network) you wiull have to set propert proprty on RMI registry to use external IP address instead of internal one (which it seams you are doing, but maybe you are using wrong ip here). No information on that whatsoever.

    – Antoniossss
    Jan 2 at 8:48













  • yea, i found my bug, it's becoz i wrong set the client become service that's why it cant find out the server and throw connection refuse after giving up!... how can we raise to close this post as no value added on this question.. it's happen on human mistake... lol

    – Chang
    Jan 3 at 10:18








1




1





Connection refused = firewall or bad port.

– Antoniossss
Jan 2 at 8:28





Connection refused = firewall or bad port.

– Antoniossss
Jan 2 at 8:28













i don't think is bad port as after your comment i do retry change the port but same error appear..

– Chang
Jan 2 at 8:43





i don't think is bad port as after your comment i do retry change the port but same error appear..

– Chang
Jan 2 at 8:43













i do retry change the port and changing bad port to another bad port would prove nothing. So again - bad port, firewall or bad NAT forwarding.

– Antoniossss
Jan 2 at 8:43







i do retry change the port and changing bad port to another bad port would prove nothing. So again - bad port, firewall or bad NAT forwarding.

– Antoniossss
Jan 2 at 8:43















First you should check if RMI port is open and accessible (but I think it is here), second, you must check the port that remote object is exported on - yes it is not the same port as RMI registry. Registry just holds such information. Last but not least, if you are trying to reach remote object from outside of your private network (since 10.* points to private network) you wiull have to set propert proprty on RMI registry to use external IP address instead of internal one (which it seams you are doing, but maybe you are using wrong ip here). No information on that whatsoever.

– Antoniossss
Jan 2 at 8:48







First you should check if RMI port is open and accessible (but I think it is here), second, you must check the port that remote object is exported on - yes it is not the same port as RMI registry. Registry just holds such information. Last but not least, if you are trying to reach remote object from outside of your private network (since 10.* points to private network) you wiull have to set propert proprty on RMI registry to use external IP address instead of internal one (which it seams you are doing, but maybe you are using wrong ip here). No information on that whatsoever.

– Antoniossss
Jan 2 at 8:48















yea, i found my bug, it's becoz i wrong set the client become service that's why it cant find out the server and throw connection refuse after giving up!... how can we raise to close this post as no value added on this question.. it's happen on human mistake... lol

– Chang
Jan 3 at 10:18





yea, i found my bug, it's becoz i wrong set the client become service that's why it cant find out the server and throw connection refuse after giving up!... how can we raise to close this post as no value added on this question.. it's happen on human mistake... lol

– Chang
Jan 3 at 10:18












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54003221%2fjava-rmi-connection-refuse%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54003221%2fjava-rmi-connection-refuse%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

MongoDB - Not Authorized To Execute Command

How to fix TextFormField cause rebuild widget in Flutter

in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith