• ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
Seize the moment! nominate yourself or a tech enthusiast you admire & join the HP Community Experts!
HP Recommended
Hp LaserJet M402dne
Microsoft Windows 7 (64-bit)

Hi 

i get this error when i print 

"pcl xl error 

subsystem   :  kernel

error               :   illegalAttribute

file name      :   kerlib.c

line number :  4239

1 REPLY 1
HP Recommended

If the error is repeatable (i.e. exactly the same when reprinting the same document, using the same driver, to the same device), then it is likely that it is caused by a driver (or driver settings) fault.

 

Changing some settings may (but, of course, may not) help - but identifying which one(s) is problematic.

 

There may be a more up-to-date driver available, or (depending on the printer model) you may perhaps be able to switch to a driver using a different Page Description Language (i.e. PCL5 or PostScript instead of PCL6 (the 'marketing' name for the PCL XL PDL)).

 

If the error(s) is/are random, they are much more likely to be the result of intermittent corruptions of the generated print stream between the workstation and the device (check cables, ports, switches, etc.).

 

 

With earlier generations of LaserJet printer, the format of the PCL XL error was slightly different (and conformed to the published language specification); e.g.:

PCL XL Error
  Subsystem: Kernel
  Error:     IllegalAttribute
  Operator:  BeginPage
  Position:  173

 With this information, it was possible to compare a (repeatable) error with an analysis of a print stream (captured using the 'print to file' option), and (sometimes) work out what was wrong with the operator at the given position (which indicated the count of operators up to and including the erroneous one), and hence (perhaps) to lead to a workaround.

 

With the current generation  of printers, and the revised error message format, the File Name and Line Number values are only meaningful if you have access to the firmware source code (i.e. HP and/or whoever they sub-contract to write the firmware).

† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.