Questions tagged as 'java'

1
answer

SWT using DATETIME with problem in saving SQL compatible format

The problem is this: I have a personal finance program that will record some important data, including the date of registration and expiration date. The program interfaces are done in Eclipse in SWT , and I'm using the DateTime widg...
asked by 29.05.2015 / 22:18
1
answer

java.lang.IllegalStateException when declaring aspect with Spring

I'm trying to declare the following: @Aspect @Component public class UpperCaseAdvice { @Before("@target(annotations.Model)") public void toUpperCase(JoinPoint joinPoint){ //faz alguma coisa } } I'm using the spring-...
asked by 24.11.2015 / 00:05
1
answer

JSF / Hibernate How do I write null to a bank field?

I have an application using Primefaces / JPA-Hibernate / TomCat8, and need that when an on-screen field is empty, it writes null to the database (Postgres). I need this because I have some fields in the database that have UniqueKey, and e...
asked by 07.11.2015 / 17:31
1
answer

Problem with redirecting in JSF 2

In a JSF project the pages are organized like this: admin / pages admin / main admin / template. My web.xml looks like this: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan...
asked by 21.11.2015 / 14:01
1
answer

Reload script whenever the event happens

Hello. I was looking for and I do not find anything related here, so I'm coming to ask. I'm working with a plugin ' link ', and I want to give some functions to get better. I've already done an image upload field, but this is not from submit,...
asked by 02.04.2016 / 16:55
1
answer

Expression Calculator - Expression breaking problem

I'm doing college and I have to do an Expression Calculator in java , ie basically if you write (5 + 5) / 2 or anything like it, it has to give you the result right. I did not have problems with the use of stacks and queues, but I came acros...
asked by 18.05.2016 / 00:29
0
answers

MojoFailureException caused by charsetName in Maven Archetype [closed]

A WAR project that I'm trying to use base to run mvn archetype:create-from-project causes the following exception stack after trying to read one of the .java files: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-ar...
asked by 24.06.2016 / 19:40
1
answer

Spring MVC getJdbcTemplate insert in Oracle return column value

I have a project in Spring MVC, I'm using getJdbcTemplate to do insert's. I just do not enter the primary key in Oracle from a sequence and need that value to re-insert into another table where that value is a foreign key. For examp...
asked by 21.02.2016 / 13:15
2
answers

Capture user name logged into the machine via Web Application

There are two applications, one in Java and one in ASP, and both can integrate with Active Directory without typing user name and network password. The application made using ASP, logs in automatically when accessing the url, however it does not...
asked by 18.12.2015 / 20:14
1
answer

Error java.lang.ClassNotFoundException: "Caused by: java.lang.ClassNotFoundException: com.fasterxml.jackson.core.type.TypeReference

I'm developing a Java, FX, Hibernate application and using log4j2 for my logs. When I run the application through the IDE (Eclipse) everything works normally, but when creating the application .jar, the following errors appear (just when startin...
asked by 26.01.2016 / 14:43