Listview scrolling is not working

Screenshot Of My Layout I added TranscriptMode in both xml and java. But its not working... Xml: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://sc...
more »

2017-01-16 17:01 (2) Answers

Jackson converting dynamic json to map

I have a problem where some structure of the json is fixed while some part is dynamic. The end output has to be an object of type Map<String,List<Map<String,String>>> I am pasting a sample json code for which the jackson work - ...
more »

2017-01-16 16:01 (1) Answers

Remove Builder from Java Project in STS 3.2.0

I have maven project,Which take so much time to build the project.I come to know that it have multiple builder that's why taking so much time.On going as below Project-->Properties-->Builders ,I saw multiple type of builder how can i remove al...
more »

2017-01-16 16:01 (1) Answers

JavaFX - Saving/Loading - Shapes/Layouts

Is there any way to save shapes and layouts in javafx to an external file. Which can then be restored at a later time. I have tried following YouTube videos and I know how I could save/load files with "Text/Int" fields. However, I need a way of loadi...
more »

2017-01-16 15:01 (1) Answers

How to delete file properly?

I have a problem while deleting files from img directory using org.apache.commons.io.FileUtils. I am using this code: File dir = new File(".\\img"); FileFilter fileFilter = new WildcardFileFilter(userId + ".*"); File[] files = dir.listFiles(...
more »

2017-01-16 14:01 (2) Answers

Springfox Swagger generation creates odd schema

I am using Springfox-swagger to generate a Swagger page for my Spring Boot REST service. As a part of one of my POJOs that I serialise to JSON I use: javax.money.MonetaryAmount java.time.LocalDate The issue I'm seeing is that in Swagger, the Mode...
more »

2017-01-16 12:01 (1) Answers

java 8 can you pass a method into a filter

i have many filters calling methods of the streamed object and using String methods that take 1 parameter on the result: String s = "aComarisonString"; stream().filter( p -> p.thisReturnsAString().startsWith(s) ) stream().filter( p -> p.thisR...
more »

2017-01-16 11:01 (2) Answers

Jena parse rdf content error

I implemented a code that parses off some information from a rdf code but it throws me the following error: Exception in thread "main" com.hp.hpl.jena.query.QueryParseException: Line 1, column 126: Unresolved prefixed name: foaf:name What is th...
more »

2017-01-15 20:01 (1) Answers

Java limit length integer

I am new in Java and I need some help. Can someone tell me how I can set limit length to integer = 6 in this code. For example id = 124973 public void setId(int id) { this.id = id; } ...
more »

2017-01-15 19:01 (5) Answers

Recovering Java file after unpredictable shutdown

I was writing lots of code in Eclipse when suddenly unpredictable shutdown has occurred. Now when I open Eclipse I have only the window in workspace and very long one line (crossed red line). I've tried to restore my file via LocalHistory, but there...
more »

2017-01-15 18:01 (0) Answers

Vertx Jackson JSON Lib Conflict

I m using vertx 3.3.3, and Phoenix 4.4.2 both of them comes with Jackson JSON Lib 2.6, for my use case i need the MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES set to True But this feature is only available starting from the 2.8 version, so...
more »

2017-01-15 18:01 (0) Answers

Android, displaying JSON data in application

I have this JSON data and I'm trying to display "measurements" part, but it doesn't work. (I'm getting this: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path $). I'm beginner at Android developing...
more »

2017-01-15 16:01 (1) Answers

Catching Exceptions in lambda expressions

I have the simplest code using Files.walk: Stream<Path> stream = Files.walk(Paths.get("C:\\")); stream.forEach(f -> { System.out.println(f); }); This code throws Exception in thread "main" java.io.UncheckedIOException: java.nio.file....
more »

2017-01-15 10:01 (2) Answers