kaffe-swing

2000-06-09 Thread Rajesh Patel

hi all,
I am running kaffe 1.0.5 on my Redhat 6.1 and trying to use
swing classes.   It  is  not finding swing classes. e.g.
Can''t find class "javax/swing/JFrame" §8 ...
How can i get it to work with swing?  Which version of swing should i
use and where can i find it?
Thanks in advance..

-Raj


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




kaffe-swing

2000-06-09 Thread Rajesh Patel

Hi,
Just for the info that swing-1.1.1fcs works fine with kaffe and
i got it from sun.

-Raj


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




RMI and netscape

2000-06-28 Thread Rajesh Patel

Hi all,
I am dealing with security issues with netscape and plugins
for linux.  I am running RMI server application on my http server and
trying to run applet which connect to the RMI server and server passes
some information back to applet.
Things works fine if i use appletviewer but not with netscape!
I installed java plugins for jdk1.2 from blackdown.  Applet throws
netscape Security Exception on browser's java console as follows,

Netscape Communications Corporation -- Java 1.1.5
Type '?' for options.
Exporting the Applet
Looking up TimeService at: rmi://black.lads.is.lmco.com:10005/TimeServer

netscape.security.AppletSecurityException: security.Couldn't connect to
'158.186.60.220' with origin from 'local-classpath-classes'.
  at
netscape.security.AppletSecurity.checkConnect(AppletSecurity.java:776)
  at
netscape.security.AppletSecurity.checkAccept(AppletSecurity.java:760)
  at java.lang.SecurityManager.checkAccept(SecurityManager.java:839)
  at java.net.ServerSocket.implAccept(ServerSocket.java:246)
* at java.net.ServerSocket.accept(ServerSocket.java:224)
  at
sun.rmi.transport.proxy.HttpAwareServerSocket.accept(HttpAwareServerSocket.java:77)

  at sun.rmi.transport.tcp.TCPTransport.run(TCPTransport.java:394)
  at java.lang.Thread.run(Thread.java:504)
We have been registered!

Any response would be appreciated!
Thanks,

-Raj


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: RMI and netscape

2000-06-29 Thread Rajesh Patel

[EMAIL PROTECTED] wrote:

> Rajesh Patel <[EMAIL PROTECTED]>@lads.is.lmco.com on 28.06.2000
> 17:00:45
>
> Please respond to "rpatel"@lads.is.lmco.com
>
> Sent by:  [EMAIL PROTECTED]
>
> To:   java-linux Mailing List <[EMAIL PROTECTED]>
> cc:
>
> Subject:  RMI and netscape
>
> Hi all,
> I am dealing with security issues with netscape and plugins
> for linux.  I am running RMI server application on my http server and
> trying to run applet which connect to the RMI server and server passes
> some information back to applet.
> Things works fine if i use appletviewer but not with netscape!
> I installed java plugins for jdk1.2 from blackdown.  Applet throws
> netscape Security Exception on browser's java console as follows,
>
> Netscape Communications Corporation -- Java 1.1.5
> Type '?' for options.
> Exporting the Applet
> Looking up TimeService at: rmi://black.lads.is.lmco.com:10005/TimeServer
>
> netscape.security.AppletSecurityException: security.Couldn't connect to
> '158.186.60.220' with origin from 'local-classpath-classes'.
>   at
> netscape.security.AppletSecurity.checkConnect(AppletSecurity.java:776)
>   at
> netscape.security.AppletSecurity.checkAccept(AppletSecurity.java:760)
>   at java.lang.SecurityManager.checkAccept(SecurityManager.java:839)
>   at java.net.ServerSocket.implAccept(ServerSocket.java:246)
> * at java.net.ServerSocket.accept(ServerSocket.java:224)
>   at
> sun.rmi.transport.proxy.HttpAwareServerSocket.accept(HttpAwareServerSocket.java:77)
>
>   at sun.rmi.transport.tcp.TCPTransport.run(TCPTransport.java:394)
>   at java.lang.Thread.run(Thread.java:504)
> We have been registered!
>
> Any response would be appreciated!
> Thanks,
>
> -Raj
>
> Hello,
>
> I seem the problem is that netscape don't use the plugin, but the intergrated JVM of 
>Netscape.
>
> When you will use the plugin your HTML page must look like the attachment
>

