bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug cp-tools/28012] New: Strange error message from appletviewer


From: hendrich at informatik dot uni-hamburg dot de
Subject: [Bug cp-tools/28012] New: Strange error message from appletviewer
Date: 13 Jun 2006 13:06:44 -0000

I just tried the classpath appletviewer (from cvs 2006.06.13 with jamvm on x86)
for the first time. Several of my applets work fine:

http://tams-www.informatik.uni-hamburg.de/applets/cmos/index.html
http://tams-www.informatik.uni-hamburg.de/applets/sram/index.html

but this one dies with an obscure error message:

http://tams-www.informatik.uni-hamburg.de/applets/jfig/applet.html


appletviewer http://tams-www.informatik.uni-hamburg.de/applets/jfig/applet.html
-I- Java2D found, using it...
-E- java.net.MalformedURLException: Absolute URL required with null context: 
java.net.MalformedURLException: Absolute URL required with null context: 
   at java.net.URL.<init>(URL.java:452)
   at java.net.URL.<init>(URL.java:325)
   at jfig.gui.JFigViewerApplet.init(JFigViewerApplet.java:31)
   at
gnu.classpath.tools.appletviewer.StandaloneAppletWindow.<init>(StandaloneAppletWindow.java:221)
   at
gnu.classpath.tools.appletviewer.StandaloneAppletViewer.createWindows(StandaloneAppletViewer.java:141)
   at
gnu.classpath.tools.appletviewer.StandaloneAppletViewer.<init>(StandaloneAppletViewer.java:73)
   at gnu.classpath.tools.appletviewer.Main.main(Main.java:272)

My source code says the following:

  public void init() {
      viewer = new JFigViewerBean();
      this.getContentPane().add( "Center", viewer );

      try {
        urlname = getParameter( "URL" );
        viewer.setURL( new URL( urlname ));      <-- line 31
      }
      catch( Exception e ) {
        System.out.println( "-E- " + e );
        e.printStackTrace();
      }

  ...

and the following html is used in the applet page:

<applet
  code=jfig.gui.JFigViewerApplet
  codebase=archive
  archive=jfig-bean.jar
  width=600
  height=500
>
<param name="URL"
value="http://tams-www.informatik.uni-hamburg.de/applets/jfig/
gallery/jfig-class-diagram.fig">
</applet>

So, the parameter value is a fully quoted absolute URL, located on the same
server as the applet itself. This should work.


Also, jamvm is completely dead after the above error and doesn't react to
cntl-c anymore. I don't like programs to intercept cntl-c...


-- 
           Summary: Strange error message from appletviewer
           Product: classpath
           Version: 0.92
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: cp-tools
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hendrich at informatik dot uni-hamburg dot de


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28012





reply via email to

[Prev in Thread] Current Thread [Next in Thread]