HAPI FHIR 8.2 upgrade: Java 17 and other breaking changes

HAPI FHIR 8.2.0 requires JDK 17, so the runtime, application server and container image move first. This page covers the other breaking changes, the upgrade sequence and the work that drives effort.

On this page

Why a HAPI FHIR 8.2 upgrade starts with the Java runtime

If your self-hosted HAPI FHIR JPA server still runs on an older Java runtime, the first decision in a HAPI FHIR 8.2 upgrade is the JDK, not the library version. HAPI FHIR 8.2.0 requires JDK 17, so the runtime move has to land before or alongside the application change, and it touches every place the server runs: the Docker base image, the Tomcat, Jetty or Wildfly install if you deploy a WAR, the Spring Boot build, and any Kubernetes image your Helm release pulls. Treat the upgrade as more than a version bump, because a JDK change alters the build, the container and the operations runbook at the same time.

Start by confirming your current release line against the HAPI FHIR versions page, since the supported path depends on where you are now. Record your current JDK, the application server version and the exact image tag or WAR you deploy, then check which dependencies your custom interceptors and providers pull in. Older estates usually need to step through intermediate releases rather than jump straight to the newest line, so 8.2 is best read as a staged step. The most recent release line in the facts we hold is 8.8.2, released 25 September 2026, so confirm with the release notes whether an 8.2 landing point makes sense for your environment or whether your plan should target a later line directly.

Ask your platform team to confirm three things before scheduling work: which JDK your build agents and runtime images use, whether your application server supports Java 17 in the version you run, and whether any vendor-supplied component in your stack is still tied to Java 11. Each of those answers changes the effort and the test matrix. Whoever owns the runtime should also agree on a rollback image that keeps the old JDK available, because a runtime change is harder to reverse than a configuration change.

Which breaking changes in 8.2 affect your server

This table lists the 8.2 changes most likely to affect a self-hosted JPA server, with the impact, the action to take and whether you must check the detail in the release notes first. Only the JDK 17 minimum is confirmed by the supplied version documentation, so treat every row marked Yes as an open item until the release notes settle it.

ChangeImpact on your serverAction neededConfirm in release notes first
JDK 17 minimum runtimeHAPI FHIR 8.2.0 requires JDK 17, so the server cannot run on an older Java runtime after the upgrade.Confirm the JDK version on every host, build agent and base image, then upgrade the runtime before deploying 8.2.No, the requirement is documented in the HAPI FHIR versions page
Servers still running Java 11Any server on Java 11 is below the 8.2 minimum and cannot take the upgrade as-is.Inventory Java 11 deployments, including forgotten test and staging servers, and plan the runtime change as a separate step with its own test cycle.No, the minimum is documented; check whether any intermediate Java version is needed for your app server
Contained resource ID changesStored or client-referenced contained resources may resolve differently, which can break references and searches.Search custom code, clients and stored data for contained references, then run reference and search tests on a restored copy.Yes, confirm the exact ID format change and which versions it affects
SP_UPDATED columnThe team believes the column is unused, but any report, view, custom query or BI tool that reads it would fail if it changes.Search custom SQL, reports, views and BI definitions for SP_UPDATED, then take a backup before the schema migration runs.Yes, confirm whether 8.2 drops, alters or ignores the column before relying on the change
Servlet container and WAR deploymentsTomcat, Jetty or WildFly versions that worked on the old release may not support the new build or its Java level.Check container versions against the release notes, then deploy the WAR to a staging container and run smoke tests.Yes, confirm the supported container versions for 8.2
Docker images and Helm chartThe image tag, base JDK and chart values you pin today may point to a runtime that does not match 8.2.Pin the new image tag, confirm its base JDK, and review chart values and probes before rolling out.Yes, confirm the image tag and base JDK for the 8.2 release
Custom interceptors and providersCustom code compiled for an older Java level or calling changed APIs may fail at startup or at runtime.Rebuild custom code against the 8.2 libraries and run its test suite, including authorization and audit interceptors.Yes, confirm any API changes listed for 8.2
Database schema migrationSchema changes run during the upgrade, and a failed or interrupted migration can leave the database in a state that needs recovery.Take a verified backup, rehearse the migration on a copy of production, and plan a maintenance window sized from the rehearsal.Yes, confirm the migration steps and any heavyweight migrations included in 8.2

