Thanks Kristian for your quick response.
I forgot to mention that I have specified the system property
"derby.database.allowPreReleaseUpgrade=true" and it did not help.
Also my understanding was that this system property is used to upgrade *to*
a beta release. Is this also
used to update *from* a beta release? In any case it did not work.
Also jaded the class "org.apache.derby.impl.store.raw.log.LogToFile.class"
[had to do this as the published sources does not seem to match the class]
and found this piece of code in method
private long readControlFile(StorageFile logControlFileName, Properties
startParams)// this is were exception was originating from.
if(onDiskBeta && (!jbmsVersion.isBeta() || onDiskMajorVersion !=
jbmsVersion.getMajorVersion() || onDiskMinorVersion !=
jbmsVersion.getMinorVersion()))
{
boolean flag1 = true;
if(!flag1)
throw StandardException.newException("XSLAP.D",
dataDirectory, ProductVersionHolder.simpleVersionString(onDiskMajorVersion,
onDiskMinorVersion, onDiskBeta));
}
Looking at this it appears always an exception is thrown when one upgrades
from a beta release to an official release.
In my case onDiskBeta= true and jbmsVersion.isBeta() is false as i am
installing the official release...
I am not sure if my understanding is correct. Any work around would be very
helpful.
Thanks..
Jitesh
Kristian Waagan wrote:
>
> Jitesh Mehta wrote:
>> Hi,
>>
>> I have a Database created using the 10.2.1000000.430903 release of Derby.
>>
>> I would like to fully upgrade this database to the latest derby official
>> release 10.3.1.4.
>>
>> When i boot the database with upgrade=true following exception is thrown:
>>
>> Caused by: java.sql.SQLException: Database at
>> F:\freshCheckOut\butterfly\installer\samples\picApp\tests\picApp_test_db
>> is
>> at version 10.2 beta. Beta databases cannot be upgraded,
>> at
>> org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown
>> Source)
>> at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown
>> Source)
>> at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown
>> Source)... 34 more
>>
>> Is there anyway this upgrade from this beta release ?
>
> Hello,
>
> Please take a backup of you database before you try to upgrade!
> (and maybe read the release notes in case something affects your
> application)
>
> You have to specify derby.database.allowPreReleaseUpgrade=true to be
> able to upgrade from beta releases.
>
>
> I'm a bit unsure what kind of guarantees you have that everything will
> work, but I am not aware of anything that for sure will make it fail.
>
> Let us know how it works out :)
>
>
> regards,
> --
> Kristian
>
>
Jitesh Mehta wrote:
>
> Hi,
>
> I have a Database created using the 10.2.1000000.430903 release of Derby.
>
> I would like to fully upgrade this database to the latest derby official
> release 10.3.1.4.
>
> When i boot the database with upgrade=true following exception is thrown:
>
> Caused by: java.sql.SQLException: Database at
> F:\freshCheckOut\butterfly\installer\samples\picApp\tests\picApp_test_db
> is at version 10.2 beta. Beta databases cannot be upgraded,
> at
> org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown
> Source)
> at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown
> Source)
> at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown
> Source)... 34 more
>
> Is there anyway this upgrade from this beta release ?
>
--
View this message in context:
http://www.nabble.com/Upgrading-from-10.2-beta-to-10.3.1.4-official-relaease-tf4305387.html#a12256557
Sent from the Apache Derby Users mailing list archive at Nabble.com.