This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (5 pts)
9,267 Views 55 Replies Last post: Mar 4, 2009 6:23 AM by myfilefind RSS
David Thor Bronze 23 posts since
Apr 16, 2007
Currently Being Moderated

Aug 27, 2008 5:43 AM

Openfire Upgrade from 3.5.2.  to 3.6 Fails

This is the Startup log:

 

Found old database version 16 for openfire. Upgrading to version 20...
SchemaManager: Failed to execute SQL:
CREATE TABLE mucService (   serviceID           INT           NOT NULL,   subdomain           NVARCHAR(255) NOT NULL,   description         NVARCHAR(255),   CONSTRAINT mucService_pk PRIMARY KEY (subdomain) );
java.sql.SQLException: There is already an object named 'mucService' in the database.
    at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:368)
    at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2816)
    at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2254)
    at net.sourceforge.jtds.jdbc.TdsCore.getMoreResults(TdsCore.java:631)
    at net.sourceforge.jtds.jdbc.JtdsStatement.processResults(JtdsStatement.java:584)
    at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQL(JtdsStatement.java:546)
    at net.sourceforge.jtds.jdbc.JtdsStatement.executeImpl(JtdsStatement.java:723)
    at net.sourceforge.jtds.jdbc.JtdsStatement.execute(JtdsStatement.java:1157)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.logicalcobwebs.proxool.ProxyStatement.invoke(ProxyStatement.java:100)
    at org.logicalcobwebs.proxool.ProxyStatement.intercept(ProxyStatement.java:57)
    at $java.sql.Wrapper$$EnhancerByProxool$$d0d7356b.execute(<generated>)
    at org.jivesoftware.database.SchemaManager.executeSQLScript(SchemaManager.java:374 )
    at org.jivesoftware.database.SchemaManager.checkSchema(SchemaManager.java:266)
    at org.jivesoftware.database.SchemaManager.checkOpenfireSchema(SchemaManager.java: 71)
    at org.jivesoftware.database.DbConnectionManager.setConnectionProvider(DbConnectio nManager.java:498)
    at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager .java:79)
    at org.jivesoftware.util.JiveProperties.loadProperties(JiveProperties.java:335)
    at org.jivesoftware.util.JiveProperties.init(JiveProperties.java:73)
    at org.jivesoftware.util.JiveProperties$JivePropertyHolder.<clinit>(JiveProperties .java:40)
    at org.jivesoftware.util.JiveProperties.getInstance(JiveProperties.java:52)
    at org.jivesoftware.util.JiveGlobals.getProperty(JiveGlobals.java:532)
    at org.jivesoftware.openfire.XMPPServer.initialize(XMPPServer.java:298)
    at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:415)
    at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:161)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:106)
    at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:51)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
    at com.exe4j.runtime.WinLauncher.main(Unknown Source)

java.sql.SQLException: Invalid object name 'ofProperty'.
    at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:368)
    at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2816)
    at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2254)
    at net.sourceforge.jtds.jdbc.TdsCore.getMoreResults(TdsCore.java:631)
    at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQLQuery(JtdsStatement.java:477)
    at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.executeQuery(JtdsPreparedStatem ent.java:777)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.logicalcobwebs.proxool.ProxyStatement.invoke(ProxyStatement.java:100)
    at org.logicalcobwebs.proxool.ProxyStatement.intercept(ProxyStatement.java:57)
    at $java.sql.PreparedStatement$$EnhancerByProxool$$579164b7.executeQuery(<generate d>)
    at org.jivesoftware.util.JiveProperties.loadProperties(JiveProperties.java:337)
    at org.jivesoftware.util.JiveProperties.init(JiveProperties.java:73)
    at org.jivesoftware.util.JiveProperties$JivePropertyHolder.<clinit>(JiveProperties .java:40)
    at org.jivesoftware.util.JiveProperties.getInstance(JiveProperties.java:52)
    at org.jivesoftware.util.JiveGlobals.getProperty(JiveGlobals.java:532)
    at org.jivesoftware.openfire.XMPPServer.initialize(XMPPServer.java:298)
    at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:415)
    at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:161)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:106)
    at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:51)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
    at com.exe4j.runtime.WinLauncher.main(Unknown Source)

Database setup or configuration error: Please verify your database settings and check the logs/error.log file for detailed error messages.
Database could not be accessed
java.sql.SQLException: Invalid object name 'ofID'.
    at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:368)
    at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2816)
    at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2254)
    at net.sourceforge.jtds.jdbc.TdsCore.getMoreResults(TdsCore.java:631)
    at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQLQuery(JtdsStatement.java:477)
    at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.executeQuery(JtdsPreparedStatem ent.java:777)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.logicalcobwebs.proxool.ProxyStatement.invoke(ProxyStatement.java:100)
    at org.logicalcobwebs.proxool.ProxyStatement.intercept(ProxyStatement.java:57)
    at $java.sql.PreparedStatement$$EnhancerByProxool$$579164b7.executeQuery(<generate d>)
    at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:700)
    at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:427)
    at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:161)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:106)
    at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:51)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
    at com.exe4j.runtime.WinLauncher.main(Unknown Source)

