githubashto / jzebra

Automatically exported from code.google.com/p/jzebra
0 stars 1 forks source link

Issues to get jzebra to work with the sample.html #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. did got jZebra 1.1.3.zip installed it on my server but when I try to open 
the sample html file I get already an error in the java 
applet(https://www.skepr.net/xraw/sample.html) 
2.
3.

What is the expected output? What do you see instead?
that I could use the the sample file to see if it works

What version of the product are you using? On what operating system?
1.1.3 of jZebra, it didn't work on firefox (3.6.13) and internet explorer 
(9.0.730.16406) and have windows 7 as operating system. Java is also the newest 
version 1.6.0_20-b02

Please provide any additional information below.

java.lang.ClassFormatError: Incompatible magic value 1008813135 in class file 
jzebra/PrintApplet
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(Unknown Source)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Exception: java.lang.ClassFormatError: Incompatible magic value 1008813135 in 
class file jzebra/PrintApplet

Original issue reported on code.google.com by aeg....@gmail.com on 1 Feb 2011 at 9:47

GoogleCodeExporter commented 9 years ago
Dothosting,

Are you running multiple versions of Java on your Windows 7 machine?

Also, can you try running the sample.html from your client machine without 
uploading it to the web server?

The link you provided to sample.html does not seem to work so I am unable to 
reproduce your error.

Here is someone with a similar problem, but the solution is not very clear.

http://www.codeguru.com/forum/archive/index.php/t-295485.html

-Tres

Original comment by tres.fin...@gmail.com on 1 Feb 2011 at 4:51

GoogleCodeExporter commented 9 years ago
Hi Tres,

thank thank you for the fast response,
No I'm not running multiple java's on my machine
https://skepr.net/rawx/sample.html sorry my mistake with the url this is the 
right one.
But your right. There are 2 versions of java on my machine. A 64bit and 32bit. 
Also tried it on a different laptop but had the same problem. But this has only 
installed 1 java.
Will check the link you provided.

Hans

Original comment by aeg....@gmail.com on 1 Feb 2011 at 5:02

GoogleCodeExporter commented 9 years ago
Dothosting,

The applet is showing as digitally signed by skepr.net.  Did you recompile 
1.1.3?  What did you use?

When I try to load "https://skepr.net/rawx/jzebra.jar" from a web browser, it 
goes to a login page.

When I right click --> save target as, for "https://skepr.net/rawx/sample.html" 
it seems to be much smaller than the original file:

02/01/2011  01:49 PM             3,221 jzebra_dothosting.jar
01/27/2011  12:45 AM            62,610 jzebra_orig.jar

-Tres

Original comment by tres.fin...@gmail.com on 1 Feb 2011 at 6:57

GoogleCodeExporter commented 9 years ago
Hi Tres,

Thanks a lot. Without giving the answer you gave me the answer.
Forgot to put the .jar in my .htaccess to exclude change my files
RewriteRule !\.(css|js|jpg|png|gif|inp|php|html|dll|htm|jar)$ index.php

;) Didn't recompile should I?

Hans

Original comment by aeg....@gmail.com on 1 Feb 2011 at 8:56

GoogleCodeExporter commented 9 years ago
Great.  No need to recompile.  Some of the larger companies do to suppress the 
Security Dialog.

Its working for me now as well.  Glad I could (sort of) help!  Marking ticket 
as "invalid".

-Tres

Original comment by tres.fin...@gmail.com on 2 Feb 2011 at 3:27