Skip to content

Instantly share code, notes, and snippets.

@hardyoyo
Created December 21, 2012 22:29
Show Gist options
  • Save hardyoyo/4356290 to your computer and use it in GitHub Desktop.
Save hardyoyo/4356290 to your computer and use it in GitHub Desktop.
DS-1435 Oracle bug hunt - partial stack trace of NPE
load_registries:
[java] 2012-12-20 16:15:21,901 INFO org.dspace.core.ConfigurationManager @ Loading system provided config property (-Ddspace.configuration): config/dspace.cfg
[java] 2012-12-20 16:15:21,907 INFO org.dspace.core.ConfigurationManager @ Using default log4j provided log configuration,if unintended, check your dspace.cfg for (log.init.config)
[java] Error:
[java] - null
[java] 2012-12-20 16:15:22,993 FATAL org.dspace.administer.RegistryLoader @ anonymous::error_loading_registries:
[java] java.lang.NullPointerException
[java] at org.dspace.storage.rdbms.ColumnInfo.canonicalize(ColumnInfo.java:154) #### return column.toLowerCase(); #### OK, for this to NPE, column needs to be null... why would column be null?
[java] at org.dspace.storage.rdbms.TableRow.canonicalizeAndCheck(TableRow.java:579) #### String canonicalized = ColumnInfo.canonicalize(column);
[java] at org.dspace.storage.rdbms.TableRow.setColumn(TableRow.java:437) ##### String canonicalized = canonicalizeAndCheck(column);
[java] at org.dspace.storage.rdbms.DatabaseManager.doInsertGeneric(DatabaseManager.java:1835) #### row.setColumn(getPrimaryKeyColumn(table), newID); ### OK, column is found *here* so this is where it is set to null
[java] at org.dspace.storage.rdbms.DatabaseManager.insert(DatabaseManager.java:679) #### newID = doInsertGeneric(context, row);
[java] at org.dspace.storage.rdbms.DatabaseManager.create(DatabaseManager.java:451) #### TableRow row = new TableRow(canonicalize(table), getColumnNames(table)); insert(context, row);
[java] at org.dspace.content.BitstreamFormat.create(BitstreamFormat.java:403) #### DatabaseManager.create(context, "bitstreamformatregistry"); ### adds a row to the specified table
[java] at org.dspace.administer.RegistryLoader.loadFormat(RegistryLoader.java:172)
[java] at org.dspace.administer.RegistryLoader.loadBitstreamFormats(RegistryLoader.java:138)
[java] at org.dspace.administer.RegistryLoader.main(RegistryLoader.java:75)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment