views:

31

answers:

1

Hello,

I have a small java application that prints a label on a Zebra printer. When the port is made to an applet, (app => applet) nothing comes out from the printer.

Any ideas why this is happening?

  • The printer 'lookup' process is completed successfully from the java applet and the printer is found
  • The command string to be sent is constructed properly...

but when the command is sent, nothing comes out.

Note: While the application was developed, when there was an error in the command string, nothing happened, or the printer seemed to be responding but not printing anything.

Is this a security issue? If it is, can anyone point to the right direction for solving this problem? (resources, books, tips - all welcome)

Regards,

A: 

Enable the java console and see what exception is thrown by your code.

Thorbjørn Ravn Andersen
thanks for the reply. No exceptions are thrown. Command string is OK. Don't know if it's the non-latin chars. They should not be a problem but I am just wondering...
andreas
Have you enabled trace mode in the Java Console? Does this run in the appletviewer?
Thorbjørn Ravn Andersen
Trace mode is enabled. Haven't tried the appletviewer (will look into it).
andreas
Found the problem. Although the applet requested access to the printer it had to be singed in order to work. Maybe this is standard procedure but i thought i didn't have to sign it. Thanks for the answer + comments
andreas
How did you find out? (and, yes, you do need to sign to get out of the sandbox)
Thorbjørn Ravn Andersen