Posts by wladyband • 4,694 points
426 posts
-
0
votes0
answers27
viewsQ: Uncaught Typeerror Visible is not a Function in Cypress
My application is giving this error message. Uncaught Typeerror: navbar.Visible is not a Function This error originated from your application code, not from Cypress. When Cypress detects uncaught…
-
0
votes0
answers11
viewsQ: Assertionerror error in Selenium
I’m trying to perform a message list comparison test using Selenium, notice how I’m capturing the list. public List<String> localizadorListaMensagens(By by) { List<WebElement> mensagens…
-
0
votes0
answers43
viewsQ: I can’t show the Material Design icon on screen
I tried to put the menu of Material Design, but I was not successful. Please someone has how to check if something is wrong with my code? angular js. "styles": [ "src/styles.scss",…
-
-1
votes1
answer61
viewsQ: Problems creating schema by Knex js
I am trying to create a relationship scheme between tables in Node express, and that apparently is right, even so is generating this error message. knex migrate:Latest migration file…
-
1
votes1
answer63
viewsQ: How to work with filter in an array typescript?
I will prefer to show first the error message you are giving. error TS2349: Cannot invoke an Expression Whose type Lacks a call Signature. Type '((...items: any[]) => number) | (...items:…
-
0
votes0
answers42
viewsQ: Service class does not recognize Angular 10 Httpclientmodule class methods
That’s the structure of my little project; And be able to import the http module into my project as you can see below; But after importing the method into my service class it generates errors in the…
-
-1
votes1
answer39
viewsQ: WB How to make use of Android Studio Profile?
When we are working on Android development with Java or Kotlin usually it is using a feature similar to Listview, but on Android devices if the list is too large the application starts to load too…
-
-2
votes2
answers3952
viewsQ: Error Creating bean with name flywayInitializer defined in class path Resource
I am trying to add new fields to my table in my Spring Boot project using Flyway, and I am not getting this error message. 2020-04-29 12:53:36.345 WARN 544 --- [ restartedMain]…
-
-1
votes1
answer208
viewsQ: Textinputedittext cannot be converted
This here is my Activity class. import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.widget.EditText; import…
-
1
votes1
answer101
viewsA: How to show icon images in Android Action Bar?
Before it was like this; And I changed it and it stayed that way; I took questions with some of my fellow developers, they informed me that when we use the IDE’s graphics editor it is recommended to…
-
1
votes1
answer101
viewsQ: How to show icon images in Android Action Bar?
I created a simple application, it is something very trivial. What is happening is that I am trying to create a menu with icons on Action Bar, but what is actually happening is that my application…
-
0
votes1
answer36
viewsQ: How to insert icons in Android project?
I am creating menu buttons in my Android project, for this I am using the site of Material IO, for me to be able to include the icons. What I did was to download the images of the icons as shown in…
-
0
votes1
answer159
viewsA: java.lang.Classnotfoundexception: android.support.v7.widget.Toolbar
The problem was in my XML file, I took this model from Github, and it worked! <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout…
-
1
votes1
answer159
viewsQ: java.lang.Classnotfoundexception: android.support.v7.widget.Toolbar
OFFICIAL ANDROID DOCUMENTATION ABOUT TOOLBAR I’m following the official documentation of Android, and even so I’m having problems as it generated this error. Caused by:…
-
0
votes1
answer62
viewsA: How do I format string in an android app?
The mistake was here The list value was placed instead of the variable representing the list position. It’s the right thing to do!…
-
-1
votes1
answer62
viewsQ: How do I format string in an android app?
When changing option it does not format the string values as shown in the image below. Please, how could I fix this? This is my code. import android.app.AlertDialog; import android.app.Dialog;…
-
1
votes1
answer1040
viewsA: Error android.view.Inflateexception: Binary XML file line
The problem was in the act of importing the correct package, I had imported that package. and stayed like this! But the right package is this! After I put the right package worked perfectly.…
-
0
votes1
answer1040
viewsQ: Error android.view.Inflateexception: Binary XML file line
note the error message! 2020-01-03 16:37:48.091 27513-27513/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.resource.listfragment, PID: 27513 java.lang.RuntimeException: Unable to start…
-
3
votes1
answer1932
viewsQ: How to access the postgres of a Docker image?
Greeting, I just created a Docker image of the Postgresql database with some additional settings as shown in the command below: docker run -p 15432:15432 --name kwandb -e POSTGRES_USER=postgres -e…
-
2
votes0
answers123
viewsQ: How to fix strange Docker bug?
In a few days ago I started my study with Docker, I took one of those courses from cod3r, seemed beautiful and wonderful. And then I started experimenting with Spring Boot, it’s an archive JAR that…
-
0
votes1
answer29
viewsQ: ERROR The Compose file Docker-Compose is invalid because
I’m getting this error message; This message appears when running Docker-Compose.yml, take a look at how it looks like! version: "3.5" services: kwan: image: postgres container_name: postgres-kwan…
-
1
votes0
answers72
viewsQ: How do I make my application run on Docker Compose?
Note the error message; DESKTOP-LTE4439+resource@DESKTOP-LTE4439 MINGW64 /c/docker/teste $ docker-compose up postgres is up-to-date Starting teste_java_1 ... done Attaching to postgres, teste_java_1…
-
0
votes1
answer166
viewsQ: Error running JAR on Docker-Compose
Look at the error; It informs that my JAR file gave error and because of this it was not executed; My file Docker-Compose.yml must be in error, and for lack of experience I am not being able to…
docker-composeasked wladyband 4,694 -
1
votes1
answer1821
viewsQ: How do I fix my Docker-Compose.yml? expected <block end>, but found '<block Mapping start>'
$ docker-compose up ERROR: yaml.parser.ParserError: while parsing a block mapping in ".\docker-compose.yml", line 3, column 4 expected <block end>, but found '<block mapping start>' in…
-
1
votes1
answer412
viewsQ: How to run Dockerfile inside Docker-Compose.yml?
This is a generic skeleton of a Docker-Compose.yml file version: '3' services: db: image: mongo:3.4 backend: image: node:8.1 volumes: -./backend:/backend ports: - 3000:3000 command: bash -c "cd…
-
0
votes2
answers648
viewsQ: How to generate the jar file with Maven commands?
I am in a Spring Boot project, I am managing to generate the jar file through the eclipse tool as you can see below; 2 Stage; 3 Stage; Last; But when I run through Maven it generates several errors…
-
-1
votes1
answer315
viewsQ: How to generate the jar file by Maven?
I need to generate a file jar in the project folder as shown in the image below; I don’t want to be depending on the bash command mvn clean install, i would love to put the settings in the pom.xml…
-
0
votes1
answer41
viewsQ: How to use hyperlink for spreadsheet with selected cell?
Look at the picture; My goal is to click on the mobile the user is directed to the spreadsheet being the line selected, as it is in the image above it is selecting the line manually. The line of…
-
0
votes1
answer343
viewsA: How to rename input file button in Angular 7?
In the component class; nomeArquivoSelecionado: string = ""; selecionarArquivoMovManual(event) { //console.log(event.target.files[0].name); this.arquivoMovManual = event.target.files[0];…
-
-2
votes1
answer343
viewsQ: How to rename input file button in Angular 7?
Watch the image; Now look at the code; <div class="form-control pl-0" style="border: 0px solid"> <input type="file" name="arquivoMov" id="arquivoMov" accept=".pdf"…
-
0
votes1
answer92
viewsQ: How to correct object loading at Angular 7?
Look at the picture; You can notice that when you click on the Debits checkbox the list only carries all the names that have the debited word on the side, but it doesn’t happen the same when the…
-
2
votes1
answer746
viewsQ: How to limit an input of type Number to only 3 characters by Angular 7?
I have a problem with a variable of type integer, because maxlength="" only works with string and need to bar, but is of type Number. I think you need javascript, if anyone knows the solution would…
-
2
votes1
answer453
viewsQ: How to put maximum value in a Date field in Angular 7?
Look at the picture; You can see from the image that the field is accepting more than ten digits, what I need to do is allow the user to only type ten digits in the data field, I’m having difficulty…
-
0
votes1
answer169
viewsQ: How to sort my Java list alphabetically?
I have a Spring Framework project, and I need to alphabetize my list, and I have no idea how to do it. At first I managed to load the list, but it has to have that order. Please, how should I do?…
-
1
votes1
answer737
viewsQ: How to clear the field at Angular?
Look at the gif image; I am working on an Angular project, what I need is for the user to switch from CPF to CNPJ in addition to performing the fields exchange it can also clear the field when it is…
-
0
votes1
answer47
viewsQ: problems using fail in junit
I want to create custom message for every exception error in my test class, my test is working perfectly, however when I purposely make a mistake it does not come within my exception as you can see…
-
-2
votes1
answer48
viewsQ: How to fix NULL object bug?
I am creating loading objects to perform unit tests, but the object I am working for is null as shown in the red arrow below, on line 39, and I can’t understand why this is happening, I need help to…
-
0
votes1
answer23
viewsQ: How to find the mockite method according to the package?
I’m trying to find the mockito library according to the package below; import static org.mockito.ArgumentMatchers.any; I’ve tried these jars libraries, but no results; mockito-core-1.9.5.jar…
-
0
votes1
answer115
viewsA: How to create a parameterized Java method?
Solution public Boolean verificadorFluxoCSV(String[] dadosCSV) { if (!dadosCSV[TIPO_DO_INDICIO].isEmpty()) { tipoIndicio = new TipoIndicioEntity();…
-
0
votes0
answers86
viewsQ: How to use Classloader.getResources() correctly in Java?
I am unable to capture the right path from where my CSV file is through this line of code below using Classloader.getResources(); @RunWith(MockitoJUnitRunner.class) public class IndicioActionTest {…
-
-1
votes1
answer115
viewsQ: How to create a parameterized Java method?
This is a Java method that is very coupled, and I need to decouple this method because there is a lot of code inside it, the block of code that I need to get inside the method uploadfile() is marked…
-
2
votes1
answer430
viewsQ: Unit tests on a CSV file upload
Before explaining my problem I will show my CSV file upload code. public String uploadArquivo() { try { removeInSession(LISTA_TIPO_INDICIOS); removeInSession(LISTA_INDICIOS);…
-
0
votes0
answers41
viewsQ: How to know how many Bytes have file through Javascript Arraybuffer?
I’m with a file upload application, and I need to know how to identify how many bytes my file has, that’s why I’m using Arraybuffer, I know there are other ways to measure the file size, but I’d…
javascriptasked wladyband 4,694 -
0
votes0
answers53
viewsQ: Rangeerror: Invalid string length using JSZIP
The functionality of my application is to upload zip files, inside each zip file has files XML, in the process it has to unzip the file and then it saves the data in the database, the application…
javascriptasked wladyband 4,694 -
1
votes1
answer334
viewsQ: How to create a unit test using mockite in a list of objects
I know exactly what I need to mock about the object data, but I have no idea how to implement a test when it comes to a list of objects, I just need an example, someone could only show me an example…
-
0
votes1
answer324
viewsQ: java.lang.Assertionerror: Expected: not null but: was null - Junit test
The variable result is returning NULL although the Object is filled. This is my test; @RunWith(MockitoJUnitRunner.class) public class IndicioDAOTest { @Mock private IndicioDAO indicioDAO; @Test…
-
2
votes0
answers257
viewsQ: How to write the Junit test with Spring Autowire?
I am currently setting up a Dynamic Web project to run unit tests, but this project is using dependency injections by Spring Frameworks, it is important to mention that the version of spring that…
-
0
votes0
answers66
viewsQ: Nullpointerexception in a Junit query!
Observe the code below; @Sql(statements = { "INSERT INTO GrupoTipoIndicio (Codigo,Nome) VALUES (1,'segundo grupo')", "INSERT INTO GrupoTipoIndicio (Codigo,Nome) VALUES (2,'primeiro grupo')", "INSERT…
-
0
votes1
answer120
viewsA: Send Ajax data to controller and return values
The solution that has been given is to change the java method in the back-end. public String verificadorRemessaExistente() { String verificadorRemessa; UsuarioLogadoExterno usuarioLogado =…
-
1
votes1
answer120
viewsQ: Send Ajax data to controller and return values
My project is a Struts application, and my problem is that I’m not getting the return of the back-end method for the ajax method in the graphical interface, and I’m needing the modal form to return…