<?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: android - error -305 on UPDATE in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/android-error-305-on-update/qaa-p/13849020#M4879863</link>
    <description>&lt;P&gt;For the query sequence which is throwing an exception, do they use the same connection, or does each iteration create its own connection to the database? If the latter, does the connection string specifify a database name or a file name? In other words, is it possible that the second update could be fouling when it tries to write to a still-locked file or file segment?&lt;/P&gt;
&lt;P&gt;(Caveat: I haven't worked with Ultralite on Android yet, but I'm presuming that a file-based connection may not automatically detect whether it or not it can really write to the file -- I just have vague recollections of Linux growing fur and fangs when it came to mixing file locks and multi-threaded processes.)&lt;/P&gt;</description>
    <pubDate>Wed, 28 Sep 2011 11:23:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-09-28T11:23:17Z</dc:date>
    <item>
      <title>android - error -305 on UPDATE</title>
      <link>https://community.sap.com/t5/technology-q-a/android-error-305-on-update/qaq-p/13849018</link>
      <description>&lt;P&gt;My android app is using an udb file. My problem is on an UPDATE statement, when i execute it the first time everything works properly but when I do it the second time (I execute the prepared SQL statement and the query string is still clean), 
 I get this error:&lt;/P&gt;
&lt;P&gt;09-27 15:07:35.920: WARN/System.err(19311): com.ianywhere.ultralitejni12.implementation.JniException: UltraLiteJ Error[-305]: I/O error 200017 -- transaction rolled back&lt;/P&gt;
&lt;P&gt;Any helping idea in what might be the reason?
thank you in advance&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2011 09:10:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/android-error-305-on-update/qaq-p/13849018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-27T09:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: android - error -305 on UPDATE</title>
      <link>https://community.sap.com/t5/technology-q-a/android-error-305-on-update/qaa-p/13849019#M4879862</link>
      <description>&lt;P&gt;this is what I do&lt;/P&gt;
&lt;P&gt;*query="UPDATE ...";
        try
        {
            statement=DB_conn.prepareStatement(query);
            result=statement.execute();
            DB_conn.commit();
            statement.close();
        }
        catch(ULjException e)
        {
            e.printStackTrace();
        }&lt;/P&gt;
&lt;DIV class="codehilite"&gt;&lt;PRE&gt;    &lt;SPAN class="k"&gt;return&lt;/SPAN&gt; &lt;SPAN class="n"&gt;result&lt;/SPAN&gt;&lt;SPAN class="p"&gt;;&lt;/SPAN&gt;&lt;SPAN class="o"&gt;*&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 27 Sep 2011 10:09:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/android-error-305-on-update/qaa-p/13849019#M4879862</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-27T10:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: android - error -305 on UPDATE</title>
      <link>https://community.sap.com/t5/technology-q-a/android-error-305-on-update/qaa-p/13849022#M4879865</link>
      <description>&lt;P&gt;A -305 error indicates that there was a problem during I/O operations. Are you seeing this issue only with UPDATEs i.e., SELECT, INSERT, DELETE statements all seem to work ok? Can you run a ulvalidate (on the desktop) against this db?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2011 10:24:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/android-error-305-on-update/qaa-p/13849022#M4879865</guid>
      <dc:creator>chris_keating</dc:creator>
      <dc:date>2011-09-27T10:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: android - error -305 on UPDATE</title>
      <link>https://community.sap.com/t5/technology-q-a/android-error-305-on-update/qaa-p/13849023#M4879866</link>
      <description>&lt;P&gt;yes, the other query are working and also an update query is working but only the first time. When i do that 2 times, the second time is not working...&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2011 10:27:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/android-error-305-on-update/qaa-p/13849023#M4879866</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-27T10:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: android - error -305 on UPDATE</title>
      <link>https://community.sap.com/t5/technology-q-a/android-error-305-on-update/qaa-p/13849024#M4879867</link>
      <description>&lt;P&gt;How are you connecting to the database? I think that the most likely causes for an I/O error are writing to an unmounted file system or attempting to write to a file locked by another thread or process.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2011 17:01:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/android-error-305-on-update/qaa-p/13849024#M4879867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-27T17:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: android - error -305 on UPDATE</title>
      <link>https://community.sap.com/t5/technology-q-a/android-error-305-on-update/qaa-p/13849025#M4879868</link>
      <description>&lt;P&gt;Thanks for your reply. What do you mean with "How are you connecting to the database?" You would like to know all the methods I use?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2011 08:35:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/android-error-305-on-update/qaa-p/13849025#M4879868</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-28T08:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: android - error -305 on UPDATE</title>
      <link>https://community.sap.com/t5/technology-q-a/android-error-305-on-update/qaa-p/13849026#M4879869</link>
      <description>&lt;P&gt;furthermore, is there any documentation for android dev using afaria sybase in their application?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2011 10:10:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/android-error-305-on-update/qaa-p/13849026#M4879869</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-28T10:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: android - error -305 on UPDATE</title>
      <link>https://community.sap.com/t5/technology-q-a/android-error-305-on-update/qaa-p/13849020#M4879863</link>
      <description>&lt;P&gt;For the query sequence which is throwing an exception, do they use the same connection, or does each iteration create its own connection to the database? If the latter, does the connection string specifify a database name or a file name? In other words, is it possible that the second update could be fouling when it tries to write to a still-locked file or file segment?&lt;/P&gt;
