Why can't I compile the iText source code? - itext
I get an error after running mvn install -P all -e to compile and install iText.
I've also done mvn clean on before hand. The error says:
testFlatteningGenerateAppearances2(com.itextpdf.text.pdf.FlatteningTest):
Path to GhostScript is not specified. Please use -DgsExec
Do I need to install Ghostscript?
I thought maven would take care of all dependencies.
C:\code4-itext\itext-code-6558-trunk\itext>mvn install -P all -e
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building iText, a Free Java-PDF library 5.5.4-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- buildnumber-maven-plugin:1.1:create (default) # itextpdf ---
[INFO] Checking for local modifications: skipped.
[INFO] Updating project files from SCM: skipped.
[INFO] Executing: cmd.exe /X /C "svn --non-interactive info"
[INFO] Working directory: C:\code4-itext\itext-code-6558-trunk\itext
[INFO] Storing buildNumber: null at timestamp: 1410923963268
[INFO] Executing: cmd.exe /X /C "svn --non-interactive info"
[INFO] Working directory: C:\code4-itext\itext-code-6558-trunk\itext
[INFO] Storing buildScmBranch: UNKNOWN_BRANCH
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # itextpdf ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 24 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) # itextpdf ---
[INFO] Compiling 601 source files to C:\code4-itext\itext-code-6558-trunk\itext\target\classes
[INFO]
[INFO] --- maven-bundle-plugin:2.3.4:manifest (bundle-manifest) # itextpdf ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # itextpdf ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 189 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) # itextpdf ---
[INFO] Compiling 63 source files to C:\code4-itext\itext-code-6558-trunk\itext\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.9:test (default-test) # itextpdf ---
[INFO] Surefire report directory: C:\code4-itext\itext-code-6558-trunk\itext\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.itextpdf.text.pdf.CMapAwareDocumentFontTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.25 sec
Running com.itextpdf.text.pdf.parser.LocationTextExtractionStrategyTest
Tests run: 21, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.094 sec
Running com.itextpdf.text.pdf.parser.VectorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.pdf.RandomAccessFileOrArrayTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.ChunkTest
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.281 sec
Running com.itextpdf.text.pdf.fonts.cmaps.CMapTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.pdf.cs.LabColorSpaceTest
[itext] INFO Comparing by content..........OK
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec
Running com.itextpdf.text.pdf.TextFieldTest
[itext] INFO Comparing by content..........OK
[itext] INFO Comparing by content..........OK
[itext] INFO Comparing by content..........OK
[itext] INFO Comparing by content..........OK
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec
Running com.itextpdf.text.io.FileChannelRandomAccessSourceTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.062 sec
Running com.itextpdf.text.io.GroupedRandomAccessSourceTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running com.itextpdf.text.pdf.TaggedPdfCopyTest
Tests run: 30, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 24.726 sec
Running com.itextpdf.text.pdf.parser.MatrixTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.error_messages.ErrorMessageTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.pdf.MappedRandomAccessFileTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.html.parser.HtmlWorkerWhitSpaceTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Running com.itextpdf.text.pdf.parser.GlyphTextRenderListenerTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running com.itextpdf.text.pdf.AcroFieldsTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec
Running com.itextpdf.text.io.ArrayRandomAccessSourceTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.pdf.TestPdfCopyAndStamp
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running com.itextpdf.text.pdf.PRTokeniserTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.pdf.ToUnicodeNonBreakableSpacesTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.io.PagedChannelRandomAccessSourceTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Running com.itextpdf.text.io.GetBufferedRandomAccessSourceTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.pdf.fonts.cmaps.CMapParserExTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.pdf.PdfReaderSelectPagesTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.pdf.cs.DeviceNColorSpaceTest
[itext] INFO Comparing by content..........OK
[itext] INFO Comparing by content..........OK
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.pdf.table.RowspanTest
true
[itext] INFO Comparing by content..........OK
[itext] INFO Comparing by content..........OK
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.078 sec
Running com.itextpdf.text.RemoteGifImageTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.983 sec
Running com.itextpdf.text.xml.simpleparser.SimpleXMLParserTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.signature.XmlDSigRsaTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.546 sec
Running com.itextpdf.text.html.WebColorTest
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Running com.itextpdf.text.pdf.parser.TextRenderInfoTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running com.itextpdf.text.error_messages.MessageLocalizationTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
Running com.itextpdf.text.pdf.fonts.SymbolTest
[itext] INFO Comparing by content..........OK
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.error_messages.ErrorMessageExistenceTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.375 sec
Running com.itextpdf.text.pdf.DocumentFontTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Running com.itextpdf.text.html.parser.HtmlWorkerParagraphTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.html.parser.HtmlWorkerLinkTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.pdf.UnbalancedOperatorsTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.pdf.parser.PdfImageObjectTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.249 sec
Running com.itextpdf.text.pdf.FlatteningTest
[itext] INFO Comparing by content..........OK
[itext] INFO Comparing by content..........OK
Tests run: 9, Failures: 7, Errors: 0, Skipped: 0, Time elapsed: 0.063 sec <<< FAILURE!
Running com.itextpdf.text.signature.XadesTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.234 sec
Running com.itextpdf.text.signature.XmlDSigCertTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.093 sec
Running com.itextpdf.text.pdf.parser.MultiFilteredRenderListenerTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.468 sec
Running com.itextpdf.text.pdf.parser.TextMarginFinderTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.pdf.PdfReaderTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.016 sec
Running com.itextpdf.text.pdf.MultithreadedTtfTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.234 sec
Running com.itextpdf.text.pdf.PdfCopyTest
[itext] INFO Comparing by content..........OK
[itext] INFO Comparing by content..........OK
[itext] INFO Comparing by content..........OK
[itext] INFO Comparing by content..........OK
[itext] INFO Comparing by content..........OK
[itext] INFO Comparing by content..........OK
[itext] INFO Comparing by content..........OK
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.406 sec
Running com.itextpdf.text.pdf.parser.SimpleTextExtractionStrategyTest
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.signature.XmlDSigKSTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.109 sec
Running com.itextpdf.text.pdf.BookmarksTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.pdf.parser.PdfTextExtractorEncodingsTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 2, Time elapsed: 0.187 sec
Running com.itextpdf.text.io.WindowRandomAccessSourceTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.pdf.parser.FilteredTextRenderListenerTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Running com.itextpdf.testutils.ClearOutTempFilesDuringTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.pdf.MetaDataTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.html.parser.HtmlXFAWorkerTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.itextpdf.text.pdf.TaggedPdfTest
Tests run: 25, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.342 sec
Running com.itextpdf.text.pdf.parser.PdfContentStreamProcessorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Running com.itextpdf.text.xml.xmp.XmpWriterTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec
Results :
Failed tests: testFlatteningGenerateAppearances2(com.itextpdf.text.pdf.FlatteningTest): Path to GhostScript is not specified. Please use -DgsExec=<p
ath_to_ghostscript> (e.g. -DgsExec="C:/Program Files/gs/gs9.14/bin/gswin32c.exe")
testFlatteningGenerateAppearances1(com.itextpdf.text.pdf.FlatteningTest): Path to GhostScript is not specified. Please use -DgsExec=<path_to_ghostsc
ript> (e.g. -DgsExec="C:/Program Files/gs/gs9.14/bin/gswin32c.exe")
testFlattening(com.itextpdf.text.pdf.FlatteningTest): Path to GhostScript is not specified. Please use -DgsExec=<path_to_ghostscript> (e.g. -DgsExec
="C:/Program Files/gs/gs9.14/bin/gswin32c.exe")
testFlatteningGenerateAppearances4(com.itextpdf.text.pdf.FlatteningTest): Path to GhostScript is not specified. Please use -DgsExec=<path_to_ghostsc
ript> (e.g. -DgsExec="C:/Program Files/gs/gs9.14/bin/gswin32c.exe")
testFlatteningGenerateAppearances5(com.itextpdf.text.pdf.FlatteningTest): Path to GhostScript is not specified. Please use -DgsExec=<path_to_ghostsc
ript> (e.g. -DgsExec="C:/Program Files/gs/gs9.14/bin/gswin32c.exe")
testFlatteningGenerateAppearances6(com.itextpdf.text.pdf.FlatteningTest): Path to GhostScript is not specified. Please use -DgsExec=<path_to_ghostsc
ript> (e.g. -DgsExec="C:/Program Files/gs/gs9.14/bin/gswin32c.exe")
testFlatteningGenerateAppearances3(com.itextpdf.text.pdf.FlatteningTest): Path to GhostScript is not specified. Please use -DgsExec=<path_to_ghostsc
ript> (e.g. -DgsExec="C:/Program Files/gs/gs9.14/bin/gswin32c.exe")
Tests run: 246, Failures: 7, Errors: 0, Skipped: 4
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 45.209 s
[INFO] Finished at: 2014-09-16T20:20:07-08:00
[INFO] Final Memory: 29M/552M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.9:test (default-test) on project itextpdf: There are test failures.
[ERROR]
[ERROR] Please refer to C:\code4-itext\itext-code-6558-trunk\itext\target\surefire-reports for the individual test results.
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.9:test (default-test)
on project itextpdf: There are test failures.
Please refer to C:\code4-itext\itext-code-6558-trunk\itext\target\surefire-reports for the individual test results.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:108)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures.
Please refer to C:\code4-itext\itext-code-6558-trunk\itext\target\surefire-reports for the individual test results.
at org.apache.maven.plugin.surefire.SurefireHelper.reportExecution(SurefireHelper.java:87)
at org.apache.maven.plugin.surefire.SurefirePlugin.writeSummary(SurefirePlugin.java:631)
at org.apache.maven.plugin.surefire.SurefirePlugin.handleSummary(SurefirePlugin.java:605)
at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:136)
at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:97)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 19 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
C:\code4-itext\itext-code-6558-trunk\itext>
Add the parameter maven.test.skip=true or skipTests=true in the command line. The tests create plenty of PDF files (new documents) that need to be compared with reference PDF files (existing documents stored with the tests). Ghostscript is used to create images of those PDF files. These images are compared on a pixel basis to check if the new files have the same appearance of the reference files.
If you want to build iText with the tests, you need Ghostscript.
If you want to build iText merely to get a jar, you can skip the tests and you don't need Ghostscript.
Related
Just Audio for Flutter stops reproducing an mp3 file after some time for some reason (bufferpool2)
I'm just trying to reproduce a mp3 file placed in getApplicationDocumentsDirectory, using Just Audio library (just_audio: ^0.9.29), but after 43 seconds (for that specific file) the app crashes with the following log V/AutofillManager(24351): requestHideFillUi(null): anchor = null I/ExoPlayerImpl(24351): Init a42cd27 [ExoPlayerLib/2.17.1] [OnePlus8Pro, IN2023, OnePlus, 31] W/example.youtun(24351): Accessing hidden method Landroid/media/AudioTrack;->getLatency()I (unsupported, reflection, allowed) D/AudioManagerExtImpl(24351): getStreamVolume packageName=com.example.youtune, index=4, streamType=3 W/AudioCapabilities(24351): Unsupported mime audio/ffmpeg W/VideoCapabilities(24351): Unsupported mime image/vnd.android.heic W/VideoCapabilities(24351): Unsupported mime video/ffmpeg 2 W/VideoCapabilities(24351): Unrecognized profile/level 0/3 for video/mpeg2 2 W/AudioCapabilities(24351): Unsupported mime audio/ozoaudio I/DMCodecAdapterFactory(24351): Creating an asynchronous MediaCodec adapter for track type audio E/Parcel (24351): Reading a NULL string not supported here. D/OplusCCodec(24351): OplusCCodec [120]: (0xb400007e00db3980) D/CCodec (24351): allocate(c2.android.mp3.decoder) I/Codec2Client(24351): Available Codec2 services: "ozoaudio" "software" I/CCodec (24351): Created component [c2.android.mp3.decoder] D/CCodecConfig(24351): read media type: audio/mpeg D/ReflectedParamUpdater(24351): extent() != 1 for single value type: algo.buffers.max-count.values D/ReflectedParamUpdater(24351): extent() != 1 for single value type: output.subscribed-indices.values D/ReflectedParamUpdater(24351): extent() != 1 for single value type: input.buffers.allocator-ids.values D/ReflectedParamUpdater(24351): extent() != 1 for single value type: output.buffers.allocator-ids.values D/ReflectedParamUpdater(24351): extent() != 1 for single value type: algo.buffers.allocator-ids.values D/ReflectedParamUpdater(24351): extent() != 1 for single value type: output.buffers.pool-ids.values D/ReflectedParamUpdater(24351): extent() != 1 for single value type: algo.buffers.pool-ids.values I/CCodecConfig(24351): query failed after returning 7 values (BAD_INDEX) D/CCodecConfig(24351): c2 config diff is Dict { D/CCodecConfig(24351): c2::u32 coded.bitrate.value = 64000 D/CCodecConfig(24351): c2::u32 input.buffers.max-size.value = 8192 D/CCodecConfig(24351): c2::u32 input.delay.value = 0 D/CCodecConfig(24351): string input.media-type.value = "audio/mpeg" D/CCodecConfig(24351): string output.media-type.value = "audio/raw" D/CCodecConfig(24351): c2::u32 raw.channel-count.value = 2 D/CCodecConfig(24351): c2::u32 raw.sample-rate.value = 44100 D/CCodecConfig(24351): } I/MediaCodec(24351): MediaCodec will operate in async mode I/MediaCodec(24351): [c2.android.mp3.decoder] configure, format : AMessage(what = 0x00000000) = { I/MediaCodec(24351): int32_t sample-rate = 44100 I/MediaCodec(24351): string mime = "audio/mpeg" I/MediaCodec(24351): int32_t channel-count = 2 I/MediaCodec(24351): int32_t priority = 0 I/MediaCodec(24351): int32_t max-input-size = 4096 I/MediaCodec(24351): } D/OplusCCodec(24351): [initiateConfigureComponent:L256] OplusFeedbackInfo mFeedbackID:-5476376605702276736 D/CCodec (24351): [c2.android.mp3.decoder] buffers are bound to CCodec for this session D/CCodecConfig(24351): no c2 equivalents for flags D/CCodecConfig(24351): config failed => CORRUPTED W/Codec2Client(24351): query -- param skipped: index = 1107298332. D/CCodec (24351): client requested max input size 4096, which is smaller than what component recommended (8192); overriding with component recommendation. W/CCodec (24351): This behavior is subject to change. It is recommended that app developers double check whether the requested max input size is in reasonable range. D/CCodec (24351): setup formats input: AMessage(what = 0x00000000) = { D/CCodec (24351): int32_t bitrate = 64000 D/CCodec (24351): int32_t channel-count = 2 D/CCodec (24351): int32_t max-input-size = 8192 D/CCodec (24351): string mime = "audio/mpeg" D/CCodec (24351): int32_t sample-rate = 44100 D/CCodec (24351): } D/CCodec (24351): setup formats output: AMessage(what = 0x00000000) = { D/CCodec (24351): int32_t channel-count = 2 D/CCodec (24351): string mime = "audio/raw" D/CCodec (24351): int32_t sample-rate = 44100 D/CCodec (24351): int32_t android._config-pcm-encoding = 2 D/CCodec (24351): } I/CCodecConfig(24351): query failed after returning 7 values (BAD_INDEX) D/MediaCodec(24351): keep callback message for reclaim W/Codec2Client(24351): query -- param skipped: index = 1342179345. W/Codec2Client(24351): query -- param skipped: index = 2415921170. D/C2Store (24351): Using ION D/CCodecBufferChannel(24351): [c2.android.mp3.decoder#431] Created input block pool with allocatorID 16 => poolID 17 - OK (0) I/CCodecBufferChannel(24351): [c2.android.mp3.decoder#431] Created output block pool with allocatorID 16 => poolID 1142 - OK D/CCodecBufferChannel(24351): [c2.android.mp3.decoder#431] Configured output block pool ids 1142 => OK D/CCodecBufferChannel(24351): [c2.android.mp3.decoder#431] start: updating output delay 0 E/ion (24351): ioctl c0044901 failed with code -1: Inappropriate ioctl for device D/AudioTrackExtImpl(24351): AudioTrackExtImpl init D/AudioTrackExtImpl(24351): audioTrackTest D/AudioTrack(24351): set() streamType -1, sampleRate 44100, format 0x1, channelMask 0x3, frameCount 14144, flags #0, notificationFrames 0, sessionId 13137, transferType 3, uid -1, pid -1 cbf 1 D/AudioTrack(24351): set(): Building AudioTrack with attributes: usage=1 content=2 flags=0xa00 tags=[] I/AudioTrack(24351): createTrack_l(2088) on outputId(21) : 0xb400007e07887300, mCblk = 0x7f321c6000, mLatency = 400, mAfLatency = 80, frameCount = 14144, mSampleRate = 44100, mFlags = 0x8, mReqFrameCount = 14144, mNotificationFramesAct = 7072 D/ListServiceUtils(24351): mListServiceUtils::init CallingPid 24351 D/ListServiceUtils(24351): mListServiceUtils::init this 0xb400007e8b36cb80 D/AudioTrack(24351): setVolume left 1.000 right 1.000 , callingPid 24351 D/AudioTrack(24351): start(2088): prior state:STATE_STOPPED output 21 stream 3 session 13137 D/AudioTrack(24351): getTimestamp_l(2088): device stall time corrected using current time 232797429092912 D/CCodecBufferChannel(24351): [c2.android.mp3.decoder#431] DEBUG: elapsed: n=4 [in=0 pipeline=0 out=0] D/PipelineWatcher(24351): DEBUG: elapsed 0 / 4 D/BufferPoolAccessor2.0(24351): bufferpool2 0xb400007e8b7cdc28 : 5(40960 size) total buffers - 1(8192 size) used buffers - 211/216 (recycle/alloc) - 5/428 (fetch/transfer) D/CCodecBufferChannel(24351): [c2.android.mp3.decoder#431] DEBUG: elapsed: n=4 [in=0 pipeline=0 out=0] D/PipelineWatcher(24351): DEBUG: elapsed 0 / 4 D/CCodecBufferChannel(24351): [c2.android.mp3.decoder#431] DEBUG: elapsed: n=4 [in=0 pipeline=0 out=0] D/PipelineWatcher(24351): DEBUG: elapsed 0 / 4 D/BufferPoolAccessor2.0(24351): bufferpool2 0xb400007e8b7cdc28 : 5(40960 size) total buffers - 1(8192 size) used buffers - 407/412 (recycle/alloc) - 5/820 (fetch/transfer) D/CCodecBufferChannel(24351): [c2.android.mp3.decoder#431] DEBUG: elapsed: n=4 [in=0 pipeline=0 out=0] D/PipelineWatcher(24351): DEBUG: elapsed 0 / 4 D/BufferPoolAccessor2.0(24351): bufferpool2 0xb400007e8b7cdc28 : 5(40960 size) total buffers - 1(8192 size) used buffers - 607/612 (recycle/alloc) - 5/1220 (fetch/transfer) D/CCodecBufferChannel(24351): [c2.android.mp3.decoder#431] DEBUG: elapsed: n=4 [in=0 pipeline=0 out=0] D/PipelineWatcher(24351): DEBUG: elapsed 0 / 4 D/CCodecBufferChannel(24351): [c2.android.mp3.decoder#431] DEBUG: elapsed: n=4 [in=0 pipeline=0 out=0] D/PipelineWatcher(24351): DEBUG: elapsed 0 / 4 D/BufferPoolAccessor2.0(24351): bufferpool2 0xb400007e8b7cdc28 : 5(40960 size) total buffers - 1(8192 size) used buffers - 803/808 (recycle/alloc) - 5/1612 (fetch/transfer) D/CCodecBufferChannel(24351): [c2.android.mp3.decoder#431] DEBUG: elapsed: n=4 [in=0 pipeline=0 out=0] D/PipelineWatcher(24351): DEBUG: elapsed 0 / 4 D/BufferPoolAccessor2.0(24351): bufferpool2 0xb400007e8b7cdc28 : 5(40960 size) total buffers - 1(8192 size) used buffers - 1004/1009 (recycle/alloc) - 5/2014 (fetch/transfer) D/CCodecBufferChannel(24351): [c2.android.mp3.decoder#431] DEBUG: elapsed: n=4 [in=0 pipeline=0 out=0] D/PipelineWatcher(24351): DEBUG: elapsed 0 / 4 D/CCodecBufferChannel(24351): [c2.android.mp3.decoder#431] DEBUG: elapsed: n=4 [in=0 pipeline=0 out=0] D/PipelineWatcher(24351): DEBUG: elapsed 0 / 4 D/BufferPoolAccessor2.0(24351): bufferpool2 0xb400007e8b7cdc28 : 5(40960 size) total buffers - 1(8192 size) used buffers - 1204/1209 (recycle/alloc) - 5/2414 (fetch/transfer) D/CCodecBufferChannel(24351): [c2.android.mp3.decoder#431] DEBUG: elapsed: n=4 [in=0 pipeline=0 out=0] D/PipelineWatcher(24351): DEBUG: elapsed 0 / 4 D/BufferPoolAccessor2.0(24351): bufferpool2 0xb400007e8b7cdc28 : 5(40960 size) total buffers - 1(8192 size) used buffers - 1400/1405 (recycle/alloc) - 5/2806 (fetch/transfer) D/CCodecBufferChannel(24351): [c2.android.mp3.decoder#431] DEBUG: elapsed: n=4 [in=0 pipeline=0 out=0] D/PipelineWatcher(24351): DEBUG: elapsed 0 / 4 D/CCodecBufferChannel(24351): [c2.android.mp3.decoder#431] DEBUG: elapsed: n=4 [in=0 pipeline=0 out=0] D/PipelineWatcher(24351): DEBUG: elapsed 0 / 4 D/BufferPoolAccessor2.0(24351): bufferpool2 0xb400007e8b7cdc28 : 5(40960 size) total buffers - 1(8192 size) used buffers - 1596/1601 (recycle/alloc) - 5/3198 (fetch/transfer) D/AudioTrack(24351): stop(2088): prior state:STATE_ACTIVE output 21 stream 3 session 13137 D/AudioTrack(24351): stop(2088): called with 1923840 frames delivered D/PipelineWatcher(24351): DEBUG: elapsed 0 / 0 D/BufferPoolAccessor2.0(24351): bufferpool2 0xb400007e8b7cdc28 : 5(40960 size) total buffers - 3(24576 size) used buffers - 1670/1675 (recycle/alloc) - 5/3340 (fetch/transfer) D/BufferPoolAccessor2.0(24351): evictor expired: 1, evicted: 1 V/AutofillManager(24351): requestHideFillUi(null): anchor = null any idea what's wrong
PostgreSQL log prefix for pgbadger
Im trying to parse a PostgreSQL log file with pgbadger. Its a custom log prefix. But when I try to parse its always showing queryes=0. sample log: '2020-03-07T16:09:43Z UTC [ db=dev user=rdsdb pid=16929 userid=1 xid=7382 ]' LOG: SELECT 1 '2020-03-07T16:09:43Z UTC [ db=dev user=rdsdb pid=16929 userid=1 xid=7383 ]' LOG: SET statement_timeout TO 120000 Pgbadger log: /usr/local/bin/pgbadger -v pglog --prefix "'%t [ db=%d user=%u pid=%p userid=%p xid=%x ]'" DEBUG: timezone not specified, using 0 seconds DEBUG: Output 'html' reports will be written to out.html DEBUG: Autodetected log format 'stderr' from pglog DEBUG: pgBadger will use log format stderr to parse pglog. DEBUG: Starting progressbar writer process DEBUG: Processing log file: pglog DEBUG: Starting reading file pglog...0 bytes of 205 (0.00%), queries: 0, events: 0 DEBUG: Start parsing postgresql log at offset 0 of file pglog to 205 DEBUG: the log statistics gathering took: 2 wallclock secs ( 0.00 usr + 0.01 sys = 0.01 CPU) DEBUG: Output 'html' reports will be written to out.html LOG: Ok, generating html report... DEBUG: building reports took: 0 wallclock secs ( 0.01 usr + 0.00 sys = 0.01 CPU) DEBUG: the total execution time took: 2 wallclock secs ( 0.01 usr + 0.01 sys = 0.02 CPU)
Issue in testing the performance of populating a Seq vs a List in Scala
I've been trying to understand more about the rationale in choosing either a Seq or a List in Scala, to aid this I am trying to create a simple timed example where I create an instance of each, both populated with the same number of elements - see below. object SeqVsList extends App with LazyLogging { private val numberOfElements = 1234567 // whichever of these is run first takes the most amount of time populateSeq() populateList() def populateSeq(): Unit = { val seqStartTime = System.currentTimeMillis() val aSeq = Seq.fill(numberOfElements)("foo") logger.info(s"Populating Seq took ${System.currentTimeMillis() - seqStartTime} ms") } def populateList(): Unit = { val listStartTime = System.currentTimeMillis() val aList = List.fill(numberOfElements)("bar") logger.info(s"Populating List took ${System.currentTimeMillis() - listStartTime} ms") } } The issue I'm having (as defined in my comment in the code) is that the example does not accurately represent which one is quickest to populate all elements, instead whichever of the methods I call first is always the slowest. I imagine there's something going on behind the scenes such as loading a bunch of objects into memory at runtime which slows down the first of the two methods? If someone could help me shed some light on this I'd be very grateful.
I've just tried to proof the idea of equality Seq and List by some benchmark test with sbt-jmh: package bmks import java.util.concurrent.TimeUnit import org.openjdk.jmh.annotations.{Benchmark, OutputTimeUnit} #OutputTimeUnit(TimeUnit.MILLISECONDS) class TestBenchmark { #Benchmark def seq(): Seq[String] = Seq.fill(1234567)("foo") #Benchmark def list(): Seq[String] = List.fill(1234567)("foo") } run it with: $ sbt $ sbt:benchmarks> jmh:run -i 20 -wi 10 -f1 -t1 and got: sbt:benchmarks> jmh:run -i 20 -wi 10 -f1 -t1 [info] Compiling 1 Scala source to /Volumes/AuroraHD/DEV/scala/benchmarks/target/scala-2.12/classes ... [info] Done compiling. [info] Packaging /Volumes/AuroraHD/DEV/scala/benchmarks/target/scala-2.12/benchmarks_2.12-1.0.jar ... Processing 1 classes from /Volumes/AuroraHD/DEV/scala/benchmarks/target/scala-2.12/classes with "reflection" generator Writing out Java source to /Volumes/AuroraHD/DEV/scala/benchmarks/target/scala-2.12/src_managed/jmh and resources to /Volumes/AuroraHD/DEV/scala/benchmarks/target/scala-2.12/resource_managed/jmh [info] Done packaging. [info] Compiling 6 Java sources to /Volumes/AuroraHD/DEV/scala/benchmarks/target/scala-2.12/classes ... [info] Done compiling. [info] Packaging /Volumes/AuroraHD/DEV/scala/benchmarks/target/scala-2.12/benchmarks_2.12-1.0-jmh.jar ... [info] Done packaging. [info] Running (fork) org.openjdk.jmh.Main -i 20 -wi 10 -f1 -t1 [info] # JMH version: 1.21 [info] # VM version: JDK 1.8.0_161, Java HotSpot(TM) 64-Bit Server VM, 25.161-b12 [info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/bin/java [info] # VM options: <none> [info] # Warmup: 10 iterations, 10 s each [info] # Measurement: 20 iterations, 10 s each [info] # Timeout: 10 min per iteration [info] # Threads: 1 thread, will synchronize iterations [info] # Benchmark mode: Throughput, ops/time [info] # Benchmark: bmks.TestBenchmark.list [info] # Run progress: 0.00% complete, ETA 00:10:00 [info] # Fork: 1 of 1 [info] # Warmup Iteration 1: 0.091 ops/ms [info] # Warmup Iteration 2: 0.111 ops/ms [info] # Warmup Iteration 3: 0.111 ops/ms [info] # Warmup Iteration 4: 0.113 ops/ms [info] # Warmup Iteration 5: 0.112 ops/ms [info] # Warmup Iteration 6: 0.115 ops/ms [info] # Warmup Iteration 7: 0.114 ops/ms [info] # Warmup Iteration 8: 0.116 ops/ms [info] # Warmup Iteration 9: 0.115 ops/ms [info] # Warmup Iteration 10: 0.115 ops/ms [info] Iteration 1: 0.115 ops/ms [info] Iteration 2: 0.116 ops/ms [info] Iteration 3: 0.114 ops/ms [info] Iteration 4: 0.114 ops/ms [info] Iteration 5: 0.115 ops/ms [info] Iteration 6: 0.114 ops/ms [info] Iteration 7: 0.116 ops/ms [info] Iteration 8: 0.115 ops/ms [info] Iteration 9: 0.115 ops/ms [info] Iteration 10: 0.115 ops/ms [info] Iteration 11: 0.115 ops/ms [info] Iteration 12: 0.115 ops/ms [info] Iteration 13: 0.114 ops/ms [info] Iteration 14: 0.116 ops/ms [info] Iteration 15: 0.115 ops/ms [info] Iteration 16: 0.115 ops/ms [info] Iteration 17: 0.115 ops/ms [info] Iteration 18: 0.114 ops/ms [info] Iteration 19: 0.114 ops/ms [info] Iteration 20: 0.117 ops/ms [info] Result "bmks.TestBenchmark.list": [info] 0.115 ±(99.9%) 0.001 ops/ms [Average] [info] (min, avg, max) = (0.114, 0.115, 0.117), stdev = 0.001 [info] CI (99.9%): [0.114, 0.116] (assumes normal distribution) [info] # JMH version: 1.21 [info] # VM version: JDK 1.8.0_161, Java HotSpot(TM) 64-Bit Server VM, 25.161-b12 [info] # VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/bin/java [info] # VM options: <none> [info] # Warmup: 10 iterations, 10 s each [info] # Measurement: 20 iterations, 10 s each [info] # Timeout: 10 min per iteration [info] # Threads: 1 thread, will synchronize iterations [info] # Benchmark mode: Throughput, ops/time [info] # Benchmark: bmks.TestBenchmark.seq [info] # Run progress: 50.00% complete, ETA 00:05:01 [info] # Fork: 1 of 1 [info] # Warmup Iteration 1: 0.094 ops/ms [info] # Warmup Iteration 2: 0.115 ops/ms [info] # Warmup Iteration 3: 0.118 ops/ms [info] # Warmup Iteration 4: 0.115 ops/ms [info] # Warmup Iteration 5: 0.114 ops/ms [info] # Warmup Iteration 6: 0.115 ops/ms [info] # Warmup Iteration 7: 0.115 ops/ms [info] # Warmup Iteration 8: 0.115 ops/ms [info] # Warmup Iteration 9: 0.114 ops/ms [info] # Warmup Iteration 10: 0.117 ops/ms [info] Iteration 1: 0.116 ops/ms [info] Iteration 2: 0.116 ops/ms [info] Iteration 3: 0.089 ops/ms [info] Iteration 4: 0.116 ops/ms [info] Iteration 5: 0.116 ops/ms [info] Iteration 6: 0.118 ops/ms [info] Iteration 7: 0.116 ops/ms [info] Iteration 8: 0.118 ops/ms [info] Iteration 9: 0.118 ops/ms [info] Iteration 10: 0.117 ops/ms [info] Iteration 11: 0.117 ops/ms [info] Iteration 12: 0.107 ops/ms [info] Iteration 13: 0.111 ops/ms [info] Iteration 14: 0.113 ops/ms [info] Iteration 15: 0.113 ops/ms [info] Iteration 16: 0.114 ops/ms [info] Iteration 17: 0.114 ops/ms [info] Iteration 18: 0.114 ops/ms [info] Iteration 19: 0.114 ops/ms [info] Iteration 20: 0.114 ops/ms [info] Result "bmks.TestBenchmark.seq": [info] 0.114 ±(99.9%) 0.005 ops/ms [Average] [info] (min, avg, max) = (0.089, 0.114, 0.118), stdev = 0.006 [info] CI (99.9%): [0.108, 0.119] (assumes normal distribution) [info] # Run complete. Total time: 00:10:02 [info] REMEMBER: The numbers below are just data. To gain reusable insights, you need to follow up on [info] why the numbers are the way they are. Use profilers (see -prof, -lprof), design factorial [info] experiments, perform baseline and negative tests that provide experimental control, make sure [info] the benchmarking environment is safe on JVM/OS/HW level, ask for reviews from the domain experts. [info] Do not assume the numbers tell you what you want them to tell. [info] Benchmark Mode Cnt Score Error Units [info] TestBenchmark.list thrpt 20 0.115 ± 0.001 ops/ms [info] TestBenchmark.seq thrpt 20 0.114 ± 0.005 ops/ms [success] Total time: 607 s, completed Apr 29, 2019 8:35:22 PM Conclusion: they are equal.
Perl - Issue installing or connecting to queue manager from MQSeries - 1.34 (Reason = 2059)
I tried to install MQSeries 1.34 from CPAN, and I was getting an error, which I found a fix for on the CPAN bug tracking website. So I applied the fix and still got a few test errors, but the build seemed okay. Installing it with a force install MQSeries worked. Once I had installed it, I can construct objects and reference the libraries in my other perl scripts, but when I try to connect to the queue manager or queue, I get an error back. Any advice on what is wrong with the setup or how to fix this and get my connection back up and running would be much appreciated. Here are specifics about my configuration: $ uname -srvpio Linux 2.6.32-573.22.1.el6.x86_64 #1 SMP Thu Mar 17 03:23:39 EDT 2016 x86_64 x86_64 GNU/Linux $ /opt/mqm/bin/dspmqsver Name: WebSphere MQ Advanced Message Security Version: 7.5.0.0 Level: p000-L120604 BuildType: IKAP - (Production) $ rpm -qa |grep 'MQ' |sort MQSeriesAMS-7.5.0-0.x86_64 MQSeriesClient-7.5.0-0.x86_64 MQSeriesExplorer-7.5.0-0.x86_64 MQSeriesFTAgent-7.5.0-0.x86_64 MQSeriesFTBase-7.5.0-0.x86_64 MQSeriesFTLogger-7.5.0-0.x86_64 MQSeriesFTService-7.5.0-0.x86_64 MQSeriesFTTools-7.5.0-0.x86_64 MQSeriesGSKit-7.5.0-0.x86_64 MQSeriesJava-7.5.0-0.x86_64 MQSeriesJRE-7.5.0-0.x86_64 MQSeriesMan-7.5.0-0.x86_64 MQSeriesMsg_cs-7.5.0-0.x86_64 MQSeriesMsg_de-7.5.0-0.x86_64 MQSeriesMsg_es-7.5.0-0.x86_64 MQSeriesMsg_fr-7.5.0-0.x86_64 MQSeriesMsg_hu-7.5.0-0.x86_64 MQSeriesMsg_it-7.5.0-0.x86_64 MQSeriesMsg_ja-7.5.0-0.x86_64 MQSeriesMsg_ko-7.5.0-0.x86_64 MQSeriesMsg_pl-7.5.0-0.x86_64 MQSeriesMsg_pt-7.5.0-0.x86_64 MQSeriesMsg_ru-7.5.0-0.x86_64 MQSeriesMsg_Zh_CN-7.5.0-0.x86_64 MQSeriesMsg_Zh_TW-7.5.0-0.x86_64 MQSeriesRuntime-7.5.0-0.x86_64 MQSeriesSamples-7.5.0-0.x86_64 MQSeriesSDK-7.5.0-0.x86_64 MQSeriesServer-7.5.0-0.x86_64 MQSeriesXRClients-7.5.0-0.x86_64 MQSeriesXRService-7.5.0-0.x86_64 $ ./dispModVersion.pl MQSeries Module Installed CPAN MQSeries 1.34 1.34 $ perl -v This is perl 5, version 22, subversion 1 (v5.22.1) built for x86_64-linux Copyright 1987-2015, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. $ perl -V Summary of my perl5 (revision 5 version 22 subversion 1) configuration: Platform: osname=linux, osvers=2.6.32-573.22.1.el6.x86_64, archname=x86_64-linux uname='linux ******* 2.6.32-573.22.1.el6.x86_64 #1 smp thu mar 17 03:23:39 edt 2016 x86_64 x86_64 x86_64 gnulinux ' config_args='-des -Dprefix=******' hint=recommended, useposix=true, d_sigaction=define useithreads=undef, usemultiplicity=undef use64bitint=define, use64bitall=define, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2', optimize='-O2', cppflags='-fwrapv -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include' ccversion='', gccversion='4.4.7 20120313 (Red Hat 4.4.7-16)', gccosandvers='' intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678, doublekind=3 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16, longdblkind=3 ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='cc', ldflags =' -fstack-protector -L/usr/local/lib' libpth=/usr/local/lib /usr/lib /lib/../lib64 /usr/lib/../lib64 /lib /lib64 /usr/lib64 /usr/local/lib64 libs=-lpthread -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc libc=libc-2.12.so, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='2.12' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector' Characteristics of this binary (from libperl): Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_MALLOC_WRAP PERL_NEW_COPY_ON_WRITE PERL_PRESERVE_IVUV USE_64_BIT_ALL USE_64_BIT_INT USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_LOCALE_TIME USE_PERLIO USE_PERL_ATOF Built under linux Compiled at Apr 18 2016 15:46:59 %ENV: PERL5BIN="*******/bin" PERL5HOME="*******" PERL5SITE="*******/lib/site_perl/5.22.1" #INC: *******/lib/site_perl/5.22.1/x86_64-linux *******/lib/site_perl/5.22.1 *******/lib/5.22.1/x86_64-linux *******/lib/5.22.1 When I first tried to install MQSeries, I got the following error: t/99-pod.t .. 2/63 # Failed test 'POD test for MQSeries/Message/IIH.pm' # at Test/Pod.pm line 187. # MQSeries/Message/IIH.pm (415): Non-ASCII character seen before =encoding in 'Villag▒mez'. Assuming CP1252 # Looks like you failed 1 test of 63. t/99-pod.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/63 subtests Test Summary Report ------------------- t/99-pod.t (Wstat: 256 Tests: 63 Failed: 1) Failed test: 61 Non-zero exit status: 1 Files=1, Tests=63, 1 wallclock secs ( 0.02 usr 0.01 sys + 0.34 cusr 0.00 csys = 0.37 CPU) Result: FAIL Failed 1/1 test programs. 1/63 subtests failed. Then, I modified the file MQSeries/Message/IIH.pm to add =encoding ISO-8859-1 at the start of the file, per bug report on CPAN, I ran the install again and got the following: t/99-pod.t .. ok All tests successful. Files=1, Tests=63, 0 wallclock secs ( 0.03 usr 0.01 sys + 0.34 cusr 0.01 csys = 0.39 CPU) Result: PASS make[1]: Entering directory `build/MQSeries-1.34-SLJq6K/MQClient' PERL_DL_NONLAZY=1 "perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, '../blib/lib', '../blib/arch')" t/*.t t/10constants.t ........... ok t/20convert.t ............. Failed 5/6 subtests t/30basic.t ............... ok t/31properties.t .......... ok t/32async_put.t ........... ok t/40oo-qmgr.t ............. 3/14 MQCONN failed (Reason = 2059) (Queue manager not available for connection.) at t/40oo-qmgr.t line 38. # Failed test 'MQSeries::QueueManager - constructor' # at t/40oo-qmgr.t line 39. t/40oo-qmgr.t ............. 5/14 MQCONN failed (Reason = 2059) (Queue manager not available for connection.) at t/40oo-qmgr.t line 52. # Failed test 'MQSeries::QueueManager - Connect' # at t/40oo-qmgr.t line 58. t/40oo-qmgr.t ............. 7/14 MQCONN failed (Reason = 2059) (Queue manager not available for connection.) at t/40oo-qmgr.t line 73. # Failed test 'MQSeries::QueueManager - constructor' # at t/40oo-qmgr.t line 74. Can't call method "Open" on an undefined value at t/40oo-qmgr.t line 77. # Looks like you planned 14 tests but ran 7. # Looks like you failed 3 tests of 7 run. # Looks like your test exited with 13 just after 7. t/40oo-qmgr.t ............. Dubious, test returned 13 (wstat 3328, 0xd00) Failed 10/14 subtests t/50oo-command.t .......... ok t/51oo-command-changes.t .. ok t/52oo-command-filter.t ... ok t/60-logs.t ............... ok t/70-config.t ............. ok Test Summary Report ------------------- t/20convert.t (Wstat: 0 Tests: 2 Failed: 1) Failed test: 2 Parse errors: Bad plan. You planned 6 tests but ran 2. t/40oo-qmgr.t (Wstat: 3328 Tests: 7 Failed: 3) Failed tests: 3, 5, 7 Non-zero exit status: 13 Parse errors: Bad plan. You planned 14 tests but ran 7. Files=11, Tests=5334, 1264 wallclock secs ( 0.96 usr 0.02 sys + 1.56 cusr 0.18 csys = 2.72 CPU) Result: FAIL Failed 2/11 test programs. 4/5334 subtests failed. If I force the install, I can get it to finish the install after everything is said and done, but then I get the following error when trying to connect: MQCONN failed (Reason = 2059) (Queue manager not available for connection.) at testMQConnectivity.pl line 16. MQCONN failed (Reason = 2059) (Queue manager not available for connection.) at testMQConnectivity.pl line 16. at MQSeries/QueueManager.pm line 809. MQSeries::QueueManager::Connect(MQSeries::QueueManager=HASH(0x24a7180)) called at MQSeries/QueueManager.pm line 155 MQSeries::QueueManager::new(undef, "QueueManager", "*******", "Reason", SCALAR(0x151d4f0), "CompCode", SCALAR(0x151d610), "ClientConn", ...) called at testMQConnectivity.pl line 16 I edited the CONFIG file after pulling the data from CPAN to reference my remote MQ Queues that I can connect to using /opt/mqm/samp/bin/amqsputc or /opt/mqm/samp/bin/amqsgetc, after setting export MQSERVER=..., if I run make test TEST_VERBOSE=1 from the working CPAN directory, I see the following output: t/20convert.t: t/20convert.t ............. 1..6 ok 1 ok 2 ok 3 ok 4 MQGET failed: CompCode => 2, Reason => 2033 not ok 5 Message conversion failed. Should be: 'This msg is in EBCDIC' Is: '' not ok 6 Failed 2/6 subtests t/31properties.t: t/31properties.t .......... 1..22 ok 1 - use MQClient::MQSeries; Connecting to queue manager '*******' (MQCONN) ok 2 - MQCONN Opening queue manager for inquire ok 3 - MQOPEN - queue manager Querying queue manager attributes (MQINQ) ok 4 - MQINQ Closing queue manager object handle (MQCLOSE) ok 5 - MQCLOSE - queue manager Create message handle object (MQCRTMH) ok 6 - MQCRTMH Set message property (MQSETMP - string) ok 7 - MQSETMP - string Set message property (MQSETMP - float) ok 8 - MQSETMP - float Set message property (MQSETMP - int) ok 9 - MQSETMP - int Inquire message property (MQINQMP - float) ok 10 - MQINQMP - float ok 11 - MQINQMP - float value okay (3.14164996147156) Delete float property ok 12 - MQDLTMP - float Opening queue '*******' (MQOPEN) ok 13 - MQOPEN - queue Putting message with properties (MQPUT) ok 14 - MQPUT Create message handle object (MQCRTMH #2) ok 15 - MQCRTMH \#2 Getting message (MQGET) not ok 16 - MQGET # Failed test 'MQGET' # at t/31properties.t line 146. Inquire message property (MQINQMP - int) not ok 17 - MQINQMP - int # Failed test 'MQINQMP - int' # at t/31properties.t line 156. Use of uninitialized value $prop in concatenation (.) or string at t/31properties.t line 157. not ok 18 - MQINQMP - int value okay () # Failed test 'MQINQMP - int value okay ()' # at t/31properties.t line 157. # got: undef # expected: '42' Delete message handle (MQDLTMH) ok 19 - MQDLTMH Delete message handle (MQDLTMH #2) ok 20 - MQDLTMH \#2 Closing queue (MQCLOSE) ok 21 - MQCLOSE Disconnecting (MQDISC) ok 22 - MQDISC # Looks like you failed 3 tests of 22. Dubious, test returned 3 (wstat 768, 0x300) Failed 3/22 subtests t/32async_put.t: t/32async_put.t ........... 1..25 ok 1 - use MQClient::MQSeries; Connecting to queue manager '*******' (MQCONN) ok 2 - MQCONN Opening queue manager for inquire ok 3 - MQOPEN - queue manager Querying queue manager attributes (MQINQ) MQINQ returned: CompCode => 0, Reason => 0 ok 4 - MQINQ Closing queue manager object handle (MQCLOSE) ok 5 - MQCLOSE - queue manager Opening queue '*******' (MQOPEN) ok 6 - MQOPEN - queue Putting message #1 (async MQPUT) ok 7 - MQPUT - 1 Putting message #2 (async MQPUT) ok 8 - MQPUT - 2 Putting message #3 (async MQPUT) ok 9 - MQPUT - 3 Putting message #4 (async MQPUT) ok 10 - MQPUT - 4 Putting message #5 (async MQPUT) ok 11 - MQPUT - 5 Getting status info (MQSTAT) ok 12 - MQSTAT not ok 13 - MQSTAT result # Failed test 'MQSTAT result' # at t/32async_put.t line 120. # Structures begin differing at: # $got->{PutSuccessCount} = '5' # $expected->{PutSuccessCount} = '0' Getting message #1 (MQGET) ok 14 - MQGET - 1 ok 15 - MQGET message content - 1 Getting message #2 (MQGET) ok 16 - MQGET - 2 ok 17 - MQGET message content - 2 Getting message #3 (MQGET) ok 18 - MQGET - 3 ok 19 - MQGET message content - 3 Getting message #4 (MQGET) ok 20 - MQGET - 4 ok 21 - MQGET message content - 4 Getting message #5 (MQGET) ok 22 - MQGET - 5 ok 23 - MQGET message content - 5 Closing queue (MQCLOSE) ok 24 - MQCLOSE Disconnecting (MQDISC) ok 25 - MQDISC # Looks like you failed 1 test of 25. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/25 subtests And t/40oo-qmgr.t, which was previously failing now executes successfully: t/40oo-qmgr.t: t/40oo-qmgr.t ............. 1..14 ok 1 - use MQClient::MQSeries; ok 2 - use MQSeries::QueueManager; ok 3 - MQSeries::QueueManager - constructor ok 4 - MQSeries::QueueManager - constructor - AutoConnect=0 ok 5 - MQSeries::QueueManager - Connect ok 6 - MQSeries::QueueManager - Disconnect ok 7 - MQSeries::QueueManager - constructor ok 8 - MQSeries::QueueManager - Open ok 9 - MQSeries::QueueManager - Inquire ok 10 - MQSeries::QueueManager - Inquire - Platform ok 11 - MQSeries::QueueManager - Inquire - CodedCharSetId ok 12 - MQSeries::QueueManager - Inquire - CommandLevel ok 13 - MQSeries::QueueManager - Inquire - DeadLetterQName ok 14 - MQSeries::QueueManager - Close ok Yielding the final results: Test Summary Report ------------------- t/20convert.t (Wstat: 0 Tests: 6 Failed: 2) Failed tests: 5-6 t/31properties.t (Wstat: 768 Tests: 22 Failed: 3) Failed tests: 16-18 Non-zero exit status: 3 t/32async_put.t (Wstat: 256 Tests: 25 Failed: 1) Failed test: 13 Non-zero exit status: 1 Files=11, Tests=5345, 183 wallclock secs ( 1.02 usr 0.08 sys + 1.48 cusr 0.18 csys = 2.76 CPU) Result: FAIL Failed 3/11 test programs. 6/5345 subtests failed. Any ideas on how to get this resolved and get the package up and running? If I run /opt/mqm/samp/bin/amqsputc or /opt/mqm/samp/bin/amqsgetc, I can connect to the same host, port, channel, queue manager, and queue from this host. Thanks!
Java tests not running for sample app?
I am trying the example app computer-database and then run 'play test'. No tests are running. I am using play 2.1.3. https://github.com/playframework/playframework/tree/2.1.x/samples/java/computer-database/test $ play _ __ | | __ _ _ _| | | '_ \| |/ _' | || |_| | __/|_|\____|\__ (_) |_| |__/ play! 2.1.3 (using Java 1.7.0_25 and Scala 2.10.0), http://www.playframework.org $ play test [info] FunctionalTest [info] [info] [info] Total for test FunctionalTest [info] Finished in 0.009 seconds [info] 0 tests, 0 failures, 0 errors [info] ModelTest [info] [info] [info] Total for test ModelTest [info] Finished in 0.001 seconds [info] 0 tests, 0 failures, 0 errors [info] IntegrationTest [info] [info] [info] Total for test IntegrationTest [info] Finished in 0.0 seconds [info] 0 tests, 0 failures, 0 errors
This is a bug in 2.1.3. Here is the workaround. http://play.lighthouseapp.com/projects/82401/tickets/967-tests-are-not-discovered add this to your dependencies: "play" %% "play-test" % play.core.PlayVersion.current % "test" exclude("com.novocode", "junit-interface"), "com.novocode" % "junit-interface" % "0.9" % "test"