Questions tagged as 'java'

1
answer

Inputs equal different outputs in Java

I'm experiencing a problem that I can not see a solution to. I'll try to describe what I'm doing, there are many code files, so it's the following. I am combining access policies. I have a certain policy that has some properties like (orga...
asked by 19.09.2015 / 19:45
0
answers

How do I tell if the user already exists when I hit the save button?

How do I do this when I press the save button and tell if the user already exists. public void salvar(){ String comando = ""; if (this.getId() == -1){ comando = String.format("INSERT INTO cadastro (nomedousuario, senha)...
asked by 25.03.2016 / 01:14
0
answers

Code runs in eclipse but not when compiling

I'm creating a minecraft mod that uses JRuby to run my scripts inside the mod. It runs perfectly in the eclipse, but only in it. If I compile the mod or run it by gradlew runClient it does not work, it results in this error: org.jruby.e...
asked by 27.07.2015 / 19:32
0
answers

HTTP Error Status 404 - The requested resource is not available in Spring MVC

I've tried several ways to solve this problem, but when I click on the controller to access the url it's error. Follow the files Controller package com.br.maco.controller; import org.springframework.stereotype.Controller; import org.spri...
asked by 28.07.2015 / 15:56
0
answers

Saving objects with jpa in transaction with spring

Hello, I have a problem in the application that I work with when I persist the object in the database. I see the jboss log shows the insert statement plus the id of the object continues to be null. Not updated. How do I avoid this? Forcing the f...
asked by 05.08.2015 / 19:34
0
answers

Web Services with Axis2

I started studying web services now and is giving this error    This web axisService has deployment faults Error: java.lang.ClassCastException: org.apache.axis2.classloader.JarFileClassLoader cannot be cast to org.apache.axis2.deploymen...
asked by 20.07.2015 / 13:24
0
answers

How to read txt files and put your data in a vector

I'm trying to make a code that reads latitudes and longitudes that are in a txt file. ie put what is in the file in a vector and make a for loop to call all inside the polyline. try { File file = getFileStreamPath("circular_1.txt")...
asked by 17.07.2015 / 19:56
0
answers

Load an activity inside a fragment with tabHost

I'm starting with android studio reading some things and watching some videos on youtube, basically what I want to do is a calculation program to make my life easier on my service, some simple accounts I've already been able to do (I only...
asked by 18.07.2015 / 03:10
1
answer

ResultSet GROUP_CONCAT is not recognizing the manipulated values

I have a problem, I have no idea how to solve it. I am running GROUP_CONCAT for a pivot table in MySQL and running by PREPARED STATEMENT . So far so good, now when I try to recover result set I can only recover fixed value...
asked by 21.08.2015 / 16:01
0
answers

Reading cells with HLOOKUP formulas

I'm having a hard time evaluating a formula with the Apache Poi API in a cell that contains the formula HLOOKUP(B9,$AK$8:$AS$68,2,FALSE) . The same thing happens to be a file .xls or .xlsx . The excel sheet has a table...
asked by 17.10.2015 / 22:49