43 Replies
JavaBot
JavaBot2w ago
This post has been reserved for your question.
Hey @ASHٴ! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
ASHٴ
ASHٴOP2w ago
FO] ------------------------------------------------------------- [ERROR] /C:/Users/ashir/Downloads/TuneHub_2025-main/TuneHub_2025-main/src/main/java/com/io/tunehub/controller/UserController.java:[62,77] cannot find symbol symbol: method getEmail() location: variable newUserRequest of type com.io.tunehub.dto.RegisterRequestDTO [ERROR] /C:/Users/ashir/Downloads/TuneHub_2025-main/TuneHub_2025-main/src/main/java/com/io/tunehub/controller/UserController.java:[67,85] cannot find symbol symbol: method getEmail() location: variable newUserRequest of type com.io.tunehub.dto.RegisterRequestDTO [ERROR] /C:/Users/ashir/Downloads/TuneHub_2025-main/TuneHub_2025-main/src/main/java/com/io/tunehub/controller/UserController.java:[71,83] cannot find symbol symbol: method getEmail() location: variable newUserRequest of type com.io.tunehub.dto.RegisterRequestDTO [ERROR] /C:/Users/ashir/Downloads/TuneHub_2025-main/TuneHub_2025-main/src/main/java/com/io/tunehub/serviceimpl/UserServiceImpl.java:[53,52] cannot find symbol symbol: method getEmail() location: variable newUserRequest of type com.io.tunehub.dto.RegisterRequestDTO [ERROR] /C:/Users/ashir/Downloads/TuneHub_2025-main/TuneHub_2025-main/src/main/java/com/io/tunehub/serviceimpl/UserServiceImpl.java:[68,57] cannot find symbol my packages are not getting detected for some reason
ASHٴ
ASHٴOP2w ago
Dexter
Dexter2w ago
package com.io.tunehub.service; import com.io.tunehub.dto.RegisterRequestDTO; import com.io.tunehub.entity.User; import java.util.*; /** * Service interface for managing Users. */
public interface UserService {

User addUser(RegisterRequestDTO newUserRequest);

Optional<User> findByEmail(String email);
}
public interface UserService {

User addUser(RegisterRequestDTO newUserRequest);

Optional<User> findByEmail(String email);
}
This message has been formatted automatically. You can disable this using /preferences.
ASHٴ
ASHٴOP2w ago
No description
ayylmao123xdd
ayylmao123xdd2w ago
have you tried refreshing the project using mvn clean compile or gradle clean compileJava
ASHٴ
ASHٴOP2w ago
after clean compile not happening
ayylmao123xdd
ayylmao123xdd2w ago
not working or whats not happening
ASHٴ
ASHٴOP2w ago
this
ayylmao123xdd
ayylmao123xdd2w ago
do you even have that method get email in your dto show that dto
Dexter
Dexter2w ago
package com.io.tunehub.dto; import jakarta.validation.constraints.NotBlank;
public class RegisterRequestDTO {

@NotBlank(message = "Username is required.")
private String username;

@NotBlank(message = "Email is required.")
private String email;

@NotBlank(message = "Password is required.")
private String password;

public RegisterRequestDTO(@NotBlank(message = "Username is required.") String username, @NotBlank(message = "Email is required.") String email, @NotBlank(message = "Password is required.") String password) {
this.username = username;
this.email = email;
this.password = password;
}

public RegisterRequestDTO() {
}

public @NotBlank(message = "Username is required.") String getUsername() {
return this.username;
}

public void setUsername(@NotBlank(message = "Username is required.") String username) {
this.username = username;
}

public @NotBlank(message = "Email is required.") String getEmail() {
return this.email;
}

public void setEmail(@NotBlank(message = "Email is required.") String email) {
this.email = email;
}

public @NotBlank(message = "Password is required.") String getPassword() {
return this.password;
}

public void setPassword(@NotBlank(message = "Password is required.") String password) {
this.password = password;
}
}
public class RegisterRequestDTO {

@NotBlank(message = "Username is required.")
private String username;

@NotBlank(message = "Email is required.")
private String email;

@NotBlank(message = "Password is required.")
private String password;

public RegisterRequestDTO(@NotBlank(message = "Username is required.") String username, @NotBlank(message = "Email is required.") String email, @NotBlank(message = "Password is required.") String password) {
this.username = username;
this.email = email;
this.password = password;
}

public RegisterRequestDTO() {
}

public @NotBlank(message = "Username is required.") String getUsername() {
return this.username;
}

public void setUsername(@NotBlank(message = "Username is required.") String username) {
this.username = username;
}

public @NotBlank(message = "Email is required.") String getEmail() {
return this.email;
}

public void setEmail(@NotBlank(message = "Email is required.") String email) {
this.email = email;
}

public @NotBlank(message = "Password is required.") String getPassword() {
return this.password;
}

public void setPassword(@NotBlank(message = "Password is required.") String password) {
this.password = password;
}
}
This message has been formatted automatically. You can disable this using /preferences.
ayylmao123xdd
ayylmao123xdd2w ago
well i dont see any get email method here lol only setters
Dexter
Dexter2w ago
public @NotBlank(message = "Email is required.") String getEmail() {
return this.email;
}
public @NotBlank(message = "Email is required.") String getEmail() {
return this.email;
}
whats
This message has been formatted automatically. You can disable this using /preferences.
ASHٴ
ASHٴOP2w ago
this
ayylmao123xdd
ayylmao123xdd2w ago
oh my bad whats the point of this validation here
dan1st
dan1st2w ago
autogenerated/copied the annotations
ASHٴ
ASHٴOP2w ago
idk i de lombok it thinking maybe lombok issue
dan1st
dan1st2w ago
Is it delomboked or are you still using lombok?
ASHٴ
ASHٴOP2w ago
delomboked in intellij ultimate no error is there also 8 usages showing
dan1st
dan1st2w ago
Is that exact class located in src/main/java?
ASHٴ
ASHٴOP2w ago
No description
ayylmao123xdd
ayylmao123xdd2w ago
looks like problems with the build itself
ASHٴ
ASHٴOP2w ago
ASHٴ
ASHٴOP2w ago
pom
dan1st
dan1st2w ago
Can you run mvn clean verify? If that command tells you build successful, restart IntelliJ
ASHٴ
ASHٴOP2w ago
running i invalidated caches and restarted verify got sucessful
ayylmao123xdd
ayylmao123xdd2w ago
does it work now
dan1st
dan1st2w ago
Did you restart IntelliJ after mvn clean verify being successful?
ASHٴ
ASHٴOP2w ago
somehow it got fixed
ayylmao123xdd
ayylmao123xdd2w ago
😱 success
ASHٴ
ASHٴOP2w ago
but i was running from terminal thannksss .... do u know frontend
ASHٴ
ASHٴOP2w ago
no i need help installing tailwind
ayylmao123xdd
ayylmao123xdd2w ago
Installing with Vite - Installation
Integrate Tailwind CSS with frameworks like Laravel, SvelteKit, React Router, and SolidJS.
ayylmao123xdd
ayylmao123xdd2w ago
if you use vite
JavaBot
JavaBot2w ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
ASHٴ
ASHٴOP2w ago
No description
dan1st
dan1st2w ago
You used <scope>annotationProcessor</scope> for lombok which is invalid If you delomboked everything, you can also remove the lombok dependency
ASHٴ
ASHٴOP2w ago
no i am thinking to use again what should be the correct scope i think in intellij when enabled annotation processing scope is change to this but what i need to keeep when deploying
dan1st
dan1st2w ago
If you don't need it at runtime, the correct scope is provided The scope is just for when the dependency should be available provided means you can refer to the classes in your code but they won't be available at runtime
JavaBot
JavaBot2w ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
ASHٴ
ASHٴOP2w ago
Ok thanks
JavaBot
JavaBot7d ago
If you are finished with your post, please close it. If you are not, please ignore this message. Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts. 💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.

Did you find this page helpful?