<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Runtime error with UltraliteJ64 in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/runtime-error-with-ultralitej64/qaa-p/13828985#M4859828</link>
    <description>&lt;P&gt;I cannot reproduce this behavior.  If you are able, can you open a support incident on this topic. If not, can you package up a simple repro (one that is simply creates/connects to a database) that shows the problem and send to firstname.lastname@sap.com and I will take a look.  It is very odd since this method has existed well before any of the changes that you cite and other environments are not reporting this behaviour.  Please include the specific SQLAny 17 version that you are testing so that I can check the deployment files.&lt;/P&gt;</description>
    <pubDate>Mon, 23 Aug 2021 16:01:39 GMT</pubDate>
    <dc:creator>chris_keating</dc:creator>
    <dc:date>2021-08-23T16:01:39Z</dc:date>
    <item>
      <title>Runtime error with UltraliteJ64</title>
      <link>https://community.sap.com/t5/technology-q-a/runtime-error-with-ultralitej64/qaq-p/13828981</link>
      <description>&lt;P&gt;We updated our so files and jar file, according to the description in "UltraliteJ 64bit" forum topic (&lt;A href="https://sqlanywhere-forum.sap.com/questions/33960/ultralitej-64bit)" target="_blank"&gt;https://sqlanywhere-forum.sap.com/questions/33960/ultralitej-64bit)&lt;/A&gt;
The build is ok, the apk includes the files, but the app crashes immediately after install with the following error message: &lt;/P&gt;
&lt;P&gt;ACRA caught a UnsatisfiedLinkError for 
    java.lang.UnsatisfiedLinkError: No implementation found for void com.sap.ultralitejni17.implementation.JniDbMgr.setLibraryLocation(java.lang.String) 
    (tried Java_com_sap_ultralitejni17_implementation_JniDbMgr_setLibraryLocation and Java_com_sap_ultralitejni17_implementation_JniDbMgr_setLibraryLocation__Ljava_lang_String_2)
        at com.sap.ultralitejni17.implementation.JniDbMgr.setLibraryLocation(Native Method)
        at com.sap.ultralitejni17.implementation.JniDbMgr.Connect(Unknown Source:76)
        at com.sap.ultralitejni17.DatabaseManager.connect(Unknown Source:0)&lt;/P&gt;
&lt;P&gt;Got the same error message on     &lt;BR /&gt;
- Android 9, 10 and 11 as well
- With different Ultralite 17 builds (5855, 6230, 6315) &lt;/P&gt;
&lt;P&gt;With the previous versions, without support for Android arm64 and x86_64, the app did not and does not crash.   &lt;/P&gt;
&lt;P&gt;How can we solve this runtime error?&lt;/P&gt;
&lt;P&gt;Thank You in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 06:32:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/runtime-error-with-ultralitej64/qaq-p/13828981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-08-19T06:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error with UltraliteJ64</title>
      <link>https://community.sap.com/t5/technology-q-a/runtime-error-with-ultralitej64/qaa-p/13828983#M4859826</link>
      <description>&lt;P&gt;This is unlikely to be specifically the result of changes to add support for arm64 and and x64. Can you confirm the target devices (Device model, android version, and chipset) in which this issue is seen?  I know of other implementation using these patches without error.  Perhaps the wrong shared library is being loaded.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 12:50:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/runtime-error-with-ultralitej64/qaa-p/13828983#M4859826</guid>
      <dc:creator>chris_keating</dc:creator>
      <dc:date>2021-08-19T12:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error with UltraliteJ64</title>
      <link>https://community.sap.com/t5/technology-q-a/runtime-error-with-ultralitej64/qaa-p/13828984#M4859827</link>
      <description>&lt;P&gt;With universal apks we tested it on the following devices (also tested with split):&lt;/P&gt;
&lt;P&gt;Device model: Samsung Galaxy Tab Active2
android version: 9
chipset: arm-v7&lt;/P&gt;
&lt;P&gt;Device model: Samsung Galaxy Tab Active3
android version: 10
chipset: arm-v7&lt;/P&gt;
&lt;P&gt;Device model: Samsung Galaxy Tab Active3
android version: 11
chipset: arm-v7&lt;/P&gt;
&lt;P&gt;The last patch without x64 support (5820) does not crash.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 05:18:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/runtime-error-with-ultralitej64/qaa-p/13828984#M4859827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-08-23T05:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error with UltraliteJ64</title>
      <link>https://community.sap.com/t5/technology-q-a/runtime-error-with-ultralitej64/qaa-p/13828985#M4859828</link>
      <description>&lt;P&gt;I cannot reproduce this behavior.  If you are able, can you open a support incident on this topic. If not, can you package up a simple repro (one that is simply creates/connects to a database) that shows the problem and send to firstname.lastname@sap.com and I will take a look.  It is very odd since this method has existed well before any of the changes that you cite and other environments are not reporting this behaviour.  Please include the specific SQLAny 17 version that you are testing so that I can check the deployment files.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 16:01:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/runtime-error-with-ultralitej64/qaa-p/13828985#M4859828</guid>
      <dc:creator>chris_keating</dc:creator>
      <dc:date>2021-08-23T16:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error with UltraliteJ64</title>
      <link>https://community.sap.com/t5/technology-q-a/runtime-error-with-ultralitej64/qaa-p/13828986#M4859829</link>
      <description>&lt;P&gt;Thank you for the suggestion. I sent the email to you.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 04:55:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/runtime-error-with-ultralitej64/qaa-p/13828986#M4859829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-08-27T04:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime error with UltraliteJ64</title>
      <link>https://community.sap.com/t5/technology-q-a/runtime-error-with-ultralitej64/qaa-p/13828982#M4859825</link>
      <description>&lt;P&gt;The native libraries are, by default, located in the projects app/src/main/jniLibs with the directories&lt;/P&gt;
&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;/SPAN&gt;   arm64-v8a
   armeabi-v7a
   x86
   x86_64
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;This was the cause for this issue. There may be configuration changes that can be made to redirect where the shared objects can be located in the Android Studio project. For example, the app/build.gradle android{...} may use the following&lt;/P&gt;
&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;/SPAN&gt;sourceSets { main { jni.srcDirs = ['src/main/jni', 'src/main/jniLibs/'] } }
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;to define the location of the libraries.  &lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 08:58:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/runtime-error-with-ultralitej64/qaa-p/13828982#M4859825</guid>
      <dc:creator>chris_keating</dc:creator>
      <dc:date>2021-08-31T08:58:38Z</dc:date>
    </item>
  </channel>
</rss>

