Jakarta Activation API

The Jakarta Activation API provides a data-driven framework for handling various data types and MIME types, enabling Java applications to identify and process different data formats dynamically. It is essential for applications dealing with email, messaging, and other data formats.

Maven Dependency

<dependency>
  <groupId>jakarta.activation</groupId>
  <artifactId>jakarta.activation-api</artifactId>
  <version>2.1.1</version>
</dependency>

Version Compatibility and Requirements

VersionMinimum Java VersionCompatible Spring FrameworkCompatible Spring Boot
1.2.2Java 8Spring Framework 4.3+Spring Boot 2.0+
2.0.0Java 8Spring Framework 5.0+Spring Boot 2.1+
2.1.1Java 11Spring Framework 5.2+Spring Boot 2.2+

Common Java Classes

Known Vulnerabilities

VulnerabilityVersion AffectedFixed In
Remote Code Execution (RCE) risk due to improper MIME type handling1.2.22.0.0
Deserialization vulnerability leading to DoS attacks2.0.02.1.1

Common Errors and Troubleshooting

ErrorCauseFix
ClassNotFoundException: jakarta.activation.DataSourceThe `jakarta.activation-api` dependency is missing.Ensure you have the following dependency in pom.xml:
<dependency>
  <groupId>jakarta.activation</groupId>
  <artifactId>jakarta.activation-api</artifactId>
  <version>2.1.1</version>
</dependency>
NoClassDefFoundError: jakarta.activation.DataHandlerIncompatible version of Jakarta Activation API.Ensure you're using a compatible version from the table above.

Manifest File Information


Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Jakarta Activation API
Bundle-SymbolicName: jakarta.activation-api
Bundle-Version: 2.1.1
Bundle-Description: Jakarta Activation API provides the framework for handling data and MIME types in a generic, data-driven way.
Bundle-License: https://www.eclipse.org/legal/epl-2.0/
Export-Package: jakarta.activation;version="2.1.1"
Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version>=8))"
Bundle-Vendor: Eclipse Foundation
Automatic-Module-Name: jakarta.activation
Specification-Title: Jakarta Activation API
Specification-Version: 2.1
Specification-Vendor: Eclipse Foundation
Implementation-Title: jakarta.activation-api
Implementation-Version: 2.1.1
Implementation-Vendor: Eclipse Foundation

References

© 2024 MavenMQ.com. All Rights Reserved.     PrivacyPolicy      SiteMap      Facebook