Re: RMI problem

1999-10-27 Thread Tim Wilkinson


Greg,

I've checked a couple of fixes into CVS for our serialization code which
will probably fix you problems.  Let me know if they persist.

Regards
Tim

Greg Zymbaluk wrote:
> 
> I just downloaded and installed version 1.0.5 and am having a problem
> with RMI.
> 
> I have compiled my java source and generated my stubs and skel classes
> on a Solaris box with Sun's JDK (version 1.1.7). I then moved these
> classes over to a Linux box (Cobalt Raq2, MIPS CPU, RedHat 5.2) and
> start the Kaffe rmiregistry and my RMI server (using the Kaffe VM). When
> 
> I attempt to make a remote call to the RMI server on the kaffe machine I
> 
> get  the following exception:
> 
> java.rmi.UnmarshalException: error unmarshalling return; nested
> exception is: java.io.InvalidClassException:
> TestImpl_Stub; Local class not compatible: stream classdesc
> serialVersionUID=-1585587260594494182 local
> class serialVersionUID=2015510784496417641
> 
> I ran serialver on both the Solaris JDK machine and the Kaffe VM machine
> 
> and I got the following:
> 
> Solaris machine (Sun JDK 1.1.7) - TestImpl_Stub: static final long
> serialVersionUID=2015510784496417641L;
> 
> kaffe machine (Kaffe 1.0.5) - TestImpl_Stub: static final long
> serialVersionUID= -1585587260594494182L; (that's a minus sign in front
> of the big number)
> 
> I know that the class files are the same on both machines because I
> generate them on the Solaris box, tar them up and move them over to the
> Linux box. It looks to me like Kaffe is not correctly reading the
> serialVersionUID on the classes. Is there any way I can fix this or
> workaround it?
> 
> Thanks for any help.
> 
> Greg Z

--
  Tim Wilkinson Tel: +1 510 704 1660
  Transvirtual Technologies, Inc.,  Fax: +1 510 704 1893
  Berkeley, CA, USA.Email:   [EMAIL PROTECTED]



Errors encountered in compiling Java Tutorial example

1999-10-27 Thread me


Hi,

This is probably a newbie issue, but since I cannot find any specific answers
in any of the documentation, here goes...

I've encountered some compile time errors when trying to build an example from
the Java Tutorial available from Sun's website. The following verbose listing
details my platform, the source code, the compiler errors, and my Shared
Library configuration (i.e. glibc on Redhat Linux v6.0). 

Do I need to modify the code in order to please Pizza?
Am I missing a Pizza switch (I used 'javac -version -verbose ApptoAppl.java')
??

I would appreciate any help ASAP, thanks !

--
RedHat Linux 6.0 Kernel 2.2.5-15 i686 
--

import java.awt.Color;
import java.awt.BorderLayout;
import java.awt.event.*;
import javax.swing.*;
import java.applet.*;

