[ https://issues.apache.org/jira/browse/DERBY-3318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jørgen Løland resolved DERBY-3318. ---------------------------------- Resolution: Duplicate Assignee: (was: Jørgen Løland) > Missing clean-up after failed startMaster > ----------------------------------------- > > Key: DERBY-3318 > URL: https://issues.apache.org/jira/browse/DERBY-3318 > Project: Derby > Issue Type: Bug > Components: Replication > Affects Versions: 10.4.0.0 > Environment: Trunk on Solaris > Reporter: Øystein Grøvlen > > It seems like some clean-up is missing if startMaster fails. This > happened when I tried to connect to a non-existing slave: > > > java org.apache.derby.tools.ij > ij version 10.4 > ij> connect 'jdbc:derby:test;create=true'; > ij> connect 'jdbc:derby:test;startMaster=true;slaveHost=localhost'; > ERROR XRE04: Could not establish a connection to the peer of the replicated > database 'null'. > ij> quit; > Exception in thread "main" java.lang.NullPointerException > at > org.apache.derby.impl.services.replication.master.MasterController.flushedTo(MasterController.java:278) > at > org.apache.derby.impl.store.raw.log.LogToFile.flush(LogToFile.java:3953) > at > org.apache.derby.impl.store.raw.log.LogToFile.flush(LogToFile.java:1762) > at > org.apache.derby.impl.store.raw.log.LogToFile.checkpointWithTran(LogToFile.java:1653) > at > org.apache.derby.impl.store.raw.log.LogToFile.checkpoint(LogToFile.java:1469) > at org.apache.derby.impl.store.raw.RawStore.stop(RawStore.java:363) > at > org.apache.derby.impl.services.monitor.TopService.stop(TopService.java:405) > at > org.apache.derby.impl.services.monitor.TopService.shutdown(TopService.java:349) > at > org.apache.derby.impl.services.monitor.BaseMonitor.shutdown(BaseMonitor.java:235) > at > org.apache.derby.impl.services.monitor.BaseMonitor.shutdown(BaseMonitor.java:201) > at > org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:205) > at org.apache.derby.jdbc.AutoloadedDriver.connect(AutoloadedDriver.java:119) > at java.sql.DriverManager.getConnection(DriverManager.java:582) > at java.sql.DriverManager.getConnection(DriverManager.java:207) > at > org.apache.derby.impl.tools.ij.utilMain.cleanupGo(utilMain.java:416) > at org.apache.derby.impl.tools.ij.utilMain.go(utilMain.java:249) > at org.apache.derby.impl.tools.ij.Main.go(Main.java:215) > at org.apache.derby.impl.tools.ij.Main.mainCore(Main.java:181) > at org.apache.derby.impl.tools.ij.Main.main(Main.java:73) > at org.apache.derby.tools.ij.main(ij.java:59) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.