Security error

1,382 views
Skip to first unread message

David Ben Eliahu

unread,
Apr 18, 2013, 5:41:00 PM4/18/13
to jzebra...@googlegroups.com
Hi all
I got this erro message when loading the jzebra applet

uncaught exception: Liveconnect call for Applet ID 6 is not allowed in this JVM instance

any Ideas ?  it worked perfectly some tim ago
this is happaning to many of my customers
Regards


David

Tres Finocchiaro

unread,
Apr 18, 2013, 5:43:49 PM4/18/13
to jZebra users

This is caused by the latest java update.  You can rollback to an older version or wait for a workaround to be released.

See also issue 126:
http://code.google.com/p/jzebra/issues/detail?id=126

--
--
To unsubscribe from this group, send email to jzebra-users...@googlegroups.com
 
http://code.google.com/p/jzebra
 
---
You received this message because you are subscribed to the Google Groups "jZebra users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jzebra-users...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

capp...@yahoo.com

unread,
Apr 18, 2013, 6:06:27 PM4/18/13
to jzebra...@googlegroups.com
Hi Tres,

Do you know that whether this happens with signed applets?

Bahadir


From: Tres Finocchiaro <tres.fin...@gmail.com>
To: jZebra users <jzebra...@googlegroups.com>
Sent: Friday, 19 April 2013, 0:43
Subject: Re: [jZebra] Security error

Tres Finocchiaro

unread,
Apr 18, 2013, 10:07:37 PM4/18/13
to jzebra...@googlegroups.com
Bahadir,

Do you know that whether this happens with signed applets?

I do not know.  As you are well aware, jzebra is signed using a self-generated certificate.  I will attempt to generate a new one tonight to see if it is related to the default keystore used.

I would be willing to use a trusted signature, but I do not own one and obtaining one is expensive.

It requires a change to the PC, but a temporary work-around is located here:


-Tres

capp...@yahoo.com

unread,
Apr 18, 2013, 10:28:57 PM4/18/13
to jzebra...@googlegroups.com
Hello Tres,

I don't know why but our javascript caller from applet works with JSObject class (with a signed applet), although the netscape.*, netscape.javascript.* classes are deprecated now. I think it still is not removed. Maybe it helps for a quick workaround but I am sure on the next update they'll remove it to annoy me even further :)

Bahadir


From: Tres Finocchiaro <tres.fin...@gmail.com>
To: jzebra...@googlegroups.com
Sent: Friday, 19 April 2013, 5:07

Tres Finocchiaro

unread,
Apr 18, 2013, 10:32:34 PM4/18/13
to jzebra...@googlegroups.com
Bahadir,

Are you on Java 7 u21?  If so, would you be willing to test a fix for me?

-Tres

capp...@yahoo.com

unread,
Apr 18, 2013, 10:54:08 PM4/18/13
to jzebra...@googlegroups.com
Hello Tres,

Yes I have 1.7.21. I can test it.

Bahadir 


From: Tres Finocchiaro <tres.fin...@gmail.com>
To: jzebra...@googlegroups.com
Sent: Friday, 19 April 2013, 5:32

Tres Finocchiaro

unread,
Apr 18, 2013, 11:04:01 PM4/18/13
to jzebra...@googlegroups.com
https://jzebra.googlecode.com/files/jZebra_1.4.7.zip

PDF is broken, but the rest should work again.

-Tres

capp...@yahoo.com

unread,
Apr 18, 2013, 11:16:43 PM4/18/13
to jzebra...@googlegroups.com
Hello Tres,

It works, here is the output of Java Console:


