In case the upgrade fails quote /* */ the parts in the java-actions between // BEGIN USER CODE and // END USER CODE of the failing java-action. You can do that in the converted project.
Run the upgrade wizard again. Mendix will upgrade all imports en automatic java code.
After that activate the code and refactor it. Replace obsolete parts with new api calls. Take a look in Mendix doc.