When running Java Servlets in headless mode, errors similar to the following
may be received:
java.awt.HeadlessException at java.applet.Applet.<init>
This issue applies to the
Java Barcode Servlet
This issue was corrected in the June 2004 release of IDAutomation
Java Barcode Products.
Download
the current version of this product with an active
Priority Support
& Upgrade Subscription.
If this error occurs, it may be that the JDK being used
does not allow instantiation of an Applet in a headless environment. While
the applet is not visible in the browser when creating barcodes with the
servlet, the IDAutomation Java barcode servlet uses the applet for several
processing functions.
There are 4 solutions:
- Obtain the latest product as described above.
- Use the IDAutomation secure servlet to create the barcodes without
using applet. There is a working example in the Linear Source Code.zip
file, which is in the
Linear Java Barcode
Package. The file name is IDAutomationSecureServlet.java.
- Obtain an update to the JDK that will allow instantiation of an
applet.
- Run the servlet on another system that does not have this problem.
|
© Copyright 2000-2009 IDAutomation.com, Inc.,
All Rights Reserved.
Legal Notices.
|
Over 70% of Fortune
100 companies use IDAutomation's products to automate their
businesses.
|
|
|