Click here to Skip to main content
15,922,512 members
Home / Discussions / Java
   

Java

 
GeneralRe: Java NIO connect, Socket.connect - how to detect bad ip address ? Pin
ptomask23-Oct-11 11:18
ptomask23-Oct-11 11:18 
AnswerRe: Java NIO connect, Socket.connect - how to detect bad ip address ? Pin
Luc Pattyn23-Oct-11 11:54
sitebuilderLuc Pattyn23-Oct-11 11:54 
GeneralRe: Java NIO connect, Socket.connect - how to detect bad ip address ? Pin
Richard MacCutchan23-Oct-11 22:25
mveRichard MacCutchan23-Oct-11 22:25 
GeneralRe: Java NIO connect, Socket.connect - how to detect bad ip address ? Pin
ptomask23-Oct-11 22:49
ptomask23-Oct-11 22:49 
Questionhi, Andrroid app. Pin
gif202020-Oct-11 1:33
gif202020-Oct-11 1:33 
AnswerRe: hi, Andrroid app. Pin
Nagy Vilmos20-Oct-11 1:50
professionalNagy Vilmos20-Oct-11 1:50 
AnswerRe: hi, Andrroid app. Pin
jschell20-Oct-11 8:35
jschell20-Oct-11 8:35 
Questionjava-corba COMM_FAILURE Pin
coco_2819-Oct-11 21:41
coco_2819-Oct-11 21:41 
Hi,

I would like to ask how would i be able to catch stacktrace below. The error occured when wrong port/address of the server is provided
and cannot be catch because its not part af any java exceptions.
During wrong input, i would want to display an alert message to the user, instead of the whole stack trace.

generated after this call: org.omg.CORBA.Object objRef = orb.resolve_initial_references("NameService");

Oct 20, 2011 3:27:55 PM com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl <init>
WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: 10.29.8.102; port: 2800"
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(Unknown Source)
at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(Unknown Source)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(Unknown Source)
at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(Unknown Source)
at com.sun.corba.se.impl.transport.SocketOrChannelContactInfoImpl.createConnection(Unknown Source)
at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(Unknown Source)
at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.request(Unknown Source)
at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.is_a(Unknown Source)
at org.omg.CORBA.portable.ObjectImpl._is_a(Unknown Source)
at org.omg.CosNaming.NamingContextExtHelper.narrow(Unknown Source)
at com.sun.corba.se.impl.resolver.INSURLOperationImpl.resolveCorbaname(Unknown Source)
at com.sun.corba.se.impl.resolver.INSURLOperationImpl.resolveINSURL(Unknown Source)
at com.sun.corba.se.impl.resolver.INSURLOperationImpl.operate(Unknown Source)
at com.sun.corba.se.impl.resolver.ORBInitRefResolverImpl.resolve(Unknown Source)
at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(Unknown Source)
at com.sun.corba.se.impl.resolver.CompositeResolverImpl.resolve(Unknown Source)
at com.sun.corba.se.impl.orb.ORBImpl.resolve_initial_references(Unknown Source)
at com.oberthur.client.Client.init(Client.java:46)
at com.oberthur.client.Client.main(Client.java:82)
Caused by: java.net.ConnectException: Connection refused: connect
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(Unknown Source)
at java.nio.channels.SocketChannel.open(Unknown Source)
at com.sun.corba.se.impl.transport.DefaultSocketFactoryImpl.createSocket(Unknown Source)

Thanks and regards to all.
QuestionGetting last word of a string Pin
Tor Danielsen17-Oct-11 23:11
Tor Danielsen17-Oct-11 23:11 
AnswerRe: Getting last word of a string Pin
Richard MacCutchan17-Oct-11 23:21
mveRichard MacCutchan17-Oct-11 23:21 
AnswerRe: Getting last word of a string Pin
davidshenba17-Oct-11 23:31
davidshenba17-Oct-11 23:31 
AnswerRe: Getting last word of a string Pin
David Skelly18-Oct-11 3:28
David Skelly18-Oct-11 3:28 
AnswerRe: Getting last word of a string Pin
Member 835399113-Nov-11 1:45
Member 835399113-Nov-11 1:45 
QuestionPiccolo with Java Drawing & Positioning Pin
massaslayer14-Oct-11 23:36
massaslayer14-Oct-11 23:36 
AnswerRe: Piccolo with Java Drawing & Positioning Pin
David Skelly17-Oct-11 22:18
David Skelly17-Oct-11 22:18 
GeneralRe: Piccolo with Java Drawing & Positioning Pin
massaslayer17-Oct-11 22:23
massaslayer17-Oct-11 22:23 
Questionplease tell me what this all says Pin
dara325113-Oct-11 17:36
dara325113-Oct-11 17:36 
AnswerRe: please tell me what this all says Pin
TorstenH.13-Oct-11 21:21
TorstenH.13-Oct-11 21:21 
GeneralRe: please tell me what this all says Pin
David Skelly13-Oct-11 22:24
David Skelly13-Oct-11 22:24 
GeneralRe: please tell me what this all says Pin
TorstenH.14-Oct-11 1:07
TorstenH.14-Oct-11 1:07 
GeneralRe: please tell me what this all says Pin
David Skelly14-Oct-11 3:29
David Skelly14-Oct-11 3:29 
GeneralRe: please tell me what this all says Pin
TorstenH.14-Oct-11 3:54
TorstenH.14-Oct-11 3:54 
GeneralRe: please tell me what this all says Pin
Nagy Vilmos14-Oct-11 3:55
professionalNagy Vilmos14-Oct-11 3:55 
AnswerRe: please tell me what this all says Pin
David Skelly13-Oct-11 22:16
David Skelly13-Oct-11 22:16 
AnswerRe: please tell me what this all says Pin
Richard MacCutchan14-Oct-11 3:55
mveRichard MacCutchan14-Oct-11 3:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.