Skip to content

Tag: java

High memory usage by gradle daemon

I am using Gradle 2.5 to compile a Java project which consists of 5 modules. In order to speed things up I also use the gradle-daemon. However, During compilation there are up to 18 instances of the gradle-daemon running. After compilation finishes there are still 15 instances of the daemon left. The daemons …

Convert String to javax.json.JsonValue

I have a JsonObject and I need to add new values to it. The values are Strings. There is a method available JsonObject.put(), which takes two variables: String Key. JsonValue value. How to convert the String, which is in the JSON format, to JsonValue so that I can add it to the JsonObject? Answer this:

Insert Null Struct using EclipseLink JPA

I have an Oracle table with an SDO_GEOMETRY column and I am trying to use EclipseLink JPA2 2.6.1 for persistence. My entity class uses a JTS Geometry for geometry objects and I have written a AttributeConverter to convert from a SDO_GEOMETRY to a JTS Geometry. This works well and I can read and write the geom…

How to get arround java.lang.verrifyError

I am trying to generate a random number with the instrumented code. For that I have added following expression to generate a random number. But it is throwing a verify Error as given below. I have added a long variable and assign the above generated value. But I am getting following exception during the run t…

How to resize JScrollPane rowHeader

The code bellow will generate this table: As the image indicates, in this table you can resize the column A, B, … But you cannot resize the column with the lowercase letters a,b,c,e… i.e., the rowHeader of the JScrollPane. Any Ideas how can I do that? Answer As @MadProgrammer has already suggested…