Java Asset Map Support

If you are having problems loading the Java asset map follow these steps to diagnose the problem.


If your Java asset map fails to load:


  • Make sure that you that you have the latest version of the Java Runtime Environment, which at the time of writing is 1.4.2-03.
  • If you are behind a firewall, make sure that it is not blocking applet tags.
  • Make sure that you are not running two versions of the JRE. If you are using Internet Explorer on windows, make sure that the

    Sun JRE is used instead of the Microsoft JRE.



    If the applet fails to load, check the Java Console for the cause of the error. Any error mensioning 'bad magic number' is

    almost always due to a version of the JRE which is less that 1.4.



    If the Java asset map does not seem to function properly:



    Make sure that you have the latest version of your browser. The currently supported browsers are:



    Internet Explorer 6.0 and above

    Mozilla 1.4 and above

    Firefox 0.8 and above



    It is possible that other browsers will work with Matrix and the asset map. Basically, make sure that your

    browser supports Live Connect and Java >= 1.4



    Symtoms of browsers that do not support Live connect are:


  • popups are not opened when creating new links
  • The asset map does not refresh when assets are updated.



    Java Asset Map on Linux



    Several people have noted that the asset map does not work with version 1.4.2_04-b05 of the Java Virtual Machine on gecko based browsers (mozilla, firefox, etc) on Linux. The asset map fails to load when using this version of the JVM (and possibly other versions by Sun) on linux. A solution to this is to use the blackdown version of the JVM instead.



    this version can be downloaded here:



    ftp://mirror.aarnet.edu.au/pub/java-linux/JDK-1.4.2/



    This is the version that we are currently using at Squiz.

I'm assuming the Asset Map is the Java applet that won't load for me? :slight_smile:


System stats:


  • Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040803
    [*]Java(tm) Plug-in 1.4.2_04-b05
    [*]Fedora Core release 2 (Tettnang)
I'm assuming the differences between Java 1.4.2-03 and 1.4.2_04-b05 is the issue here?

Anyone else been able to get this JVM to load the applet?

Here's the output from the java console if it helps;
    Java(TM) Plug-in: Version 1.4.2_04
    Using JRE version 1.4.2_04 Java HotSpot(TM) Client VM
    User home directory = /home/gold
    ----------------------------------------------------
    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
    p:   reload proxy configuration
    q:   hide console
    r:   reload policy configuration
    s:   dump system properties
    t:   dump thread list
    v:   dump thread stack
    x:   clear classloader cache
    0-5: set trace level to 
    ----------------------------------------------------
    java.lang.IllegalArgumentException: null source
    	at java.util.EventObject.(EventObject.java:34)
    	at java.awt.AWTEvent.(AWTEvent.java:225)
    	at java.awt.event.ComponentEvent.(ComponentEvent.java:94)
    	at java.awt.event.WindowEvent.(WindowEvent.java:174)
    	at java.awt.event.WindowEvent.(WindowEvent.java:211)
    	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:576)
    	at java.awt.Component.dispatchEventImpl(Component.java:3506)
    	at java.awt.Container.dispatchEventImpl(Container.java:1627)
    	at java.awt.Window.dispatchEventImpl(Window.java:1606)
    	at java.awt.Component.dispatchEvent(Component.java:3477)
    	at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
    	at java.awt.SequencedEvent.dispatch(SequencedEvent.java:93)
    	at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
    	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
    	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    	at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    Current thread:Thread[thread applet-net/squiz/matrix/complexassetmap/ComplexAssetMap.class,4,http://192.168.110.182/matrix/_admin/-threadGroup]
    OJIPlugin: No AThread
OJIPlugin acq Spontaneous pipe=10
Trying to enter spont monitor: 0
 OJIPlugin release for:Thread[thread applet-net/squiz/matrix/complexassetmap/ComplexAssetMap.class,4,http://192.168.110.182/matrix/_admin/-threadGroup]
OJIPlugin releasePipe - exiting spont monitor
http://192.168.110.182/matrix/
java.lang.ClassFormatError: default (Bad magic number)
	at java.lang.ClassLoader.defineClass0(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
	at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:157)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
	at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:123)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:219)
	at sun.awt.motif.MFontPeer$1.run(MFontPeer.java:65)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.awt.motif.MFontPeer.getFontCharset(MFontPeer.java:62)
	at sun.awt.PlatformFont.<init>(PlatformFont.java:98)
	at sun.awt.motif.MFontPeer.<init>(MFontPeer.java:41)
	at sun.awt.motif.MToolkit.getFontPeer(MToolkit.java:283)
	at java.awt.Font.getPeer_NoClientCode(Font.java:278)
	at sun.awt.motif.MComponentPeer.pSetFont(Native Method)
	at sun.awt.motif.MComponentPeer.setFont(MComponentPeer.java:257)
	at java.awt.Component.setFont(Component.java:1351)
	at java.awt.Container.setFont(Container.java:1144)
	at sun.applet.AppletPanel.run(AppletPanel.java:361)
	at java.lang.Thread.run(Thread.java:534)
