cancel
Showing results for 
Search instead for 
Did you mean: 

[SOLVED] Method 'exists' within fileFolderService

shmoula
Champ in-the-making
Champ in-the-making
Hi,
  I have two alfresco instances: 3.4.b and 3.4.d, both community versions. I'm using method fileFolderService.exists(nodeRef), which in 3.4.d works fine, but when running on 3.4.b I'm getting:


java.lang.RuntimeException - Method not handled by interceptor: exists

$Proxy72.exists(Unknown Source)

From which version exists that method exists? Isn't it possible that it's not in 3.4.b? Or why I'm getting this error?

Thanks in advance

EDIT: It's not due to alfresco version, but due to Content Language Filter.
6 REPLIES 6

mrogers
Star Contributor
Star Contributor
I think "exists" has existed for quite a long time. :roll:     Certainly I can see it in 3.3.

shmoula
Champ in-the-making
Champ in-the-making
Thanks for response mrogers.
I'm slowly figuring that things out - it looks like I'm passing null nodeRef inside (the same thing is happening in listDeepFiles method), I'm trying to catch it now and testing… I'm still confused - why it throws broader exception (runtimeExceptoin) instead of NPE?

mrogers
Star Contributor
Star Contributor
Are you calling it from Java or JavaScript?

shmoula
Champ in-the-making
Champ in-the-making
from java code

(additional question - is there any difference between exists method in nodeService and FileFolderService?)

shmoula
Champ in-the-making
Champ in-the-making
Nobody else? I think I have another issue - listDeepFolders in fileFolderService does the same. And I figured out that this behavior happens when I switch Content Language Filter from "All Languages" to some other language. Where can be problem?

shmoula
Champ in-the-making
Champ in-the-making