I have this error:

12:14:24,943 WARN  [verifier] EJB spec violation:
Bean   : FinderIndexHome
Method : public abstract FinderIndex create() throws CreateException, 
RemoteException
Section: 6.10.6
Warning: The method return values in the home interface must be of valid types 
for RMI/IIOP.

When I try to return a "FinderIndex" RemoteInterface because JBOss thinks that 
my 
RemoteInterface is in violation of a spec.  The remote Inteface causing the 
problem
looks like this:

public interface FinderIndex extends EJBObject {

  public static final Integer SUPPLIER = new Integer(0);
  public DBData getPricingDepartureCities(boolean useCache) throws Exception, 
RemoteException;
}

I can fix the problem by removing the public static final line.  

I can also fix the problem by changing the line so that the remote interface 
looks
like this:

public interface FinderIndex extends EJBObject {

  public static final int SUPPLIER = 0;
  public DBData getPricingDepartureCities(boolean useCache) throws Exception, 
RemoteException;
}

My question is:

1) why is the FinderIndex an invalid type for RMI/IIOP (what part of what spec 
is being violated?)
2) why is it fixed when i change the public static final variable from an 
Object to a primitive type?

Does anyone know?  Is this correct behaviour?

Tom

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3861042#3861042

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3861042


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to