java.lang.IllegalArgumentException: java.sql.SQLException: Invalid object name 'ofID'.
    at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:710)
    at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:427)
    at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:161)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:106)
    at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:51)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
    at com.exe4j.runtime.WinLauncher.main(Unknown Source)
Caused by: java.sql.SQLException: Invalid object name 'ofID'.
    at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:368)
    at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2816)
    at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2254)
    at net.sourceforge.jtds.jdbc.TdsCore.getMoreResults(TdsCore.java:631)
    at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQLQuery(JtdsStatement.java:477)
    at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.executeQuery(JtdsPreparedStatem ent.java:777)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.logicalcobwebs.proxool.ProxyStatement.invoke(ProxyStatement.java:100)
    at org.logicalcobwebs.proxool.ProxyStatement.intercept(ProxyStatement.java:57)
    at $java.sql.PreparedStatement$$EnhancerByProxool$$579164b7.executeQuery(<generate d>)
    at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:700)
    ... 16 more
java.lang.IllegalArgumentException: java.sql.SQLException: Invalid object name 'ofID'.
    at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:710)
    at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:427)
    at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:161)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:106)
    at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:51)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
    at com.exe4j.runtime.WinLauncher.main(Unknown Source)
Caused by: java.sql.SQLException: Invalid object name 'ofID'.
    at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:368)
    at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2816)
    at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2254)
    at net.sourceforge.jtds.jdbc.TdsCore.getMoreResults(TdsCore.java:631)
    at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQLQuery(JtdsStatement.java:477)
    at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.executeQuery(JtdsPreparedStatem ent.java:777)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.logicalcobwebs.proxool.ProxyStatement.invoke(ProxyStatement.java:100)
    at org.logicalcobwebs.proxool.ProxyStatement.intercept(ProxyStatement.java:57)
    at $java.sql.PreparedStatement$$EnhancerByProxool$$579164b7.executeQuery(<generate d>)
    at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:700)
    ... 16 moEre

rror starting the server. Please check the log files for more information.
Server halted

Todd Getz KeyContributor 3,300 posts since
Apr 2, 2007
Currently Being Moderated
Aug 27, 2008 5:52 AM in response to: David Thor
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

Are you using LDAP?  Even if you are not try this:

  • stop your server
  • edit your openfire.xml file setup tag to read <setup>false</setup>.
  • start server
  • go to admin page and step throught the config again.
kkimber Bronze 9 posts since
Aug 27, 2008
Currently Being Moderated
Aug 27, 2008 6:30 AM in response to: David Thor
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

I have a same problem.

Attachments:
kero Bronze 3 posts since
Aug 27, 2008
Currently Being Moderated
Aug 27, 2008 6:42 AM in response to: kkimber
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

same here

kero Bronze 3 posts since
Aug 27, 2008
Currently Being Moderated
Aug 27, 2008 7:33 AM in response to: kero
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

I downgraded

dpkg -i openfire_3.5.2_all.deb

and everything works fine again.

Daniel Henninger KeyContributor 2,951 posts since
Aug 10, 2005
Currently Being Moderated
Aug 27, 2008 8:00 AM in response to: David Thor
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

Good lord, it sounds like there are some leftover tables hanging around that it's conflicting with.  You downgraded and it's working fine?  Did you restore your db from a previous version?  I would think the db would be in a fairly confused state at the moment if you partially upgraded and then stopped.

Daniel Henninger KeyContributor 2,951 posts since
Aug 10, 2005
Currently Being Moderated
Aug 27, 2008 8:01 AM in response to: Daniel Henninger
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

So both of you are using the embedded db and seeing this?

Daniel Henninger KeyContributor 2,951 posts since
Aug 10, 2005
Currently Being Moderated
Aug 27, 2008 8:08 AM in response to: David Thor
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

dthor wrote:

 

Our database is runnoing on MSFT SQL

What?  =)  What is that?

kero Bronze 3 posts since
Aug 27, 2008
Currently Being Moderated
Aug 27, 2008 8:06 AM in response to: Daniel Henninger
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

Im using ldap (readonly) for user authentification and the embedded DB from openfire. I just reinstalled the 3.5.2 version, no DB restoring.

 

 

greetings

 

kero

Daniel Henninger KeyContributor 2,951 posts since
Aug 10, 2005
Currently Being Moderated
Aug 27, 2008 8:35 AM in response to: David Thor
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

Hrm.  I've attached a copy of the last released gateway.jar before this one.

Attachments:
Daniel Henninger KeyContributor 2,951 posts since
Aug 10, 2005
Currently Being Moderated
Aug 27, 2008 8:35 AM in response to: David Thor
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

But what is MSFT SQL?

Daniel Henninger KeyContributor 2,951 posts since
Aug 10, 2005
Currently Being Moderated
Aug 27, 2008 8:36 AM in response to: kero
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