java.lang.IllegalArgumentException: null source
	at java.util.EventObject.<init>(EventObject.java:34)
	at java.awt.AWTEvent.<init>(AWTEvent.java:225)
	at java.awt.event.ComponentEvent.<init>(ComponentEvent.java:94)
	at java.awt.event.WindowEvent.<init>(WindowEvent.java:174)
	at java.awt.event.WindowEvent.<init>(WindowEvent.java:211)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:576)
	at java.awt.Component.dispatchEventImpl(Component.java:3506)
	at java.awt.Container.dispatchEventImpl(Container.java:1627)
	at java.awt.Window.dispatchEventImpl(Window.java:1606)
	at java.awt.Component.dispatchEvent(Component.java:3477)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
	at java.awt.SequencedEvent.dispatch(SequencedEvent.java:93)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
java.lang.IllegalArgumentException: null source
	at java.util.EventObject.<init>(EventObject.java:34)
	at java.awt.AWTEvent.<init>(AWTEvent.java:225)
	at java.awt.event.ComponentEvent.<init>(ComponentEvent.java:94)
	at java.awt.event.WindowEvent.<init>(WindowEvent.java:174)
	at java.awt.event.WindowEvent.<init>(WindowEvent.java:211)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:576)
	at java.awt.Component.dispatchEventImpl(Component.java:3506)
	at java.awt.Container.dispatchEventImpl(Container.java:1627)
	at java.awt.Window.dispatchEventImpl(Window.java:1606)
	at java.awt.Component.dispatchEvent(Component.java:3477)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
	at java.awt.SequencedEvent.dispatch(SequencedEvent.java:93)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)</pre>

We are using the blackdown version 1.4.2-rc1 on mozilla firefox (gentoo linux) here without any problems. You might want to try this version, because i vaugly remember using 1.4.2_04-b05 without success.


this version is available here:

ftp://mirror.aarnet.edu.au/pub/java-linux/JDK-1.4.2/

Grabbing this now. Cheers.

This did the trick. Cheers.


Is this documented anywhere? If not it should be. If it is, makeing it easier to find might be a good idea.

No, its not documented anywhere. I might make a sticky note in the support forum.
Thanks

Hi!


I've got a quirk with the Asset Map not loading under Internet Explorer. The set ups are: IE 7 & Java 6 Update 19, and IE 8 & Java 6 Update 20. It works under FF, Chrome & Iron on the same machine as IE8 & Java 6U20.



The error that we get when loading is:



Java Plug-in 1.6.0_20

Using JRE version 1.6.0_20-b02 Java HotSpot™ Client VM

User home directory = C:\Documents and Settings\oleej



load: class net/squiz/matrix/assetmap/AssetMap.class not found.

java.lang.ClassNotFoundException: net.squiz.matrix.assetmap.AssetMap.class

at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.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)

Caused by: java.io.IOException: open HTTP connection failed:http://matrix01.our-domain.com/_admin/net/squiz/matrix/assetmap/AssetMap/class.class

at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)

at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)

at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

… 7 more

Exception: java.lang.ClassNotFoundException: net.squiz.matrix.assetmap.AssetMap.class





We're running MySource Matrix 3.26.



Does anyone have any ideas as to why this is happening?



Thanks!


  • Jonny