Thanks after changing my html code it activated 1.2.2 plugins and i see java console.  
But still
my applet does not start!  I put all class file (applet class and rmi classes) in the 
jar file
that i specified in my html code.  Can you tell me what am i missing?
Am i missing the concept for the jar file?  Can you explain what should i put in jar 
file?
Thanks,
-Raj

>
> All messages from the Applet are written to Plugin console, please activate the 
>console
> in ~/.netscape/java/ControlPanel.html
>
> Sven Daumann
>
> (See attached file: applet.html)
>
>   
>  Name: applet.html
>applet.html   Type: Hypertext Markup Language (text/html)
>  Encoding: 7BIT
>   Description: Internet HTML


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: RMI and netscape

2000-06-29 Thread Rajesh Patel

"Jesus M. Salvo Jr." wrote:

> Well, your applet was loaded locally, not from 158.186.60.220.
>
> Did u have your applet signed?

No.  Do i have to have my applet signed?
-Raj

>
>
> John Salvo
>
> Rajesh Patel wrote:
> >
> >
> > Netscape Communications Corporation -- Java 1.1.5
> > Type '?' for options.
> > Exporting the Applet
> > Looking up TimeService at: rmi://black.lads.is.lmco.com:10005/TimeServer
> >
> > netscape.security.AppletSecurityException: security.Couldn't connect to
> > '158.186.60.220' with origin from 'local-classpath-classes'.
> >   at
>
> --
> Homepage: http://homepages.tig.com.au/~jmsalvo/
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




kaffe and RMI

2000-06-29 Thread Rajesh Patel

Hi,
Does anybody know what command line options i have to use in
order to run my RMI server application using kaffe?
if i use simple kaffe command i get following errors,
% kaffe RMIServer
kaffe.util.NotImplemented
at java.lang.Throwable.(Throwable.java:33)
at java.lang.Error.(Error.java:17)
at kaffe.util.NotImplemented.(NotImplemented.java:18)
at
java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:52)
at
java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:48)
at RMIServer.main(RMIServer.java:40)
%

If i use regular java command the same application runs fine.  Also i
don't how can i specify policy file at command line in kaffe?(e.g
-Djava.security.policy=java.policy if using java)
Thanks,

-Raj


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




RMI JNI and objective c issue.

2000-07-21 Thread Rajesh Patel

Hi,
I have problem which enough people may not be interested but if
any one can give any hint, would be appreciated.

I am running objective c application using JNI starting JVM from
objective c code and calling java application which uses RMI to
communicate with my applet for the browser.

Now the problem is,
When i use simple objective code to call jvm and use RMI, it works fine
but my actual application does some dynamic memory operations during
runtime and so when i run with my application i get following errors,

Prog Instance bound in registry

SIGSEGV   11*  segmentation violation
si_signo [11]: SIGSEGV   11*  segmentation violation
si_errno [0]: Success
si_code [0]: SI_USER [pid: 0, uid: 0]
stackpointer=0xbedffa1c

Full thread dump Classic VM (1.2.2-L, native threads):
"RMI LeaseChecker" (TID:0x4133ecf0, sys_thread_t:0x82cb028,
state:CW, native ID:0x
2009) prio=5
at java.lang.Thread.sleep(Native Method)
at sun.rmi.transport.DGCImpl$LeaseChecker.run(DGCImpl.java:299)
at java.lang.Thread.run(Thread.java:475)
"GC Daemon" (TID:0x41339cd0, sys_thread_t:0x8295cd0, state:R, native
ID:0x1807) pr
io=2
at sun.misc.GC$Daemon.run(GC.java:95)
"RMI Reaper" (TID:0x413399a8, sys_thread_t:0x8283500, state:CW,
native ID:0x1406)
prio=5
at java.lang.Object.wait(Native Method)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:108)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:123)
at
sun.rmi.transport.ObjectTable$Reaper.run(ObjectTable.java:284)
at java.lang.Thread.run(Thread.java:475)
"RMI TCP Accept-1" (TID:0x41339738, sys_thread_t:0x8288278, state:R,
native ID:0x1005) prio=5
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:402)
at java.net.ServerSocket.implAccept(ServerSocket.java:236)
at java.net.ServerSocket.accept(ServerSocket.java:220)
at sun.rmi.transport.tcp.TCPTransport.run(TCPTransport.java:291)