kero wrote:

 

Im using ldap (readonly) for user authentification and the embedded DB from openfire. I just reinstalled the 3.5.2 version, no DB restoring.

 

 

greetings

 

kero

Interesting.  It sounds like the old tables are still present, or nothing got renamed, or something.  *scratch head*

Daniel Henninger KeyContributor 2,951 posts since
Aug 10, 2005
Currently Being Moderated
Aug 27, 2008 9:17 AM in response to: David Thor
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

dthor wrote:

 

SQL Server.... Microsoft SQL

I've been told that there's a bug in script 19 for SQL server:

 

In upgrade script 19
        Line 60         - ofUserFlag should be ofRoster
        Line 140        - mucRoom__pk should be mucRoom_pk

Artur Nowak Bronze 3 posts since
Feb 18, 2007
Currently Being Moderated
Aug 27, 2008 9:59 AM in response to: Daniel Henninger
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

But it doesn't help to problem with upgrade and error:

 

SchemaManager: Failed to execute SQL:
CREATE TABLE mucService (   serviceID           INT           NOT NULL,   subdomain           NVARCHAR(255) NOT NULL,   description         NVARCHAR(255),   CONSTRAINT mucService_pk PRIMARY KEY (subdomain) );
java.sql.SQLException: There is already an object named 'mucService' in the database.
....

 

 

i'am using Widows version of OpenFire and MSSQL

 

Please help

Daniel Henninger KeyContributor 2,951 posts since
Aug 10, 2005
Currently Being Moderated
Aug 27, 2008 10:01 AM in response to: Artur Nowak
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

Hrm.  It looks like one of the upgrades partially succeeded and so now there are conflicting tables.  Can you get a list of the tables in your db and paste them here (not the contents, just the table names)

Artur Nowak Bronze 3 posts since
Feb 18, 2007
Currently Being Moderated
Aug 27, 2008 10:05 AM in response to: Daniel Henninger
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

yes, there is list of openfire database tables:

 

Name    Owner    Type    Create Date
dtproperties    dbo    System    2006-07-26 10:42:23
jiveExtComponentConf    dbo    User    2006-07-25 17:45:33
jiveGroup    dbo    User    2006-07-25 17:45:33
jiveGroupProp    dbo    User    2006-07-25 17:45:33
jiveGroupUser    dbo    User    2006-07-25 17:45:33
jiveID    dbo    User    2006-07-25 17:45:33
jiveOffline    dbo    User    2006-07-25 17:45:33
jivePresence    wildfire    User    2007-02-13 18:36:55
jivePrivacyList    dbo    User    2006-07-25 17:45:33
jivePrivate    dbo    User    2006-07-25 17:45:33
jiveProperty    dbo    User    2006-07-25 17:45:33
jiveRemoteServerConf    dbo    User    2006-07-25 17:45:33
jiveRoster    dbo    User    2006-07-25 17:45:33
jiveRosterGroups    dbo    User    2006-07-25 17:45:33
jiveSASLAuthorized    dbo    User    2006-07-25 17:45:33
jiveSecurityAuditLog    wildfire    User    2008-04-23 17:32:33
jiveUser    dbo    User    2006-07-25 17:45:33
jiveUserFlag    wildfire    User    2008-04-23 17:32:33
jiveUserProp    dbo    User    2006-07-25 17:45:33
jiveVCard    dbo    User    2006-07-25 17:45:33
jiveVersion    dbo    User    2006-07-25 17:45:33
mucAffiliation    dbo    User    2006-07-25 17:45:33
mucConversationLog    dbo    User    2006-07-25 17:45:33
mucMember    dbo    User    2006-07-25 17:45:33
mucRoom    dbo    User    2006-07-25 17:45:33
mucRoomProp    dbo    User    2006-07-25 17:45:33
mucService    wildfire    User    2008-08-27 18:37:25
mucServiceProp    wildfire    User    2008-08-27 18:37:25
pubsubAffiliation    dbo    User    2006-07-25 17:45:33
pubsubDefaultConf    dbo    User    2006-07-25 17:45:33
pubsubItem    dbo    User    2006-07-25 17:45:33
pubsubNode    dbo    User    2006-07-25 17:45:33
pubsubNodeGroups    dbo    User    2006-07-25 17:45:33
pubsubNodeJIDs    dbo    User    2006-07-25 17:45:33
pubsubSubscription    dbo    User    2006-07-25 17:45:33
syscolumns    dbo    System    2000-08-06 01:29:12
syscomments    dbo    System    2000-08-06 01:29:12
sysdepends    dbo    System    2000-08-06 01:29:12
sysfilegroups    dbo    System    2000-08-06 01:29:12
sysfiles    dbo    System    2000-08-06 01:29:12
sysfiles1    dbo    System    2000-08-06 01:29:12
sysforeignkeys    dbo    System    2000-08-06 01:29:12
sysfulltextcatalogs    dbo    System    2000-08-06 01:29:12
sysfulltextnotify    dbo    System    2000-08-06 01:29:12
sysindexes    dbo    System    2000-08-06 01:29:12
sysindexkeys    dbo    System    2000-08-06 01:29:12
sysmembers    dbo    System    2000-08-06 01:29:12
sysobjects    dbo    System    2000-08-06 01:29:12
syspermissions    dbo    System    2000-08-06 01:29:12
sysproperties    dbo    System    2000-08-06 01:29:12
sysprotects    dbo    System    2000-08-06 01:29:12
sysreferences    dbo    System    2000-08-06 01:29:12
systypes    dbo    System    2000-08-06 01:29:12
sysusers    dbo    System    2000-08-06 01:29:12

