Questions tagged as 'java'

1
answer

java.lang.NullPointerException in method [closed]

package view; import br.com.genius.dal.ModuloConexao; import java.sql.*; import java.util.ArrayList; import javax.swing.JOptionPane; public class Chamada_ListaCompra extends javax.swing.JInternalFrame { Connection conexao = null; Prepa...
asked by 28.09.2016 / 16:02
1
answer

Best organization of my project [closed]

My project has the following packages in its structure: br.com.xxxx.model : Which contains the entities. br.com.xxxx.business : That contains the DAO interface together with the classes that implement it. br.com.xxxx.controle : Contai...
asked by 29.09.2016 / 13:50
1
answer

java.lang.ClassCastException: org.dom4j. with wildFly10 and Hibernate 5

I'm trying to use wilddly10 but every time I put the dependency on Hibernate 5 on maven it runs the error. java.lang.ClassCastException: org.dom4j Dependency on pom.xml <dependency> <groupId>org.hibernate</groupId>...
asked by 20.04.2016 / 15:33
1
answer

Shortcut to main panel via JmenuItem

I'm working on eclipse Mars 2.0 , where I use the windowBuilder , and I'm not able to link the shortcut: Consultar -> Dia (mntmDia) to main page panelConsultarDia , or either when people want to change the day they are entering...
asked by 19.04.2016 / 18:48
1
answer

Problem sending notification with parameters

I'm having problems in an android app, when trying to send a notification everything happens 100% until I get to open the notification activity. This calling activity needs a "store" parameter and I'm not able to send it via notification....
asked by 20.04.2016 / 02:47
1
answer

BigDecimal error can not find symbol

Given an amount in R $ convert it to dollar. Well, based on this context, the teacher asked us to use the object-oriented paradigm. Before I should clarify that I use BlueJ ide to solve the problem, according to my teacher it is better for di...
asked by 23.04.2016 / 22:55
1
answer

Chained list is not removing elements

I can not remove elements from the list. class no { public int dado; public no prox; } class lista { no ini; no fim; public void crialista() { ini = null; fim = null; } public void inserir(int...
asked by 24.04.2016 / 18:39
1
answer

Relationships JPA Spring Boot Rest Fetch Eager

I have an application that serves a rest service json (not quite a rest, but okay). The application uses Spring Boot to run, I use the PagingAndSortingRepository. The problem is that when serving an entity with Many to One relationship: @En...
asked by 19.05.2016 / 20:41
1
answer

Filter reading emails from a date

I have the following code snippet that reads emails from the inbox. try { email.conectar(); javax.mail.Store store = email.getArquivoEmail(); Folder inbox = store.getFolder("inbox"); inbox.open(Folder.READ_ONLY); //Aqui go...
asked by 19.05.2016 / 20:22
1
answer

Would it be possible for me to connect to a server in java using Basic socket using a Javascript client?

I am studying game development and lately I have considered developing a game online or even online. There are two IDE's in which I can develop games, Unity3D and RPG Maker MV which use the javascript language. I'm a beginner in javascript so...
asked by 10.04.2016 / 05:27