Lessons Learned for 20-SEPT-2019

XStream Illegal Reflective Access If you are compiling with AdoptOpenJDK 11, you might hit –  “Illegal reflective access” com.thoughtworks.xstream.converters.collections.TreeMapConverter If your build and your dependencies don’t show xstream in it, check your plugins:mvn dependency:resolve-plugins -f fhir-parent/pom.xml | grep -B20 -i xst[INFO] Plugin Resolved: maven-war-plugin-3.2.3.jar[INFO] Plugin Dependency Resolved: maven-plugin-api-3.0.jar[INFO] Plugin Dependency Resolved: maven-core-3.0.jar[INFO] Plugin Dependency Resolved: […]

Sonarcube – Maven and Docker analysis

SonarLint is one tool I gravitate towards – inline analysis of my code in Eclipse.  I have finally broken down and investigated using Sonarcube with maven – the heavy weight tool for evaluating code.  It’s exciting. You need to pull your sonarqube docker. You can find more details at https://hub.docker.com/_/sonarqube/?tab=description :~/my-repo$ docker pull sonarqube Using […]

EAR Projects Generated for JavaEE Import

Importing my project into Eclipse, I found so many additional EAR projects were being generated. To stop this feature, I went to Eclipse > Preference > Maven > Java EE Integration and unchecked Enable Java EE Configuration. I removed the cached EAR projects (deleting from disk) and removed the regular projects, and imported again.  Voila…. […]

Code Graph showing the Layout of the Code base

I’ve been mixing data analysis and Java programming recently.  I wrote a tool to do the analysis (Maven/Python). Here is the obfuscated output of the analysis, showing the hotspots.  I opted to show a thumbnail of the image here to protect the confidentiality of the project.  The generated image was also 78 Megabytes.  (a bit […]

Dynamic Test-NG Tests

In my last few projects, I have used Test-NG.  Uniquely in my current project, I had to generate tests programmatically.  Instead of writing one test for each element in the project, I am able to generate a bunch at-will using the following pattern: Factory package test; import org.testng.annotations.Factory; public class DynamicTestFactory { @Factory public Object[] […]

Behavior Driven Development using Cucumber and Test NG

I have started playing with Test NG and Behavior Driven Development using Cucumber. Here are my notes from playing with Cucumber and Test NG. In Eclipse, Click Help > Eclipse Marketplace Enter into the Find Box – Cucumber Click Go You should see Eclipse plugin. Click Install When presented with the Review License dialog, click […]

Raspberry Pi: Setting up backup

I have a Raspberry Pi providing household automation and productivity services – WebDav, Backups and Calendar. I always worry about a jolt of power, a failed byte and something that is unrecoverable. Time for a Backup solution. I plugged in a USB stick – 64GB, and immediately checked the file system is there and visible […]