Questions tagged as 'java'

2
answers

Error: java.lang.NullPointerException

I am a beginner in Java and I have a question on the subject of records. I am carrying out an article management program that allows, among other things, to register an article. The maximum number of articles that can be is 100 . They as...
asked by 03.01.2017 / 17:24
1
answer

Oracle / Java number format

I have the following query: SELECT distinct ln.gps_id,GPS.LATITUD,GPS.LONGITUD, to_number(substr(REPLACE(GPS.LONGITUD,'N',''),1,2))||'.'||TO_NUMBER(substr(substr(to_number(REPLACE(GPS.LONGITUD,'N','')),3,10)/60,2,6))||',-'|| TO_NUMBER(substr(G...
asked by 03.01.2017 / 18:25
0
answers

Error clean and build - java.lang.ArrayIndexOutOfBoundsException: 4 [closed]

The project compiles to me and works perfectly for me only when I make a CLEAN AND BUILD of it, I get the following error: run: Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 4 at interfaz.Ficha_tecnica_...
asked by 04.01.2017 / 00:29
0
answers

Problem Changing the Status of an attribute of a java database [closed]

I have a checkbox in the first column of my jtable to select the rows of the records that I want to change from bone state from true to false and vice versa but when clicking on a checkbox and After removing the blue...
asked by 30.12.2016 / 01:12
0
answers

Error Query SQL: SQLGrammarException

I have problems with the following @Query, to which I can not find error reason: SQLGrammarException @Query("select distinct e.issue.company from CreditLinesAmendmentEntity e where " + "(e.issue.ownerBank!=null and (e.issue.ownerB...
asked by 28.12.2016 / 20:26
2
answers

Disable USB ports from CMD or Powershell

I'm doing a project in which, from Java, I execute commands from the CMD or Powershell to carry out certain tasks (like, in this case, disable the USB ports of a computer). I've been looking for information and what really fits what I want to...
asked by 27.02.2017 / 09:17
0
answers

Problem when uploading an FTP file using an Asynctask

I have a problem with uploading a file to my ftp server: The problem is not that the file does not upload, or that I can not connect to the FTP server (in my local network) ... The problem is that after connecting, upload the file, the connectio...
asked by 21.01.2017 / 13:57
1
answer

Insert data from java in MySQL

Good morning, I have looked at other alternatives of questions that have been asked here without being able to obtain a solution. My doubt comes when inserting data from an array. In the java program itself, a table is created (if it does not...
asked by 20.01.2017 / 21:27
1
answer

Compare two tables in Mysql [closed]

I am uploading two files from Excel to a JSP to save it in MySQL the first file with its columns: |------------------| | Archivos_nombres | |------------------| | identificación | | nombre_j | | nombre_n | |-----------...
asked by 12.01.2017 / 14:53
1
answer

Create a JTextArea with Scroll

I try to put Scroll in the following way: private JPanel crearPanelFijo() { listado = new JTextArea(7,20); listado.setEditable(false); sp = new JScrollPane(listado); JPanel jPanelText = new JPanel(); jPanelText.add(new JLab...
asked by 12.01.2017 / 15:44