I’ve looked trough many answers here on so but haven’t found anything helpful. I am using java version 16.0.1 My program doesn’t use maven or gradle. The program worked fine until I updated my ij earlier today. Full error: Here are the files from .idea and the .iml file: https://1drv.ms/u/s!…
Tag: java
Setting up Selenium correctly
I have been trying to install Selenium for about a day now, and I can´t get it to work. First, I just downloaded the standalone jar and added it as a user library. That did work out fine, until I wanted to use org.openqa.selenium.htmlunit.HtmlUnitDriver. Apparently, this library is not included in the jar. So…
Protocol error trying to parse XML response in Java
I am successfully making an API call that is a SOAP request with an account number in the body. I connected using Httpurlconnection and I am reading those results using BufferedReader: Then using documentbuilderfactory to build the doc to read into the parser: And then try to parse: NodeList returnList = xmlD…
IllegalArgumentException: Unable to create @Body converter for class
Whenever I try to create a request with Retrofit it fails. The strange thing is that it worked before, I didn’t change anything about the code. Now months later it doesn’t work anymore. I’m getting the following error: IllegalArgumentException: Unable to create @Body converter for class apis…
Rest assured test failed with error “at java.base/java.util.ArrayList.forEach”
Every time I want to run my test it returns me an error in line that contains RestAssured.given() I tried different code examples from every where and every time it returns the same error in the same line that contains RestAssured.given() this is my code and this is the error returned Answer You’re prob…
The connection attempt failed when try connect PostgreSQL via SSH tunnel. I using Java with jsch lib
I’m facing an issue when I try to connect to PostgreSQL Database after connected SSH successfully. I’m using Java + JSCH library to help connect to DB PostgreSQL via SSH tunnel. Please help to take a look on my code: An exception is thrown at following step: Here is result: I used value above to c…
correct structure in MVC with spring
I’m a little confused about correct mvc pattern. This is my config file: In this class I’ve got all Beans. This is my interface UserRepo, and interface UserService. They are the same I’ve got my class that implemets this interface And finally I’ve got my Controller In my Controller I @…
Fragment cannot be converted to Fragment nextFragment
I am very new to android/java dev so bear with me a bit here. I am using and a button to load a Then on TestFragment.java I have So when the button btn_test is pressed, it goes to TestFragment.java, which then loads the fragment_test.xml layout – as far as I can tell. However, I want my TestFragment to …
Cannot access numeric value of cell from a String cell
I am trying to read an excel file and execute my test case accordingly, now the error I am getting is java.lang.IllegalStateException: Cannot get a STRING value from a NUMERIC cell Here is my implementation of the code: You might notice that I have user String.valueOf(); but to no avail. And here is my code f…
Failed to determine a suitable driver class spring
When I run my Spring Boot project, I get this error: Description: Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a suitable driver class Action: Consider the following: If you want an embedded database …