Questions tagged as 'java'

1
answer

JSON does not arrive complete when sending by Bundle

I'm trying to get the return of a push in android through the Bundle, however I'm having some problem performing bundle.getString("Message"); because it does not get all my answer that is in JSON format, it follows the format of the messa...
asked by 07.03.2016 / 15:22
1
answer

getOutputStream () error has already been called for this response

I have the following error in my application: getOutputStream () has already been called for this response. Ok, the code snippet that is causing this error is as follows: boolean hasLogoLogin = new BrandResourceDao().selectByTag(BrandRes...
asked by 08.03.2016 / 15:08
1
answer

How do I make a basic configuration in the persistence.xml file to access a database in SQL Server 2008?

I looked into how to configure the persistence.xml file in a basic way, but I was even more confused about this configuration. So, I'd like to know how I can do a basic configuration in the persistence.xml file according to JPA...
asked by 01.04.2016 / 21:04
1
answer

Error: Class org.firebirdsql.jdbc.FBDriver has unsupported major or minor version numbers

Personal I have this error someone knows what it is: An Error Occurred:    java.lang.UnsupportedClassVersionError: Class org.firebirdsql.jdbc.FBDriver has unupported major or minor version numbers, which are greater than those found in the...
asked by 22.01.2016 / 02:50
1
answer

How to sign .jar file with A3 certificate?

I'm developing a web project and I needed to develop a applet with the Java language for some functions. Browsers are complaining about the security issue, and by searching, I have discovered that I have to digitally sign the...
asked by 20.01.2016 / 12:50
1
answer

How to reference an arrayList of another class

Personally my code is still unfinished and I'm creating a library system how college work I want to do as a reference to use an array list of another class in a new class. I want to use the same ClassList array as the Book class for the BookLoad...
asked by 30.05.2016 / 06:47
1
answer

Android how to optimize a large string of ifs

I would like to know how to optimize a large string of ifs so that the code is more efficient and readable. My Android application uses version 2.3.3 (API 10), in this application I have an activity responsible for displaying user account inf...
asked by 20.01.2016 / 17:25
1
answer

Error with hibernate when running server

When running wildfly I have the following error excerpt in the log: 15:46:18,297 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.deployment.unit."evolutionary.war".WeldStartService: org.jbos...
asked by 30.05.2016 / 20:50
1
answer

How to build a relative URL securely?

A method takes snippets of a URL and needs to concatenate them coherently, but without presupposing details about each. Examples: http://server + /path + /resource.js => http://server/path/resource.js http://server/ + /path/ + /resourc...
asked by 02.02.2016 / 02:49
1
answer

Naming subblocks of any metablock with a single class?

I'm trying to make only one class be required to name the subblocks of any metablock that use this class at the time of the record, that is, name them as if they were parameter values, but without using one. Although this revolves around an A...
asked by 01.02.2016 / 22:41