Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Parameterized lists in remote interface  RSS feed

 
Jonatan Samoocha
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a (EJB3) remote interface with method and a stateless session bean with an implementation of foo() that simply prints the elements of the list.

When calling this from a client, I get the exception "java.rmi.UnmarshalException: Method not found" back from the EJB.

When I remove the String parameter type from the interface, i.e. I change the interface (+ implementation) to the foo() method executes as expected and prints the list's values on the server.

As far as I know, ArrayList is serializable and String is serializable. Any ideas what's causing the exception, or if it's possible at all to use parameterized lists in a remote interface?

In case it matters, the platform is WebLogic 10.0.

Thanks.
 
Max Duval
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've got the exact same problem, but we are on Weblogic 11. Did you find what was going wrong, was it something to do with Weblogic?

Or, does anybody else have a clue?

Thanks!
 
Jonatan Samoocha
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Max,

unfortunately, I found no solution. I just kept using the (rather ugly) workaround of the raw ArrayList type. If you have a WebLogic support contract, maybe Oracle could produce an answer.
 
Max Duval
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, I'll keep looking and if we find something I'll post it here.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!