GraphStream Users

Archives de la liste Aide


Re: GraphStream java applet - corrupted graphstream.jar ? the org/miv/graphstream/ui/graphicGraph/rgb.properties file is not found


Chronologique Discussions 
  • From: jerry huang <remmeh AT gmail.com>
  • To: graphstream-users AT litislab.fr, Ovidiu Șerban <ovidiu.serban AT insa-rouen.fr>
  • Subject: Re: GraphStream java applet - corrupted graphstream.jar ? the org/miv/graphstream/ui/graphicGraph/rgb.properties file is not found
  • Date: Fri, 28 Mar 2014 14:10:44 -0400

Ovidiu,

Yes, the rgb.properties is certainly in the .jar file:

remmeh-mba:260 project remmeh$ jar tf suffixtree.jar | grep rgb

org/graphstream/ui/graphicGraph/stylesheet/rgb.properties


I should note that I am using the Eclipse IDE and my applet runs just fine when launched from within the IDE. I only get this issue when running from the .jar file generated by Eclipse. This seems to be a problem that others have encountered (not specific to GraphStream) but everything looks to be in order 

Any other ideas?

Thanks,

Jerry



On Fri, Mar 28, 2014 at 7:29 AM, Ovidiu Șerban <ovidiu.serban AT insa-rouen.fr> wrote:
Hi,

This is a quick debug hint: can you check is rgb.properties is in the jar file as well ?

If it is, the issue might be with the build process ...

Kind regards,
Ovidiu



On 27/03/2014 19:39, remmeh AT gmail.com wrote:
hello,

I am using GraphStream for a university project and I am having some trouble
getting a GraphStream applet to work well embedded in html.

Upon loading my applet, the Java console prints the following:

basic: Applet loaded.
basic: Applet resized and added to parent container
basic: PERF: AppletExecutionRunnable - applet.init() BEGIN ; jvmLaunch dt
284278 us, pluginInit dt 8331228 us, TotalTime: 8615506 us
network: Created version ID: 1.7.0.51
network: Created version ID: 1.7.0.51
java.lang.reflect.InvocationTargetException
        at java.awt.EventQueue.invokeAndWait(EventQueue.java:1272)
        at java.awt.EventQueue.invokeAndWait(EventQueue.java:1247)
        at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1347)
        at suffixtree.SuffixTreeApplet.init(SuffixTreeApplet.java:14)
        at com.sun.deploy.uitoolkit.impl.awt.AWTAppletAdapter.init(Unknown
Source)
        at
sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.ExceptionInInitializerError
        at org.graphstream.ui.graphicGraph.stylesheet.Rule.<init>(Rule.java:80)
        at
org.graphstream.ui.graphicGraph.stylesheet.StyleSheet.initRules(StyleSheet.java:303)
        at
org.graphstream.ui.graphicGraph.stylesheet.StyleSheet.<init>(StyleSheet.java:99)
        at
org.graphstream.ui.graphicGraph.GraphicGraph.<init>(GraphicGraph.java:226)
        at org.graphstream.ui.swingViewer.Viewer.<init>(Viewer.java:227)
        at suffixtree.SuffixTreeApp.<init>(SuffixTreeApp.java:56)
        at suffixtree.SuffixTreeApplet$1.run(SuffixTreeApplet.java:16)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:241)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
        at java.awt.EventQueue.access$200(EventQueue.java:103)
        at java.awt.EventQueue$3.run(EventQueue.java:694)
        at java.awt.EventQueue$3.run(EventQueue.java:692)
        at java.security.AccessController.doPrivileged(Native Method)
        at
java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
        at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
        at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Caused by: java.lang.RuntimeException: corrupted graphstream.jar ? the
org/miv/graphstream/ui/graphicGraph/rgb.properties file is not found
        at
org.graphstream.ui.graphicGraph.stylesheet.StyleConstants.<clinit>(StyleConstants.java:241)
        ... 21 more

It appears that in org.graphstream.ui.graphicGraph.stylesheet.StyleConstants
the exception is thrown here:

                URL url = "StyleConstants.class.getResource("rgb.properties");

                if (url == null)
                        throw new RuntimeException(
                                        "corrupted graphstream.jar ? the
org/miv/graphstream/ui/graphicGraph/rgb.properties file is not found");

However, rgb.properties definitely exists in the same context as
StyleConstants, both are in org/graphstream/ui/graphicGraph/stylesheet/.

Any idea as to why this might be happening? I am using gs-core-1.2.

Thank you!





Archives gérées par MHonArc 2.6.16.

Top of page