Rahul,

I believe adding 1.0 support is quite straightforward. You might want
commenting exception throwing in IppPrinter.java to detect the next
place where your internet printer would miscomunicate to the client.

Thanks.


On Tue, Sep 9, 2008 at 11:41 AM, Srivastava, Rahul Kumar
<[EMAIL PROTECTED]> wrote:
> Hi  Alexei ,
>  Thanks for your response, well it's clear to me now, adding to it, is there 
> a way we can change Harmony to support both 1.0 and 1.1 , the reason is all 
> third party tool like ShineSoft, Xerox IPP Client they support to both 1.0 
> and 1.1 version.
> I have seen the request/response header for both the protocol which are quiet 
> similar, can we make the IPP client to work and support both 1.0 and 1.1?
>
> Regards,
> Rahul
>
> -----Original Message-----
> From: Alexei Fedotov [mailto:[EMAIL PROTECTED]
> Sent: Monday, September 08, 2008 9:13 PM
> To: [email protected]
> Subject: Re: Error in printing on the remote printer
>
> Hello Rahul,
> Let me try linking your picture to the code.
>
>> any idea to which IPP version the Harmony CUPS client supports? Is it 1.0 or 
>> 1.1 or both?
> Harmony asks printer to support 1.1 version:
>> working_classlib/modules/print/src/main/java/common/org/apache/harmony
>> /x/print/ipp/IppPrinter.java: request.setVersion(1, 1);
>
> The printer responds:
>> IPP version: 1.0
>> Operation id/Status code: 0x503
> 0x503 server-error-version-not-supported
>
> Harmony does not continue with 1.0 printer and fails with the exception.
> Thanks.
>
> [1] IPP 1.0, http://www.ietf.org/rfc/rfc2910.txt?number=2910
> [2] IPP 1.1, http://www.ietf.org/rfc/rfc2910.txt?number=3380
> [3] 0x503 status, http://www.shinesoft.com/ipr/readme.txt
>
> On Mon, Sep 8, 2008 at 7:05 PM, Srivastava, Rahul Kumar <[EMAIL PROTECTED]> 
> wrote:
>> Hi Friends,
>>  Any help here?, It's really urgent.
>>
>> Regards,
>> Rahul
>>
>> _____________________________________________
>> From:   Srivastava, Rahul Kumar
>> Sent:   Monday, September 08, 2008 12:13 PM
>> To:     '[email protected]'
>> Subject:        RE: Error in printing on  the remote printer
>>
>> Hi Tim,
>>  Thanks a lot for your respones, any idea to which IPP version the Harmony 
>> CUPS client supports ? Is it 1.0 or 1.1 or both?
>>  Actually earlier there was an issue related to the port number,the printer 
>> was configured for port 80 rather than 631. When I fixed that, I was able to 
>> contact to the remote printer but now I am getting the following error :-To 
>> me it looks like a version issue.
>>
>>
>> javax.print.PrintException:
>> org.apache.harmony.x.print.ipp.IppException: Can't use ipp printer
>> <http://........> IPP version: 1.0 Operation id/Status code: 0x503
>> Request id: 0x1
>> ---- Attributes group: 0x1(Operation Attributes) attribute tag:
>> 0x47(CHARACTERSTRING) attribute name: attributes-charset
>> utf-8
>>
>> attribute tag: 0x48(CHARACTERSTRING)
>> attribute name: attributes-natural-language en-us
>>
>> attribute tag: 0x41(CHARACTERSTRING)
>> attribute name: status-message
>> Server: (503) Version Not Supported
>>
>> Regards,
>> Rahul
>>
>> -----Original Message-----
>> From: Tim Ellison [mailto:[EMAIL PROTECTED]
>> Sent: Sunday, September 07, 2008 12:48 AM
>> To: [email protected]
>> Subject: Re: Error in printing on the remote printer
>>
>> Srivastava, Rahul Kumar wrote:
>>> Hi , I am trying to print on an Internet printer through the CUPS
>>> client, but not able to go through that. I am getting the following
>>> error .Though whenever I am trying to access a printer which lies
>>> within my local area network then I am not getting this error, and
>>> printing going through. I try using some third party tool like Xerox
>>> IPP Client tool and it is working perfectly. Any idea what is this
>>> issue ?Thanks a lot for your help.
>>
>> Not immediately, but I can help take a look if nobody else steps in.
>>
>> Regards,
>> Tim
>>
>>> javax.print.PrintException:
>>> org.apache.harmony.x.print.ipp.IppException: Can't use ipp printer
>>> <http://........> IPP version: 60.72 Operation id/Status code: 0x544d
>>> Request id: 0x4c3e3c48
>>>
>>> at
>>> org.apache.harmony.x.print.cups.CUPSClient.<init>(CUPSClient.java:101
>>> )
>>>  at
>>> org.apache.harmony.x.print.cups.TestCUPSClient.main(TestCUPSClient.ja
>>> v
>>> a:46)  Caused by: org.apache.harmony.x.print.ipp.IppException: Can't
>>> use ipp printer <http://........> IPP version: 60.72 Operation
>>> id/Status
>>> code: 0x544d Request id: 0x4c3e3c48
>>>
>>> at
>>> org.apache.harmony.x.print.ipp.IppPrinter.<init>(IppPrinter.java:87)
>>> at
>>> org.apache.harmony.x.print.cups.CUPSClient.<init>(CUPSClient.java:98)
>>>  ... 1 more
>>>
>>
>>
>
>
>
> --
> With best regards,
> Alexei
>



-- 
With best regards,
Alexei

Reply via email to