Questions tagged as 'java'

1
answer

Dagger NullPointerException 3rd class depending on 2nd class

In a project that has Activity, Presenter, and Model, Activity has Presenter and Presenter has a Model. When I do @Inject in Presenter to instantiate the Model it is never instantiated.    FATAL EXCEPTION: main                                ...
asked by 19.03.2018 / 22:39
1
answer

Mount container folder on host

Good Afternoon personal, I would like an orientation in creating an image and composite. I'm preparing an environment for the java development team with eclipse toncat java and initial workspace. I thought about starting with an image of ubun...
asked by 26.03.2018 / 22:03
1
answer

How can I update a JLabel?

I need to update a JLabel every time I press a particular button that looks for a database form to generate a chart, but this only works the first time. My idea was this: if JLabel is empty it adds the graph generated by the search, if it is fil...
asked by 27.03.2018 / 01:47
0
answers

Java how to create a custom command line

Hello everyone, I wanted to know if you have how to customize the command line ... basically create a custom line in the console I have a code that creates a terminal capable of supporting color (Windows and Unix) via the "Ansi", and wanted t...
asked by 16.03.2018 / 11:58
2
answers

Doubts in SelectOneMenu Primefaces

I have a SelectOneMenu in my xhtml view. In it I have an onchange that on clicking calls a p: dialog to fill a form. Follow selectOneMenu <p:column headerText="Mecânica"> <div id="mecanicasAll">...
asked by 16.03.2018 / 19:04
2
answers

Exception in thread "main" java.util.InputMismatchException

I made a simple program, just to calculate a mathematical function so I get an exact result, but there were some complications in Java. Digite o valor de x: 0.2 Exception in thread "main" java.util.InputMismatchException at java.util.Scanne...
asked by 29.08.2016 / 03:37
0
answers

Gateway generated by jhipster can not connect to another microservice

I have a microservice architecture built with jhipster and using Consul. I'm uploading the services in google cloud. When I make a request to the gateway an error log is generated with the exception:    com.netflix.client.ClientException: Loa...
asked by 24.03.2018 / 15:35
0
answers

Eclipse - JbossCannot connect to VM

When running the JBoss server in Eclipse the error occurs:    'Starting Red Hat JBoss EAP 6.0' has encountered a problem.Cannot connect to VM. Java 1.8 and I have already configured jboss for XMx512 and this error still occurs.     
asked by 15.03.2018 / 19:41
0
answers

Paging with criteria.distinct_root_entity

I'm developing Java web application and came across a problem. I have a n: n relationship between DateTime and DateTime and it is returning duplicate data when I make a query ... I can return the situation using criteria.setResultTransformer (Cr...
asked by 15.03.2018 / 20:35
0
answers

Store ImageButton in Realm database

I would like to store an ImageButton with an image, an audio, and the position where it sits within the Realm database. It's possible? I'm starting with Realm now and I've only been able to store, delete, and show a string from some EditText....
asked by 17.03.2018 / 21:06