Daniel Henninger KeyContributor 2,951 posts since
Aug 10, 2005
Currently Being Moderated
Aug 27, 2008 11:56 AM in response to: Artur Nowak
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

Artur, I've identified the script that is failing for you.  Annoyingly, it's only part of a script that's failing so we'll have to have you try a partial script run to get going.  However I think it would be best to wait for 3.6.0a at this point to get you at least to a starting point.  (ideally, downgrade your db back to what it was before you upgraded, go back to 3.5.2, and upgrade to 3.6.0a from there when it's released)

 

 

All, see: http://www.igniterealtime.org/community/message/177972#177972

Andre Lima Bronze 6 posts since
Aug 27, 2008
Currently Being Moderated
Aug 27, 2008 10:13 AM in response to: David Thor
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

Hello guys,

 

Here i don't have any database server (MySQL or SQL Server).  The openfire server works into the AD Server but don't use him for user authetication, but te error "Found old database version 16 for openfire. Upgrading to version 20..." happens here.

 

Sorry my poor english.

 

Se houver que possa me ajudar em português eu agradeço também.

Caio B Bronze 4 posts since
Aug 27, 2008
Currently Being Moderated
Aug 27, 2008 10:23 AM in response to: Andre Lima
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

Se voce nao usa um servidor de banco, voce usa o HSQLDB. O Openfire sempre usa um banco de dados....

 

( If you do not use a database server, you use the HSQLDB. The Openfire always uses a database... )

Andre Lima Bronze 6 posts since
Aug 27, 2008
Currently Being Moderated
Aug 27, 2008 10:30 AM in response to: David Thor
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

Isso mesmo, só queria saber se alguém consegue me explicar o que deve ser feito. Se é que já existe uma solução.

 

Obrigado pelo retorno.

 

Correct, i want to know if anybody here can explain me what i do, if the solution exist.

 

Thanks.

Caio B Bronze 4 posts since
Aug 27, 2008
Currently Being Moderated
Aug 27, 2008 10:33 AM in response to: Andre Lima
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

Bom, a mensagem que aparece é sempre que o sistema identifica um banco anterior ao que deveria ser e começa um processo de upgrade. Essa identificação da versao do banco ele encontra na tabela jiveversion.

 

 

( Well, the message that appears is where the system identifies a bank up to what should be and begins a process of upgrading. This identification Release of the bank he finds in the table jiveversion. )

Andre Lima Bronze 6 posts since
Aug 27, 2008
Currently Being Moderated
Aug 27, 2008 10:35 AM in response to: Caio B
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

Ok, i will see.

Mike Weissman Bronze 3 posts since
Aug 27, 2008
Currently Being Moderated
Aug 27, 2008 11:28 AM in response to: David Thor
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

Hello, i am sure what is goin on with my upgrade.

 

Setup is MacOSx 10.4.11 Server

MYSQL-5

LDAP authentication

 

Steps i took to upgrade:

1.stop server

2. Backup

3. Run Upgrade Installer

4. Edited to openfire.xml to enable setup again

5. Ran through setup

6. Everything worked.

 

Then when  i clicked on Login to Admin Console, it takes me back to Setup.

 

So i stopped the server, edited the openfire.xml again to disable setup. Restart Server, and boom setup wizard again...

 

The only error in the logs are complaining about Line 57 in the xml file not having a closed tag.

 

</defaultProvider>

 

But it's there. So i have no idea where to go from here.

Daniel Henninger KeyContributor 2,951 posts since
Aug 10, 2005
Currently Being Moderated
Aug 27, 2008 11:45 AM in response to: Mike Weissman
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

weisso5 wrote:

 

Hello, i am sure what is goin on with my upgrade.

 

Setup is MacOSx 10.4.11 Server

MYSQL-5

LDAP authentication

 

Steps i took to upgrade:

1.stop server

2. Backup

3. Run Upgrade Installer

4. Edited to openfire.xml to enable setup again

5. Ran through setup

6. Everything worked.

 

Then when  i clicked on Login to Admin Console, it takes me back to Setup.

 

So i stopped the server, edited the openfire.xml again to disable setup. Restart Server, and boom setup wizard again...

 

The only error in the logs are complaining about Line 57 in the xml file not having a closed tag.

 

</defaultProvider>

 

But it's there. So i have no idea where to go from here.

Hrm.  Can you paste your file somewhere?  Maybe private message or email to me?  hide passwords?

Mike Weissman Bronze 3 posts since
Aug 27, 2008
Currently Being Moderated
Aug 27, 2008 11:58 AM in response to: Daniel Henninger
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

will send via email.

steve Bronze 10 posts since
May 24, 2007
Currently Being Moderated
Aug 27, 2008 2:04 PM in response to: David Thor
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

same deal here... integrated DB, I don't use AD, w2k3, i'm about to try to roll back with the last version of the installer i have... wonder if it will downgrade like you can in linux..... the thing i did notice is the first time i tried to install it i had a corrupt installer issue so i re downloaded the installer... i wonder if there is a connection.

Rubens Zolotujin Bronze 12 posts since
Dec 12, 2005
Currently Being Moderated
Aug 27, 2008 6:23 PM in response to: David Thor
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

I'm having the same problem, had the version 3.5 with MSSQL database and LDAP directory with active, to do the upgrade made the error below:

 

 

I am with my system stopped ... please help me.

 

 

 

Database setup or configuration error: Please verify your database settings and check the logs/error.log file for detailed error messages.
java.lang.IllegalArgumentException: java.sql.SQLException: Invalid object name 'ofID'.
at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:710)
at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:427)
at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:161)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:106)
at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.exe4j.runtime.WinLauncher.main(Unknown Source)
Caused by: java.sql.SQLException: Invalid object name 'ofID'.
at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:368)
at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2816)
at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2254)
at net.sourceforge.jtds.jdbc.TdsCore.getMoreResults(TdsCore.java:631)
at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQLQuery(JtdsStatement.java:477)
at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.executeQuery(JtdsPreparedStatem ent.java:777)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown SouErro iniciando o esrce)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.logicalcobwebs.proxool.ProxyStatement.invoke(ProxyStatement.java:100)
at org.logicalcobwebs.proxool.ProxyStatement.intercept(ProxyStatement.java:57)
at $java.sql.PreparedStatement$$EnhancerByProxool$$773eee98.executeQuery(<generate d>)
at org.jivesoftwaerrvidor. Por favor verifique os arquivos de log para mais informações.
.openfire.XMPPServer.verifyDataSource(XMPPServer.java:700)
... 16 more
Server halted

