In my view, the toughness of the project depends upon the requirement, not the programming language. My apologies for demotivating you but the real fact is being a developer is a real pain irrespective of programming languages. I assume you are quoting the exception stack trace. You can easily find the issue on the official website of the programming language.
From an expert's point of view, first, select a specific domain and then select a corresponding programming language. I assume you are expecting to start a career in automation testing. If yes go for Python, as the syntax will be easier and easy to grasp the concepts as a beginner point of view. Once the python is been mastered, you can work in Java, but there will be a different syntax for java and the loopholes should be thoroughly examined before starting to work on Java.
The bottom line is there is no easier language, project requirements determine the toughness of the project and if you like to start a career in automation testing, start to learn python because of the easier syntax.
Hope this helps and this answered your question.
S. Kogul