Thanks a lot, the problem is solved, it's actually an AEM version issue. Apparently AEM 6.1 and after doesn't support the getDefaultWorkspace() method as a login method, so that's why when I was trying to do so, it has this error, which doesn't happen on the video guy who has a AEM 6.0. Also, thanks...