Page 2 of 4

Re: Puzzle

PostPosted: Tue, 10Jan26 05:44
by Greebo
Weird! Having shut down and restarted Firefox I still get a failed app but the

java.lang.NoClassDefFoundError: Could not initialize class org.secretpaste.jigsaw.JigsawNoseFactory
at org.secretpaste.jigsaw.PuzzleMatrix.(Unknown Source)
at org.secretpaste.jigsaw.PuzzlePanel.(Unknown Source)
at org.secretpaste.jigsaw.PuzzleApplet.init(Unknown Source)
at sun.applet.AppletPanel.run(AppletPanel.java:424)
at java.lang.Thread.run(Thread.java:619)

part of the info no longer appears!

Re: Puzzle

PostPosted: Thu, 10Jan28 03:24
by LRM
The java symbol appears, it rotates about 3/4 of round load meter then locks.
Firefox no java (blank screen) symbol, never activates.

Re: Puzzle

PostPosted: Thu, 10Jan28 23:12
by Craban
Meanwhile I could successfully try the following systems (all with an up-to-date Java6): Windows 7 64 Chrome, Windows XP Pro 32 Firefox, openSuSE 10 64 Konqueror, OpenSuSE 10 64 Firefox
I don't know what the problem could be if even the load freezes.

There is an alternative though: I added a webstart version and posted the link at the bottom of the test page. A java webstart depends only on the local JRE not on the browser (in theory that is).

Re: Puzzle

PostPosted: Thu, 10Jan28 23:43
by Slipstone
Newly loaded Java. Windows XP. Firefox.

Same as LRM...rotating Java symbol stops at about 2 0'clock ... ...

Re: Puzzle

PostPosted: Thu, 10Jan28 23:57
by Craban
I uploaded a debugging version. Could you please check the Java console when the load freezes? You should have an option to bring up the console either in firefox or in the taskbar panel of windows XP.

Thanks for testing.

Re: Puzzle

PostPosted: Fri, 10Jan29 00:24
by Slipstone
Java Plug-in 1.6.0_18
Using JRE version 1.6.0_18-b07 Java HotSpot(TM) Client VM
User home directory = C:Documents and SettingsAdmin
----------------------------------------------------
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
----------------------------------------------------


Exception in thread "thread applet-org.secretpaste.jigsaw.PuzzleApplet.class-1" java.lang.ExceptionInInitializerError
at org.secretpaste.jigsaw.PuzzleMatrix.(PuzzleMatrix.java:20)
at org.secretpaste.jigsaw.PuzzlePanel.(PuzzlePanel.java:59)
at org.secretpaste.jigsaw.PuzzleApplet.init(PuzzleApplet.java:48)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.util.InputMismatchException
at java.util.Scanner.throwFor(Unknown Source)
at java.util.Scanner.next(Unknown Source)
at java.util.Scanner.nextDouble(Unknown Source)
at org.secretpaste.jigsaw.JigsawNoseFactory.(JigsawNoseFactory.java:39)
... 5 more
Exception in thread "thread applet-org.secretpaste.jigsaw.PuzzleApplet.class-2" java.lang.NoClassDefFoundError: Could not initialize class org.secretpaste.jigsaw.JigsawNoseFactory
at org.secretpaste.jigsaw.PuzzleMatrix.(PuzzleMatrix.java:20)
at org.secretpaste.jigsaw.PuzzlePanel.(PuzzlePanel.java:59)
at org.secretpaste.jigsaw.PuzzleApplet.init(PuzzleApplet.java:48)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

... ... ...any use??

Re: Puzzle

PostPosted: Fri, 10Jan29 00:49
by Craban
I found the problem ... quite embarrassing: the problem was for all languages that don't use a decimal comma (in other words lots out there) :-(
This version should work now for everybody as I don't use a text representation for the engine initialization.

Re: Puzzle

PostPosted: Fri, 10Jan29 01:55
by Slipstone
SUCCESS

Completed.

Rather a dark picture but entertaining...

Re: Puzzle

PostPosted: Fri, 10Jan29 02:17
by spindle
very amusing-it loaded first time for me no problem-twenty minutes fun especially when you build it upside down as i did Dito looked fantastic on the organ upside down-who cares which way up she is-thanks Craban-thanks Dito

Re: Puzzle

PostPosted: Fri, 10Jan29 02:35
by DiTo
@ Spindle: Hey You I am not Amadeus. Do you even know how hard it is to play such an organ? Let alone upside down!

Image

DiTo @ The EXIT organ_06 by DiTo Delgado, on Flickr

Re: Puzzle

PostPosted: Fri, 10Jan29 02:43
by Craban
As promised here is the source code and example HTML code to use puzzle.jar: http://secretpaste.org/puzzle/puzzle-src.zip
The puzzle.jar can be downloaded from: http://secretpaste.org/puzzle/puzzle.jar and can be used either as an applet or using java webstart. As stated in the applet information the license is GPL v3 or later.

Many thanks for all the feedback and testing.

Re: Puzzle

PostPosted: Fri, 10Jan29 16:18
by LRM
I did not complete it but it loads now. I can rotate pieces. I think you nailed it.
Thanks
L

Re: Puzzle

PostPosted: Fri, 10Jan29 19:26
by Greebo
Like wot LRM said!

Cheers, Gerry [img]images/icones/icon10.gif[/img]

Re: Puzzle

PostPosted: Fri, 10Jan29 19:52
by Freddy
n1 little game :) thx !

Re: Puzzle

PostPosted: Tue, 10Feb23 15:08
by styler
Loaded and worked fine. One thing that I found. Some pieces, when rotated, are clipped (i.e., parts of the outside disappear), usually the tabs and usually on pieces that are rectangular. Could be a frame size problem.