public class ApptoAppl extends Applet
implements ActionListener {

JLabel text, clicked;
JButton button, clickButton;
JPanel panel;

public void init(){
setLayout(new BorderLayout(1, 2));
setBackground(Color.white);

text = new JLabel("I'm a Simple Program");
clicked = new JLabel("Button Clicked");

button = new JButton("Click Me");
button.addActionListener(this);

clickButton = new JButton("Click Again");
clickButton.addActionListener(this);

add("Center", text);
add("South", button);
}

public void start(){
System.out.println("Applet starting.");
}

public void stop(){
System.out.println("Applet stopping.");
}

public void destroy(){
System.out.println("Destroy method called.");
}

public void actionPerformed(ActionEvent event){

Object source = event.getSource();
if(source == button){
removeAll();
add("Center", clicked); 
add("South", clickButton);
validate();
repaint();
}

if(source == clickButton){
removeAll();
add("Center", text);
add("South", button);
validate();
repaint();
}
}
}
--
Pizza v0.39g, 15-August-98, Copyright (c) 1996-98 Martin Odersky.
further information at http://www.cis.unisa.edu.au/~pizza/
[parsing ApptoAppl.java 260ms]
[loading /usr/share/kaffe/Klasses.jar(java/awt/Color.class)]
[loading /usr/share/kaffe/Klasses.jar(java/awt/BorderLayout.class)]
[loading /usr/share/kaffe/Klasses.jar(java/applet/Applet.class)]
[loading /usr/share/kaffe/Klasses.jar(java/awt/event/ActionListener.class)]
[loading /usr/share/kaffe/Klasses.jar(java/awt/Panel.class)]
[loading /usr/share/kaffe/Klasses.jar(java/awt/Container.class)]
[loading /usr/share/kaffe/Klasses.jar(java/awt/Component.class)]
[loading
/usr/share/kaffe/Klasses.jar(java/awt/Component$DefaultSerialization.class)]
[loading /usr/share/kaffe/Klasses.jar(java/awt/Component$TreeLock.class)]
[loading /usr/share/kaffe/Klasses.jar(java/lang/Object.class)]
[loading /usr/share/kaffe/Klasses.jar(java/awt/image/ImageObserver.class)]
[loading /usr/share/kaffe/Klasses.jar(java/awt/MenuContainer.class)]
[loading /usr/share/kaffe/Klasses.jar(java/io/Serializable.class)]
[loading /usr/share/kaffe/Klasses.jar(java/util/EventListener.class)]
ApptoAppl.java:11: class JLabel not found in class ApptoAppl
JLabel text, clicked;
^
ApptoAppl.java:12: class JButton not found in class ApptoAppl
JButton button, clickButton;
^
ApptoAppl.java:13: class JPanel not found in class ApptoAppl
JPanel panel;
^
[loading /usr/share/kaffe/Klasses.jar(java/awt/event/ActionEvent.class)]
[loading /usr/share/kaffe/Klasses.jar(java/awt/LayoutManager2.class)]
ApptoAppl.java:19: class JLabel not found in class ApptoAppl
text = new JLabel("I'm a Simple Program");
^
ApptoAppl.java:20: class JLabel not found in class ApptoAppl
clicked = new JLabel("Button Clicked");
^
ApptoAppl.java:22: class JButton not found in class ApptoAppl
button = new JButton("Click Me");
^
ApptoAppl.java:25: class JButton not found in class ApptoAppl
clickButton = new JButton("Click Again");
^
[loading /usr/share/kaffe/Klasses.jar(java/lang/String.class)]
[loading /usr/share/kaffe/Klasses.jar(java/lang/System.class)]
[loading /usr/share/kaffe/Klasses.jar(java/io/PrintStream.class)]
[loading /usr/share/kaffe/Klasses.jar(java/io/FilterOutputStream.class)]
[loading /usr/share/kaffe/Klasses.jar(java/io/OutputStream.class)]
[loading /usr/share/kaffe/Klasses.jar(java/awt/AWTEvent.class)]
[loading /usr/share/kaffe/Klasses.jar(java/util/EventObject.class)]
[total 1794ms]
7 errors

--

ldconfig: version 1999-02-21
/usr/i486-linuxaout/lib:
libvga.so.1 => libvga.so.1.2.7
libtk.so.3 => libtk.so.3.1.1
libtcl.so.3 => libtcl.so.3.1
libm.so.4 => libm.so.4.6.27
libdb.so.1 => libdb.so.1.85.1
libcurses.so.0 => libcurses.so.0.1.2
libc.so.4 => libc.so.4.7.2
libXt.so.6 => libXt.so.6.0
libXt.so.3 => libXt.so.3.1.0
libXpm.so.4 => libXpm.so.4.2
libXaw.so.6 => libXaw.so.6.0
libXaw.so.3 => libXaw.so.3.1.0
libXIE.so.6 => libXIE.so.6.0
libX11.so.6 => libX11.so.6.0
libX11.so.3 => libX11.so.3.1.0
/usr/X11R6/lib:
libwraster.so.1 => libwraster.s

Re: Errors encountered in compiling Java Tutorial example

1999-10-27 Thread Archie Cobbs


me writes:
> This is probably a newbie issue, but since I cannot find any specific answers
> in any of the documentation, here goes...
> 
> I've encountered some compile time errors when trying to build an example from
> the Java Tutorial available from Sun's website. The following verbose listing
> details my platform, the source code, the compiler errors, and my Shared
> Library configuration (i.e. glibc on Redhat Linux v6.0). 
> 
> Do I need to modify the code in order to please Pizza?
> Am I missing a Pizza switch (I used 'javac -version -verbose ApptoAppl.java')
> ??

You should upgrade to kaffe-1.0.5, which includes kjc instead of pizza.
Also, you could install jikes on your machine, which is even better
and faster.

-Archie

___
Archie Cobbs   *   Whistle Communications, Inc.  *   http://www.whistle.com



Re: Errors encountered in compiling Java Tutorial example

1999-10-27 Thread Peter C. Mehlitz


> ..ApptoAppl.java:11: class JLabel not found in class ApptoAppl..

Do you have the (JavaSoft) swing classes installed? They are not part of our
Klasses.jar (but we can run them).

-- 
  Peter C. Mehlitz  Tel:  +1 510 704 1527
  Transvirtual Technologies, Inc.,  Fax:  +1 510 704 1893
  Berkeley, CA, USA.Email:[EMAIL PROTECTED]