How the Java 17 move differs by deployment method

The hapiproject/hapi image is the simplest path, but you do not control its JVM directly. Confirm which tag you pull for HAPI FHIR 8.2 and whether that tag's Java runtime is JDK 17, using the image's own documentation and the HAPI FHIR versions page. If you build your own image from the starter, the base image is where the change happens.

  • Image tag: Pin the exact tag rather than latest, so a rebuild does not silently change the JDK under you.
  • Custom base image: If you extend the image, confirm the base layer ships a JDK 17 runtime and that JAVA_HOME points to it.
  • Build step: Rebuild custom layers against the 8.2 artifacts so the classes and dependencies match the new runtime.
  • Runtime check: Run docker exec <container> java -version and confirm the major version reads 17.
  • Startup logs: Look for JVM or class loading errors during the first boot, which often point to a leftover Java 11 dependency.

After the container starts, confirm the metadata endpoint responds and that the JVM version reported in the logs matches what you tested.

Where your current release fits in the upgrade path

Start by confirming the exact HAPI FHIR version your server runs today, not the version your team last deployed. Check the version in the WAR or Docker image tag, the Maven or Gradle dependency for hapi-fhir-jpaserver-base, and the value your deployment pipeline actually pulled. Then open the HAPI FHIR versions page, which lists the JDK each release requires. The 8.2.0 release requires JDK 17, so any estate still on a Java 11 runtime has a runtime gap to close before the library upgrade can start.

Treat the JDK change as its own step with its own test cycle. Move the existing 8.x or earlier code to a Java 17 runtime while the HAPI FHIR version stays where it is, then run your test suite, startup checks and a representative set of FHIR requests against that build. Include the application server (Tomcat, Jetty or Wildfly), base images and any custom interceptors or providers in that test. Only after that build is stable should the schema migration and the 8.2 library change be scheduled, so a failure can be traced to one change rather than to several at once. Confirm your application server's own Java 17 support with its vendor, because that requirement is separate from HAPI FHIR's.

If your current release is much older, do not jump straight to 8.2. Sibling guides cover the 8.0 change to meta.source and compartments, the 8.8 migration that affects zero-downtime upgrades on SQL Server with case-sensitive IDs, and the 8.10 to 8.12 partition API removals. Read those guides in version order, applying each stage's schema and reindex steps on a copy of production before moving on. Releases before 7.x also involve the javax to jakarta package move, so an estate that old should plan the earlier stages first.

What to prepare before touching the server

Most HAPI FHIR 8.2 upgrade problems trace back to work done before the server is touched. The six items below give you a rollback path, a list of custom code and infrastructure that depends on the old runtime, and a rehearsal environment that behaves like production. Each one needs a named owner who signs it off before the maintenance window is booked.

Verified full database backup

Take a full backup of the database behind the JPA server, then restore it to a separate instance and confirm the FHIR server starts against the restored copy. The restore test is what proves the backup works. Record who ran it, the time taken and the result. The database administrator and the service owner should both sign off, since a backup nobody has restored is not a rollback plan.

Inventory of custom code

List every custom interceptor, provider, partition interceptor and plugin built against the HAPI FHIR API, with the version of HAPI FHIR each was compiled against. Java 17 and any API changes in 8.2 can break these at build or startup, so each item needs a build result on the target version. The lead developer owns the list and the architect confirms nothing is missing.

Application server and base image list

Record every application server, container base image and JDK build the JPA server runs on, including the Docker image tag, the Tomcat, Jetty or Wildfly version for WAR deployments, and any Spring Boot starter in use. Confirm each one runs JDK 17 before the upgrade, since HAPI FHIR 8.2.0 requires JDK 17. The platform team owns this list and checks it against the target.

Runtime and database parity in staging

Build a staging environment that matches production on JDK version, database engine and major version, character collation, and the database configuration settings the server uses. A staging run on a different database or an H2 default tells you little about the production migration. The infrastructure lead signs off on the parity checklist, with each difference recorded and justified.

Production data copy for rehearsal

Restore a copy of production data into staging and run the full upgrade there, including the schema migration and a search and read smoke test against real resource volumes. Handle the copy under the same access and privacy controls as production, since it holds patient data. The data protection officer and the service owner approve the copy's handling, and the rehearsal result is the gate for the production window.

