You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexei Zakharov (JIRA)" <ji...@apache.org> on 2007/11/20 15:17:43 UTC

[jira] Closed: (HARMONY-5138) [classlib][print] HashAttributeTest fails if no default printer defined

     [ https://issues.apache.org/jira/browse/HARMONY-5138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexei Zakharov closed HARMONY-5138.
------------------------------------


Your patch fixes the issue. Thanks Andrey!

> [classlib][print] HashAttributeTest fails if no default printer defined
> -----------------------------------------------------------------------
>
>                 Key: HARMONY-5138
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5138
>             Project: Harmony
>          Issue Type: Bug
>         Environment: Wind32
>            Reporter: Alexei Zakharov
>            Assignee: Andrey Pavlenko
>            Priority: Critical
>
> The following two tests from javax.print.attribute.HashAttributeTest class fail if no default printer was defined in Windows system:
> testAdd2
> testEquals 
> Stacktrace:
> java.lang.NullPointerException: Text is null at javax.print.attribute.TextSyntax.<init>(TextSyntax.java:32) at javax.print.attribute.standard.PrinterName.<init>(PrinterName.java:29) at org.apache.harmony.x.print.WinPrintService.getAttributes(WinPrintService.java:143) at javax.print.attribute.HashAttributeTest.testAdd2(HashAttributeTest.java:126) at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
> This issue was caused by this two commits: 
> 593524 (Print service implementation (HARMONY-5083)) <- VM crash after this commit
> 594925 (Reimplemented getDefaultPrinterName() because the current implementation uses GetDefaultPrinterW which causes an error on some systems) <- Vm crash disappeared. However, now we have some issues with initialization of PrintService's since it calls PrinterName with null name.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.