Questions tagged as 'java'

0
answers

How to generate / send (Server-Side) JSON via Java and receive via JQuery (Client-Side)?

I'm having trouble exchanging information between my web application (client) and my application java on the server side. I'm trying to query the server via JQuery and expecting to get a json return. On the server side I am...
asked by 18.12.2015 / 11:55
0
answers

Integrity of running Java application running in long time

I have tested my Desktop application, and I noticed that when I leave running for a long time I notice changes in the behavior of the actions that should be performed. My application runs using Hibernate, and I notice these changes after a fe...
asked by 18.12.2015 / 18:20
1
answer

IndexOutOfBoundsException on reading an InputStream

The following is the code I'm studying: FileInputStream stream = new FileInputStream("/home/rafael/2015.json"); // esse aquivo tem 24 bytes byte[] result = new byte[(int) stream.getChannel().size()]; int offset = 0; int read = 0; while((rea...
asked by 19.12.2015 / 16:47
1
answer

Problem with Hibernate

I'm trying to learn about hibernate next to a tutorial by making an app for a petshop and I have the following issues: INFO: HHH000228: Running hbm2ddl schema update dez 16, 2015 8:34:52 PM org.hibernate.tool.hbm2ddl.SchemaUpdate execute INFO:...
asked by 17.12.2015 / 00:40
0
answers

Redirect user to pages requested after login

Here in the company it is common to pass news links from the portal to others via email, however when the user opens the link he asks for authentication in the system, but after login he is redirected to the home page (index.jsf) and not for the...
asked by 04.11.2015 / 14:10
1
answer

Generate file reading a database field

I'm having trouble generating files (both text and binary). The text files are not coming out with the correct encoding, and the binaries are corrupted. I'm using java 5 and Struts. The code to generate the files is final byte[] arr...
asked by 03.11.2015 / 21:02
0
answers

Java - Selenium - Use contains with list of elements

I have on a site the products that have been added to the cart. I want to verify that the product "Test T-Shirt" was added successfully. For this, I have a string where this value (Test T-Shirt) is defined. Ex: String _product1 = "Camiseta T...
asked by 04.11.2015 / 18:03
0
answers

Customizing TextField javaFX

Hello, I would like to know how to customize my TextField to leave with this same style (" link "), but without the color change. I found this code, but I'm having trouble implementing it. What I would like for this lib is the floating label...
asked by 23.12.2015 / 20:13
1
answer

Error when testing a route with Apache Camel

I have an application running Apache Camel and now I'm implementing tests built into it. I have here a class that does the route function: @Component public class CoreRouteBuilder extends AbstractMensageiroRouteBuilder { @Value("${core...
asked by 28.01.2016 / 18:44
1
answer

JASS implementation in JSF + Tomcat

I want to create authentication for login in my project, but when I try to login, the java.lang.NullPointerException error appears Error Log javax.faces.el.EvaluationException: java.lang.NullPointerException at javax.faces.component.MethodB...
asked by 06.11.2015 / 14:14