at java.lang.Thread.run(Thread.java:475)
"Finalizer" (TID:0x4132e320, sys_thread_t:0x81dab20, state:CW,
native ID:0xc04) prio=8
at java.lang.Object.wait(Native Method)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:108)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:123)
at
java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:170)
"Reference Handler" (TID:0x4132e3b0, sys_thread_t:0x81d46d0,
state:CW, native ID:0x803) prio=10
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:420)
at
java.lang.ref.Reference$ReferenceHandler.run(Reference.java:110)
"SIGQUIT handler" (TID:0x4132e3e0, sys_thread_t:0x81d9fa8, state:R,
native ID:0x402) prio=5
"main" (TID:0x4132e1e0, sys_thread_t:0x815d330, state:R, native
ID:0x400) prio=5
Monitor Cache Dump:
java.lang.ref.ReferenceQueue$Lock@4132E338/41364028: 
Waiting to be notified:
"Finalizer" (0x81dab20)
java.lang.ref.Reference$Lock@4132E3C0/41363B20: 
Waiting to be notified:
"Reference Handler" (0x81d46d0)
sun.misc.GC$LatencyLock@41339960/413BE920: owner "GC Daemon"
(0x8295cd0) 1 entry
java.lang.ref.ReferenceQueue$Lock@41339340/413BC430: 
Waiting to be notified:
"RMI Reaper" (0x8283500)
java.net.PlainSocketImpl@413393C8/413BD0E0: owner "RMI TCP Accept-1"
(0x8288278) 1 entry
Registered Monitor Dump:
utf8 hash table: 
JNI pinning lock: 
JNI global reference lock: 
BinClass lock: 
Class linking lock: 
System class loader lock: 
Code rewrite lock: 
Heap lock: 
Monitor cache lock: owner "GC Daemon" (0x8295cd0) 1 entry
Thread queue lock: owner "GC Daemon" (0x8295cd0) 1 entry
Monitor registry: owner "GC Daemon" (0x8295cd0) 1 entry

%

Anyone know how can i secure my jvm side memory from  c side?  Any
options that my c program can not touch java side memory?

Thanks in advance,
-Raj


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: RMI JNI and objective c issue.

2000-07-21 Thread Rajesh Patel

Juergen Kreileder wrote:

> >>>>> "Rajesh" == Rajesh Patel <[EMAIL PROTECTED]> writes:
>
> Rajesh> Full thread dump Classic VM (1.2.2-L, native threads):
>
> That's not a good combination, the native threads VM in Sun's 1.2.2
> release is somewhat broken.  Either try Blackdowns 1.2.2 or Sun's 1.3
> beta.

I tried Blackdowns 1.2.2 and does the same!!
-Raj

>
>
> Juergen
>
> --
> Juergen Kreileder, Blackdown Java-Linux Team
> http://www.blackdown.org/java-linux.html
> JVM'01: http://www.usenix.org/events/jvm01/
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




[Fwd: I am lost! Can you help?]

2000-10-27 Thread Rajesh Patel

I am using jsse1.0.2, Redhat 6.2 jdk 1.2.2.

Thanks,

-Raj




Hi,
   I am trying to implement my version
of RMISocketFactory that provides ssl sockets instead of regular sockets. 
I extended RMISocketFactory as follows but compiler complains that i can
not extend it's methods!
package bank;
import java.io.*;
import java.rmi.server.*;
import javax.net.*;
import javax.net.ssl.*;
public class CGGAMPSSLSocketFactory extends RMISocketFactory
{
    public Socket createSocket(String
host,int port) throws IOException{
 SSLSocket socket = (SSLSocket)SSLSocketFactory.getDefault().
 createSocket(host,port);
 String ciphers[] = socket.getEnabledCipherSuites();
 socket.setEnabledCipherSuites(ciphers);
 return socket;
    }
    public ServerSocket createServerSocket(int
port) throws IOException {
 SSLServerSocket server = (SSLServerSocket)
 SSLServerSocketFactory.getDefault().createServerSocket(port);
 String ciphers[] = server.getEnabledCipherSuites();
 server.setEnabledCipherSuites(ciphers);
 return server;
    }
}
 
