I'm trying to call a method using parameters that definitely match my args, yet I get this error...
The method getAdministratablePaging(Long, ContentFilter, int, int, Integer, Integer) in the type ContentService is not applicable for the arguments (Long, ContentFilter, int, int, Integer, Integer)
The code is...
ResultPage knowledgeCenters = _kcs.getAdministratablePaging(ContentConstants.KNOWLEDGE_ROOT, filter, 0, Constants.COUNT_ALL, ContentConstants.COLUMN_SIZE, Constants.SORT_ORDER_ASCENDING);
I'm working in Eclipse and have tried Clean and rebooting the IDE. Suggestions much appreciated!
Just putting my comment as an answer in case it can help somebody seeing this question in the future.
When you see a message like this, then the only possibility is that there are multiple types of one of the parameter objects. In this case, @nscoppin had two different definitions for ContentFilter. Either import the correct one, or use the fully qualified name in the method call, ie
someMethod(com.packageA.subPackage.ContentFilter);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With