Rollback and sign-off plan

Write down the exact steps to return to the 8.x version and its database state if the upgrade fails, and state which migrations are one-way. Confirm the rollback was tested in staging with the same backup. The change owner approves the plan and the on-call engineer holds a copy, so the decision to roll back does not wait for a meeting.

Each upgrade phase gates the next, and failures loop back

The upgrade starts with an inventory of runtimes, application servers, images and custom code that depend on HAPI FHIR. The runtime is moved to JDK 17 in a non-production environment first, because HAPI FHIR 8.2.0 requires JDK 17. Custom code is then built against 8.2, the schema is migrated with hapi-fhir-cli, and smoke and regression tests run. A runtime that will not start on JDK 17 or a failed test returns the work to an earlier phase rather than moving forward. A rollback point is set before production cutover.

Phase order for the 8.2 upgrade, with loops back on failed starts and failed tests.

The upgrade sequence with checks and rollback points

This sequence moves a HAPI FHIR JPA server to 8.2 in an order that keeps a known-good database and image available until the new version has passed its checks. Each step ends with a check that must pass before the next one starts.

  1. Freeze the change window and record the current state

    The platform owner and the application team agree a change freeze, stop unrelated deployments, and record the running HAPI FHIR version, the image digest or WAR name, the JDK version, the application server version, and the database engine and version. Someone outside the upgrade team reviews the record so that the rollback target is written down before anything changes. Done means the record is stored with the change ticket and every owner has acknowledged the freeze in writing.

  2. Take and verify database and configuration backups

    The database administrator takes a full backup of the production database and exports the server configuration, including application properties, interceptor settings, and any custom partition or security code. The backup is then restored to a separate instance to confirm it is readable and that row counts and key tables match the source. The rollback point is established here: if the restore test fails, the upgrade does not start. Done means a successful test restore is logged with the backup identifier.

  3. Build a staging copy of production

    The team restores the verified backup into a staging environment with the same database engine and version, the same partition mode, and a copy of the production configuration. Staging must run the current release first so that any drift is found before the upgrade. Done means the current version runs against the staging copy and the core FHIR read, write, and search requests pass a baseline test set.

  4. Move the JDK and application server or image to 8.2 requirements

    The platform engineer confirms the 8.2 Java requirement in the HAPI FHIR versions documentation, which states that 8.2.0 requires JDK 17, and then updates the base image, JDK, Tomcat, Jetty, or Wildfly version, and any startup flags. Custom interceptors, providers, and build plugins are compiled against the new runtime in the same pass. Done means the build produces an artifact or image tagged for 8.2 and the team has a written list of the runtime changes for the rollback plan.

  5. Build and start the 8.2 server against staging

    The team builds the server with the 8.2 starter or image, deploys it against the staging database, and watches the startup log for errors, unsupported configuration keys, and warnings about removed properties. The server must reach a healthy state and expose its health endpoint before testing begins. Done means the staging server starts cleanly on the 8.2 artifact, and any remaining warnings are recorded with an owner.

  6. Run the schema migration and confirm the migration output

    Confirm the exact migration command, its dialect flags, and any heavyweight or optional steps in the 8.2 documentation before running it, and confirm whether the release notes list the SP_UPDATED column change and the contained resource ID change as part of this migration or as separate tasks. Run the migration on the staging copy first, capture the full output, and check that it completes without errors and leaves no stuck migration lock. Done means the migration log shows successful completion and a schema comparison against the expected 8.2 state reports no unexpected differences.

  7. Run functional and FHIR conformance tests

    The team runs the baseline test set, custom interceptor and provider tests, search and paging tests, and a FHIR conformance check such as validating the CapabilityStatement and a sample of resource read and write operations. Results from the old version on the same copy are compared with the 8.2 results so that differences are visible. Done means every test in the agreed list passes, and any difference is either fixed or accepted in writing by the application owner. If a test fails, the rollback point applies: restore the staging database backup and redeploy the previous image.

  8. Reindex if the release notes require it, then cut over

    If the 8.2 documentation calls for a reindex or follow-up job, the team runs it on staging, measures its completion, and repeats the conformance tests. For production, the team takes a fresh backup, runs the same migration and steps used in staging, deploys the verified 8.2 artifact, and monitors health, errors, and search latency. Rollback at this stage means restoring the pre-upgrade backup taken in the earlier step and redeploying the previous image tag, and the team must confirm the restore time before the window opens. Done means the production health check passes, smoke tests succeed, and the old image remains available until the agreed review is complete.

