RE: Something went wrong attempting to register service method

thumbnail
ali yeganeh, modified 5 Years ago. Regular Member Posts: 148 Join Date: 5/1/19 Recent Posts
Hi
I use JSON Web Service, after run build service and deploy service module I encountered with the below exception!!!

[JSONWebServiceActionsManagerImpl:267] Something went wrong attempting to register service method
Meanwhile, my  Liferay version is 7.3.
How can I solve this problem?
thumbnail
Olaf Kock, modified 5 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts
ali yeganeh:

Hi
I use JSON Web Service, after run build service and deploy service module I encountered with the below exception!!!
[JSONWebServiceActionsManagerImpl:267] Something went wrong attempting to register service method
How can I solve this problem?
Just that exception doesn't really help. I like to joke about rephrasing error descriptions to "Something went wrong" - in this case my joke falls flat, as your error message already says exactly that, so you'll have to do something differently ;)
Can you reproduce in a minimal project that you can post? Also, mention the (exact) version in use.
thumbnail
Christoph Rabel, modified 5 Years ago. Liferay Legend Posts: 1555 Join Date: 9/24/09 Recent Posts
As Olaf said, but IMHO the exception should tell you a lot of details about the object that could not be registered. It also should contain the original exception message, that caused this log entry.  
An issue like that can be caused by many small errors like duplicate/invalid context paths, mistakes in the annotations maybe. It can also be caused by copy and paste. Copying a project/a class and forgetting to rename something.