Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Getting streamjava.io.EOFException when creating the merging databases to generate clover-report

Hi, I am getting the Exception below when i merge the databases before creating the coverage report. I read that i should allocate more memory to Ant in http://forums.atlassian.com/thread.jspa?threadID=28870 which i already did (export ANT_OPTS="-Xmx1024m -Xms256m")

Is this a known issue ?

Failed to load coverage recording RecordingTranscripts.FileRef[datafile=/data/X/clover/build/Build/.internal/db/allcoverage.dbmjf5o4_h0ev7p16, testRecording=false, typedTestId=-1, runId=0, hash=1362875764, timestamp=1333089743226] java.io.EOFException: Unexpected end of ZLIB input streamjava.io.EOFException: Unexpected end of ZLIB input stream at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:223) at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:141) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read1(BufferedInputStream.java:258) at java.io.BufferedInputStream.read(BufferedInputStream.java:317) at java.io.DataInputStream.readFully(DataInputStream.java:178) at java.io.DataInputStream.readLong(DataInputStream.java:399) at com.cenqua.clover.BaseRecording$Header.read(BaseRecording.java:65) at com.cenqua.clover.BaseRecording$Header.<init>(BaseRecording.java:55) at com.cenqua.clover.RecordingTranscripts.readCoverageFromDisk(RecordingTranscripts.java:42) at com.cenqua.clover.RecordingTranscripts$FileRef.read(RecordingTranscripts.java:356) at com.cenqua.clover.CoverageDataCollator.collateRecordingFiles(CoverageDataCollator.java:116) at com.cenqua.clover.CoverageDataCollator.loadCoverageData(CoverageDataCollator.java:66) at com.cenqua.clover.CloverDatabase.loadCoverageData(CloverDatabase.java:164) at com.cenqua.clover.CloverDatabase.loadCoverageData(CloverDatabase.java:159) at com.cenqua.clover.CloverDatabase.merge(CloverDatabase.java:379) at com.cenqua.clover.tasks.CloverMergeTask.cloverExecute(CloverMergeTask.java:101) at com.cenqua.clover.tasks.AbstractCloverTask.execute(AbstractCloverTask.java:55) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) at org.apache.tools.ant.Project.executeTarget(Project.java:1368) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1251) at org.apache.tools.ant.Main.runBuild(Main.java:809) at org.apache.tools.ant.Main.startAnt(Main.java:217) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

1 answer

1 accepted

0 votes
Answer accepted

Such exception might occassionally happen when the JVM is shut down and Clover is in the middle of writing coverage data. However, please note that Clover is flushing it's data to two alternate files, so even if one file is corrupted due to JVM termination, the previous file should be fine and Clover will take the uncorrupted one for report generation.

In case you're not able to generate a report due to this exception, feel free to raise a ticket for Clover Support.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira

Jira Cloud Performance Improvements

Hello everyone, I am a product manager in the Jira Cloud team focused on making sure our customers have a delightful experience using our products. Towards that goal, one of the areas which is extr...

158 views 1 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you