Xerox Global Print Driver fails to upload: HTTP Status 500

  • 7007340
  • 08-Dec-2010
  • 11-Sep-2012

Environment

Novell iPrint for Linux Open Enterprise Server 2 Support Pack 2
Novell iPrint for NetWare Novell NetWare 6.5 Support Pack 8

Situation

The Xerox Global Print Driver fails to upload to the Linux Driver Store and NetWare Broker with the following error:
Note: The NetWare Broker error differs only in the last part of the java.lang.NullPointerExcpetion section.

HTTP Status 500
type Exception report
message description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.NullPointerException
com.novell.emframe.fw.servlet.AuthenticatorServlet.service(AuthenticatorServlet.java:355)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

note The full stack trace of the root cause is available in the Apache Tomcat/5.5.27 logs.

Resolution

OES2 Instructions: From the server hosting iManager:

  1. Edit the /usr/share/tomcat5/bin/catalina.sh file by appending the following to the JAVA_OPTS section:
    • -Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xmx512m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:+DisableExplicitGC"
    • Note: After appending the file, the complete JAVA_OPTS section will look like:
      • JAVA_OPTS="$JAVA_OPTS -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xmx512m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:+DisableExplicitGC"
  2. Restart Tomcat
    rcnovell-tomcat5 restart 
  3. Upload the Xerox Global Print Driver.
    • This will take a long time, possibly up to 10 minutes. iManager will return an Apache 503 error, however, the driver will continue to upload. There will be no inidication from iManager that driver has completed uploading. You can verify the driver has completed uploading by listing the contents of /var/opt/novell/iprint/resdir/driver_windows-nt-[OS TYPE]
OES11 Instructions: From the server hosting iManager:
  1. Find the following line within the /usr/share/tomcat6/bin/catalina.sh file 
    • CLASSPATH="${CLASSPATH}:$(build-classpath commons-daemon 2>/dev/null)"
  2. Below that line, add the following JAVA_OPTS section:
    • JAVA_OPTS="$JAVA_OPTS -Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xmx512m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:+DisableExplicitGC"
  3. Restart Tomcat
    • rcnovell-tomcat6 restart
  4. Upload the Xerox Global Print Driver
    • This will take a long time, possibly up to 10 minutes. iManager will return an Apache 503 error, however, the driver will continue to upload. There will be no inidication from iManager that driver has completed uploading. You can verify the driver has completed uploading by listing the contents of /var/opt/novell/iprint/resdir/driver_windows-nt-[OS TYPE]
 
NetWare Instructions: From the server hosting iManager:
  1. Edit the iManagerServer\sys\tomcat\5.0\bin\tomcat5.ncf by changing -Xmx256m string to -Xmx512m .
  2. Restart Tomcat
    • tc5stop
    • tomcat5
  3. Wait a few minutes (Tomcat takes a while to start)
  4. Upload the driver. The driver will take a long time to upload.

Additional Information

This issue arises when a driver takes too long to upload.  The length of time it takes to upload is a function of a) size of the driver, and b) network speed.  Either variable (or both) can result in the symptom documented above.  Therefore, this problem can exist with drivers other than the Xerox Global Print driver.  The Xerox Global Print driver happens to be larger than most other drivers, and therefore the issue is most commonly see with it.