How to test 8.2 and roll back if it fails

Run the test layers in order and treat a restored database as the only real rollback for any upgrade that has run a schema migration. Start with startup and health checks on JDK 17, because a HAPI FHIR 8.2.0 server that does not start on JDK 17 cannot be tested further. Confirm the runtime that actually serves traffic, whether that is the hapiproject/hapi image, a WAR on Tomcat, Jetty or Wildfly, or a Spring Boot build, reports Java 17 and that the health endpoint and database connection come up cleanly. Then compile every custom interceptor, provider and partition interceptor against the 8.2 classes. Compilation failures here are cheap to fix, and they are the most common surprise when a team moves off Java 11 with code it has not touched in years.

Next, run search and write regression against a copy of production data, not a small fixture set. Cover the searches your applications depend on, conditional creates and updates, and bundle transactions, and compare result counts and resource IDs with the pre-upgrade baseline. Where the release notes describe changes to contained resource IDs or the unused SP_UPDATED column, write explicit checks for those specific cases, and confirm with the release notes exactly which queries or columns they touch before you rely on the result. Ask your DBA to confirm that the rehearsal ran the same migration path production will run, including any heavyweight steps.

Decide the rollback deadline before cutover, not during an incident. Rolling back the image alone is not enough once the 8.2 migration has changed the schema, because an older server may not read the new layout, and any writes accepted after cutover would be lost or inconsistent. Your rollback plan should name the database backup or snapshot to restore, the point after which restoring means discarding clinical or operational writes, the person who can approve that trade-off, and the time window in which that decision must be made. Rehearse the restore on a copy of production so the team knows how long it takes and what it costs to lose the post-cutover data.

What makes a HAPI FHIR 8.2 upgrade take longer

This table lists the factors that most change the effort of moving a HAPI FHIR JPA server to 8.2, along with the question to ask your partner or internal team for each. Read each row against your own estate, because the drivers compound: a large database with many custom interceptors and several environments usually needs the most planning.

DriverEffect on the workQuestion to ask
Custom interceptors and providersEach custom interceptor, provider or partition hook must be checked against 8.2 APIs and compiled on JDK 17 before any environment is upgraded.How many custom interceptors and providers do we run, and who owns each one?
Reliance on the SP_UPDATED columnReports, queries or external jobs that read SP_UPDATED directly need review because the column is unused by the server and may be removed or ignored in your plan.Which reports, dashboards or ETL jobs query SP_UPDATED, and who will confirm they still work?
Application servers and imagesEach Tomcat, Jetty, Wildfly, Spring Boot or container image needs a JDK 17 runtime, updated base images and its own startup and health check test.How many distinct runtime targets do we deploy, and which of them still run Java 11?
Database size and restore timeThe time a rehearsal copy takes to restore sets how long test cycles last and whether a full dry run is practical before the maintenance window.How long does a restore of our production database take, and how big is it?
Number of environmentsDevelopment, test, staging and production must run the same versions, configuration and migrations, so each extra environment adds validation and drift checks.How many environments must move in step, and who controls their configuration?
Tested rollbackWithout a rehearsed rollback that restores the database and previous images, a failed upgrade can turn into an extended outage.Have we rehearsed a full rollback from a backup taken before the migration, and who signs off on it?

Questions buyers ask before upgrading HAPI FHIR to 8.2

What drives the cost of a HAPI FHIR 8.2 upgrade?

The main cost driver is how much the server has changed since its last upgrade, and how much custom code and infrastructure sits around it. Effort rises with the number of custom interceptors, providers and partition logic that must be tested, the number of application servers and container images to check, and the size of the database that will run schema migrations. The 8.2.0 release requires JDK 17, so runtimes still on Java 11 need a platform change as well. Cost is paid as a fixed-scope engagement for planning, build and rehearsal, and the operator's own staff time for sign-off and testing. Ask any quote to split one-time work (assessment, rehearsal, cutover) from recurring work such as retainers or ongoing testing, and to list every environment in scope.

