# Java Tensorflow SavedModelBundle load ops resource for tensorflow-text results in unsatisfied link error

**URL:** <https://discuss.ai.google.dev/t/java-tensorflow-savedmodelbundle-load-ops-resource-for-tensorflow-text-results-in-unsatisfied-link-error/31902>\
**Category:** General Discussion\
**Tags:** java, help\_request\
**Created:** [April 7, 2022, 5:17am UTC](https://discuss.ai.google.dev/t/java-tensorflow-savedmodelbundle-load-ops-resource-for-tensorflow-text-results-in-unsatisfied-link-error/31902 "2022-04-07T05:17:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Preet\_Kamal\_Bawa](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/preet_kamal_bawa/32/8466_2.png) [@Preet\_Kamal\_Bawa](https://discuss.ai.google.dev/u/Preet_Kamal_Bawa)\
**Post date:** [April 7, 2022, 5:17am UTC](https://discuss.ai.google.dev/t/java-tensorflow-savedmodelbundle-load-ops-resource-for-tensorflow-text-results-in-unsatisfied-link-error/31902/1 "2022-04-07T05:17:27Z")

</div>

this same SavedModelBundle load library works for tensorflow-text(2.8.1) resource using mac .dylib file.  
when we run our test in Jenkins which uses Docker image, it tries to load its .so counterpart file (counterpart to same .dylib file for wordpiece\_tokenizer and some other tensorflow-text ops) and we get these errors for these ops resource files.

java.lang.UnsatisfiedLinkError: java.lang.UnsatisfiedLinkError: /home/jenkins/workspace/lization\_Search\_build-all\_PR-313/spell-corrector/target/scala-2.13/classes/bertNeuSpell/tokenizer/ **\_wordpiece\_tokenizer.so:** undefined symbol: \_ZN10tensorflow8OpKernel11TraceStringEPNS\_15OpKernelContextEb

Same error for other .so files loaded to run Bert Tokenizer Graph like this:  
java.lang.UnsatisfiedLinkError: /home/jenkins/workspace/lization\_Search\_build-all\_PR-313/spell-corrector/target/scala-2.13/classes/bertNeuSpell/tokenizer/ **\_normalize\_ops.so:** undefined symbol: \_ZN10tensorflow8OpKernel11TraceStringEPNS\_15OpKernelContextEb  
and so on for other **\_regex\_split.so** file as well.

Does this mean docker image OS is not compatible with this tensorflow text (2.8.1) ops file. ?  
We are only building our scala/java app using **java tensorflow core platform 0.4.0** which works fine when these resource ops files are loading on mac using .dylib extensions and docker image doesn’t do any pip install for tensorflow or tensorflow-text in the docker file- we just directly load the .so files before loading the tokenizer Graph.

Another thing, since i couldn’t get .so file when i do pip install tensorflow-text locally on mac, we have databricks cluster, i had done copied files from the driver node, i am guessing that’s reason it won’t work. should i just run docker image , and do pip install in it and grab files out of docker image and checkin into our github repo ?

---

<div class="post-metadata">

**Author:** ![saudet](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/saudet/32/6469_2.png) [@saudet](https://discuss.ai.google.dev/u/saudet)\
**Post date:** [April 8, 2022, 12:58am UTC](https://discuss.ai.google.dev/t/java-tensorflow-savedmodelbundle-load-ops-resource-for-tensorflow-text-results-in-unsatisfied-link-error/31902/3 "2022-04-08T00:58:28Z")

</div>

I don’t believe a release for TF 2.8.x is available yet. Please give it a try with the snapshots:

> **[GitHub - tensorflow/java: Java bindings for TensorFlow](https://github.com/tensorflow/java#snapshots)**
>
> Java bindings for TensorFlow