Daniel Henninger KeyContributor 2,951 posts since
Aug 10, 2005
Currently Being Moderated
Aug 27, 2008 6:26 PM in response to: Rubens Zolotujin
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

MSSQL is definitely one of the dbs that has problems with the upgrade.  If you can, back out o your previous db and wait for 3.6.0a!  =)

Rubens Zolotujin Bronze 12 posts since
Dec 12, 2005
Currently Being Moderated
Aug 27, 2008 6:29 PM in response to: Daniel Henninger
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

Daniel obrigado pela resposta, mas nao estou achando os plugins compatívels com 3.5.2 ai preciso demais deles...

 

se puder manda o link pra mim baixar zolotujin@gmail.com

 

grato,

Daniel Henninger KeyContributor 2,951 posts since
Aug 10, 2005
Currently Being Moderated
Aug 27, 2008 6:32 PM in response to: Rubens Zolotujin
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

zolotujin wrote:

 

Daniel obrigado pela resposta, mas nao estou achando os plugins compatívels com 3.5.2 ai preciso demais deles...

 

se puder manda o link pra mim baixar zolotujin@gmail.com

 

grato,

I'm sorry, I don't speak spanish in the slightest.  Let me try google translate to see if I can make that clear:

 

Lo siento, no entiendo español. I tradujo esta usando Google Translate esperemos que a fin de que es correcta.

Daniel Henninger KeyContributor 2,951 posts since
Aug 10, 2005
Currently Being Moderated
Aug 27, 2008 6:33 PM in response to: Rubens Zolotujin
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

Hrm.  Assuming that is Spanish.  I looked at it again and I'm not sure it is.  Is it?

Rubens Zolotujin Bronze 12 posts since
Dec 12, 2005
Currently Being Moderated
Aug 27, 2008 7:30 PM in response to: Daniel Henninger
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

Daniel thanks for the answer, but I think the plugins compatívels with 3.5.2 i need them too ...

it can send the link to me down zolotujin@gmail.com

Excuse my fault ..

kkimber Bronze 9 posts since
Aug 27, 2008
Currently Being Moderated
Aug 27, 2008 11:08 PM in response to: Rubens Zolotujin
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

hi,

Where can I old version download link 3.5.2?

my 3.6 db upgrade fail and back to old version.

 

I back to 3.5.2 no problem.

 

ok found it, bu I can't delete the this message. super forum permission.

gregor Bronze 8 posts since
Oct 31, 2007
Currently Being Moderated
Aug 28, 2008 1:00 AM in response to: kkimber
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

Hello,

 

i have upload to rapidshare

 

http://rapidshare.com/files/140723939/openfire_3_5_2.exe.html

 

 

