Hi,

I just downloaded a Greg snapshot build (06-Mar-2011 18:17), but it still
gives the same above issue when trying to start the server up.


[2011-03-07 09:16:27,837] ERROR
{org.wso2.carbon.user.core.util.DatabaseUtil} -  Database Error - Cannot
create PoolableConnectionFactory (Unsupported database file version or
invalid file header in file "Old database:
/home/nirodha/Servers/G-reg/wso2greg-4.0.0-SNAPSHOT/repository/database/WSO2CARBON_DB.data.db
- please convert the database to a SQL script and re-create it."
[90048-140])
org.apache.commons.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory (Unsupported database file version or invalid file
header in file "Old database:
/home/nirodha/Servers/G-reg/wso2greg-4.0.0-SNAPSHOT/repository/database/WSO2CARBON_DB.data.db
- please convert the database to a SQL script and re-create it."
[90048-140])
    at
org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1549)
    at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)
    at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
    at
org.wso2.carbon.user.core.claim.dao.ClaimDAO.getDialectCount(ClaimDAO.java:158)
    at
org.wso2.carbon.user.core.common.DefaultRealm.populateProfileAndClaimMaps(DefaultRealm.java:278)
    at
org.wso2.carbon.user.core.common.DefaultRealm.init(DefaultRealm.java:109)
    at
org.wso2.carbon.user.core.common.DefaultRealmService.initializeRealm(DefaultRealmService.java:225)
    at
org.wso2.carbon.user.core.common.DefaultRealmService.<init>(DefaultRealmService.java:104)
    at
org.wso2.carbon.user.core.common.DefaultRealmService.<init>(DefaultRealmService.java:117)
    at
org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:51)
    at
org.wso2.carbon.user.core.internal.BundleCheckActivator.start(BundleCheckActivator.java:54)
    at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:782)
    at java.security.AccessController.doPrivileged(Native Method)
    at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:773)
    at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:754)
    at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
    at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:370)
    at
org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1068)
    at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:557)
    at
org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:464)
    at
org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:248)
    at
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:445)
    at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220)
    at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:330)
Caused by: org.h2.jdbc.JdbcSQLException: Unsupported database file version
or invalid file header in file "Old database:
/home/nirodha/Servers/G-reg/wso2greg-4.0.0-SNAPSHOT/repository/database/WSO2CARBON_DB.data.db
- please convert the database to a SQL script and re-create it." [90048-140]


Regards,
Nirodha.


On Fri, Mar 4, 2011 at 12:23 PM, Prabath Siriwardana <[email protected]>wrote:

> Thanks a lot AmilaM and Anjana..
>
> Thanks & regards,
> -Prabath
>
>
> On Fri, Mar 4, 2011 at 12:17 PM, Amila Maha Arachchi <[email protected]>wrote:
>
>> Hi,
>>
>> I had look in to this with Anjana. According to him this was due to a
>> wrong h2 version. This seems to be fixed after 27th Feb (date of last
>> build). Therefore I triggered a new build in the builder machine WITHOUT
>> TESTS (otherwise the QA guys wont get a pack for weeks to test, due to the
>> test failures we are having at the moment). Will see the outcome of this
>> build.
>>
>> Thanks,
>> AmilaM.
>>
>>
>> On Thu, Mar 3, 2011 at 5:06 PM, Prabath Siriwardana <[email protected]>wrote:
>>
>>> Hi Anjana,
>>>
>>> Can you please have a look.. As per Sumedha - it seems like a DB issue...
>>> Also this still works fine in the local machine..
>>>
>>> Thanks & regards,
>>> -Prabath
>>>
>>> On Thu, Mar 3, 2011 at 4:58 PM, Charitha Kankanamge 
>>> <[email protected]>wrote:
>>>
>>>>
>>>> Can someone fix this issue ASAP please? We are unable to test any of the
>>>> pack because of this issue. :(
>>>>
>>>> Regards
>>>> Charitha
>>>>
>>>> On Wed, Mar 2, 2011 at 12:35 PM, Tharindu Mathew <[email protected]>wrote:
>>>>
>>>>> I also got this error when I tried to start up G-Reg after downloading
>>>>> from http://10.100.1.43/~carbon/releases/carbon/3.2.0/latest/
>>>>>
>>>>>
>>>>> On Wed, Mar 2, 2011 at 9:29 AM, Charitha Kankanamge <[email protected]
>>>>> > wrote:
>>>>>
>>>>>> Hi,
>>>>>> As I stated in my previous reply, I also got the same error. Note that
>>>>>> we did not do any changes to H2 Driver or any other. We just downloaded 
>>>>>> the
>>>>>> pack and tried to start.
>>>>>>
>>>>>> 1. Download wso2 appserver pack from
>>>>>> http://10.100.1.43/~carbon/releases/carbon/3.2.0/latest/
>>>>>> 2. Extract the binary distro
>>>>>> 3. go to CARBON_HOME/bin and start server (sh wso2server.sh)
>>>>>>
>>>>>> Regards
>>>>>> Charitha
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Wed, Mar 2, 2011 at 9:23 AM, Prabath Abeysekera <[email protected]
>>>>>> > wrote:
>>>>>>
>>>>>>> Hi Tharinda,
>>>>>>>
>>>>>>> On Mon, Feb 28, 2011 at 10:25 AM, Tharinda Liyanage <
>>>>>>> [email protected]> wrote:
>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> ESB cannot be started due to a DB error. Please look into the issue.
>>>>>>>> See attached error log.
>>>>>>>>
>>>>>>>>
>>>>>>> As sumedha mentioned in a previous mail, most of the times this error
>>>>>>> occurs when
>>>>>>> you use different versions of h2 driver jar for the client and the
>>>>>>> server. Please check
>>>>>>> whether the drivers used for those are of the same version.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> Regards,
>>>>>>>> Tharinda
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Carbon-dev mailing list
>>>>>>>> [email protected]
>>>>>>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> Regards,
>>>>>>> --
>>>>>>> Prabath Abeysekara
>>>>>>> Software Engineer
>>>>>>> WSO2 Inc.
>>>>>>> Email: [email protected] <[email protected]>
>>>>>>> Mobile: +94774171471
>>>>>>>
>>>>>>> <http://harshana05.blogspot.com/>
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Carbon-dev mailing list
>>>>>>> [email protected]
>>>>>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Carbon-dev mailing list
>>>>>> [email protected]
>>>>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Regards,
>>>>>
>>>>> Tharindu Mathew
>>>>>
>>>>> Software Engineer,
>>>>> WSO2 Inc.,
>>>>> http://wso2.com
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> Carbon-dev mailing list
>>>> [email protected]
>>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Thanks & Regards,
>>> Prabath
>>>
>>> http://blog.facilelogin.com
>>> http://RampartFAQ.com
>>>
>>> _______________________________________________
>>> Carbon-dev mailing list
>>> [email protected]
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>
>
> --
> Thanks & Regards,
> Prabath
>
> http://blog.facilelogin.com
> http://RampartFAQ.com
>
> _______________________________________________
> Carbon-dev mailing list
> [email protected]
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
*Nirodha Pramod*
Software Engineer, QA.
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to