---
# System prepended metadata

title: Java Common Errors
tags: [Debugging, Java]

---

###### tags: `Java`, `Debugging`
# Java Common Errors 

Java Language (Fundamentals errors)


Spring Boot and Web Application errors
``` cannot create a JSP file or JSP file is not an option to select ```
WHY: 
To create a JSP file, it is important to not skip any modules on the Learn Platform since each give a key element to be able to progress to the next. 
Often students don't read carefully the following module: 
https://login.codingdojo.com/m/325/9947/67325

COMMON MISTAKES: 
- When students download "Eclipse Enterprise Java and Web Developer Tools", there is a progress bar in the lower right-hand corner displaying the download bar. 
Often students don't see that bar and proceed to try to work on their project without letting it finish. 
Once it is done, it should prompt a restart of STS.
- The module also prompts a download of Emmett, and as is stated in the module above these directions are often overlooked: "inside STS at in the main menu, go to Preferences, located in the Spring Tool Suite tab or the Window tab depending on your OS. Then search for "Emmet". You will need to add "jsp" to the list of associated files. Be sure to apply your changes. You may need to restart STS for the changes to take effect."

## Uncommon Error

![](https://i.imgur.com/RNswt0m.png)

- Error was stating that during the add function the input field was posting a String but it was looking for Long.  However everything was set up correct. But the @ModelAttribute, Column/Path, and Table were all called name - too many names in 1 pot it got messed up.  Student was able to post if they imputed a number but not a actual name.  Changing the @ModelAttribute to the form to nameForm fixed it