21 MB

Ville Walveranta Bronze 9 posts since
Jun 24, 2008
Currently Being Moderated
Aug 28, 2008 2:44 PM in response to: Rubens Zolotujin
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

Same problem here. I'm not using LDAP, but I am using MSSQL 2005. Fortunately it seems the database was not modified by the upgrade. The upgrade process itself completed, but after that Openfire  doesn't seem to be able to access the database and the server (and thus the admin) won't start. Backing out to 3.5.2 fixed the problem without having to restore the database from a backup.

 

It might be a good idea to include a warning next to the d/l links... or even suspend the distribution of 3.6 until the 3.6a is released.

Daniel Henninger KeyContributor 2,951 posts since
Aug 10, 2005
Currently Being Moderated
Aug 28, 2008 2:59 PM in response to: Ville Walveranta
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

Why does no one believe me when I say that things have happened to your db that will prevent the upgrade to 3.6.0a from going smoothly if you don't roll back your db to 3.5.2?  =)   I'm going to try to post some "here's how you fix up your db" stuff with the 3.6.0a announcement though.

 

And at this point it would take longer to take the old one down than to release the new one.

Ville Walveranta Bronze 9 posts since
Jun 24, 2008
Currently Being Moderated
Aug 28, 2008 3:19 PM in response to: Daniel Henninger
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

*sigh* ... I suppose I'll restore the database.  At least I have a backup.

 

There're probably too many conversations going on at once in this comment thread... I just skimmed them over and missed the note that the db has been impacted (I suppose I would've found it out when trying to install 3.6a).

Daniel Henninger KeyContributor 2,951 posts since
Aug 10, 2005
Currently Being Moderated
Aug 28, 2008 3:25 PM in response to: Ville Walveranta
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

=)  Well for what it's worth, I wasn't mocking you or anything.  I've just said the same thing over and over and keep getting told "well my database looks fine" so I am bracing myself for lots of "hey this didn't work" when people trying 3.6.0a.  Here's hoping folk read my release announcement and make note of what they have to do!!!  Thanks for backing up to your restore though.  =)  Will make one less conflict!

Ville Walveranta Bronze 9 posts since
Jun 24, 2008
Currently Being Moderated
Aug 28, 2008 3:42 PM in response to: Daniel Henninger
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

None taken. It was good that you pointed it out as I would have found out that there was a problem on upgrade to 3.6.0a. Thanks to Genie Backup Manager restore of MSSQL database was a breeze.

gregor Bronze 8 posts since
Oct 31, 2007
Currently Being Moderated
Aug 28, 2008 12:49 AM in response to: David Thor
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

some problem here

 

 

openfire windows version 3.5.2

with embedded databse engine

no ad connection

 

when i upgrade to 3.6 i became same problem, i can´t start openfire

 

when i downgrade to 3.5.2 it works fine,

 

database are not restored

Rubens Zolotujin Bronze 12 posts since
Dec 12, 2005
Currently Being Moderated
Aug 28, 2008 3:30 AM in response to: David Thor
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

'm having to plug problem with the version 3.5, after trying to make the upgrade to version 3.6 which not satisfied, I returned to installation to version 3.5 and can not plug up all that before, when I try to do the update to plug it always tells me that there is a new version 3.6 and it must import the plugins that the version 3.5 that I am using.

someone help me?

after everything is complicated version 3.6.

Daniel Henninger KeyContributor 2,951 posts since
Aug 10, 2005
Currently Being Moderated
Aug 28, 2008 7:50 AM in response to: Rubens Zolotujin
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

Does no one actually back up before upgrading? 

 

You can still build the plugins from SVN if you check out https://svn.igniterealtime.org/svn/repos/openfire/branches/openfire_3_5_2

 

My concern about downgrading to 3.5.2 without restoring your database is that you've partially upgraded to 3.6.0 at that point.  Now, I've identified where the problem was and fixed it, so I'm going to publish 3.6.0a with instructions on how to "fix your db" so the upgrade will perform correctly, but right now your db is "sorta kinda" corrupted.  (not too bad that 3.5.2 won't work obviously)

rculpepper Bronze 51 posts since
Jun 24, 2008
Currently Being Moderated
Aug 28, 2008 8:02 AM in response to: Daniel Henninger
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

Testing upgrades in a test environment is good, too...

 

Thanks for the quick work on this, Daniel. I'm looking forward to the 3.6.0a install, it (3.6.0 in generall...) sounds like it's going to solve some key issues.

Daniel Henninger KeyContributor 2,951 posts since
Aug 10, 2005
Currently Being Moderated
Aug 28, 2008 8:08 AM in response to: rculpepper
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

rculpepper wrote:

 

Testing upgrades in a test environment is good, too...

 

Unfortunately my test environment failed me big time.  In some cases I'm not sure how it even worked!

 

I actually have 4 live servers I run, and test against all of the supported DBs except for Sybase, which I don't seem to be able to locate something I can use for.  (and I'm not even convinced anyone is using it for Openfire)

 

