Skip to content

Instantly share code, notes, and snippets.

@marzzz21
Created December 13, 2016 12:27
Show Gist options
  • Save marzzz21/d8141c1b9a48175200ab127bcbe475cd to your computer and use it in GitHub Desktop.
Save marzzz21/d8141c1b9a48175200ab127bcbe475cd to your computer and use it in GitHub Desktop.
| Failure: resize should set the new image's width to the desired width
and the height to the (desiredWidth / baseAspectRatio) when
the desiredAspectRatio is lesser than the baseAspectRatio.[0](com.synacy.whitelabel.util.FileUtilsSpec)
| java.lang.OutOfMemoryError: PermGen space
at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1184)
at com.synacy.whitelabel.util.FileUtils.processImage(FileUtils.groovy:165)
at com.synacy.whitelabel.util.FileUtils.drawBaseImageToRescaledBuffer(FileUtils.groovy:131)
2016-12-13 20:24:55,569 [main] DEBUG test.TimeLoggingSpecification - slow unit test for 'resize should set the new image's width to the desired width
and the height to the (desiredWidth / baseAspectRatio) when
the desiredAspectRatio is lesser than the baseAspectRatio.[0]' [19503ms].
| Running 765 unit tests... 5095 of 5095
| Failure: resize should set the new image's width to the desired width
and the height to the (desiredWidth / baseAspectRatio) when
the desiredAspectRatio is lesser than the baseAspectRatio.[1](com.synacy.whitelabel.util.FileUtilsSpec)
| java.lang.NoClassDefFoundError: Could not initialize class sun.java2d.loops.GraphicsPrimitiveMgr
at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1184)
at com.synacy.whitelabel.util.FileUtils.processImage(FileUtils.groovy:165)
at com.synacy.whitelabel.util.FileUtils.drawBaseImageToRescaledBuffer(FileUtils.groovy:131)
at com.synacy.whitelabel.util.FileUtils.resize(FileUtils.groovy:44)
at com.synacy.whitelabel.util.FileUtilsSpec.resize should set the new image's width to the desired width
and the height to the (desiredWidth / baseAspectRatio) when
the desiredAspectRatio is lesser than the baseAspectRatio.(FileUtilsSpec.groovy:65)
| Running 765 unit tests... 5096 of 5096
| Failure: resize should set the new image's width to the desired width
and the height to the (desiredWidth / baseAspectRatio) when
the desiredAspectRatio is lesser than the baseAspectRatio.[2](com.synacy.whitelabel.util.FileUtilsSpec)
| java.lang.NoClassDefFoundError: Could not initialize class sun.java2d.loops.GraphicsPrimitiveMgr
at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1184)
at com.synacy.whitelabel.util.FileUtils.processImage(FileUtils.groovy:165)
at com.synacy.whitelabel.util.FileUtils.drawBaseImageToRescaledBuffer(FileUtils.groovy:131)
at com.synacy.whitelabel.util.FileUtils.resize(FileUtils.groovy:44)
at com.synacy.whitelabel.util.FileUtilsSpec.resize should set the new image's width to the desired width
and the height to the (desiredWidth / baseAspectRatio) when
the desiredAspectRatio is lesser than the baseAspectRatio.(FileUtilsSpec.groovy:65)
| Running 765 unit tests... 5097 of 5097
| Failure: resize should set the new image's height to the desired height
and the width to the (desiredHeight * baseAspectRatio) when
the desiredAspectRatio is greater then the baseAspectRatio.[0](com.synacy.whitelabel.util.FileUtilsSpec)
| java.lang.NoClassDefFoundError: Could not initialize class sun.java2d.loops.GraphicsPrimitiveMgr
at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1184)
at com.synacy.whitelabel.util.FileUtils.processImage(FileUtils.groovy:165)
at com.synacy.whitelabel.util.FileUtils.drawBaseImageToRescaledBuffer(FileUtils.groovy:131)
at com.synacy.whitelabel.util.FileUtils.resize(FileUtils.groovy:44)
at com.synacy.whitelabel.util.FileUtilsSpec.resize should set the new image's height to the desired height
and the width to the (desiredHeight * baseAspectRatio) when
the desiredAspectRatio is greater then the baseAspectRatio.(FileUtilsSpec.groovy:83)
| Running 765 unit tests... 5098 of 5098
| Failure: resize should set the new image's height to the desired height
and the width to the (desiredHeight * baseAspectRatio) when
the desiredAspectRatio is greater then the baseAspectRatio.[1](com.synacy.whitelabel.util.FileUtilsSpec)
| java.lang.NoClassDefFoundError: Could not initialize class sun.java2d.loops.GraphicsPrimitiveMgr
at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1184)
at com.synacy.whitelabel.util.FileUtils.processImage(FileUtils.groovy:165)
at com.synacy.whitelabel.util.FileUtils.drawBaseImageToRescaledBuffer(FileUtils.groovy:131)
at com.synacy.whitelabel.util.FileUtils.resize(FileUtils.groovy:44)
at com.synacy.whitelabel.util.FileUtilsSpec.resize should set the new image's height to the desired height
and the width to the (desiredHeight * baseAspectRatio) when
the desiredAspectRatio is greater then the baseAspectRatio.(FileUtilsSpec.groovy:83)
| Running 765 unit tests... 5099 of 5099
| Failure: resize should set the new image's height to the desired height
and the width to the (desiredHeight * baseAspectRatio) when
the desiredAspectRatio is greater then the baseAspectRatio.[2](com.synacy.whitelabel.util.FileUtilsSpec)
| java.lang.NoClassDefFoundError: Could not initialize class sun.java2d.loops.GraphicsPrimitiveMgr
at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1184)
at com.synacy.whitelabel.util.FileUtils.processImage(FileUtils.groovy:165)
at com.synacy.whitelabel.util.FileUtils.drawBaseImageToRescaledBuffer(FileUtils.groovy:131)
at com.synacy.whitelabel.util.FileUtils.resize(FileUtils.groovy:44)
at com.synacy.whitelabel.util.FileUtilsSpec.resize should set the new image's height to the desired height
and the width to the (desiredHeight * baseAspectRatio) when
the desiredAspectRatio is greater then the baseAspectRatio.(FileUtilsSpec.groovy:83)
| Running 765 unit tests... 5100 of 5100
| Running 765 unit tests... 5101 of 5101
| Running 765 unit tests... 5102 of 5102
| Running 765 unit tests... 5103 of 5103
| Failure: processImage should output an instance of BufferedImage(com.synacy.whitelabel.util.FileUtilsSpec)
| java.lang.NoClassDefFoundError: Could not initialize class sun.java2d.loops.GraphicsPrimitiveMgr
at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1184)
at com.synacy.whitelabel.util.FileUtils.processImage(FileUtils.groovy:165)
at com.synacy.whitelabel.util.FileUtilsSpec.processImage should output an instance of BufferedImage(FileUtilsSpec.groovy:132)
| Running 765 unit tests... 5104 of 5104
| Failure: processImage should output BufferedImage with size equal to the target Width/Height dimensions[0](com.synacy.whitelabel.util.FileUtilsSpec)
| java.lang.NoClassDefFoundError: Could not initialize class sun.java2d.loops.GraphicsPrimitiveMgr
at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1184)
at com.synacy.whitelabel.util.FileUtils.processImage(FileUtils.groovy:165)
at com.synacy.whitelabel.util.FileUtilsSpec.processImage should output BufferedImage with size equal to the target Width/Height dimensions(FileUtilsSpec.groovy:144)
| Running 765 unit tests... 5105 of 5105
| Failure: processImage should output BufferedImage with size equal to the target Width/Height dimensions[1](com.synacy.whitelabel.util.FileUtilsSpec)
| java.lang.NoClassDefFoundError: Could not initialize class sun.java2d.loops.GraphicsPrimitiveMgr
at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1184)
at com.synacy.whitelabel.util.FileUtils.processImage(FileUtils.groovy:165)
at com.synacy.whitelabel.util.FileUtilsSpec.processImage should output BufferedImage with size equal to the target Width/Height dimensions(FileUtilsSpec.groovy:144)
| Running 765 unit tests... 5106 of 5106
| Failure: processImage should output BufferedImage with size equal to the target Width/Height dimensions[2](com.synacy.whitelabel.util.FileUtilsSpec)
| java.lang.NoClassDefFoundError: Could not initialize class sun.java2d.loops.GraphicsPrimitiveMgr
at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1184)
at com.synacy.whitelabel.util.FileUtils.processImage(FileUtils.groovy:165)
at com.synacy.whitelabel.util.FileUtilsSpec.processImage should output BufferedImage with size equal to the target Width/Height dimensions(FileUtilsSpec.groovy:144)
| Running 765 unit tests... 5107 of 5107
| Failure: processImage should output BufferedImage with size equal to the target Width/Height dimensions[3](com.synacy.whitelabel.util.FileUtilsSpec)
| java.lang.NoClassDefFoundError: Could not initialize class sun.java2d.loops.GraphicsPrimitiveMgr
at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1184)
at com.synacy.whitelabel.util.FileUtils.processImage(FileUtils.groovy:165)
at com.synacy.whitelabel.util.FileUtilsSpec.processImage should output BufferedImage with size equal to the target Width/Height dimensions(FileUtilsSpec.groovy:144)
| Running 765 unit tests... 5108 of 5108
| Failure: convertTiffToPng should be able to convert single page tiff files(com.synacy.whitelabel.util.FileUtilsSpec)
| java.lang.NoClassDefFoundError: Could not initialize class sun.java2d.loops.GraphicsPrimitiveMgr
at java.awt.image.ConvolveOp.filter(ConvolveOp.java:196)
at com.synacy.whitelabel.util.FileUtils.blurImage(FileUtils.groovy:311)
at com.synacy.whitelabel.util.FileUtils.saveImage(FileUtils.groovy:234)
at com.synacy.whitelabel.util.FileUtils.convertTiffToPng_closure2(FileUtils.groovy:221)
at com.synacy.whitelabel.util.FileUtils.convertTiffToPng(FileUtils.groovy:216)
at com.synacy.whitelabel.util.FileUtilsSpec.convertTiffToPng should be able to convert single page tiff files(FileUtilsSpec.groovy:164)
2016-12-13 20:24:56,089 [main] DEBUG test.TimeLoggingSpecification - slow unit test for 'convertTiffToPng should be able to convert single page tiff files' [366ms].
| Running 765 unit tests... 5109 of 5109
| Failure: convertTiffToPng should be able to convert multi page tiff files(com.synacy.whitelabel.util.FileUtilsSpec)
| java.lang.NoClassDefFoundError: Could not initialize class sun.java2d.loops.GraphicsPrimitiveMgr
at java.awt.image.ConvolveOp.filter(ConvolveOp.java:196)
at com.synacy.whitelabel.util.FileUtils.blurImage(FileUtils.groovy:311)
at com.synacy.whitelabel.util.FileUtils.saveImage(FileUtils.groovy:234)
at com.synacy.whitelabel.util.FileUtils.convertTiffToPng_closure2(FileUtils.groovy:221)
at com.synacy.whitelabel.util.FileUtils.convertTiffToPng(FileUtils.groovy:216)
at com.synacy.whitelabel.util.FileUtilsSpec.convertTiffToPng should be able to convert multi page tiff files(FileUtilsSpec.groovy:185)
2016-12-13 20:24:56,222 [main] DEBUG test.TimeLoggingSpecification - slow unit test for 'convertTiffToPng should be able to convert multi page tiff files' [133ms].
2016-12-13 20:24:56,222 [main] DEBUG test.TimeLoggingSpecification - end test of class com.synacy.whitelabel.util.FileUtilsSpec
2016-12-13 20:24:56,228 [main] DEBUG test.TimeLoggingSpecification - begin test of class com.synacy.whitelabel.util.NumberUtilsSpec
| Running 765 unit tests... 5110 of 5110
| Running 765 unit tests... 5111 of 5111
| Running 765 unit tests... 5112 of 5112
| Running 765 unit tests... 5113 of 5113
2016-12-13 20:24:56,250 [main] DEBUG test.TimeLoggingSpecification - end test of class com.synacy.whitelabel.util.NumberUtilsSpec
2016-12-13 20:24:56,253 [main] DEBUG test.TimeLoggingSpecification - begin test of class com.synacy.whitelabel.util.RequestUtilsSpec
| Running 765 unit tests... 5114 of 5114
| Running 765 unit tests... 5115 of 5115
| Running 765 unit tests... 5116 of 5116
| Running 765 unit tests... 5117 of 5117
| Running 765 unit tests... 5118 of 5118
| Running 765 unit tests... 5119 of 5119
| Running 765 unit tests... 5120 of 5120
| Running 765 unit tests... 5121 of 5121
| Running 765 unit tests... 5122 of 5122
| Running 765 unit tests... 5123 of 5123
| Running 765 unit tests... 5124 of 5124
| Running 765 unit tests... 5125 of 5125
| Running 765 unit tests... 5126 of 5126
| Running 765 unit tests... 5127 of 5127
| Running 765 unit tests... 5128 of 5128
| Running 765 unit tests... 5129 of 5129
| Running 765 unit tests... 5130 of 5130
| Running 765 unit tests... 5131 of 5131
| Running 765 unit tests... 5132 of 5132
| Running 765 unit tests... 5133 of 5133
| Running 765 unit tests... 5134 of 5134
| Running 765 unit tests... 5135 of 5135
| Running 765 unit tests... 5136 of 5136
| Running 765 unit tests... 5137 of 5137
| Running 765 unit tests... 5138 of 5138
| Running 765 unit tests... 5139 of 5139
| Running 765 unit tests... 5140 of 5140
| Running 765 unit tests... 5141 of 5141
| Running 765 unit tests... 5142 of 5142
| Running 765 unit tests... 5143 of 5143
| Running 765 unit tests... 5144 of 5144
| Running 765 unit tests... 5145 of 5145
| Running 765 unit tests... 5146 of 5146
| Running 765 unit tests... 5147 of 5147
| Running 765 unit tests... 5148 of 5148
| Running 765 unit tests... 5149 of 5149
| Running 765 unit tests... 5150 of 5150
| Running 765 unit tests... 5151 of 5151
| Running 765 unit tests... 5152 of 5152
| Running 765 unit tests... 5153 of 5153
| Running 765 unit tests... 5154 of 5154
| Running 765 unit tests... 5155 of 5155
| Running 765 unit tests... 5156 of 5156
| Running 765 unit tests... 5157 of 5157
| Running 765 unit tests... 5158 of 5158
| Running 765 unit tests... 5159 of 5159
| Running 765 unit tests... 5160 of 5160
| Running 765 unit tests... 5161 of 5161
| Running 765 unit tests... 5162 of 5162
| Running 765 unit tests... 5163 of 5163
| Running 765 unit tests... 5164 of 5164
| Running 765 unit tests... 5165 of 5165
| Running 765 unit tests... 5166 of 5166
| Running 765 unit tests... 5167 of 5167
| Running 765 unit tests... 5168 of 5168
| Running 765 unit tests... 5169 of 5169
| Running 765 unit tests... 5170 of 5170
| Running 765 unit tests... 5171 of 5171
| Running 765 unit tests... 5172 of 5172
| Running 765 unit tests... 5173 of 5173
| Running 765 unit tests... 5174 of 5174
| Running 765 unit tests... 5175 of 5175
| Running 765 unit tests... 5176 of 5176
| Running 765 unit tests... 5177 of 5177
| Running 765 unit tests... 5178 of 5178
| Running 765 unit tests... 5179 of 5179
| Running 765 unit tests... 5180 of 5180
| Running 765 unit tests... 5181 of 5181
| Running 765 unit tests... 5182 of 5182
| Running 765 unit tests... 5183 of 5183
2016-12-13 20:24:56,534 [main] DEBUG test.TimeLoggingSpecification - end test of class com.synacy.whitelabel.util.RequestUtilsSpec
2016-12-13 20:24:56,536 [main] DEBUG test.TimeLoggingSpecification - begin test of class com.synacy.whitelabel.util.WebRequestUtilsSpec
| Running 765 unit tests... 5184 of 5184
2016-12-13 20:24:56,598 [main] DEBUG test.TimeLoggingSpecification - end test of class com.synacy.whitelabel.util.WebRequestUtilsSpec
| Completed 5184 unit tests, 7 failed in 27m 38s
| Tests FAILED - view reports in /home/mihael/whitelabel/target/test-reports
| Error Forked Grails VM exited with error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment