Error while running the Example
Hello,
I am new to ISO 8583. I was using j8583.
I was trying to run Example.java using:
java -cp eclipse-project/lib/commons-logging-1.1.1.jar:eclipse-project/lib/log4j-1.2.14.jar:eclipse-project/src:eclipse-project/bin j8583.example.Example
I get the following error:
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
.....
at com.solab.iso8583.parse.ConfigParser.createFromClasspathConfig(Unknown Source)
at j8583.example.Example.main(Unknown Source)
end
Exception in thread "main" java.lang.NullPointerException
at com.solab.iso8583.MessageFactory.parseMessage(Unknown Source)
at j8583.example.Example.main(Unknown Source)
I did not run any thing else before this. I assume that we will not have to start the Server.java or ChannelServer.java for just trying to read a and generate messages.
Besides, when i do try to start the server I get the same error:
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
But the program doesnt exit. It keeps waiting for a new connection:
2009-05-20 17:47:14,649 [main] INFO Server - Setting up server socket...
2009-05-20 17:47:14,651 [main] INFO Server - Waiting for connections...
Could you please explain to me how to get the Example.java running?
- Inicie sesión o regístrese para enviar comentarios
Java MEXICO
This forum is for Java developers in Mexico. The j8583 project has its own project page where you can report bugs. I won't reply to any j8583 stuff here.