Of course, wanna know what did me in the most this time?

 

I tested a -fresh- setup, instead of testing something that had a lot of data in it.  Specifically, I hadn't created any MUC rooms and having some is what caused the upgrade to fail.  Lesson learned  =(  Unfortunately this was also a "quick release" instead of having proper QA time and even putting out a beta first.  =/

 

Just a couple of factors came together to screw things over.  I think I've fixed all of the most important issues at the moment and am testing in a number of DBs before pushing it out.  I think after this is over I'm going to build a Wildfire install with a lot of data in it that is my "base" setup that will get copied and upgraded every time to the latest to make sure things work right.  VMs for the win.  =)

 

Not a shining day for my confidence for sure.

kkimber Bronze 9 posts since
Aug 27, 2008
Currently Being Moderated
Aug 28, 2008 8:22 AM in response to: Daniel Henninger
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

If u need the hardware open the donation system. We support them.

But yours pay it cool features we cannot use and support (donation) them.

rculpepper Bronze 51 posts since
Jun 24, 2008
Currently Being Moderated
Aug 28, 2008 8:31 AM in response to: Daniel Henninger
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

I mainly meant for end users like me

 

Luckily (or unluckily, in some situations...) we have extremely tight data retention policies on anything communication related. We make nightly backups of everything, so I just restored one of those to my test environment and tested out the upgrade.

AjsAjs Bronze 12 posts since
Sep 4, 2006
Currently Being Moderated
Sep 17, 2008 4:21 AM in response to: Daniel Henninger
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

Daniel,

 

Just tried an upgrade from 3.5.2 to 3.6.0a and experianced the same MUC reference problem and the upgrade failed.

 

You mentioned 3.6.0a with instructions on how to "fix your db".

 

Should the upgrade from 3.5.2 to 3.6.0a work straight out of the box or will your "fix your db" be necessary?

 

If the "fix your db" step is required, can you help with a link to these notes.

 

At the moment we have rolled back to 3.5.2 after restoring the openfire SQL database.

 

Thanks in advance.

Best Regards
Alan

homeofeconomy Bronze 1 posts since
Nov 18, 2008
Currently Being Moderated
Nov 18, 2008 7:29 PM in response to: AjsAjs
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

Hi,

 

Were the "how to fix your DB" and related upgrade notes ever published?  If so, would it be possible to post a link here?

 

Best regards

deems Bronze 1 posts since
Nov 17, 2008
Currently Being Moderated
Nov 17, 2008 6:18 PM in response to: David Thor
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

Hello everybody,

 

I'm trying to to upgrade from 3.5.2 to 3.6.1 using Microsoft SQL Server for the database.  3.6.1 detects an older version of the database, and then it fails to upgrade.  Can anyone please help? The following is in my error.log file:

 