Here is the compiler complain,
black:rpatel% javac bank/CGGAMPSSLSocketFactory.java
bank/CGGAMPSSLSocketFactory.java:17: The method
bank.Socket createSocket(java.lang.String, int) declared in class bank.CGGAMPSSLSocketFactory
cannot override the method of the same signature declared in class java.rmi.server.RMISocketFactory. 
They must have the same return type.
    public Socket createSocket(String
host,int port) throws IOException{
 
^
bank/CGGAMPSSLSocketFactory.java:25: The method
bank.ServerSocket createServerSocket(int) declared in class bank.CGGAMPSSLSocketFactory
cannot override the method of the same signature declared in class java.rmi.server.RMISocketFactory. 
They must have the same return type.
    public ServerSocket createServerSocket(int
port) throws IOException {
   
^
2 errors
black:rpatel%
I am totally lost i have the same function signature as of RMISocketFactory. 
Why the compiler does not like it?  I would appreciate your quick
response,
Thanks,
-Raj



Re: [Fwd: I am lost! Can you help?]

2000-10-27 Thread Rajesh Patel

Juergen Kreileder wrote:

> >>>>> "Rajesh" == Rajesh Patel <[EMAIL PROTECTED]> writes:
>
> Rajesh> black:rpatel% javac bank/CGGAMPSSLSocketFactory.java
> Rajesh> bank/CGGAMPSSLSocketFactory.java:17: The method
> Rajesh> bank.Socket createSocket(java.lang.String, int) declared
> Rajesh> in class bank.CGGAMPSSLSocketFactory cannot override the
> Rajesh> method of the same signature declared in class
> Rajesh> java.rmi.server.RMISocketFactory.  They must have the same
> Rajesh> return type.
> Rajesh> public Socket createSocket(String host,int port) throws IOException{
> Rajesh>   ^
>
> Rajesh> I am totally lost i have the same function signature as of
> Rajesh> RMISocketFactory.
>
> No, you haven't.  You have "bank.Socket createSocket(String, int)" but
> it should be "java.net.Socket createSocket(String, int)".
>
> Adding "import java.net.Socket;" or using "java.net.Socket" instead of
> the unqualified "Socket" should fix this.

>

Thank you very much.  I had import javax.net.*  so i thought it is ok but actually it
requires java.net.Socket as return type and other places it requires javax.net.*  So
now it works for that part but now i get following exception.  Can you give me some
guideline if possible,

% startserver
java.security.Policy: error adding Entry
sun.security.provider.PolicyParser$GrantEntry@7749ec69 java.net.MalformedURLException:
no protocol: jsse.jar
java.rmi.MarshalException: Error marshaling transport header; nested exception is:
java.net.SocketException: Socket closed
java.net.SocketException: Socket closed
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198])
at com.sun.net.ssl.internal.ssl.AppOutputStream.write([DashoPro-V1.2-120198])
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:72)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:130)
at java.io.DataOutputStream.flush(DataOutputStream.java:104)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:203)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:174)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:318)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at java.rmi.Naming.rebind(Naming.java:161)
at bank.BankServerImpl.main(BankServerImpl.java:40)
%

I have following in my code to support ssl,

java.security.Security.addProvider(
 new com.sun.net.ssl.internal.ssl.Provider());
 System.setProperty("java.protocol.handler.pkgs",
 "com.sun.net.ssl.internal.www.protocol");
try{
 RMISocketFactory.setSocketFactory(new CGGAMPSSLSocketFactory());
 }catch (IOException e){
 e.printStackTrace();
 }

Isn't that enough?  What am i missing?
Thanks,

-Raj

>
> --
> Juergen Kreileder, Blackdown Java-Linux Team
> http://www.blackdown.org/java-linux.html
> JVM'01: http://www.usenix.org/events/jvm01/


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]