This discussion is archived
1 Reply Latest reply: Mar 14, 2011 9:26 AM by mjohnson RSS

Bug in in coherence-pushreplicationpattern-

769299 Explorer
Currently Being Moderated
Just getting started with Push Replication so thought I'd start with something simple. Decided to use the FilePublisher. It creates the *.log files of content in the correct directory OK, but the files are all empty and the publish cache never drains.

I get the following error on the server:

java.util.MissingFormatArgumentException: Format specifier 's'
     at java.util.Formatter.format(
     at java.util.Formatter.format(
     at java.lang.String.format(
     at java.util.concurrent.Executors$
     at java.util.concurrent.FutureTask$Sync.innerRun(
     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(
     at java.util.concurrent.ScheduledThreadPoolExecutor$
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
     at java.util.concurrent.ThreadPoolExecutor$

At line 107 of the file, there is a String.format() call with a format string that requires four string arguments; the code only provides 3. I've taken a local copy of this file and updated the format string to just "%s, %s, %s\n" and it seems to work OK now. Cache items are now getting written to the *.log files correctly.

This is in the latest coherence-pushreplicationpattern- source code.

Just bringing the above to your attention if it hasn't been logged already.




  • Correct Answers - 10 points
  • Helpful Answers - 5 points