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/16 19:09:43 UTC

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

[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
            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.


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

Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-5138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexei Zakharov reassigned HARMONY-5138:
----------------------------------------

    Assignee: Andrey Pavlenko

> [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.


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

Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
     [ 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.


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

Posted by "Andrey Pavlenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-5138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrey Pavlenko resolved HARMONY-5138.
--------------------------------------

    Resolution: Fixed

Fixed at revision 596601. Please verify.

> [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.