Questions tagged as 'java'

1
answer

Error adding attribute name to @WebService

I am creating the class that implements the WS call and trying to include the name attribute, this error appears: "@WebService annotation contains an endpointInterface attribute. No name attribute allowed" Does anyone know why? If I remove...
asked by 22.09.2017 / 15:13
0
answers

Problem using spring with rest

I am doing a course that I downloaded from the net (Spring with rest and angular) to develop a personal project, however I am facing some problems that I can not solve and I did not find solution in the "father of the donkeys" (Google). > The...
asked by 19.10.2017 / 01:55
1
answer

NullPointerException on method return

I am making a method to fetch the logged-in user from the database. I'm having a NullPointerException in return of this method @RequestMapping(value = "/usuarioLogado", consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, method = RequestM...
asked by 18.10.2017 / 16:58
1
answer

Open a site using a button in the application

I'm doing an application similar to a calendar and I need to put a button to open a registered site, I already did a long click on the table and it worked, but on a button I can not use the same syntax @Override public void onCreateContext...
asked by 18.10.2017 / 15:01
1
answer

Gson Library Changing util.Date

When using the GSON library for JSON manipulation, I noticed that when parsers are done the date is being changed, it's tiny, but it's enough to break my unit test with JUnit . > Follow a sketch code to show the strange beh...
asked by 17.10.2017 / 22:12
0
answers

Graphics PrimeFaces with transparent background

I'm developing a JavaWeb application using the PrimeFaces framework. On one of my screens I have a p: chart but I need this chart to have its background transparent. I have tried to change the css formatting of the classes and I succeeded in app...
asked by 16.10.2017 / 20:29
0
answers

Doubt Criteria

Can I create a critéria with an entity that is not mapped to another entity? Or do I have to use a native query to do this query? I have a user entity and another product but I do not have product relationship with user but I have to bring th...
asked by 17.10.2017 / 17:16
0
answers

Inserting Script into Android code to search SearchView

I'm developing an Android application that works with the Maps API, and in it I have a searchView that needs to do the search of the location typed and display on the map. But I do not know how to insert a script (I gave a searched and mostly th...
asked by 30.09.2017 / 02:42
0
answers

How to invert the positions

I'm doing a LFA (formal and automated languages) work, which recognizes GLUD languages only now I'd like to make it recognize GLUE languages, which would basically just change the position of the uppercase letter (target state). PS: the progr...
asked by 30.09.2017 / 18:11
1
answer

Convert JSON to Array in java

I have a JSON that represents a test query: {"dctitle":"TestesStatus", "oslc_cmtotalCount":2, "oslc_cmresults": [ {"dctitle":"33643640", "rdfabout":"XXXXXXXXXXX", "dbid":"XXXXXXXXXXX", "depto":"XXXXXXXXXXX", "sigla"...
asked by 13.09.2017 / 21:25