&lt;P&gt;(Caveat: I haven't worked with Ultralite on Android yet, but I'm presuming that a file-based connection may not automatically detect whether it or not it can really write to the file -- I just have vague recollections of Linux growing fur and fangs when it came to mixing file locks and multi-threaded processes.)&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2011 11:23:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/android-error-305-on-update/qaa-p/13849020#M4879863</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-28T11:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: android - error -305 on UPDATE</title>
      <link>https://community.sap.com/t5/technology-q-a/android-error-305-on-update/qaa-p/13849021#M4879864</link>
      <description>&lt;P&gt;That I/O error number indicates that UltraLite read a page from the database file and found unexpected data in the page header. If there's not another explanation, it indicates the storage medium corrupted the data -- that is, returned something different than what was written.&lt;/P&gt;
&lt;P&gt;If you can reproduce this problem with a new database, please submit the repro to Sybase as a bug report.&lt;/P&gt;
&lt;P&gt;As Chris mentioned, you can run the ulvalid tool against the database to see if it thinks anything is wrong. Copy the database back to your PC, and run 'ulvalid -v -c dbf=mydatabase.udb'.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2011 14:04:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/android-error-305-on-update/qaa-p/13849021#M4879864</guid>
      <dc:creator>former_SQLA_member1694876</dc:creator>
      <dc:date>2011-09-28T14:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: android - error -305 on UPDATE</title>
      <link>https://community.sap.com/t5/technology-q-a/android-error-305-on-update/qaa-p/13849027#M4879870</link>
      <description>&lt;P&gt;My problem was an error in the classes I use. While I projected the app in such a way as I open the connection only at the beginning and use a singleton class for this; I figured out that some classes open the connection again! Fixing it I dont get the same problem. Thanks a lot for your help/time&lt;/P&gt;
&lt;P&gt;PS: My question about documentation-for-android-dev-using-afaria is still valid.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2011 03:01:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/android-error-305-on-update/qaa-p/13849027#M4879870</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-29T03:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: android - error -305 on UPDATE</title>
      <link>https://community.sap.com/t5/technology-q-a/android-error-305-on-update/qaa-p/13849028#M4879871</link>
      <description>&lt;P&gt;Glad you got it:) - Is there any answer that seems acceptable?&lt;/P&gt;
&lt;P&gt;For the Afaria question, I'd recommend a new question on its own (and no, I don't know the answer...)&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2011 03:38:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/android-error-305-on-update/qaa-p/13849028#M4879871</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2011-09-29T03:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: android - error -305 on UPDATE</title>
      <link>https://community.sap.com/t5/technology-q-a/android-error-305-on-update/qaa-p/13849029#M4879872</link>
      <description>&lt;P&gt;yes, the W.Clardy comment was helpful.&lt;/P&gt;
&lt;P&gt;For the Afaria question, I am going to post a new question soon.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2011 04:13:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/android-error-305-on-update/qaa-p/13849029#M4879872</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-29T04:13:05Z</dc:date>
    </item>
  </channel>
</rss>

