Communication bidirectionnelle sur port parall�le en java ?

J'ai test� l'emploi de l'api java.comm, mais il est impossible de changer le mode SPP (undirectionnel) par d�faut du port.
J'ai regard� au niveau des JNIs pour employer une dll salvatrice, mais elles ne r�serv�es que pour les langages qui ont la chance d'avoir leur interface avec cette dll. (g�n�ralement, il s'agit du langage C, et VB)
Bref, je ne vois aucune solution pour une communication bidirectionnelle et je n'ai pas le droit � d'autres recours que le langage Java.
Merci de votre aide.
Un �tudiant en informatique.

Si tu n'as pas eu de probl�me avec cette api pour une communication bidirectionnelle sur le port parall�le, peut-�tre que ce code contient une erreur d'emploie.
* Programme �crit le 22 et 23 avril 2002.
* Programme g�rant la communication avec le port parall�le en utilisant l'api java.comm
* Ce programme r�alise les actions suivantes qui sont effectu�s sur la machine locale:
* Teste la pr�sence d'un port parall�le, si celui-ci est pr�sent:
* R�cup�ration du nom du port
* R�cup�ration du mode de port (SPP, PS2, ECP, ...)
* Tentative d'association � un flux de sortie
* Tentative d'association � un flux d'entr�e
* Envoie des donn�es sur le port
* Pour fonctionner, il est n�cessaire de disposer d'un pilote de p�riph�rique sur port parall�le,
* et d'avoir correctement installer l'api java.comm
import java.io.*;
import java.util.*;
import javax.comm.*;
public class TestLpt1 {
static Enumeration portList;
static CommPortIdentifier portId;
static String messageString = "Texte envoy� en sortie sur le port parall�le... (60 octets)\n";
static String ApplicationName = "TestLpt1";
static ParallelPort parallelPort;
static OutputStream outputStream;
static InputStream inputStream;
public static void main(String[] args) {
portList = CommPortIdentifier.getPortIdentifiers();
while (portList.hasMoreElements()) {
portId = (CommPortIdentifier) portList.nextElement();
// Recherche d'un port parall�le nomm� lpt1
if (portId.getPortType() == CommPortIdentifier.PORT_PARALLEL&&
portId.getName().equals("LPT1")) {
     System.out.println("Il y a un port parall�le nomm�: "+portId.getName());
     try {
          // Ouverture de ce port
          parallelPort = (ParallelPort)portId.open(TestLpt1.ApplicationName, 2000);
          System.out.println("\nTentative d'appropriation du port par l'application TestLpt1...");
          System.out.println("Le port est appropri� � "+portId.getCurrentOwner());
     catch (PortInUseException e) {
          System.out.println("Le port est utilis� par une autre application.");
     // tentative de reconnaissance du mode utilis�
     switch(parallelPort.getMode()) {
          case ParallelPort.LPT_MODE_PS2:
                    System.out.println("\nLe port est actuellement en mode PS2");
                    break;
               case ParallelPort.LPT_MODE_EPP:
                    System.out.println("\nLe port est actuellement en mode EPP");
                    break;
               case ParallelPort.LPT_MODE_ECP:
                    System.out.println("\nLe port est actuellement en mode ECP");
                    break;
               case ParallelPort.LPT_MODE_NIBBLE:
                    System.out.println("\nLe port est actuellement en mode NIBBLE");
                    break;
               case ParallelPort.LPT_MODE_SPP:
                    System.out.println("\nLe port est actuellement en mode SPP");
                    try {
                         SetModeECP();
                    catch (UnsupportedCommOperationException e) {
                         System.out.println("Cannot set port at ECP mode");
                    break;
               default:
                    System.out.println("\nLe mode du port est inconnu.");
                    break;
     try {
          // cr�ation d'un flux de sortie
          outputStream = parallelPort.getOutputStream();
          System.out.println("-> Open ouput stream");
     } catch (IOException e) {
     System.out.println("X Cannot open ouput stream");
try {
     // cr�ation d'un flux d'entr�e
     inputStream = parallelPort.getInputStream();
     System.out.println("-> Open input stream");
} catch (IOException e) {
     System.out.println("X Cannot open input stream");
try {
     // �criture vers le port parall�le
outputStream.write(messageString.getBytes());
System.out.println("\nPrint to parallel port");
System.out.println("Fin normale du programme.");
catch (IOException e) {
     System.out.println("\nCannot print to parallel port");
} // fin du if
} // fin du while
} // fin du main
public static void SetModeECP() throws UnsupportedCommOperationException {
     // Fonction qui permettra de passer le port en mode ECP
parallelPort.setMode(ParallelPort.LPT_MODE_ECP);
} // fin de la classe
Merci de tes commentaires.
La fonction setMode(int) n'est pas utilis� car elle est incapable de changer le mode du port.

Similar Messages

  • RMI Communication with Fixed port

    I am mentioning here what I have done
    MyServer class
    public class MyRMIServer {
         public static void main(String[] args) {
                        try{
                   System.setSecurityManager(new RMISecurityManager());
                   MyRMIServiceInterface myRMIServiceInterface = (MyRMIServiceInterface)UnicastRemoteObject.exportObject(new MyRMIServiceImpl(), 50000);
                   Registry registry = LocateRegistry.createRegistry(1099);
                   registry.bind("myRMIImplInstance", myRMIServiceInterface);
              catch (Exception e) {
                   e.printStackTrace();
    My client class
    public class MyRMIClient {
         public static void main(String[] args) {
              try{
                   Registry registry = LocateRegistry.getRegistry("localhost", 1099);
                   MyRMIServiceInterface myRMIServiceInterface = (MyRMIServiceInterface)registry.lookup("myRMIImplInstance");
                   myRMIServiceInterface.getDate();
              catch (Exception e) {
                   e.printStackTrace();
    My rmi.policy
    permission java.net.SocketPermission "localhost:1099", "connect, resolve";     
         permission java.net.SocketPermission "localhost:50000", "connect, resolve";
         permission java.net.SocketPermission "localhost:50000", "accept, resolve";
    I run this program and getting exception at server side
    Exception in thread "RMI TCP Connection(idle)" java.security.AccessControlExcept
    ion: access denied (java.net.SocketPermission 127.0.0.1:49642 accept,resolve)
    at java.security.AccessControlContext.checkPermission(Unknown Source)
    at java.security.AccessController.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkAccept(Unknown Source)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.checkAcceptPermi
    ssion(Unknown Source)
    at sun.rmi.transport.tcp.TCPTransport.checkAcceptPermission(Unknown Sour
    ce)
    at sun.rmi.transport.Transport$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Unknown Source)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Sou
    rce)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Sour
    ce)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    and the 49642 is random
    Please clear my concept. Is it possible to make this communication to 50000.
    Edited by: Basir.Ahmed on Feb 14, 2010 7:01 PM
    Edited by: Basir.Ahmed on Feb 14, 2010 7:02 PM

    So Could you tell me why this permission level is not workingCertainly. I wrote:
    you have to define SocketPermissions at the server that permit it to accept from any client port numberYou implemented:
    permission java.net.SocketPermission "localhost:50000", "accept, resolve";So you haven't done what I said.
    Why I got the above exception. That's why.
    Is this case of local machine only? You've specified that you will only accept connections from 'localhost' on port 50000. I've already told you that the port number is too restrictive, you have to allow any ports, say 1024-. If 'localhost' is too restrictive, change that too, but I don't know what your requirement is (or why you are still using a SecurityManager at all).
    For above test does not relate the firewall like configuration?I don't understand that.

  • How to be sure port 10443 is open on  vintage airport extreme ( ufo shape, not square)

    My Denon 2112 AV reciever is having intermittent internet connect  issues. Denon says to be sure port 10443 in my router  is open. How do I check this and see if it is open on my vintage (ufo/dome shape) airport extreme?

    To setup port mapping on an 802.11n AirPort Extreme Base Station (AEBSn), either connect to the AEBSn's wireless network or temporarily connect directly, using an Ethernet cable, to one of the LAN port of the AEBSn, and then use the AirPort Utility, in Manual Setup, to make these settings:
    Advanced > Port Mapping tab
    o Click the "+" (Add) button
    o Service: <skip this setting as you will be custom configuring which ports you need opened for the TiVo>
    o Public UDP Port(s): <enter the appropriate UDP port values>
    o Public TCP Port(s): <enter the appropriate TCP port values>
    o Private IP Address: <enter the IP address of the host server>
    o Private UDP Port(s): <enter the same as Public UDP Ports or your choice>
    o Private TCP Port(s): <enter the same as Public TCP Ports or your choice>
    o Click "Continue"

  • Probleme de lecture sur port serie

    Je desire aller lire a une adresse precise grace a ma liaison serie mais je ne trouve aucun VI capable de m'aider comment faire?
    D'avance merci

    Bonjour,
    Pouvez vous précisez votre question ?
    A quoi correspond votre adresse.
    Le protocole série est point à point vous n'aurez qu'un périphérique sur chaque port COM.
    généralement pour dialoguer avec un périphérique sur port COM il vous faut un protocole d'échange qui est puls ou moins complexe. Sans connaissance de ce protocole vous ne pourrez pas dialoguer avec votre périphérique. Ce protocole constitue une suite de caractère à envoeyr dans une ordre précis avec des attribututs de vitesses de transmission et de trame connus.
    Les VIS de la palette VISA doivent vous permettre d'émettre et recevoir n'importe quelle trame sur votre port. Ils vous permettent aussi de gérer le bus en mode HandShake CTS/RTS XON/XOFF.
    J'espères que ces informations vous permett
    ent d'avancer
    Sincères salutations
    Salissou ISSA
    Ingénieur d'applications
    National Instruments France

  • (Infos) Sound Blaster PRO 2 sur port ISA

    Bonjour,
    J'ai une Sound Blaster PRO 2 sur port ISA (qui fonctionne tr?s tr?s bien) qui tourne avec un Cyrix 66+.
    N'ayant plus le manuel sous la main (heu...si vous savez o? je peux le trouver ?a serait sympa!) je me pose une question : ? quoi sert le connecteur, m?me connecteur en apparence qui se trouve sur la carte m?re pour alimenter hdd et/ou lecteur de cd, sur cette carte ?
    Je me pose la question car quand j'ai branch? dessus mon lecteur de CD, le r?sultat ?tait plut?t innatendu sous DOS : probl?me au ni'veau de la carte son (adresse et irq -> donc pas de son) et probl?me au ni'veau du lecteur de CD (pas de lecteur)
    Merci par avance de toute l'aide que vous pouvez apporter.

    poissonfree,
    Perhaps someone that speaks French will reply, but otherwise I would recommend you contact Customer Support directly, as you can speak to someone in French then:
    European Customer Support
    Cat

  • Communicating with COM port.

    Hi Experts,
    There is a electronic weighing machine and has a COM port ( communication port).  Can we connect to the COM port through ABAP?  I need to read the weight of the measured component to a table control directly from the weighing machine.
    Thanks and regards,
    M.Madhusudan Rao.

    http://java.sun.com/products/javacomm/

  • RE:connection to port 6241 failed during java upgrade

    Hi all,
    We are performing Java Upgrade and we are stuck in the intial stage stage. The problem is connection to port 6241 failed .
    We have retained the default port.
    Thanks and Regards,
    sowmya

    Hi Regelio
    As Van mentioned above,the issue may caused by the TAO NT Naming service.
    Please check the status of TAO NT Naming service/License Manager
    when the issue happens.And in case the error is really caused by
    those services,please try to re-install the whole server tools.
    Also,if the issue still persists,as another workaround we suggest you to use a simple
    batch script to test the Status of the TAO NT naming service,
    and restart it when the services  was stopped.
    Such a script can be launched with windows scheduled every several
    minutes.
    @echo off
    net start    find "TAO NT Naming Service"
    IF %ERRORLEVEL% EQU 0 (
      echo Ok - "TAO NT Naming Service" is running
    ) ELSE (
    echo Error - "TAO NT Naming Service" is not running
    net stop "TAO NT Naming Service"
    net stop "SAP Business One License Manager 2005"
    net start "TAO NT Naming Service"
    net start "SAP Business One License Manager 2005"
    Regards,
    Syn Qin
    SAP Business One Forums Team

  • How to make sure an applet runs with Java 5?

    Hi all,
    First let me say thanks for all the help in the past. You've help me go from noob to intermediate noob. I've just about finished my first applet game which can be checked out here .
    Now I've been reading about problems with mac and 1.6. (note it works on Linux). I want to make sure that it runs fine and of course I don't own a mac. So I downloaded the 5 JDK. Selected it as the java platform in Netbeans, compiled and it ran fine.
    Questions:
    Do I have to always use 1.5 to compile and perhaps set it as default?
    Since it works in 1.5, do I compile it with 1.6 and just upload?
    I'm worried I'm not testing it correctly. I mean if I have both 1.5 and 1.6 installed on my machine, how to I make sure the applet is only using 1.5 to run?
    Thanks
    Darrin

    corlettk wrote:
    I haven't got a clue RE your problem other than for max-portability you should compile with [-target 1.5|http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/javac.html].
    I must say I'm impressed, except I suspect my PC must be substantially faster than any of your test platforms... can you throttle it to CPU performance somehow? Or maybe it's just that my reflexes aren't what they once where.Thanks.
    There seem to be two issues. The first is what people are using. This web stats shows pretty poor penetration of 1.6.
    [http://www.statowl.com/java.php|http://www.statowl.com/java.php] Penetration: 54% with JRE1.6 + 19% with JRE 1.5. Total 73%.
    The second is I've read that mac and 1.6 do not get along except on a 64bit platform.
    So for applets there is not much choice but to compile on 1.5 for the broadest user base. I guess the good news is 1.4 and earlier are almost non-existent.
    Edited by: Darrin.A on Apr 27, 2009 8:11 AM

  • Ports to open between Java application server inside firewall and Java CI

    What ports do I need to open to allow a J2ee App server 7.0 to communicate with the Java Central Instance inside the firewall??
    thank you !
    Ld

    Why Database ports? seems like the Central Instance would be the only one talking to the Database no?
    thanks...
    This is for CRM eCommerce....

  • Currently running process name list and local port list display using java

    HI
    I have for truble to display Process name list and that process running local port number...
    like this output from java
    process localport
    ======= ========
    ccApp 1096
    orbd 1050
    postmaster 5432
    skype 443
    MSTask 1051
    can help any one with sample code Explain sample code wtih , this thread or . if you found sample code please send me [email protected]
    Best Regards
    P.SASIKUMAR

    If it's possible for C++ ,. can you give me the best sample and how to interact to java todisplay this result....

  • [labview 8.2] probleme de lecture sur port serie

    Bonjour, j'ai un probleme avec la fonction "VISA READ".
    J'envois une requette sur la rs232, je regarde le nombre d' octets sur le port (Byte at ports) et lorsque le nombre d'octet  est superieur ou égale à 96, je lance la lecture.
    Or il y a un trame, je ne sais pourquoi, qui n'est pas lu correctement.
    Le "Byte at ports" me renvoit bien 96 (j'ai en plus un analyseur de trame qui me confirme que la trame fait 96 octet) je rentre "en dur" 96 octets à lire à la fonction "VISA READ" et pourtant la trame de sortie ne fait que 13 octets et ceci à chaque fois?
    Merci d'avance de vos solutions.
    Cordialement
    Mathieu R.

    [resolu]
    le probleme venait de l'init du port com dans lequel il y a par defaut le "enable terminaison char".
    Donc mes trames étaient coupées des la reception d'un "0A"

  • Communication cldc serial port with problems?

    I have a problem using CLDC serial communications:
    I need a connection using Stopbit 2, databits 7, parity even and baudrate 4800.
    I use the line code:
    serialport.open("0;baudrate=4800;bitsperchar=7;stopbits=2;parity=even",1,true);
    or the sintax :
    soc_ = (StreamConnection)Connector.open("comm:0;baudrate=4800;bitsperchar=7;stopbits=2;parity=even");
    but the data arrive in palm of strange way. I send the bit 67 and receive in palm the bits 4, 12, 20 for example.
    helpme
    thank you

    [superfudido],
    The MIDP for Palm OS implementation currently does not
    support the comm protocol. Although CLDC supports the
    use of the serial comm protocol, what type of
    connections is determined by the profile, in the case
    of the Palm device, currently the only available
    profile is MIDP for Palm. The MIDP specification
    states that all MIDP compliant implementations must
    provide HTTP connections, all other connection types
    are optional.
    See this URL for the frequently asked questions for
    the MIDP for Palm technology:
    http://java.sun.com/products/midp4palm/faq.html#Q5
    HTH.
    Allen Lai
    Developer Technical Support
    SUN Microsystems
    http://www.sun.com/developers/support/
    However is possible to create conection for serial using databits 8, parity none, stopbit 1 without problems. Then exist comm protocol in CLDC, but no run with databits 7, parity even, stopbit 2. This is a Bug?

  • ACS Communication TCP/UDP ports

    Hi,
    I have a WEBVPN (on Cisco 2811) which will authenticate its client using ACS, ACS in turn will be integrated with AD.
    the three components (WEBVPN, ACS and AD) have a firewall in between them, I need to configure to allow the communication between the three components, I need a list the ports required for such configuration.
    Also I have to ACS appliances working in HA mode, they will be installed in different locations with firewall in between,What are the ports the 2 appliances are communicating through to ensure full HA?

    Table 2 have this information,
    http://www.cisco.com/en/US/prod/collateral/vpndevc/ps5712/ps2086/ps7032/prod_qas0900aecd80108148_ps2086_Products_Q_and_A_Item.html
    Regards,
    ~JG
    Do rate helpful posts

  • Problem communicating via serial port in Linux

    Hello,
    I am trying to transfer data via serial port, in Linux.
    But it is impossible till now!
    I get Runtime exception.
    Here is my code:
    public class Main {
        public Main() {
        int num=5;
        int[] array = new int[5];
        public static void main(String args[])  {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    array[0]=1;
                    array[1]=2;
                    array[2]=3;
                    array[3]=4;
                    array[4]=5;
                    new ParallelCommunication(num,array);
    import java.io.*;
    import java.util.*;
    import javax.comm.*; // for SUN's serial/parallel port libraries
    //import gnu.io.*; // for rxtxSerial library
    public class ParallelCommunication implements Runnable, SerialPortEventListener {
       static CommPortIdentifier portId;
       static CommPortIdentifier saveportId;
       static Enumeration portList;
       InputStream inputStream;
       SerialPort serialPort;
       Thread readThread;
       static OutputStream outputStream;
       static boolean outputBufferEmptyFlag = false;
       int num;
       int[] array;
       public ParallelCommunication(int this_num,int[] this_array) {
          boolean portFound = false;
          String defaultPort;
          num = this_num;
         array=new int[this_array.length];     
          array = this_array;     
          // determine the name of the serial port on several operating systems
          String osname = System.getProperty("os.name","").toLowerCase();
          if ( osname.startsWith("windows") ) {
             // windows
             defaultPort = "COM1";
          } else if (osname.startsWith("linux")) {
             // linux
            defaultPort = "/dev/ttyS0";
          } else {
             System.out.println("Sorry, your operating system is not supported");
             return;
    //      if (args.length > 0) {
    //         defaultPort = args[0];
          System.out.println("Set default port to "+defaultPort);
          // parse ports and if the default port is found, initialized the reader
          portList = CommPortIdentifier.getPortIdentifiers();
          while (portList.hasMoreElements()) {
             portId = (CommPortIdentifier) portList.nextElement();
             if (portId.getPortType() == CommPortIdentifier.PORT_SERIAL) {
                if (portId.getName().equals(defaultPort)) {
                   System.out.println("Found port: "+defaultPort);
                   portFound = true;
                   // init reader thread              
                   initialize();
                   break;
          if (!portFound) {
             System.out.println("port " + defaultPort + " not found.");
       public void initwritetoport() {
          // initwritetoport() assumes that the port has already been opened and
          //    initialized by "public void initialize()"
          try {
             // get the outputstream
             outputStream = serialPort.getOutputStream();
          } catch (IOException e) {}
          try {
             // activate the OUTPUT_BUFFER_EMPTY notifier
             serialPort.notifyOnOutputEmpty(true);
          } catch (Exception e) {
             System.out.println("Error setting event notification");
             System.out.println(e.toString());
             System.exit(-1);
       public void writetoport(int counter) {
          try {
             // write string to serial port
             outputStream.write(String.valueOf(array[counter]).getBytes());
          } catch (IOException e) {}
       public void initialize() {
          // initalize serial port
          try {
             serialPort = (SerialPort) portId.open("SimpleReadApp", 2000);
          } catch (PortInUseException e) {System.out.println("Port In Use.");}  //******Here is the Exception******
          try {
             inputStream = serialPort.getInputStream();
          } catch (IOException e) {}
          try {
             serialPort.addEventListener(this);
          } catch (TooManyListenersException e) {}
          // activate the DATA_AVAILABLE notifier
          serialPort.notifyOnDataAvailable(true);
          try {
             // set port parameters
             serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8,
                         SerialPort.STOPBITS_1,
                         SerialPort.PARITY_NONE);
          } catch (UnsupportedCommOperationException e) {}
          // start the read thread
          readThread = new Thread(this);
          readThread.start();
       public void run() {
          // first thing in the thread, we initialize the write operation
         initwritetoport();     
         for(int i=0; i<=num_of_inputs; i++) {
            // write string to port, the serialEvent will read it
            writetoport(i);
         serialPort.close();     
       public void serialEvent(SerialPortEvent event) {
          switch (event.getEventType()) {
          case SerialPortEvent.BI:
          case SerialPortEvent.OE:
          case SerialPortEvent.FE:
          case SerialPortEvent.PE:
          case SerialPortEvent.CD:
          case SerialPortEvent.CTS:
          case SerialPortEvent.DSR:
          case SerialPortEvent.RI:
          case SerialPortEvent.OUTPUT_BUFFER_EMPTY:
             break;
          case SerialPortEvent.DATA_AVAILABLE:
             // we get here if data has been received
             byte[] readBuffer = new byte[20];
             try {
                // read data
                while (inputStream.available() > 0) {
                   int numBytes = inputStream.read(readBuffer);
                // print data
                String result  = new String(readBuffer);
                System.out.println("Read: "+result);
             } catch (IOException e) {}
             break;
    }...and the outcome is :
    Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException:
    Error opening "/dev/ttyS0"
    tcgetattr(): Input/output error
    at com.sun.comm.LinuxDriver.getCommPort(LinuxDriver.java:66)
    at javax.comm.CommPortIdentifier.open(CommPortIdentifier.java:369)
    at ParallelCommunication.initialize(ParallelCommunication.java:128)
    I have searched a lot and I couldn't find a solution.
    Thank you.

    I'm having the same problem this helped somewhat debug the problem
    http://bloggerdigest.blogspot.com/2006/11/linux-serial-com-port-diagnostic-test.html
    I'm running Suse 10.3 and apparently it does not recognize my serial ports. So before
    you can test your Java code you have to figure out how to make linux see the ports.
    If I find a solution I'll let you know but if you find one first let me know. Thanks.

  • J2EE_ADMIN has no Port Role in ABAP+JAVA stacks system

    I installed 2004s BI IDES SR2 with ABAP+JAVA on Win 2003 + Oracle, default client 800.
    I find the J2EE runs fine, I can log into SDM, configtools. And I can launch
    http://host:50000/index and http://host:50000/irj/portal, which mean the portal is up.
    But with http:host:50000/index.html, I can't goto http://host:50000/useradmin, nor http://host:50000/nwa
    The error message is:
    Application cannot be started.
    Details:        com.sap.engine.services.deploy.container.ExceptionInfo: Naming error.
    with http://host:50000/irj/portal, both j2ee_admin and sap* can log in, but without any portal role. Thus
    only logoff link available, and I can't do anything else.
    I read through all the related post and can't figure out a way to assign the portal role to j2ee_admin or create additional portal user, anyone can help my situation.
    I also can not log into Visual Admin with j2ee_admin, connect error:
    Error while connecting
    com.sap.engine.services.jmx.exception.JmxSecurityException: Caller J2EE_ADMIN not authorized, only role administrators is allowed to access JMX
    (which I checked sap_j2ee_admin role is green on su01 role tab with correct valid period.)
    what should I do?
    Thanks

    Thanks for prompt reply, Debasis.
    Could you please elaborate the steps I need to take? Thanks.
    eg. how do I "Assign a user a role that has the permission for the UME action JMX.JmxManageAll"
    I don't have any portal tools working properly yet, I don't have useradmin, and I don't have nwa. I don't even have visual admin. Everything I do in ABAP, pfcg, su01, seems have no effect to those portal functionalities.
    The fact that I enable emergency sap* from configtool also doesn't make useradmin / nwa work...
    Any idea? Thank you.

Maybe you are looking for

  • How to use 1 edge animation in multiple pages without duplicate files?

    Hi, I want to display an animation on multiple pages that are all located in there own respective folders. I want to be able to move then animation files into it's own dedicated folder e.g. /includes/edge folder where I can still use this animation i

  • Using wildcards in URL variables (very simple question, i know)

    Hi all! Pulling my hair out over this... How do I use wildcards in URL variables? I have this code in compositionReady (which is working): var myurl = "http://www.mydomain.com/sub1/sub2/pagename"; var currenturl = window.location if(myurl == currentu

  • Library not loaded when osx start with single mode

    Description: Product:Mac mini os:mac os x 10.7.5 step1. For app software testing,the follow files was moved from /usr/lib to / . libcrypto0.9.7.dylb libcrypto0.9.8.dylb libcrypto.dylb step2.restart os Problem  appear: the gray screen appear a long ti

  • Change in AAC file format?

    I have a 3rd party music player (the Archos 604 WiFi) with the podcast plug-in (which includes support for non-protected AAC files). I can play AAC files created (i.e., ripped) with iTunes 7 just fine, but it has trouble with AAC files created with o

  • Running a function in a Cursor

    hi. i have an interesting question. i have a cursor that works properly. Such as : OPEN p_cursor FOR 'select name,surname,age,height,weight .... ' it works properly. My question is, i want to add a pl sql function as a column. My cursor must be : OPE