Questions tagged as 'java'

0
answers

TestNG / Java - Can I define in an XML that a TestNG group executes certain parameters?

I happened to have: @BeforeClass(groups = {"group1","group2"}, //Codigo que se ejecuta antes de iniciar la prueba } @BeforeMethod(groups = {"group1", "group2"}, //codigo base para todos mis casos de prueba } @AfterMethod(...
asked by 21.05.2018 / 21:20
3
answers

How to select specific content from one file and write it in another?

I have to read a file and then select specific content, write it in another file. The file that I have to read has several lines and each line has this format:     "content1", "content2", "content3", "content4", "123" I have to select the con...
asked by 18.05.2018 / 18:40
0
answers

How to use X-Http-Overriden-Method in Postman

I have a question from PostMan rather, it turns out that in my controller I have a GET request in which I have to send an @RequestBod, I have been asked to do a POST and with the method @RestController public class TestController { @GetMa...
asked by 21.05.2018 / 22:36
1
answer

Connecting with a Linked Bluetooth Device

I use the following code to get a list of all the linked devices in the mobile phone: BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); Set<BluetoothDevice> pairedDevices = mBluetoothAdapter.getBondedDe...
asked by 21.05.2018 / 21:55
0
answers

I have a problem, Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException

I'm doing an application on jframe and when I run it does not connect to my database and this exception comes out:    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException     at sistemaventas.salesVer.setFilas (ventaVer.java:...
asked by 21.05.2018 / 22:31
2
answers

How to show a dialog with check predefined markings?

Good morning, I have the following Dialog with Multiple Checkboxes Selection List, How can I make it so that when I call the Dialogue, I show myself with check some items? for example, if I want to load with check item 5 and item 9, how can I do...
asked by 14.05.2018 / 16:38
1
answer

Java Mysql Error in a field

It does not let me change the default value of a field in the database that I have to use to do a job even if it is root, and above it gives me an error that a field has no default value, what do I do? num_emp1.setText("" + rs.getDouble("num_e...
asked by 14.05.2018 / 07:59
1
answer

I need help with an iteration

In a servlet I am collecting some parameters of a jsp in this way //Parametro urls String urls[] = request.getParameterValues("urls"); //Parametro busca String busca[] = request.getParameterValues("busca"); and later I pass them to a jav...
asked by 14.05.2018 / 10:27
0
answers

WebScrapping Beautiful Soup

I am trying to scrap the following page link , initially I thought about using Selenium but I found a pattern in the url, now I have the following code that is repeated in all the links, I can use beautiful soup What would be the regular expres...
asked by 13.05.2018 / 01:25
1
answer

Problem with entering data with hibernate in java

When I enter a data via jsp with hibernate and mysql, this error is thrown at me:    Exception Report Type       message Execution of the Servlet launched an exception       description The server encountered an internal error that caused...
asked by 13.05.2018 / 03:39