ValidationException: the interface does not define a valid remote business interface; the method does not conform to RMI rules

StackOverflow https://stackoverflow.com/questions/21584297

  •  07-10-2022
  •  | 
  •  

質問

I got the following exception on IBM WebSphere Application Server when starting my EJB application:

com.ibm.wsspi.amm.validate.ValidationException: the interface YourInterface does not define a valid remote business interface; the method yourMethod does not conform to RMI rules

I checked Oracle's documentation for the RMI confirmity rules, but that didn't help. I also found a problem ticket from IBM describing exactly my problem, but giving an obscure solution by setting an undocumented JVM property - this didn't work either.

役に立ちましたか?

解決

The problem was that one of my method's parameters didn't implement java.io.Serializable.

So to tackle this rather generic error, you should check all your parameters that they implement this interface.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top