Questions tagged as 'java'

1
answer

Problem with deadlocks and concurrency Producer Java Consumer

I've already been thinking about this problem for a couple of weeks and I always have some error in the concurrency of the threads or that one ends and the other does not, interlock, etc. I post here the summary statement and my code in case som...
asked by 01.05.2018 / 23:41
1
answer

Error requestFeature () AlertDialog

I have an AlerDialog in my App, the main problem is that in versions of Android Nougat and later this works perfectly but in Marshmallow and below the AlertDialog gives me this error: requestFeature() must be called before adding content...
asked by 15.10.2018 / 15:35
2
answers

How can I solve this problem in spring boot + bootstrap + jsp

Greetings I have the problem I am using spring boot and bootstrap v4 so I want to show a combination that shows me the data in a form but it does not show me I leave the corresponding code and also solve the error that I previously published in...
asked by 10.07.2018 / 13:28
1
answer

Error: Program type already present Android Studio

I'm trying to use the Twitter API to only show a tweet, the application does not have any code but it gives me the following error:    Program type already present: android.support.v4.app.FragmentTransitionCompat21 $ 1   Message {kind...
asked by 26.04.2018 / 13:08
1
answer

Search for registration in Web Service Java

I am starting with this from the Web Service Rest and I have encountered the problem when doing a crud with the database. For example, I need to search for a record but not for its PK but for another field, is it possible to do this? Could yo...
asked by 27.04.2018 / 04:43
2
answers

connection to java with mysql

Actually not so good JAJA, I have a problem with the connection from java to mysql and import the library the jar even though I made the connection and it tells me that the connection is not established. I show you the connection code packa...
asked by 19.04.2018 / 17:38
1
answer

EL: Illegal syntax. in JSF + primefaces

Please, I would like to know what is wrong with this expression. <p:inputText id="text_url" disabled="#{menuBean.tipoMenu.equalsIgnoreCase('I')?false:true}" value="#{menuBean.tipoMenu.equals('I')?menuBean.menu.formul...
asked by 21.05.2018 / 18:59
1
answer

concurrency java threads

I'm playing the thread theme in java and I'm doing some checks. I want to extract and enter the letters in the pipeline array two by two in a concurrent way and that every time that letters enter or exit I indicate the ones that come out and how...
asked by 30.10.2018 / 11:20
1
answer

Add two inputs if there is hidden div

In my programming I have two div with buttons to hide them and I have two inputs: nota1 and nota2 and I have a button to add those two inputs. I want those two buttons to be added only when the div1 is hidden....
asked by 30.10.2018 / 19:45
1
answer

Access database connection with JAVA

Greetings I do not know why the connection does not run, it will be for the jackcess that will be obsolete or for the version of my jdk 1.8? because you already add JAR UCanAccess 4.0.4 to libraries through netbeans packag...
asked by 20.04.2018 / 21:50