2008.11.18 05:49:32 [org.jivesoftware.database.SchemaManager.executeSQLScript(SchemaManager.java:38 3)] SchemaManager: Failed to execute SQL:
CREATE TABLE mucService (   serviceID           INT           NOT NULL,   subdomain           NVARCHAR(255) NOT NULL,   description         NVARCHAR(255),   CONSTRAINT mucService_pk PRIMARY KEY (subdomain) );
2008.11.18 05:49:32 [org.jivesoftware.database.SchemaManager.checkSchema(SchemaManager.java:273)]
java.sql.SQLException: There is already an object named 'mucService' in the database.
at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:368)
at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2816)
at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2254)
at net.sourceforge.jtds.jdbc.TdsCore.getMoreResults(TdsCore.java:631)
at net.sourceforge.jtds.jdbc.JtdsStatement.processResults(JtdsStatement.java:584)
at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQL(JtdsStatement.java:546)
at net.sourceforge.jtds.jdbc.JtdsStatement.executeImpl(JtdsStatement.java:723)
at net.sourceforge.jtds.jdbc.JtdsStatement.execute(JtdsStatement.java:1157)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.logicalcobwebs.proxool.ProxyStatement.invoke(ProxyStatement.java:100)
at org.logicalcobwebs.proxool.ProxyStatement.intercept(ProxyStatement.java:57)
at $java.sql.Statement$$EnhancerByProxool$$5ffe209.execute(<generated>)
at org.jivesoftware.database.SchemaManager.executeSQLScript(SchemaManager.java:378 )
at org.jivesoftware.database.SchemaManager.checkSchema(SchemaManager.java:270)
at org.jivesoftware.database.SchemaManager.checkOpenfireSchema(SchemaManager.java: 71)
at org.jivesoftware.database.DbConnectionManager.setConnectionProvider(DbConnectio nManager.java:498)
at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager .java:79)
at org.jivesoftware.util.JiveProperties.loadProperties(JiveProperties.java:335)
at org.jivesoftware.util.JiveProperties.init(JiveProperties.java:73)
at org.jivesoftware.util.JiveProperties$JivePropertyHolder.<clinit>(JiveProperties .java:40)
at org.jivesoftware.util.JiveProperties.getInstance(JiveProperties.java:52)
at org.jivesoftware.util.JiveGlobals.getProperty(JiveGlobals.java:532)
at org.jivesoftware.openfire.XMPPServer.initialize(XMPPServer.java:298)
at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:415)
at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:161)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:106)
at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.exe4j.runtime.WinLauncher.main(Unknown Source)
2008.11.18 05:49:32 [org.jivesoftware.util.JiveProperties.loadProperties(JiveProperties.java:346)]
java.sql.SQLException: Invalid object name 'ofProperty'.
at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:368)
at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2816)
at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2254)
at net.sourceforge.jtds.jdbc.TdsCore.getMoreResults(TdsCore.java:631)
at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQLQuery(JtdsStatement.java:477)
at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.executeQuery(JtdsPreparedStatem ent.java:777)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.logicalcobwebs.proxool.ProxyStatement.invoke(ProxyStatement.java:100)
at org.logicalcobwebs.proxool.ProxyStatement.intercept(ProxyStatement.java:57)
at $java.sql.Statement$$EnhancerByProxool$$82283445.executeQuery(<generated>)
at org.jivesoftware.util.JiveProperties.loadProperties(JiveProperties.java:337)
at org.jivesoftware.util.JiveProperties.init(JiveProperties.java:73)
at org.jivesoftware.util.JiveProperties$JivePropertyHolder.<clinit>(JiveProperties .java:40)
at org.jivesoftware.util.JiveProperties.getInstance(JiveProperties.java:52)
at org.jivesoftware.util.JiveGlobals.getProperty(JiveGlobals.java:532)
at org.jivesoftware.openfire.XMPPServer.initialize(XMPPServer.java:298)
at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:415)
at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:161)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:106)
at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.exe4j.runtime.WinLauncher.main(Unknown Source)
2008.11.18 05:49:32 [org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:709)] Database could not be accessed
java.sql.SQLException: Invalid object name 'ofID'.
at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:368)
at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2816)
at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2254)
at net.sourceforge.jtds.jdbc.TdsCore.getMoreResults(TdsCore.java:631)
at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQLQuery(JtdsStatement.java:477)
at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.executeQuery(JtdsPreparedStatem ent.java:777)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.logicalcobwebs.proxool.ProxyStatement.invoke(ProxyStatement.java:100)
at org.logicalcobwebs.proxool.ProxyStatement.intercept(ProxyStatement.java:57)
at $java.sql.Statement$$EnhancerByProxool$$82283445.executeQuery(<generated>)
at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:700)
at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:427)
at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:161)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:106)
at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.exe4j.runtime.WinLauncher.main(Unknown Source)
2008.11.18 05:49:32 [org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:457)]
java.lang.IllegalArgumentException: java.sql.SQLException: Invalid object name 'ofID'.
at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:710)
at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:427)
at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:161)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:106)
at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.exe4j.runtime.WinLauncher.main(Unknown Source)
Caused by: java.sql.SQLException: Invalid object name 'ofID'.
at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:368)
at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2816)
at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2254)
at net.sourceforge.jtds.jdbc.TdsCore.getMoreResults(TdsCore.java:631)
at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQLQuery(JtdsStatement.java:477)
at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.executeQuery(JtdsPreparedStatem ent.java:777)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.logicalcobwebs.proxool.ProxyStatement.invoke(ProxyStatement.java:100)
at org.logicalcobwebs.proxool.ProxyStatement.intercept(ProxyStatement.java:57)
at $java.sql.Statement$$EnhancerByProxool$$82283445.executeQuery(<generated>)
at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:700)
... 16 more

Daryl Herzmann KeyContributor 673 posts since
Mar 12, 2005
Currently Being Moderated
Nov 17, 2008 9:33 PM in response to: deems
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

Hi,

 

Thanks for posting your tracebacks.  How comfortable are you with MsSQL and running commands manually?  Would you be willing to try running each database upgrade script manually and then post which SQL commands it fails on?  You can find these sql commands in the resources/database/upgrade folder, one numbered for each schema revision bump.  You are probably at #16 now...

 

My guess is that your database is not in the expected state #16, due to previous uncaught upgrade bugs....

 

daryl

Jeff Bronze 24 posts since
Jan 22, 2006
Currently Being Moderated
Nov 23, 2008 1:37 AM in response to: Daryl Herzmann
Re: Openfire Upgrade from 3.5.2.  to 3.6 Fails

I had the same upgrade failures in trying to go from 3.5.2 to 3.62.

 

I looked at the 19 and 20 directories as indicated and ran the SQL manually against my MYSQL database.

 

Looks like there were problems with a couple indexes. Indexes simply didn't exist for a couple tables, when it ran into problems trying to drop an index that didn't exist, the script stopped.

 

I just didn't attempt to remove the missing indexes, and all was well.

 

If you'd like a copy  of my original DB, I believe I can make that available.

More Like This

  • Retrieving data ...

Bookmarked By (0)