Check Mail
Compose
Folders
Addresses
Search
Options
Help Desk
Sign Out

| Faxes Voicemail

Send A Greeting

Get Y! Messenger

Read Message | Help

| Download Attachments
Next | Inbox |

From Alejandro P. Revilla Tue Dec 7 08:47:36 1999
X-Apparently-To: | taj@www.linux.org.uk via mdd301.mail.yahoo.com
Received: | from csd.cs.com.uy (HELO ms.cs.com.uy) (206.99.51.136) by mta123.mail.yahoo.com with SMTP; 7 Dec 1999 16:47:50 -0000
Received: | from apr.cs.com.uy (apr.cs.com.uy [206.99.51.131]) by ms.cs.com.uy (8.9.1/8.9.1) with ESMTP id NAA41246 for <taj@www.linux.org.uk>; Tue, 7 Dec 1999 13:50:04 -0300
Received: | (from apr@localhost) by apr.cs.com.uy (8.8.5/8.8.5) id NAA05191 for taj@www.linux.org.uk; Tue, 7 Dec 1999 13:47:37 -0300
Date: | Tue, 7 Dec 1999 13:47:36 -0300
From: | "Alejandro P. Revilla" <apr@cs.com.uy> | Block address
To: | Trent Jarvi <taj@www.linux.org.uk>
Subject: | Forward of JINI-USERS thread
Message-ID: | <19991207134736.M24226@cs.com.uy>
Mime-Version: | 1.0
Content-Type: | multipart/mixed; boundary=+QahgC5+KEYLbs62
X-Mailer: | Mutt 0.95.4i
Content-Length: | 9771

    Hi Trent,

       There's a problem accesing CommAPI after setting an
    RMISecurityManager(). I did not have time to find out where
    the problem is, just went thru a simple workaround. Now I
    see somebody else on JINI-USERS reporting the same problem
    and it happens not to appear on Windoze machines.

    Just for your information and for you to be aware of it
    I am attaching two messages (original message and my response)
    to JINI-USERS.

    I personally think the problem may well be at comm.jar
    solaris implementation.

    Best regards
    --Alejandro

Attachment: Forwarded Message

