Printing problems

Hi!

I have a printing problem with Java Studio 8. My printer prints the banner page OK, but after that it stops for a while, and restart printing the banner page. Sun Studio 11 have this problem to, on my computer. The problem is that I can print documents from StarOffice 8 and ArcoRead 7. I use an HP DeskJet 970 Cxi connected to USB port on my computer, SUN Blade 100 an Solaris 10 6/06, and the latest patches. Any ideas? I have added a Adaptec USB2 Connect for better perfomance with USB memory sticks. The java verison I use is:

java version "1.5.0_08"

Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_08-b03)

Java HotSpot(TM) Client VM (build 1.5.0_08-b03, mixed mode, sharing)

I tried a java printing program from SimpleBook, and the problem persist.

Greetings

Lee

[834 byte] By [MrLeea] at [2007-10-3 4:48:41]
# 1
Have you ever thought your code could be the guilty part ?Posting it here would help us answer this question...
Franck_Lefevrea at 2007-7-14 22:53:09 > top of Java-index,Security,Cryptography...
# 2

Hi!

The problem is printing from the Java Enterprise Editor, and the built-in editor in Sun Studio 11. This is a part from the log-file in /var/lp/logs/lpsched:

09/12 20:51:37: Bad exit from interface program for printer Hagbard: 141

09/12 20:51:37: printer fault. type: write root, status: 14

msg: (The interface program returned with a reserved exit code.)

I think the problem is in the JRE. There was no problems with earlier releases of the JDK. Here is a simple example that I am not able to print from the IDE.

/*

* Main.java

*

* Created on September 9, 2006, 9:08 PM

*

* To change this template, choose Tools | Options and locate the template under

* the Source Creation and Management node. Right-click the template and choose

* Open. You can then make changes to the template in the Source Editor.

*/

package lucystar;

public class Main {

/** Creates a new instance of Main */

public Main () {

}

/**

* @param args the command line arguments

*/

public static void main (String[] args) {

//

String[] stars = {"Robert Redford", "Marilyn Monroe", "Boris Karloff",

"Lassie", "Ingrid Bergman", "Greta Garbo"};

System.out.println("Star of the day is: "

+ stars[(int)(stars.length * Math.random())]);

}

}

I use Sun Java Studio in programming course for the moment, and I'm begin to little

... :-(

Regards

Lee

MrLeea at 2007-7-14 22:53:09 > top of Java-index,Security,Cryptography...
# 3

This thread has nothing to do with Java 2D... moreover, the error log seems to show that it's not even related to Java.

>09/12 20:51:37: Bad exit from interface program for printer Hagbard: 141

>09/12 20:51:37: printer fault. type: write root, status: 14

>msg: (The interface program returned with a reserved exit code.)

Franck_Lefevrea at 2007-7-14 22:53:09 > top of Java-index,Security,Cryptography...