Re: RemoteException inheritance

Jeff Rickard <[email protected]>
Newsgroups gmane.comp.java.sun.rmi
Message-ID <[email protected]>
Well the main exception that is thrown that starts this all off is the
IllegalArgumentException, so I would be looking for arguments passed to
methods that are out of sync.  Also can you post a stack trace of the error,
that might help to trace out where the error is coming from.

Jeff

-----Original Message-----
From: Paulo Melo [mailto:[email protected]] 
Sent: Friday, November 25, 2005 3:10 AM
To: [email protected]
Subject: Re: RemoteException inheritance

No, the problem occurs when i start the server... So the Exception dont't
throw in the cliente side, but in the server side.

  And my RemoteException call the super to pass the message the will appear
in the client side...



  Someone?!

  A Paz!!
  Paulo Henrique

Jeff Rickard <[email protected]> escreveu:              v\:*
{behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:*
{behavior:url(#default#VML);} .shape {behavior:url(#default#VML);}
Talking to a friend of mine, he said that  most likely it was a stub
problem.  I would try regenerating all of the stubs,  or deleting them
entirely and trying it again because it sounds like maybe  there are two
different implementations running for the different parts, that  would mean
that one side is trying to use an out of date interface (perhaps  with
slightly different parameters for some methods) to execute the remote code
and the remote object is throwing this exception because it is not getting
the  right method and data.

    Hope that helps, we should probably post  this to the RMI List, just in
case someone else is running across the same  problem.

    Jeff


---------------------------------

    From: Paulo Melo  [mailto:[email protected]]
  Sent: Thursday, November 24, 2005  3:08 PM
  To: Jeff Rickard
  Subject: RE: RemoteException  inheritance


        Ok, Ok... I'll try be more specific.

  Well, i'm developing a distributed application that have very Facade's.
This  facade's implements my Remote Interface's that they would have throw
every  specific RemoteExceptions for take care my business rules.

  For example, if i try find a person that don't exist, my business rules
i'll  throw a PersonNotFoundException that inherits from RemoteException. So
for this  my Remote Interface's throws the my business rules
RemoteException.

  So my facade's implements my Remote Interface's, that too throws the my
business rules RemoteException.

  Ok ok, my application compiles fine, but... When i'll go run, the same
throws  the following exception:

  java.rmi.server.ExportException: remote object implements illegal remote
interface; nested exception is:
          java.lang.IllegalArgumentException:  illegal remote method
encountered

  Only run when i put the RemoteException in my Remote Interface's and in my
Facade's...

  And now, understand?

  A Paz!!
  Paulo Henrique


  Jeff Rickard  <[email protected]> escreveu:
    Can we see the code, or  the method declarations? Off the top of my
head,
  could you be trying to override a method and return a different type from
  that function?

  Perhaps if you provided a specific localized problem with the code we
could
  be more help to you as well.

  Jeff Rickard
  Mandrake Industries Inc.

  -----Original Message-----
  From: Paulo Melo [mailto:[email protected]]
  Sent: Thursday, November 24, 2005 8:50 AM
  To: [email protected]
  Subject: RemoteException inheritance

  Hi!!

  I made my specific's RemoteException for my application, but the VM don't
  accept, saying that my implementations methods are illegal.

  What's this?

  Thankx!

  A Paz!!
  Paulo Henrique



  ---------------------------------
  Yahoo! Acesso Grátis: Internet rápida e grátis.
  Instale o discador agora!

 
===========================================================================
  To unsubscribe, send email to [email protected] and include in the
body
  of the message "signoff RMI-USERS". For general help, send email to
  [email protected] and include in the body of the message "help".

  For a list of frequently asked RMI questions please refer to:
  http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html

  To view past RMI-USERS postings, please see:
  http://archives.java.sun.com/archives/rmi-users.html



---------------------------------

    Yahoo! Acesso Grátis: Internet rápida e grátis.
  Instale  o discador agora!





---------------------------------
 Yahoo! Acesso Grátis: Internet rápida e grátis.
Instale o discador agora!

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff RMI-USERS".  For general help, send email to
[email protected] and include in the body of the message "help".

For a list of frequently asked RMI questions please refer to:
http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html

To view past RMI-USERS postings, please see:
http://archives.java.sun.com/archives/rmi-users.html

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff RMI-USERS".  For general help, send email to
[email protected] and include in the body of the message "help".

For a list of frequently asked RMI questions please refer to:
http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html

To view past RMI-USERS postings, please see:
http://archives.java.sun.com/archives/rmi-users.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.