I have not seen that error before.   Is it a problem with one of the
double quotes being a different character than the normal " that the XML
parser understands?

Nathan

-----Original Message-----
From: jhavero [mailto:jhav...@gmail.com] 
Sent: Monday, January 12, 2009 5:07 PM
To: liquibase-user@lists.sourceforge.net
Subject: [Liquibase-user] error using preConditions


I'm running liquibase 1.8.1 and started to try a preCondition but get an
errror. Here's the change set and the error below. 

<changeSet id="SJM_4.0_CreateTable_AlertGroupAppl_drop" author="user">
 <preConditions onFail="WARN">
        <dbms type="oracle" />
        <runningAs username="SYSTEM" />
    </preConditions>
  <sql>
    DROP SEQUENCE seq_alert_group;
  </sql>
</changeSet>



Jan 12, 2009 3:01:50 PM liquibase.lock.LockHandler acquireLock
INFO: Successfully acquired change log lock
Jan 12, 2009 3:01:52 PM liquibase.parser.xml.XMLChangeLogParser$1
fatalError
SEVERE: Open quote is expected for attribute "{1}" associated with an 
element type  "onFail".
Jan 12, 2009 3:01:52 PM liquibase.parser.xml.XMLChangeLogHandler
startElement
SEVERE: Error thrown as a SAXException: Error parsing line 4513 column
27 of
dynamic_table_change_log.xml: Open quote is expected for attribute "{1}"
associated with an  element type  "onFail".
liquibase.exception.ChangeLogParseException: Error parsing line 4513
column
27 of dynamic_table_change_log.xml: Open quote is expected for attribute
"{1}" associated with an  element type  "onFail".
        at
liquibase.parser.xml.XMLChangeLogParser.parse(XMLChangeLogParser.java:78
)
        at
liquibase.parser.ChangeLogParser.parse(ChangeLogParser.java:24)
        at
liquibase.parser.xml.XMLChangeLogHandler.handleIncludedChangeLog(XMLChan
geLogHandler.java:233)
        at
liquibase.parser.xml.XMLChangeLogHandler.startElement(XMLChangeLogHandle
r.java:80)
        at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElemen
t(Unknown
Source)
        at
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emp
tyElement(Unknown
Source)
        at
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.emptyEleme
nt(Unknown
Source)
        at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanSta
rtElement(Unknown
Source)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$F
ragmentContentDriver.next(Unknown
Source)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unkn
own
Source)
        at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Un
known
Source)
        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.s
canDocument(Unknown
Source)
        at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unkn
own
Source)
        at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unkn
own
Source)
        at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown
Source)
        at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unkno
wn
Source)
        at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.pars
e(Unknown
Source)
        at
liquibase.parser.xml.XMLChangeLogParser.parse(XMLChangeLogParser.java:70
)
        at
liquibase.parser.ChangeLogParser.parse(ChangeLogParser.java:24)
        at liquibase.Liquibase.update(Liquibase.java:107)
        at liquibase.Liquibase.update(Liquibase.java:133)
        at liquibase.commandline.Main.doMigration(Main.java:651)
        at liquibase.commandline.Main.main(Main.java:90)

-- 
View this message in context:
http://www.nabble.com/error-using-preConditions-tp21425994p21425994.html
Sent from the LiquiBase - User mailing list archive at Nabble.com.


------------------------------------------------------------------------
------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Liquibase-user mailing list
Liquibase-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/liquibase-user

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Liquibase-user mailing list
Liquibase-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/liquibase-user

Reply via email to