0
간단한 rmi 채팅을 만들려고합니다.하지만이 exception.i을 통해 coldnt가 끝났다고 생각합니다.하지만 뭔가를 놓친 것 같습니다. 여기가 어디입니까? 예외가Java RMI가 java.lang.IllegalArgumentException을 제공하고 있습니다. 인수 유형이 일치하지 않습니다.
HelloClient(String name,HelloInterface hello) throws RemoteException{
this.name=name;
this.hello=hello;
try{hello.register(this);}///this is the line generating my exception
catch(Exception es){System.out.println(es);}}
내가 내 서버 인터페이스에서 레지스터() 메소드가 발생하고 또한 그것을
public synchronized void register(HelloClient h) throws RemoteException {
//code of my implementation which is not neccerary
}//on my server side passing it the client object
을 구현 한이 내가 java.lang.IllegalArgumentException가 무엇입니까의 예외입니다 : 인수 유형 불일치
myclient 클래스가 serizable을 구현하도록 만들었지 만 작동하지 않았습니다. 그래서 누구든지 나에게 손을 줘.
StackTrace, 제발 – Charlie
예외를 던지는 코드와 관련이없는 것은 무엇입니까? 스택 트레이스와 이것이 가리키는 코드를 읽는다. – keyser
[Ljava.lang.StackTraceElement; @ 178655 – robel