AnsweredAssumed Answered

Problem with printing a file

Question asked by bairathi.vivek on Apr 17, 2013
Hi,

I have used PrintSession Class for sending a Print of a file to a remote server but i am getting ClassCastException at the time of closing the file in CIFSFile.java - Close(SMBDate wrDateTime) - function.

The exception is coming at the following line in Close function:
CIFSDiskSession diskSess = (CIFSDiskSession) m_sess;
where "m_sess" is a Session class object which contains CIFSPrintSession object.

Here, CIFSDiskSession class extends DiskSession class which extends Session Class.
Also, CIFSPrintSession class extends PrintSession class which extends Session class.

Please help in resolving the above issue.

Thanks in advance.

Outcomes