Return-Path: | <owner-jini-users@JAVA.SUN.COM>
Received: | from localhost (localhost [127.0.0.1]) by apr.cs.com.uy (8.8.5/8.8.5) with ESMTP id TAA10006 for <apr@localhost>; Sun, 5 Dec 1999 19:12:49 -0300
Received: | from csd.cs.com.uy by localhost with POP3 (fetchmail-4.7.6) for apr@localhost (single-drop); Sun, 05 Dec 1999 19:12:49 -0300 (EST)
Received: | from cs.cs.com.uy (cs.cs.com.uy [206.99.51.130]) by ms.cs.com.uy (8.9.1/8.9.1) with SMTP id TAA53622 for <apr@csd.cs.com.uy>; Sun, 5 Dec 1999 19:14:30 -0300
Received: | (qmail 18134 invoked by alias); 5 Dec 1999 22:12:10 -0000
Delivered-To: | cs-com-uy-apr@CS.COM.UY
Received: | (qmail 42448 invoked from network); 5 Dec 1999 22:12:08 -0000
Received: | from mail.javasoft.com (HELO mail.java.sun.com) (204.160.241.28) by cs.cs.com.uy with SMTP; 5 Dec 1999 22:12:08 -0000
Received: | from mail (mail.java.sun.com [204.160.241.28]) by mail.java.sun.com (8.9.3+Sun/8.9.3) with ESMTP id OAA28872; Sun, 5 Dec 1999 14:07:56 -0800 (PST)
Received: | from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release 1.8d) with spool id 2782139 for JINI-USERS@JAVA.SUN.COM; Sun, 5 Dec 1999 14:03:53 -0800
Received: | from catwalk.los-gatos.net ([207.214.112.33]) by mail.java.sun.com (8.9.3+Sun/8.9.3) with ESMTP id OAA28480 for <jini-users@java.sun.com>; Sun, 5 Dec 1999 14:03:51 -0800 (PST)
Received: | from catwalk.los-gatos.net (localhost [127.0.0.1]) by catwalk.los-gatos.net (8.8.7/8.8.7) with SMTP id NAA07234 for <jini-users@java.sun.com>; Sun, 5 Dec 1999 13:57:01 -0800
X-Mailer: | KMail [version 1.0.28]
Content-Type: | text/plain
References: | <99120505155801.00629@catwalk.los-gatos.net>
MIME-Version: | 1.0
Content-Transfer-Encoding: | 8bit
Approved-By: | Doug Sutherland <doug@LOS-GATOS.NET>
Message-ID: | <99120513570007.00629@catwalk.los-gatos.net>
Date: | Sun, 5 Dec 1999 13:48:52 -0800
Reply-to: | doug@los-gatos.net
Sender: | "A mailing list for discussing Sun's Jini (tm) Technology" <JINI-USERS@JAVA.SUN.COM>
From: | Doug Sutherland <doug@los-gatos.net>
Organization: | The Cats Net
Subject: | Re: Fwd: RMI Security Manager prevents access to other classes?
To: | JINI-USERS@JAVA.SUN.COM
In-Reply-To: | <99120505155801.00629@catwalk.los-gatos.net>

    Hi,

    Allow me to clarify this problem further. I am aware of the Java 2
    security policies, and I am starting both the server and client with
    the -Djava.security.policy=policy parameter, where policy contains
    the usual

       permission java.security.AllPermission

    The code works fine on Windows with the win32com.dll driver for
    Javacomm API. But on Linux the same code fails when trying to load
    the RXTXCommDriver (native driver for javacomm on linux). Seems
    like it might be a bug in gnu.io.RXTXCommDriver, either that or
    RMISecurityManager is not behaving the same way on Linux.

    Any Ideas?

    Thanks,
    Doug

    > Correction: I meant to say:
    >
    >  - if I comment out System.setSecurityManager(new
    RMISecurityManager())
    >                                                   ^^^
    >    the serial port access works fine. But with the RMI security
    manager
    >    the loading of serial port drivers fails.
    >
    > Doug
    >
    >
    >
    > ----------  Forwarded Message  ----------
    > Subject: RMI Security Manager prevents access to other classes?
    > Date: Sun, 5 Dec 1999 04:49:54 -0800
    > From: Doug Sutherland <doug@los-gatos.net>
    >
    >
    > Hi There,
    >
    > I am working with JDK1.2 (blackdown) on Linux kernel 2.0.36 (Redhat
    5.2).
    > I have an RMI client application that connects to an RMI server,
    grabs
    > some data, and sends it out the serial port to an LCD display using
    the
    > Java commapi for Linux. I have a situation where:
    >
    >  - if I comment out System.setSecurityManager(new SecurityManager())
    >    the serial port access works fine, I write out characters to the
    >    display no problem. The program finds the serial ports using
    >    getPortIdentifier and is able to open the serial port.
    >
    >  - if I put back in the RMI security manager, the application does
    >    not find the serial ports, instead it throws an exception while
    >    trying to load the serial drivers:
    >
    >      caught java.lang.IllegalArgumentException: name can't be null
    >      while loading driver gnu.io.RXTXCommDriver
    >
    > It appears that the RMI security manager is somehow messing with the
    > loading of the native serial port driver (RXTX for linux). I assume
    > that this is a feature not a bug. What do I need to do to get the
    > RMI security manager to allow access to other classes? In this case
    > the serial driver consists of a native shared library:
    >
    >  /usr/local/java/jdk1.2/jre/lib/i386/libSerial.so
    >
    > And java classes that reside here:
    >
    >  /usr/local/java/jdk1.2/jre/lib/ext/jcl.jar
    >  /usr/local/java/jdk1.2/jre/lib/ext/comm.jar
    >
    > Anyone have any ideas? Do you have commapi working in an app
    > that also does RMI? Any tips would be appreciated.
    >
    > Thanks,
    > Doug

    ===========================================================================
    To unsubscribe, send email to listserv@java.sun.com and include in the
    body
    of the message "signoff JINI-USERS".  For general help, send email to
    listserv@java.sun.com and include in the body of the message "help".

    To view past JINI-USERS postings, please see:
    http://archives.java.sun.com/archives/jini-users.html

    To participate in the community, please visit:
    http://www.jini.org

Attachment: Forwarded Message

