Announcement Announcement Module
Collapse
No announcement yet.
unhelpful error message when defining reference with invalid interface Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • unhelpful error message when defining reference with invalid interface

    <list id="listFoo" interface="org.wrong.package.Class" cardinality="0..N"/>

    If the interface doesn't exist, the error message is:
    The property value 'org.wrong.package.Class', specified in the definition of bean 'listFoo', could not be converted to the required type 'class [Ljava.lang.Class;'.

    It took me a while to figure out that I entered the wrong interface.
Working...
X