That looks like a bug. I'll look more on Monday when I get back to my  
computer.

Nathan



On Jan 22, 2009, at 2:18 PM, "Dobes Vandermeer" <dob...@gmail.com>  
wrote:

>
> Sorry about the spam, I thought it was running but it just ran  
> enough to
> print the errors:
>
> Reading tables for ejb3unit @ jdbc:postgresql://localhost/ejb3unit ...
> Reading foreign keys for ejb3unit @ jdbc:postgresql://localhost/ 
> ejb3unit ...
> Reading primary keys for ejb3unit @ jdbc:postgresql://localhost/ 
> ejb3unit ...
> Reading columns for ejb3unit @ jdbc:postgresql://localhost/ 
> ejb3unit ...
> 22-Jan-2009 11:20:35 AM  
> liquibase.database.structure.SqlDatabaseSnapshot
> readColumns
> INFO: Could not find table or view accountbusinessnameindex for column
> business_id
> 22-Jan-2009 11:20:35 AM  
> liquibase.database.structure.SqlDatabaseSnapshot
> readColumns
> INFO: Could not find table or view accountbusinessnameindex for  
> column name
> 22-Jan-2009 11:20:35 AM  
> liquibase.database.structure.SqlDatabaseSnapshot
> readColumns
> INFO: Could not find table or view accountbusinessnameindex for column
> removed
> ... more ...
> Migration Failed: Unknown Reason.  For more information, use the -- 
> logLevel
> flag)
> 22-Jan-2009 11:29:09 AM liquibase.commandline.Main main
> SEVERE: Unknown Reason
> java.lang.NullPointerException
>    at  
> liquibase.diff.DiffResult.addMissingColumnChanges(DiffResult.java:723)
>    at liquibase.diff.DiffResult.printChangeLog(DiffResult.java:425)
>    at liquibase.diff.DiffResult.printChangeLog(DiffResult.java:351)
>    at
> liquibase. 
> commandline.CommandLineUtils.doDiffToChangeLog(CommandLineUtils.java: 
> 117)
>    at liquibase.commandline.Main.doMigration(Main.java:575)
>    at liquibase.commandline.Main.main(Main.java:90)
>
> The line that throws the NPE is this:
>
> columnConfig. 
> setDefaultValue( 
> database. 
> convertJavaObjectToString( 
> column.getDefaultValue()).replaceFirst("'","").replaceAll("'$",
> ""));
>
> Maybe I have a column with no default value?
>
>
>
> Dobes Vandermeer wrote:
>>
>>
>> Actually now the problem has re-appeared, my current command line is:
>>
>> liquibase diffChangeLog --logLevel=FINEST
>> --baseDriver=org.postgresql.Driver --baseUsername=xxx -- 
>> basePassword=xxx
>> --baseUrl=jdbc:postgresql://localhost/xxx
>>
>> I also tried no --logLevel and --logLevel=FINE but it just prints
>> "Migration failed: unknown reason"
>>
>> It occurred to me that it could be a conflict with another running
>> application, so I stopped glassfish and ran it again and it  
>> worked.  Is it
>> possible it no longer works if someone is connected to the  
>> database?  I
>> used to do this all the time, so something had changed for the  
>> worse in
>> this regard.
>>
>>
>> Dobes Vandermeer wrote:
>>>
>>>
>>> Thanks - I set it to fine and instead of getting diagnostics the  
>>> problem
>>> just went away.  Weird, but I'll accept it.
>>>
>>>
>>> Voxland, Nathan wrote:
>>>>
>>>> Try logLevel=FINEST
>>>>
>>>> Nathan
>>>>
>>>>
>>>>
>>>> On Jan 16, 2009, at 5:20 PM, "Dobes Vandermeer" <dob...@gmail.com>
>>>> wrote:
>>>>
>>>>>
>>>>> Just trying to update to 1.9.0 but I can't generate a changelog  
>>>>> diff
>>>>> any
>>>>> more.
>>>>>
>>>>> Command line:
>>>>>
>>>>> liquibase diffChangeLog --logLevel=DEBUG --
>>>>> baseDriver=org.postgresql.Driver
>>>>> --baseUsername=xxx --basePassword=xxx
>>>>> --baseUrl=jdbc:postgresql://localhost/xxx
>>>>>
>>>>> liquibase.properties:
>>>>>
>>>>> classpath=postgresql-8.2-506.jdbc3.jar
>>>>> driver=org.postgresql.Driver
>>>>> username=ejb3unit
>>>>> password=ejb3unit
>>>>> url=jdbc:postgresql://localhost/ejb3unit
>>>>>
>>>>> Output:
>>>>>
>>>>> Migration Failed: Unknown Reason
>>>>>
>>>>> Any ideas how I can get more information about the problem?
>>>>>
>>>>> Thanks!
>>>>
>>>>
>>>
>>>
>>
>>
>
> -- 
> View this message in context: 
> http://www.nabble.com/diffChangeLog-just-prints-%22Migration-Failed%3A-Unknown-Reason%22-tp21510525p21612383.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