Return-Path: | <owner-jini-users@JAVA.SUN.COM>
Received: | from localhost (localhost [127.0.0.1]) by apr.cs.com.uy (8.8.5/8.8.5) with ESMTP id NAA04642 for <apr@localhost>; Tue, 7 Dec 1999 13:07:42 -0300
Received: | from csd.cs.com.uy by localhost with POP3 (fetchmail-4.7.6) for apr@localhost (single-drop); Tue, 07 Dec 1999 13:07:43 -0300 (EST)
Received: | from cs.cs.com.uy (cs.cs.com.uy [206.99.51.130]) by ms.cs.com.uy (8.9.1/8.9.1) with SMTP id NAA20040 for <apr@csd.cs.com.uy>; Tue, 7 Dec 1999 13:09:33 -0300
Received: | (qmail 42616 invoked by alias); 7 Dec 1999 16:07:10 -0000
Delivered-To: | cs-com-uy-apr@CS.COM.UY
Received: | (qmail 21107 invoked from network); 7 Dec 1999 16:07:07 -0000
Received: | from mail.javasoft.com (HELO mail.java.sun.com) (204.160.241.28) by cs.cs.com.uy with SMTP; 7 Dec 1999 16:07:07 -0000
Received: | from mail (mail.java.sun.com [204.160.241.28]) by mail.java.sun.com (8.9.3+Sun/8.9.3) with ESMTP id IAA01760; Tue, 7 Dec 1999 08:01:25 -0800 (PST)
Received: | from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release 1.8d) with spool id 2820739 for JINI-USERS@JAVA.SUN.COM; Tue, 7 Dec 1999 07:19:24 -0800
Received: | from ms.cs.com.uy (csd.cs.com.uy [206.99.51.136]) by mail.java.sun.com (8.9.3+Sun/8.9.3) with ESMTP id HAA22568 for <JINI-USERS@JAVA.SUN.COM>; Tue, 7 Dec 1999 07:19:18 -0800 (PST)
Received: | from apr.cs.com.uy (apr.cs.com.uy [206.99.51.131]) by ms.cs.com.uy (8.9.1/8.9.1) with ESMTP id MAA16516; Tue, 7 Dec 1999 12:21:03 -0300
Received: | (from apr@localhost) by apr.cs.com.uy (8.8.5/8.8.5) id MAA03834; Tue, 7 Dec 1999 12:18:39 -0300
Mail-Followup-To: | Doug Sutherland <doug@los-gatos.net>, JINI-USERS@JAVA.SUN.COM
References: | <99120505155801.00629@catwalk.los-gatos.net> <99120513570007.00629@catwalk.los-gatos.net>
Mime-Version: | 1.0
Content-Type: | text/plain; charset=us-ascii
X-Mailer: | Mutt 0.95.4i
Approved-By: | "Alejandro P. Revilla" <apr@CS.COM.UY>
Message-ID: | <19991207121838.A24226@cs.com.uy>
Date: | Tue, 7 Dec 1999 12:18:38 -0300
Reply-to: | "Alejandro P. Revilla" <apr@CS.COM.UY>
Sender: | "A mailing list for discussing Sun's Jini (tm) Technology" <JINI-USERS@JAVA.SUN.COM>
From: | "Alejandro P. Revilla" <apr@CS.COM.UY>
Subject: | Re: Fwd: RMI Security Manager prevents access to other classes?
Comments: | To: Doug Sutherland <doug@los-gatos.net>
To: | JINI-USERS@JAVA.SUN.COM
In-Reply-To: | <99120513570007.00629@catwalk.los-gatos.net>; from Doug Sutherland on Sun, Dec 05, 1999 at 01:48:52PM -0800

    >
    > The code works fine on Windows with the win32com.dll driver for
    > Javacomm API. But on Linux the same code fails when trying to load
    > the RXTXCommDriver (native driver for javacomm on linux). Seems
    > like it might be a bug in gnu.io.RXTXCommDriver, either that or
    > RMISecurityManager is not behaving the same way on Linux.
    >
    > Any Ideas?
    >
    I've experienced that very same problem. My work around was
    to install RMISecurityManager _after_ fetching the desired
    CommPortIdentifier (and of course I can perform I/O on the ports
    after setting RMISecurityManager)

    This is not necessary a problem with RXTXCommDriver,
    there are other components involved such as 'comm.jar'.

    --Alejandro

    ===========================================================================
    To unsubscribe, send email to listserv@java.sun.com and include in the
    body
    of the message "signoff JINI-USERS".  For general help, send email to
    listserv@java.sun.com and include in the body of the message "help".

    To view past JINI-USERS postings, please see:
    http://archives.java.sun.com/archives/jini-users.html

    To participate in the community, please visit:
    http://www.jini.org

Next | Inbox |
| Download Attachments

Privacy Policy - Terms of Service - Guidelines
Copyright © 1994-1999 Yahoo! Inc. All rights reserved.