Questions tagged as 'java'

1
answer

Unparseable date: JAVA SQL

Checking that all the data are filled in in the form to be able to continue with the application, I find the following error: ene 08, 2017 9:14:27 PM interfaz.Alta_vehiculo button_OKActionPerformed GRAVE: null java.text.ParseException: Unparse...
asked by 08.01.2017 / 21:17
2
answers

SecurityException Permission Denial when accessing contacts

I want to show contacts in the calendar but the application closes instantly. I do not know where the error is: public class Main extends ListActivity { TextView txt; ListView list; @Override protected void onCreate(Bundle sa...
asked by 07.01.2017 / 09:05
1
answer

Return Object JSON in Java

I have a layer repository in my application Java that has a method to return all the authors: public Stream<Author> getAllAuthors() { return StreamSupport.stream(authorRepository.findAll().spliterator(), true); } A...
asked by 27.07.2018 / 17:08
2
answers

Activate marquee in a textview from code

Continuing with my new project, I intend to make that when they click on the corresponding textview start to make marquee , and when you press another one, stop doing it. p> I've been looking for several hours and I only find ways to do it...
asked by 08.07.2016 / 13:20
2
answers

NullPointerException when you set a text in a TextView

When trying to set text in a TextView in the following way: Class - > FavouritePet.java public class FavouritePet extends AppCompatActivity { private ArrayList<Pet> pets; private RecyclerView rvPets2; private TextView numer...
asked by 22.08.2016 / 11:27
4
answers

Error passing variables with Intent - NullPointerException

I am trying to pass a ArrayList<Pet> from a Fragment to my MainActivity.java for from here, if you press a ImageButton (from the action bar) we go to another activity in which I need the data of said ArrayList W...
asked by 26.08.2016 / 11:33
1
answer

Volley TimeOutError. Android Studio

I happen to be working with volleyball. When I want to fill a Recyclerview it turns out that I see the error described in the title, I was reading and I know that it is because of the response time between the application and server (in this cas...
asked by 18.07.2018 / 02:06
1
answer

Send data to jInternalFrame with a button from another JinternalFrame, without losing its visibility. JAVA

My problem is that when I want to use the same function again (press the button to change the label for another value in the table), the first window runs out of functionality !. When it is done the first time it makes it perfect, but when wanti...
asked by 30.09.2018 / 09:52
1
answer

Calculable. Expressions with conditionals

I am trying to calculate a formula with java but when I try to use a conditional, to do one thing or another according to whether a parameter is true or false. I add method. public void calcular (){ Calculable calc = null; try {...
asked by 18.07.2018 / 11:35
1
answer

Error: java.io.StreamCorruptedException: invalid type code: AC

Can anyone give me a hand with that? The idea is to recover all the "Video" objects, which are saved in a file, but apparently I'm only recovering the first object and then I get this error: java.io.StreamCorruptedException: invalid type code...
asked by 28.07.2018 / 02:13