Questions tagged as 'java'

2
answers

Set / select option in Spinner

I have ListView with several records and when I click on an item it opens in a new activity taking the value of _id of that item. I get this _id , I search SQLite, and fill in the fields as follows: public void ca...
asked by 06.02.2018 / 11:13
0
answers

Store login and password - best option [closed]

Today like most app's that use directly or sync with a webservice, I need to do verificação e armazenamento dos dados de login . How android has several forms of storage: Shared Preferences - Stores proven primitive data in key-valu...
asked by 06.02.2018 / 18:07
0
answers

JAR converted to exe does not open after being transferred via socket

I have a JAR program that I converted to EXE with Launch4J. The EXE works fine, but when I try to transfer this file via socket it just does not open with 2 clicks. If I use a "java -jar file.exe" it opens normal. Just do not open it by doubl...
asked by 23.12.2017 / 20:28
1
answer

@Autowired does not work with my service

I always run the method that accesses what is in another class with @Autowired it becomes null, follow the code below: @Component public class TokenAuthenticationService { @Autowired UserRoleServiceSecurity service; ... void a...
asked by 26.01.2018 / 21:55
1
answer

Sqlite Android, 2 apps accessing a database

How do I make 2 applications use the same database? If you create the bank in one app the other does not access this bank, then how to make that second app access that same bank?     
asked by 26.01.2018 / 16:06
1
answer

Is it better to repeat field or join to access the relationship?

Hello, thinking about performance and also good practices, what would be the ideal in this scenario? 3 Objects: - Company - Person who is representing the company - Visit (object related to a commercial visit of a seller) For me to display...
asked by 26.01.2018 / 16:04
0
answers

Problem starting tomcat

Good afternoon I have the following problem on my production server. I have already installed tomcat 8 and 9 to test, JDK 8, set everything right (I believe) and one of my projects does not go up. The strange thing that the WAR generated with...
asked by 14.12.2017 / 17:44
1
answer

Convert ArrayList to Object [] [] [closed]

How to convert an ArrayList to a 2D Object. My Current Code: ArrayList<String> a = null; a = new ArrayList<String>(); a.add("ABC"); a.add("DEF"); a.add("1");...
asked by 15.12.2017 / 14:25
1
answer

Creating EJBs in Spring MVC project - Problems with Dependency Injection

I have a Java application with Spring MVC that is divided into modules as follows. proj_servicos = Mapped entities, Repository (communication with the bank) and Services (Where Repository is injected) classes. Location where persis...
asked by 15.12.2017 / 13:01
1
answer

WebService return does not respect the namespace of my own WSDL

Hello! I'm starting now in the world of Webservices. I made a WS in the eclipse wizard using axis 1 (if I'm not mistaken), in the "Bottom up" style: In the eclipse, positioned in the class that will be WS: File-> New-> Other-> Web Service (Class...
asked by 21.12.2017 / 15:23