java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Transferred from Sourceforge: artifact_id: 2482819 submitted_by: michael-m-x assigned_to: nvoxland priority: 5 resolution: None open_date: 1230927000 aftifact_type: Feature Requests category: None artifact_group_id: None category: None status: Closed history: close_date01230931595nvoxland assigned_to1001230931595nvoxland status_id11230931595nvoxland messages: close_date01230931595nvoxland assigned_to1001230931595nvoxland status_id11230931595nvoxland If I use a condition in an included file, I get a null pointer exception. Is this unsupported usage, or a bug? See scenario below: File v1.xml: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog/1.8" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog/1.8 http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-1.8.xsd"> <preConditions> <dbms type="abc" /> </preConditions> </databaseChangeLog> liquibase --changeLogFile=v1.xml update Migration Failed: Validation Failed: 1 preconditions failed v1.xml : DBMS Precondition failed: expected abc, got oracle Now include file v1.xml from file v0.xml: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog/1.8" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog/1.8 http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-1.8.xsd"> <include file="v1.xml"/> </databaseChangeLog> liquibase --changeLogFile=v0.xml update java.lang.NullPointerException at liquibase.parser.xml.XMLChangeLogHandler.handleIncludedChangeLog(XMLChangeLogHandler.java:236) at liquibase.parser.xml.XMLChangeLogHandler.startElement(XMLChangeLogHandler.java:80) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.emptyElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(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.commandline.Main.doMigration(Main.java:637) at liquibase.commandline.Main.main(Main.java:90) Migration Failed: Unknown Reason
    via by michael-m-x,
  • Transferred from Sourceforge: artifact_id: 2482819 submitted_by: michael-m-x assigned_to: nvoxland priority: 5 resolution: None open_date: 1230927000 aftifact_type: Feature Requests category: None artifact_group_id: None category: None status: Closed history: close_date01230931595nvoxland assigned_to1001230931595nvoxland status_id11230931595nvoxland messages: close_date01230931595nvoxland assigned_to1001230931595nvoxland status_id11230931595nvoxland If I use a condition in an included file, I get a null pointer exception. Is this unsupported usage, or a bug? See scenario below: File v1.xml: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog/1.8" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog/1.8 http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-1.8.xsd"> <preConditions> <dbms type="abc" /> </preConditions> </databaseChangeLog> liquibase --changeLogFile=v1.xml update Migration Failed: Validation Failed: 1 preconditions failed v1.xml : DBMS Precondition failed: expected abc, got oracle Now include file v1.xml from file v0.xml: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog/1.8" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog/1.8 http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-1.8.xsd"> <include file="v1.xml"/> </databaseChangeLog> liquibase --changeLogFile=v0.xml update java.lang.NullPointerException at liquibase.parser.xml.XMLChangeLogHandler.handleIncludedChangeLog(XMLChangeLogHandler.java:236) at liquibase.parser.xml.XMLChangeLogHandler.startElement(XMLChangeLogHandler.java:80) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.emptyElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(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.commandline.Main.doMigration(Main.java:637) at liquibase.commandline.Main.main(Main.java:90) Migration Failed: Unknown Reason
    via by michael-m-x,
    • java.lang.NullPointerException at liquibase.parser.xml.XMLChangeLogHandler.handleIncludedChangeLog(XMLChangeLogHandler.java:236) at liquibase.parser.xml.XMLChangeLogHandler.startElement(XMLChangeLogHandler.java:80) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.emptyElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(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.commandline.Main.doMigration(Main.java:637) at liquibase.commandline.Main.main(Main.java:90)
    No Bugmate found.