Java Plug-in 10.21.2.11
Using JRE version 1.7.0_21-b11 Java HotSpot(TM) Client VM
User home directory = C:\Users\PlatinDev
----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
l:   dump classloader list
m:   print memory usage
o:   trigger logging
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
x:   clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
Apr 19, 2013 6:14:07 AM jzebra.LogIt log
INFO: jZebra 1.4.7
Apr 19, 2013 6:14:07 AM jzebra.LogIt log
INFO: ===== JAVASCRIPT LISTENER THREAD STARTED =====
Apr 19, 2013 6:14:07 AM jzebra.LogIt log
INFO: ===== SEARCHING FOR PRINTER =====
Apr 19, 2013 6:14:07 AM jzebra.LogIt log
INFO: Found 5 attached printers.
Apr 19, 2013 6:14:07 AM jzebra.LogIt log
INFO: Printer specified: \Qepson tm\E
Apr 19, 2013 6:14:07 AM jzebra.LogIt log
INFO: Printer name match: EPSON TM-T70 Receipt
Apr 19, 2013 6:14:07 AM jzebra.LogIt log
INFO: Using best match: EPSON TM-T70 Receipt
Apr 19, 2013 6:14:07 AM jzebra.LogIt log
WARNING: Tried calling JavaScript "jzebraDoneFinding" through web browser and failed (No such method "jzebraDoneFinding" on JavaScript object)
Apr 19, 2013 6:14:12 AM jzebra.LogIt log
INFO: ===== SEARCHING FOR PRINTER =====
Apr 19, 2013 6:14:12 AM jzebra.LogIt log
INFO: Found 5 attached printers.
Apr 19, 2013 6:14:12 AM jzebra.LogIt log
INFO: Printer specified: \Qzebra\E
Apr 19, 2013 6:14:12 AM jzebra.LogIt log
WARNING: Printer not found: \Qzebra\E
Apr 19, 2013 6:14:12 AM jzebra.LogIt log
WARNING: Ignoring null PrintService
Apr 19, 2013 6:14:12 AM jzebra.LogIt log
WARNING: Tried calling JavaScript "jzebraDoneFinding" through web browser and failed (No such method "jzebraDoneFinding" on JavaScript object)
Apr 19, 2013 6:14:17 AM jzebra.LogIt log
INFO: Current printer charset encoding: windows-1252
Apr 19, 2013 6:14:17 AM jzebra.LogIt log
INFO: ===== SENDING DATA TO THE PRINTER =====
Apr 19, 2013 6:14:17 AM jzebra.LogIt log
INFO: 

A590,1600,2,3,1,1,N,"jZebra 1.4.7 sample.html"
A590,1570,2,3,1,1,N,"Testing the print() function"
P1



Apr 19, 2013 6:14:17 AM jzebra.LogIt log
INFO: Sending print job to printer: "EPSON TM-T70 Receipt"
Apr 19, 2013 6:14:17 AM jzebra.LogIt log
INFO: Print job data transfer complete.
Apr 19, 2013 6:14:17 AM jzebra.LogIt log
INFO: Print job has no more events.
Apr 19, 2013 6:14:17 AM jzebra.LogIt log
INFO: Print job received by printer: "EPSON TM-T70 Receipt"
Apr 19, 2013 6:14:17 AM jzebra.LogIt log
WARNING: Tried calling JavaScript "jzebraDonePrinting" through web browser and failed (No such method "jzebraDonePrinting" on JavaScript object)
Apr 19, 2013 6:14:19 AM jzebra.LogIt log
INFO: ===== SENDING DATA TO THE PRINTER =====
Apr 19, 2013 6:14:19 AM jzebra.LogIt log
INFO: 

A590,1600,2,3,1,1,N,"jZebra 1.4.7 sample.html"
A590,1570,2,3,1,1,N,"Testing the print() function"
P1



Apr 19, 2013 6:14:19 AM jzebra.LogIt log
INFO: Sending print job to printer: "EPSON TM-T70 Receipt"
Apr 19, 2013 6:14:19 AM jzebra.LogIt log
INFO: Print job data transfer complete.
Apr 19, 2013 6:14:19 AM jzebra.LogIt log
INFO: Print job has no more events.
Apr 19, 2013 6:14:19 AM jzebra.LogIt log
INFO: Print job received by printer: "EPSON TM-T70 Receipt"
Apr 19, 2013 6:14:19 AM jzebra.LogIt log
WARNING: Tried calling JavaScript "jzebraDonePrinting" through web browser and failed (No such method "jzebraDonePrinting" on JavaScript object)


Bahadir


From: Tres Finocchiaro <tres.fin...@gmail.com>
To: jzebra...@googlegroups.com
Sent: Friday, 19 April 2013, 6:04

Tres Finocchiaro

unread,
Apr 18, 2013, 11:20:52 PM4/18/13
to jzebra...@googlegroups.com
Great, thanks.

The fix was to change the MANIFEST.MF to have Trusted-Librarytrue instead of Trusted-Onlytrue.

Oracle's explanation for this is to allow Trusted (jzebra) and Untrusted (pdf-renderer) code to be able to both be used within the same project.

Unfortunately, I'll have to find a new way to invoke PDF-RENDERER because now it says "ClassNotFoundException" when printpdf button is pushed.

Thanks very much for your help. :)

-Tres
Reply all
Reply to author
Forward
0 new messages