# Fail to marshall transformed content with HbmXmlTransformer

**URL:** <https://discourse.hibernate.org/t/fail-to-marshall-transformed-content-with-hbmxmltransformer/7848>\
**Category:** Hibernate ORM\
**Created:** [June 19, 2023, 8:02am UTC](https://discourse.hibernate.org/t/fail-to-marshall-transformed-content-with-hbmxmltransformer/7848 "2023-06-19T08:02:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Boris](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/boris/32/2502_2.png) [@Boris](https://discourse.hibernate.org/u/Boris)\
**Post date:** [June 19, 2023, 8:02am UTC](https://discourse.hibernate.org/t/fail-to-marshall-transformed-content-with-hbmxmltransformer/7848/1 "2023-06-19T08:02:15Z")

</div>

Hi,

I’m trying to use the HbmXmlTransformer to transform the legacy hbm.xml’s from my large legacy project into orm.xml’s. After successful transform to JaxbEntityMappings I’m getting the Exception on the marshalling the content into orm.xml:

org.glassfish.jaxb.runtime.api.AccessorException: java.lang.NullPointerException: Cannot invoke “jakarta.persistence.AccessType.name()” because “accessType” is null.

Using the latest 6.2.5.Final and doing practially the same as in the [TransformHbmXmlTask.java]([hibernate-orm/tooling/hibernate-gradle-plugin/src/main/java/org/hibernate/orm/tooling/gradle/misc/TransformHbmXmlTask.java at main · hibernate/hibernate-orm · GitHub](https://github.com/hibernate/hibernate-orm/blob/main/tooling/hibernate-gradle-plugin/src/main/java/org/hibernate/orm/tooling/gradle/misc/TransformHbmXmlTask.java)] of the “hibernate-gradle-plugin”.

Obviously correlating XmlJavaTypeAdapter can’t handle the null values. Is there possibly any configuration to ignore that? Any help is higly appreciated,

Thanks,  
Boris

---

<div class="post-metadata">

**Author:** ![beikov](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/beikov/32/258_2.png) [@beikov](https://discourse.hibernate.org/u/beikov)\
**Post date:** [June 19, 2023, 1:58pm UTC](https://discourse.hibernate.org/t/fail-to-marshall-transformed-content-with-hbmxmltransformer/7848/2 "2023-06-19T13:58:53Z")

</div>

Hi there, the transformation is incubating/experimental and there are a few unimplemented transformations. I guess it would be best if you report the problem by creating a JIRA issue and attach a reproducer if possible.
