Most voted "java" questions
Use this tag when the question refers to some resource, information, or problem relating exclusively to the Java programming language. Java is a class-based, statically typed, reflective, and execution environment (JRE) language. Java programs are compiled to bytecode and run on a virtual machine (JVM), allowing a "write Once, run Anywhere" philosophy (WORA).
Learn more…14,468 questions
Sort by count of
-
0
votes2
answers3180
viewsjavax.faces.Facesexception, java.lang.Nullpointerexception
The following error(full description below): com.sun.faces.lifecycle.Invokeapplicationphase execute WARNING: #{testHibernate.save}: java.lang.Nullpointerexception javax.faces.Facesexception:…
-
0
votes1
answer256
viewsIs Generic stabbing possible?
Good afternoon I’m studying by object orientation, and in the middle of the studies appeared various patterns and with them a lot of confusion My doubt is it’s possible to have a generic FACADE. or…
-
0
votes1
answer659
viewsArray of phrases in Java
I’m studying Java, and Android development, and I want to make this application to understand how it works. I’m using the Toast class so that when I click on the image, a sentence appears, I can…
-
0
votes1
answer755
viewsHow to set a checkbox as checked?
Good morning, I have a layout with some checkbox, these are disabled so that the user can not check them because for security reasons this check must occur via code, I have the following code: I…
-
0
votes1
answer133
viewsRetrieving data from an object
I have 2 screens in Swing, one that calls a method and registers the information in an array, and another screen that should fetch one of this information and display in it, the problem is that as…
-
0
votes0
answers240
viewsAndroid bug when running emulator project
I’m trying to run a project in Android Studio and this giving an error that I do not know how to solve. Gradle Console: > Executing tasks: [:app:generateDebugSources, >…
-
0
votes1
answer3632
views -
0
votes1
answer338
viewsProblems with selectOneMenu in Jsf 1.2
I need to use JSF 1.2 for client restriction. I’m using selectOneMenu to select the type of person (Physical/Legal) and change the mask dynamically with <a4j:support> and it’s working. But the…
-
0
votes1
answer190
viewsComponents of the Spring MVC Framework
Good morning guys, I’m having trouble finding some specific information regarding Spring MVC, for example: Bar of Loading: JSF uses the Progress Bar component, Struts 2 o Ajax File Upload Plugin,…
-
0
votes0
answers151
viewsReturn to the region where you were when you submitted the form (JSF 1.2)?
I have a page jsf with 2 master/detail moulds. How do I make sure that after the form submission the bean details the region of the page where the detail is? I’m using jsf 1.2 and Richfaces 3.3.3.…
-
0
votes1
answer73
viewsDetails with @Autowired and Down object
There’s been a conflict of concepts with me. I have here a service called: AtividadeService There are some lines that catch my eye: import com.dendetech.entity.Atividade; Why import Entity? If it…
-
0
votes2
answers1096
viewsDynamic Color in Textfield in Jasper Reports
I want to change the color of the textfield according to the value of it, I found several tutorials that say to create a style and apply to textfield, you have to mark a "Styled text" option that I…
-
0
votes1
answer133
viewsProblem with JPQL using JSF
I’m following a book Java EE 7 with JSF, Primefaces and CDI by Thiago Farias. In my persistence.xml, following the book, I have only the definition of my datasource, follows: <?xml version="1.0"…
-
0
votes2
answers121
viewsErro android studio, error: Error retrieving Parent for item: No Resource found that Matches the Given name 'android:Theme.Holo.Light'
Would anyone know what that mistake is: error: Error retrieving Parent for item: No Resource found that Matches the Given name 'android:Theme.Holo.Light'.
-
0
votes1
answer87
viewsHow can I not update a page when closing a Richfaces modalPanel?
I need that when closing a Richfaces modalPanel the page on which the modal was called is not rendered. The action to close the modalPanel is like this: <h:commandLink…
-
0
votes1
answer139
viewsHow to install an old version of JDK in windows 7?
I already have some versions installed on the machine, 1.7 and 1.6. Now I need to install version 1.5, but when I try to install an error occurs, talking to uninstall the versions I have of java…
-
0
votes1
answer445
viewsMark Jcalendar when there is an event on the day
In my Java Desktop application, I’m thinking of adding a Jcalendar to easily tell you what day events will be recorded in a database. My question is whether it is possible to make an appointment or…
-
0
votes1
answer71
viewsEqual inputs different outputs in Java
I’m going through a problem I can’t visualize solution. I’ll try to describe what I’m doing, it’s a lot of code files, so here’s the thing. I’m combining access policies. I have a certain policy…
-
0
votes1
answer97
viewsHow to use setText from a service running in java?
I have a service running a stopwatch that loops from one in a second, how to set the text in the open Activity? I’m using: //tempo new Thread(new Runnable() { @Override public void run(){ int…
-
0
votes2
answers4617
viewsQuerysyntaxexception: Unexpected token: . near
This is the mistake I believe is easy for those who know Java but as I am learning I have not identified the problem. GRAVE: java.lang.IllegalArgumentException:…
-
0
votes1
answer1568
viewsUpload and Recover an Image with Angular
Let’s assume I have a user registration form where I want to save a photo of it. Send this data by POST to the server (Java) where I include in the database. What is the best (practical) way to send…
-
0
votes1
answer320
viewsI transferred an image from one imageview to another imageview in another
Guys I have a grid view that displays images of a server, when clika in the image I have to reload the image a few more details, I wanted instead of having to download the image again, That is, I…
-
0
votes2
answers142
viewsCreate App by manipulating external website
I want to create an app for a site that has no mobile version, so I need to show the user only 04 fields on the screen (login, password, sign up and ok). How can I do that It’s not my site and I…
-
0
votes1
answer387
viewsDrawing through a . txt
I have a big question about how to pass the data from the Quivo2D milking method to the hairX and Hairy variables, in the Quivo2D milking it goes through a file populating vx and Vy with the values…
-
0
votes0
answers36
viewsCustomized exceptions in JAX-RPC
I’m making some improvements to some JAX-RPC Web Services here at the company. I would like to know if it is possible to work with custom exceptions in this case and, if possible, if someone can…
-
0
votes1
answer368
viewsError: expected { when creating a class
I wrote the code below, but it’s giving me the error expected { after the declaration of my class public class book(string title, string text){ string _title = title; string _text = text; void…
-
0
votes1
answer2006
viewsbreaking a file and storing it in a vector - in Java
I am trying to store in an array the values of a file with the extension csv. This extension comes from a file made in excel, and when saved in this extension the values are separated through ";".…
javaasked 9 years, 7 months ago Wesley Redfield 519 -
0
votes1
answer95
viewsProject problems with Maven - Algaworks
I’m a beginner in Maven, I have some little problems that I can’t solve. Does anyone know how to decipher these errors? I don’t quite understand them.…
-
0
votes1
answer113
viewsProblem with Javascriptexecutor Selenium Webdriver
I can’t perform the function doFilterOffer() on the page, it gives the following error Missing ; before statement , what’s the problem with this syntax below? if (driver instanceof…
-
0
votes1
answer21
viewsHow to make direct connection on the table?
I want to know how you do it Connection in Java to perform the direct connection in the table, or if it is possible to do this. Example: conexao =…
javaasked 9 years ago MarlonJhow 645 -
0
votes0
answers34
viewsJquery + ADF - Button Locator
use ADF and I have a problem. In case I have a popup in sequence a dialog and after a panelgroup, below the panelgroup I created a "buttonBar" Facet so I have a style defined in my popup but I need…
-
0
votes3
answers1329
viewsFetch part of a string within a vector
Well I have a vector that gets several lines of text. But I need to compare these lines and see if I can find a word, I tried it with equals() but it only returns true if it finds exactly the same…
-
0
votes1
answer18
viewsViewflipper does not detect Motionevent after inserting Scrollview into it
Use Viewflipper with 4 "pages". Worked, until I insert Scrollview on each of the pages. How can I resolve?
-
0
votes1
answer71
viewsCopying an attribute from a list in java
Copy example: List<MyObject> listaDeObjetos = new ArrayList<>(); List<String> nomes = new ArrayList<>(); for (MyObject obj : listaDeObjetos) { nomes.add(obj.getNome()); }…
-
0
votes0
answers161
viewsError creating Springmvc bean
I’m new in Java and I’m doing several online courses and trying to develop on my own, to train, but I came across a mistake that I have no idea how to solve. Error creating the bean:…
-
0
votes1
answer332
viewsHow to include a field in the First Faces dataset that does not exist in the datatable?
How to include a field in the dataPath (Primefaces) that is not in the datatable? I am generating an Excel file from a datatable with dataExporter, but I need to include a column that does not exist…
-
0
votes1
answer748
viewsAre there other GUI libraries besides awt, swing and javafx?
I wanted details and what are these libraries for to help me develop my video rental software.
-
0
votes1
answer78
viewsNullpointexception to set value from Converter
I have an application where I need to calculate data from a certain relationship. When usuarioController.view == 3, is defined as a Login for Usuario and a Plano (already persisted) to Login so that…
-
0
votes0
answers89
viewsPostgres JDBC error in Eclipse
I’m trying to do a project to test the connection in the Postgresql database (I’m using version 9.2) in Eclipse (Mars version). I am using postgresql-9.2-1004.jdbc3 and adding it to the Build Path.…
-
0
votes1
answer77
viewsError when terminating a java service on android
Hello! I am in error when closing the service of my application: 03-13 13:34:13.572: E/test(9039): Exception 03-13 13:34:13.582: E/AndroidRuntime(9039): FATAL EXCEPTION: main 03-13 13:34:13.582:…
-
0
votes1
answer809
viewsPersistenceunit: fabricaweb2 Unable to build Entitymanagerfactory
I have this error below, you are not able to create the Entitymanager. I am using the Maven and the folder META-INF this one inside src/main/Resources in the root folder where the entities are…
-
0
votes1
answer1007
viewsJava / Selenium - Store text in variable
Guys, all right? I have the following problem: I need to generate a fake Cpf, copy the generated Cpf, and store it in a variable. But I can’t extract the generated Cpf from the sites I found. Both…
-
0
votes2
answers731
viewsExtract JSON array data on Android received by Datasnap
Good afternoon. I would like to know how I can extract the data received by the server using Datasnap from Delphi. I’m doing it this way, but it’s returning an error: lista_versoes =…
-
0
votes2
answers89
viewsJava code causes persistence problem
After adding the following lines to my Metadicas.java class, a persistence problem arose that was not there before: Lines added: @OneToMany(cascade=CascadeType.ALL) @JoinColumn private…
-
0
votes1
answer593
viewsJava cast and convert
How do I convert ValueCallback<Uri> for ValueCallback<Uri[]>?
-
0
votes1
answer208
viewsValidate XML with XSD generated from a Class
How can I correctly validate my XML via an XSD that was automatically generated based on a class?
-
0
votes1
answer38
viewsComo definir a categoria de um app no android
How I define the category of my Ex app. media, tools, social... It would be in manifest.xml or playStore?
-
0
votes1
answer107
viewsModification of variables passed by parameters
It is possible to modify a button passed by parameter? I have a main class and a secondary school... In the main class I prompt one of the secondary by passing a string and a button. Secundaria s =…
javaasked 9 years, 6 months ago Gustavo Rotondo 149 -
0
votes1
answer985
viewsENUM returning only key and not value
I am trying in various ways to get the value of an ENUM, but it just returns its "key". Below follows the ENUM: public enum SaleType { BOUGHT("Comprou"), SEND_BUDGET("Enviar Orçamento"),…
-
0
votes2
answers398
viewsDynamic size Pagefooter on iReport
When creating a report on iReport and would like the PageFooter had its dynamic size according to the components that were visible within it. Not all the components of PageFooter will be visible on…