It looks like a different problem from what we see in build. The build has some 
sort of static initialisation race condition, whereas this is an exception from 
loading an embedded profile with ICC_Profile.getInstance().

It looks like we might want to add NullPointerException to the list of 
RuntimeException subclasses which we catch in PDICCBased.loadICCProfile(). That 
way we can gracefully fall back to the alternate color space.

— John

> On 15 May 2015, at 12:56, Tilman Hausherr <[email protected]> wrote:
> 
> I sometimes get this exception when using Tim's rackspace sponsored server, 
> which runs 8 preflight threads in parallel. This may or may not be related to 
> the test failures in the build.
> 
> java.lang.NullPointerException
>    at 
> java.awt.color.ICC_Profile.activateDeferredProfile(ICC_Profile.java:1090)
>    at java.awt.color.ICC_Profile$1.activate(ICC_Profile.java:744)
>    at 
> sun.java2d.cmm.ProfileDeferralMgr.activateProfiles(ProfileDeferralMgr.java:95)
>    at java.awt.color.ICC_Profile.getInstance(ICC_Profile.java:777)
>    at java.awt.color.ICC_Profile.getInstance(ICC_Profile.java:1017)
>    at 
> org.apache.pdfbox.pdmodel.graphics.color.PDICCBased.loadICCProfile(PDICCBased.java:118)
>    at 
> org.apache.pdfbox.pdmodel.graphics.color.PDICCBased.<init>(PDICCBased.java:88)
>    at 
> org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace.create(PDColorSpace.java:160)
>    at 
> org.apache.pdfbox.pdmodel.PDResources.getColorSpace(PDResources.java:111)
>    at 
> org.apache.pdfbox.preflight.process.reflect.SinglePageValidationProcess.validateColorSpaces(SinglePageValidationProcess.java:123)
>    at 
> org.apache.pdfbox.preflight.process.reflect.SinglePageValidationProcess.validate(SinglePageValidationProcess.java:83)
>    at 
> org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:83)
>    at 
> org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:55)
>    at 
> org.apache.pdfbox.preflight.process.PageTreeValidationProcess.validatePage(PageTreeValidationProcess.java:59)
>    at 
> org.apache.pdfbox.preflight.process.PageTreeValidationProcess.validate(PageTreeValidationProcess.java:47)
>    at 
> org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:83)
>    at 
> org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:121)
>    at 
> org.apache.pdfbox.preflight.PreflightDocument.validate(PreflightDocument.java:164)
>    at 
> com.mycompany.preflightmasstest.PreflightChecker.run(PreflightChecker.java:49)
>    at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>    at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>    at java.lang.Thread.run(Thread.java:745)
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 

Reply via email to