How long does a HAPI FHIR 8.2 upgrade take?

The timing depends on the written scope, so no duration is set until the scope is agreed. The main drivers are the number of environments to rehearse, the size of the database and any heavyweight migrations it triggers, the amount of custom code to test, and how many application servers or images must be rebuilt. Scheduling also matters: production cutover usually needs an approved maintenance window, and your change board's lead time can set the calendar more than the technical work does. Ask for a plan that shows the rehearsal, the cutover window and the rollback point as separate milestones.

What does the upgrade need from our team?

Plan for three things from your side before work starts: database access, a staging environment, and a named business owner who signs off on results. Database access lets the team check schema state, take backups and run the migration tooling against a copy. A staging environment should match production closely enough to rehearse the Java 17 runtime, the container image and the application server configuration. The business owner decides whether functional tests pass and accepts the cutover. Your team also needs to name someone who can approve changes to custom code and someone who can operate the server after handover.

Can our own engineers do the HAPI FHIR 8.2 upgrade without a partner?

Yes, if your engineers have working knowledge of Java, HAPI FHIR and the database behind the JPA server, and if you have a rehearsal copy of production to test against. The work is mostly methodical: confirm the JDK 17 runtime, review custom interceptors and providers, check application servers and images, run migrations on a copy, and verify search and write behavior. Teams without a rehearsal copy or without someone who has upgraded a HAPI FHIR server before usually carry the most risk. Read the release notes for 8.2.0 carefully and confirm each breaking change against your own configuration before you start.

What should we ask for in a written quote for this upgrade?

Ask for a quote that ties every line to a written scope. It should list the environments in scope, the custom code and integrations to be reviewed, the application servers and container images to be checked, and the database platform and size. It should state what is delivered for the rehearsal, the cutover and the rollback plan, and what testing is included. Ask which items are one-time and which recur, such as retainers for later upgrades or ongoing support. Confirm who performs each task, what you must provide, and how change requests after signing will be priced. Quotes should not promise outcomes that depend on your environment.

Is HAPI FHIR 8.2 still the right target when newer releases exist?

Choose the target version based on your support needs, your runtime and your timeline, not on the release number alone. HAPI FHIR 8.2.0 requires JDK 17, and newer releases in the 8.x line may change that requirement or add their own breaking changes. The HAPI FHIR releases page on GitHub lists the current versions, and the versions documentation explains which JDK each release needs. Several 8.x upgrades may be sequenced, so ask whether a direct jump or staged path is safer for your current version. Confirm the target with the vendor documentation and your own test results before committing to a path.

How DeployOpen scopes and delivers a HAPI FHIR upgrade

DeployOpen approaches the HAPI FHIR 8.2 upgrade as a scoped change to your running server, starting with your Java runtime, your application servers and images, and any custom code that depends on the current behavior. The work is planned in writing before anything is changed, then rehearsed on a copy of your environment before production.

How we scope

  • Written scope lists the HAPI FHIR version, JPA server starter or custom WAR, and each runtime, image and database in the change.
  • We inventory Java runtimes, application server versions and container base images that must move to JDK 17 for HAPI FHIR 8.2.0.
  • Scope names how contained resource ID changes and the unused SP_UPDATED column will be checked against your data and queries.

How we build

  • We upgrade a non-production copy of your server, including its database schema, and record every migration step taken.
  • Custom interceptors, providers and client code are compiled and tested against HAPI FHIR 8.2 before the production change is scheduled.
  • Rehearsal results, rollback steps and the database backup procedure are checked against the agreed maintenance window.

How we hand over

  • Deliverables include the upgrade runbook, the updated configuration, the container and Java build changes, and the test results.
  • We document each breaking change found in your environment, with the fix applied and the evidence that it was verified.
  • A handover session walks your platform and application teams through the runbook, the rollback path and the open items.

How we support

  • Ongoing support, upgrades and continuous testing for your HAPI FHIR server are available as a retainer.
  • Post-upgrade monitoring checks cover startup, health endpoints and search behavior after the change goes live.
  • Future HAPI FHIR releases are planned as separate fixed-scope changes so each upgrade gets its own written scope and rehearsal.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.