While compiling or building a maven project, sometimes you may get an invalid CEN header (bad signature) error like below, [INFO] Building OpenJavaProfiler 0.0.1-SNAPSHOT [INFO] ———————————————————————— [INFO] [INFO] — maven-resources-plugin:2.3:resources (default-resources) @ OpenJavaProfiler — [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 0 resource [INFO] [INFO] — […]
Configuring and Using Cobertura for Code Coverage in Spring Boot Projects: A Step-by-Step Guide
For developers venturing into the vast landscape of Spring Boot, ensuring quality and resilience is paramount. Code coverage metrics play a pivotal role in understanding the depth of your unit tests. Among the pantheon of tools available, Cobertura shines bright, providing a robust solution for Java-based applications, including those developed with Spring Boot. In this […]
Java API to get Domain Authority and other Moz URL Metrics
Moz is one of the popular platform offering various tools and services for Search Engine Optimization. Keyword Research, Link Building, SEO Audit and Rank Tracking are some of the key services offered by Moz. Services provided by Moz are extensively used by freelancers and Digital marketing companies to analyze and track the performance of websites […]
How to Password Protect a PDF File using Java
PDF (Portable Document Format) files are widely used for sharing documents due to their platform-independent nature and consistent formatting. However, some documents may contain sensitive information that requires an extra layer of security. If you are a Java developer, you can easily accomplish this […]
How to Generate MD5 Hash in Java
MD5 (Message Digest Algorithm 5) is one of the most commonly used cryptographic hash functions. It’s crucial for data integrity verification, password storage, and more. If you’re developing in Java, you may find yourself needing to generate MD5 hash for various applications. In this blog post, we’ll go through step-by-step instructions on how to generate […]
JaCoCo Code Coverage in Springboot Applications : A Comprehensive Guide
Code coverage is a crucial aspect of software development that helps to measure the effectiveness of testing and ensures the quality of the codebase. In this comprehensive guide, we will explore the concept of code coverage specifically for Springboot applications and delve into the implementation of JaCoCo, a popular code coverage tool for Java projects. […]
How to Map Composite Key in Hibernate
Composite key (or Composite Primary Key) cannot be mapped directly in hibernate like how we map the normal primary key’s using @Id annotation attribute. We will have to use @Embedabble & @EmbeddedId annotation attributes to map composite key. JaCoCo Code Coverage in Springboot Applications : A Comprehensive Guide How to Password Protect a PDF File […]
How to Send Email In Java
The need to send Email in Java would be one of the most common requirements in many of the Java applications. Fortunately, the Java Mail API makes this possible with very less effort. The Java Mail API is not part of the JDK, it is an optional package. Oracle provides the reference implementation of the Java […]
Top 5 Code Coverage Tools for Java: A Comprehensive Guide for 2023
In the rapidly progressing world of Java development, ensuring top-tier quality and resilience of software has never been more crucial. Code coverage stands out as a pivotal metric in this arena, and the tool you pick can profoundly influence the trustworthiness of your software. Let’s deep dive into the top 5 Java code coverage tools […]
How to Use JPA 2.1 in JBoss EAP 6.x
JBoss EAP 6.x is based on JEE 6. But as JPA 2.1 is part of the JEE 7 Spec, it will not be possible to directly deploy applications built using JPA 2.1 in JBoss EAP 6.x. However, with the following workaround we can make this possible. You need to include a ‘jboss-deployment-structure.xml’ with the following […]