Permission denied on Serial port open

Hi all!
I'm trying to open a serial port in a Linux machine and I get a RuntimeException in the open() method of CommPortIdentifier:
Error opening "/dev/ttyS0"
Permission deniedHow can i run the program as root or with root permissions?
I'm running it from Eclipse.
Thanks!

I am trying to set this to the Mac (Admin) owner. The folder that is being shared over the network via samba was created on Mac OS

Similar Messages

  • Listen to serial port open by another applicatio​n

    I have a test setup where another application is communicating with a device over a serial port and I want my Labview gui to be able to listen to the communication. Since two applications cannot have the same serial port open I can't just open the port and do a visa read. Is there any way to do an unreserved open and only listen to communication on the serial port or do I physically have to break out the receive line in hardware and add a second serial port in order to do this?

    A better solution would be to have your reader post a message to a queue with the data. You can have a separate task that handles the UI updates. Depending on the type and amount of data you may not need to post all of the data.
    The answer to your specific question though is no, you cannot have two readers on the same connection.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Permission Denied in Terminal (Apache version check)

    I'm trying to chek the version of Apache in my system using Terminal entry: httpd ~v
    Each time it returns the statement: fopen: Permission denied
    httpd: could not open error log file /private/var/log/httpd/error_log.
    I know I have admin access to the system. What would be causing this error?

    Apache can't write its log to the default location under /var/log when it's executed with your permissions.
    Try "apachectl -v" at the command line.

  • Permission denied error in BSP application

    i am using activax object "Microsoft.XMLHTTP" in my BSP application
    and calling following url
    req.open("POST","https://test.authorize.net/gateway/transact.dll",false);
    but it give me the error permission denied
    Thanks
    Ganesh

    i can open this URL from browser, but when i call any URL from my javascript codes in BSP application it gives error "Permission denied" or url is forbidden. this happens with other url also. I have seen some thread on it and tried to put this url in my browser trusted site even after it shows same error.
    Edited by: Ganesh Modhave on Sep 10, 2008 3:44 PM

  • Java bean to get information from serial port

    we are migrating from 6i to 10g. In 6i, we used mscomm32.ocx to access to com port. Now in 10g we need a java bean. Anybody has a java bean to access to serial port or anything similar?
    My email is [email protected]
    Thanks in advance.

    we set properties to the serial port, open the port, read (listen) from port, ... Here there are some pieces of code to you see it:
    -- Si está abierto el puerto puedo leer
    IF (MsCommLib_ImsComm.PortOpen(:ITEM('IF_OCX_COM').INTERFACE)=-1) THEN
    -- Miro si hay caracteres
    a:=MsCommLib_ImsComm.InBufferCount(:ITEM('IF_OCX_COM').INTERFACE);
    IF a>0 THEN
    set_item_property('COMUNICACION_ICS.ESPERA',DISPLAYED,PROPERTY_FALSE);
    --Datos de un bloque nuevo, hay que insertar la fecha
    IF :global.estado = 0 THEN
    --Leo la fecha en la que se ha leído los datos
    --SELECT SYSDATE INTO fecha
    --FROM DUAL;   
    fecha := To_Date(:System.Current_Datetime,'dd-mon-yyyy hh24:mi:ss');
    -- Borro la pantalla si hay mas de 1920 caracteres
    :global.tc := :global.tc + 21;
    IF :global.tc > 1920 then
    :comunicacion_ics.if_txt_com_rec :='';
    :global.tc := 0;
    end if;
    --Introduzco la fecha en el control de texto, para su posterior proceso
    :comunicacion_ics.if_txt_com_rec := :comunicacion_ics.if_txt_com_rec||CHR(10)
    ||'__' || To_Char(fecha,'DD-MM-YYYY,HH24:Mi:SS')||chr(10);
    guarda := Fichero.Escribe(:global.fic,CHR(10)||'__' || To_Char(fecha,'DD-MM-YYYY,HH24:Mi:SS')
    ||chr(10));
    if guarda < 0 then
    raise e;
    end if;
    END IF;
    -- Indico que se están recibiendo datos de este bloque
    :global.estado := 2;
    --Leo la cadena
    linea_ics := Var_To_Char(MsCommLib_ImsComm.Input(:item('IF_OCX_COM').INTERFACE));
    linea_ics := replace(linea_ics,chr(13),CHR(10)); -- CHR(10)
    --La añado al control de texto para que se vea
    -- Borro la pantalla si hay mas de 1920 caracteres
    :global.tc := :global.tc + a;
    IF :global.tc > 1920 then
    :comunicacion_ics.if_txt_com_rec :='';
    :global.tc := 0;
    end if;
    :comunicacion_ics.if_txt_com_rec := :comunicacion_ics.if_txt_com_rec||
    linea_ics;
    --Escribo la linea en el fichero
    -- Propiedades de Buffers
    -- Tamaño del Buffer de Entrada
    :prop_com.txt_in_buf := MsCommLib_ImsComm.InBufferSize(:ITEM('IF_OCX_COM').INTERFACE);
    -- Tamaño del Buffer de Salida
    :prop_com.txt_out_buf := MsCommLib_ImsComm.OutBufferSize(:ITEM('IF_OCX_COM').INTERFACE);
    -- Tamaño de la cadena de Entrada
    :prop_com.txt_input_len := MsCommLib_ImsComm.InputLen(:ITEM('IF_OCX_COM').INTERFACE);
    -- RThreshold
    :prop_com.txt_rthres := MsCommLib_ImsComm.RThreshold(:ITEM('IF_OCX_COM').INTERFACE);
    -- SThreshold
    :prop_com.txt_sthres := MsCommLib_ImsComm.SThreshold(:ITEM('IF_OCX_COM').INTERFACE);
    -- EOF Enable
    :prop_com.chk_eof_enable := MsCommLib_ImsComm.EOFEnable(:ITEM('IF_OCX_COM').INTERFACE);
    -- Propiedades Hardware
    -- Parity replace
    :prop_com.txt_par_repl := MsCommLib_ImsComm.ParityReplace(:ITEM('IF_OCX_COM').INTERFACE);
    -- NULL Discard
    :prop_com.chk_null_discard := MsCommLib_ImsComm.NULLDiscard(:ITEM('IF_OCX_COM').INTERFACE);
    -- RTS Enable
    :prop_com.chk_rts := MsCommLib_ImsComm.RTSEnable(:ITEM('IF_OCX_COM').INTERFACE);
    -- NULL DTR
    :prop_com.chk_dtr := MsCommLib_ImsComm.DTREnable(:ITEM('IF_OCX_COM').INTERFACE);
    Thanks. Inma

  • Control Camera Attibutes through serial port using VISA commands

    Hi there,
    I'm using a Basler acA2000-340kc camera through an PCIe-1473R FPGA as frame grabber.
    I would like to be able to configure the camera through the serial port just in LabView, not using a third-party as Pylon (which I can do now).
    According to this forum post 
    http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/My-Basler-acA2040-180km-NIR-is-not-visible-in...
    this is possible just taking the VI posted here
    https://decibel.ni.com/content/docs/DOC-5049
    and converting from IMAQ to VISA, as RIO frame grabbers cannot use IMAQ. I have been trying to do this by changing the IMAQ vi to their VISA equivalents, but I have no good results.
    Does anyone know which are the steps to go from that piece of code to one that can be used to control the camera in my case?
    Thanks a lot,

    Hi i.popa,
    Basler makes the Basler Binary Protocol Library for serial communication with their cameras. If you make sure you're running the serial server section of your FPGA code to keep the serial port open, you should be able to use calls from this library to communicate with your camera. We have a community example with more information on using the Call Library Function Node to call a DLL. This DLL will take care of all the processes needed to write from and read to the registry, so this implementation will probably be similar to the example program you listed above, using calls to this library instead of the IMAQ Serial functions.
    Good luck with your application!
    Emily C
    Applications Engineer
    National Instruments

  • Java ME 8 Permission check failed when opening a serial port

    I have a larger Jave ME8.1 application that was going well until I tried to add one last piece, reading and writing data from a serial port. This was left to last because it is trivial, at least in most programming languages. The is IDE NetBeans 8.0.2 running on a Windows 7 PC. The platform is a Raspberry Pi B or B+ (I have tried both) with the most current Raspbian (12/24/2014 I believe). To simplify the process I created a new app with just the open and close code and this generates the same error I am experiencing in the larger application. The program is as follows:
    package javamecomapp;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javax.microedition.io.CommConnection;
    import javax.microedition.io.Connector;
    import javax.microedition.midlet.MIDlet;
    * @author ****
    public class JavaMEcomApp extends MIDlet {
        static int BAUD_RATE = 38400;
        static String SERIAL_DEVICE = "ttyAMA0";
        static CommConnection commConnection = null;
        static OutputStream os = null;
        static InputStream is = null;
        static String connectorString;
        private int rtnValue = -1;
        @Override
        public void startApp() {
            java.lang.System.out.println("Opening comm port.");
            try {
                rtnValue = JavaMEcomApp.openComm();
            } catch (IOException ex) {
                Logger.getLogger(JavaMEcomApp.class.getName()).log(Level.SEVERE, null, ex);
        @Override
        public void destroyApp(boolean unconditional) {
            java.lang.System.out.println("Closing comm port.");
            try {
                rtnValue = JavaMEcomApp.closeComm();
            } catch (IOException ex) {
                Logger.getLogger(JavaMEcomApp.class.getName()).log(Level.SEVERE, null, ex);
            private static int openComm()throws IOException {
                java.lang.System.out.println("Opening comm port.");
                connectorString = "comm:" + SERIAL_DEVICE + ";baudrate=" + BAUD_RATE;
                commConnection = (CommConnection)Connector.open(connectorString);
                is  = commConnection.openInputStream();
                os = commConnection.openOutputStream();
            return 0;
        private static int closeComm()throws IOException {
            java.lang.System.out.println("Closing comm port.");
                is.close();
                os.close();
                commConnection.close();
            return 0;
    If I comment out the JavaMEcomApp.openComm and closeComm lines it runs fine. When they are included, the following error is dumped to the Raspberry Pi terminal:
    Opening comm port.
    Opening comm port.
    [CRITICAL] [SECURITY] iso=2:Permission check failed: javax.microedition.io.CommProtocolPermission "comm:ttyAMA0;baudrate=38400" ""
    TRACE: <at java.security.AccessControlException: >, startApp threw an Exception
    java.security.AccessControlException:
    - com/oracle/meep/security/AccessControllerInternal.checkPermission(), bci=118
    - java/security/AccessController.checkPermission(), bci=1
    - com/sun/midp/io/j2me/comm/Protocol.checkForPermission(), bci=16
    - com/sun/midp/io/j2me/comm/Protocol.openPrim(), bci=31
    - javax/microedition/io/Connector.open(), bci=77
    - javax/microedition/io/Connector.open(), bci=6
    - javax/microedition/io/Connector.open(), bci=3
    - javamecomapp/JavaMEcomApp.openComm(), bci=46
    - javamecomapp/JavaMEcomApp.startApp(), bci=9
    - javax/microedition/midlet/MIDletTunnelImpl.callStartApp(), bci=1
    - com/sun/midp/midlet/MIDletPeer.startApp(), bci=5
    - com/sun/midp/midlet/MIDletStateHandler.startSuite(), bci=246
    - com/sun/midp/main/AbstractMIDletSuiteLoader.startSuite(), bci=38
    - com/sun/midp/main/CldcMIDletSuiteLoader.startSuite(), bci=5
    - com/sun/midp/main/AbstractMIDletSuiteLoader.runMIDletSuite(), bci=130
    - com/sun/midp/main/AppIsolateMIDletSuiteLoader.main(), bci=26
    java.security.AccessControlException:
    - com/oracle/meep/security/AccessControllerInternal.checkPermission(), bci=118
    - java/security/AccessController.checkPermission(), bci=1
    - com/sun/midp/io/j2me/comm/Protocol.checkForPermission(), bci=16
    - com/sun/midp/io/j2me/comm/Protocol.openPrim(), bci=31
    - javax/microedition/io/Connector.open(), bci=77
    - javax/microedition/io/Connector.open(), bci=6
    - javax/microedition/io/Connector.open(), bci=3
    - javamecomapp/JavaMEcomApp.openComm(), bci=46
    - javamecomapp/JavaMEcomApp.startApp(), bci=9
    - javax/microedition/midlet/MIDletTunnelImpl.callStartApp(), bci=1
    - com/sun/midp/midlet/MIDletPeer.startApp(), bci=5
    - com/sun/midp/midlet/MIDletStateHandler.startSuite(), bci=246
    - com/sun/midp/main/AbstractMIDletSuiteLoader.startSuite(), bci=38
    - com/sun/midp/main/CldcMIDletSuiteLoader.startSuite(), bci=5
    - com/sun/midp/main/AbstractMIDletSuiteLoader.runMIDletSuite(), bci=130
    - com/sun/midp/main/AppIsolateMIDletSuiteLoader.main(), bci=26
    Closing comm port.
    Closing comm port.
    TRACE: <at java.lang.NullPointerException>, destroyApp threw an Exception
    java.lang.NullPointerException
    - javamecomapp/JavaMEcomApp.closeComm(), bci=11
    - javamecomapp/JavaMEcomApp.destroyApp(), bci=9
    - javax/microedition/midlet/MIDletTunnelImpl.callDestroyApp(), bci=2
    - com/sun/midp/midlet/MIDletPeer.destroyApp(), bci=6
    - com/sun/midp/midlet/MIDletStateHandler.startSuite(), bci=376
    - com/sun/midp/main/AbstractMIDletSuiteLoader.startSuite(), bci=38
    - com/sun/midp/main/CldcMIDletSuiteLoader.startSuite(), bci=5
    - com/sun/midp/main/AbstractMIDletSuiteLoader.runMIDletSuite(), bci=130
    - com/sun/midp/main/AppIsolateMIDletSuiteLoader.main(), bci=26
    java.lang.NullPointerException
    - javamecomapp/JavaMEcomApp.closeComm(), bci=11
    - javamecomapp/JavaMEcomApp.destroyApp(), bci=9
    - javax/microedition/midlet/MIDletTunnelImpl.callDestroyApp(), bci=2
    - com/sun/midp/midlet/MIDletPeer.destroyApp(), bci=6
    - com/sun/midp/midlet/MIDletStateHandler.startSuite(), bci=376
    - com/sun/midp/main/AbstractMIDletSuiteLoader.startSuite(), bci=38
    - com/sun/midp/main/CldcMIDletSuiteLoader.startSuite(), bci=5
    - com/sun/midp/main/AbstractMIDletSuiteLoader.runMIDletSuite(), bci=130
    com/sun/midp/main/AppIsolateMIDletSuiteLoader.main(), bci=26
    I have tried this with three different serial ports, /dev/ttyAMA0 (yes I did disable the OS from using it), an arduino board /dev/ttyACM0, and a USB to RS485 adaptor /dev/ttyUSB0. All of these ports could be connected and use normally with both a C program and terminal program in the Pi. The API Permissions were set in the project properties / Application Descriptor / API Permissions to jdk.dio.DeviceMgmtPermission "/dev/ttyAMA0". This of course was changed as I tested different devices.
    I found a reference suggesting adding the line "authentication.provider = com.oracle.meep.security.NullAuthenticationProvider" to the end of the jwc_properties.ini file. This had no effect. I found references that during development in eclipse and NetBeans, the app is already elevated to the top level so this should not be an issue until deployment. This does not appear to be the case.
    I am out of time and need a solution quickly. Any suggestions are welcome.

    Terrence,
       Thank you for responding and confirming the issues I'm having with static addressing.  As far as the example above, I do have the standard LEDs working correctly, however, the example I'm referring to above is from the JavaME samples using the GPIO Port for the LEDS, according to the Device I/O Preconfigured List you referenced:
    GPIO Ports
    The following GPIO ports are preconfigured.
    Devicel ID
    Device Name
    Mapped
    Configuration
    8
    LEDS
    PTB22
    PTE26
    PTB21
    direction = 1 (Output only)
    initValue = 0
    GPIOPins:
    controllerNumber = 1
    pinNumber = 22
    mode = 4 (Push-pull mode)
    controllerNumber = 4
    pinNumber = 26
    mode = 4 (Push-pull mode)
    controllerNumber = 1
    pinNumber = 21
    mode = 4 (Push-pull mode)
    So is the assumption that using GPIOPort for accessing the GPIO port for Device ID 8 as listed in the Device I/O Preconfigured list not supported?

  • Unable to open USB port device file: Permission denied

    I have an up-to-date system (full "pacman -Syu" yesterday), I am in a "lp" group and the printer (Canon Pixma MP270) started to give "Unable to open USB port device file: Permission denied" error, although in the past it worked and still works in Windows. Doesn't anybody have a similar problem?

    Thanks for reply.
    CUPS worked, I could use CUPS-PDF and localhost:631 was accessible and working.
    Today I managed to print again. I did "pacman -Rcsn cups" and reinstalled it again.
    My printer is Canon Pixma MP270 and so far it wasn't the best choice for Arch Linux—scanning works fine but it's like throwing a coin when it comes to printing. I've written a simple PKGBUILD for installing its printing driver as a regular package, but I don't know what to set as a license.
    pkgname=mp270-printer
    pkgver=3.20
    pkgrel=1
    pkgdesc="Canon Pixma MP270 printer driver"
    arch=('i686')
    url="http://software.canon-europe.com/products/0010753.asp"
    license=('unknown')
    depends=('libpng12' 'gtk2' 'popt')
    makedepends=('deb2targz')
    source=(http://files.canon-europe.com/files/soft37268/software/MP270_debian_driver_pack.tar)
    md5sums=('d26c36e2d1799ddc09e644dc7765f0a3')
    build() {
    cd $srcdir
    tar xzf cnijfilter-mp270series-$pkgver-1-i386-deb.tar.gz
    cd cnijfilter-mp270series-$pkgver-1-i386-deb/packages
    deb2targz *
    tar xzf cnijfilter-common_$pkgver-1_i386.tar.gz
    tar xzf cnijfilter-mp270series_$pkgver-1_i386.tar.gz
    ln -s /usr/lib/libtiff.so usr/lib/libtiff.so.4
    package () {
    cd $srcdir/cnijfilter-mp270series-$pkgver-1-i386-deb/packages
    cp -r usr $pkgdir/

  • WebCache Failed to start : Failed to assign port 80: Permission denied

    Hi All,
    I have three server running IAS 10.1.2.0.2, running forms and reports application. One Infra and two Midtier.
    Suddenly Midtier1 is crashed, but before it happen I have already backup with TAR : OracleHome and all its related configuration files.
    After the crash, I reinstall the RH Linux same version and update and then restore ( TAR -xvf ) the backup that I have.
    When I run opmnctl startall, all ias-component started, EXCEPT one : WEB CACHE.
    When I look at Webcache event Log, here is the error :
    [11/May/2004:17:29:05 +0700] [notification 9612] [ecid: -] OracleAS Web Cache 10g (10.1.2), Build 10.1.2.0.2 050802
    [11/May/2004:17:29:05 +0700] [notification 9612] [ecid: -] OracleAS Web Cache 10g (10.1.2), Build 10.1.2.0.2 050802
    [11/May/2004:17:29:05 +0700] [notification 9403] [ecid: -] Maximum number of file/socket descriptors set to 900.
    [11/May/2004:17:29:05 +0700] [notification 9403] [ecid: -] Maximum number of file/socket descriptors set to 900.
    [11/May/2004:17:29:05 +0700] [notification 13002] [ecid: -] Maximum allowed incoming connections are 700
    [11/May/2004:17:29:05 +0700] [notification 13002] [ecid: -] Maximum allowed incoming connections are 700
    [11/May/2004:17:29:05 +0700] [alert 13305] [ecid: -] Failed to assign port 80: Permission denied
    [11/May/2004:17:29:05 +0700] [alert 9707] [ecid: -] Failed to start the server.
    [11/May/2004:17:29:05 +0700] [alert 9609] [ecid: -] The server process could not initialize.
    [11/May/2004:17:29:05 +0700] [notification 9610] [ecid: -] The server is exiting.
    [11/May/2004:17:29:05 +0700] [alert 9000] [ecid: -] Process 3268 exit(1) at 890:main.c [Build 10.1.2.0.2 050802]
    [11/May/2004:17:29:05 +0700] [warning 11917] [ecid: -] SSL wallet Origin Server Wallet file /etc/ORACLE/WALLETS/oraias/ewallet.p12 does not exist.
    [11/May/2004:17:29:05 +0700] [warning 11917] [ecid: -] SSL wallet Origin Server Wallet file /etc/ORACLE/WALLETS/oraias/ewallet.der does not exist.
    [11/May/2004:17:29:05 +0700] [warning 11919] [ecid: -] The SSL wallet autologin file /etc/ORACLE/WALLETS/oraias/cwallet.sso does not exist. Wallet does not appear to be autologin wallet.
    [11/May/2004:17:29:05 +0700] [warning 11921] [ecid: -] The origin server wallet did not open. Operating without wallet for backend. Only Diffie-Hellman anonymous connections supported to origin servers.
    [11/May/2004:17:29:05 +0700] [warning 11922] [ecid: -] Origin Server Wallet wallet fails to open at location /etc/ORACLE/WALLETS/oraias, NZE-28759, as user oraias
    [11/May/2004:17:29:06 +0700] [notification 9607] [ecid: -] The admin server started successfully.
    How can I solve this problem ?
    Thank you for your help,
    xtanto

    Hi xtanto,
    You may not have set up the privileges for running on a port less than 1024 (i.e. port 80) in your old back-uped tar-file.
    Please check Chapter 8 "Running webcached with Root Privilege" in the Web Cache Admin document.
    http://download-east.oracle.com/docs/cd/B14099_19/caching.1012/b14046/basics.htm#sthref1060
    Regards,
    Martin

  • FTP exception: Can't open passive connection: Permission Denied

    I have a File sender adapter, with FTP as transport protocol.
    The adapter polls a directory each 60 seconds.
    All works perfectly but <b>sometimes</b> I get the following error :
    Channel CC_GBL_FlatFileSender: Error connecting to ftp server ...: com.sap.aii.adapter.file.ftp.FTPEx: 425 Can't open passive connection: Permission denied.
    And 60 seconds after, no more error.
    Any idee of why I get this error occasionally ?
    In the sender file adapte, data connection is set to Passive.  Do I have to set it to Active ?
    Thanks in advance,
    Laurence

    Hi
    Data Connection
         -  Active
    In active mode, the server establishes a data connection from its data port, port 20, to an end point chosen by the client.
         -  Passive
    In passive mode, the client establishes a data connection to the port required by the server.
    The default setting is a passive data connection. Only change this setting if you have a specific reason. This is what is recommended by SAP.
    It is possible that Passive FTP mode may terminate session.
    In this mode the server "listen" on a data port (which is not its default data port) and to wait for a connection rather than initiate one upon receipt of a transfer command. The response to this command includes the host and port address this server is listening on.
    In the FTP protocol two ports are normally used, 20 and 21.
    Port 21 is the control channel in which requests such as PUT, GET, and PWD are sent to the server.
    Port 20 is the data channel in which actual files, folders and directory
    listings are sent.
    Normally, when you connect to an FTP site, the site establishes the data
    connection to your PC (the client) on Port 20. However, if the site allows
    passive transfers, you can have your PC establish the data connection. It is
    recommended that you use passive mode for most transfers.
    Regards
      Sumit Jain
    **Reward with points if you find it useful.

  • BEA-002606: Weblogic server runs on port 80 - permission denied.

    Hi,
    I am new to weblogic, just started to playing around with it. I setup weblogic server with a cluster consisting of 2 servers, all running locally. I was trying to configure the web server functionality on weblogic 10.3. I followed the exact steps described at http://edocs.bea.com/wls/docs103/config_wls/web_server.html, but I keep on getting a permission denied error:
    <Dec 2, 2008 3:00:10 PM> <Info> <NodeManager> <Working directory is "/opt/bea/user_projects/domains/firstDomain">
    <Dec 2, 2008 3:00:10 PM> <Info> <NodeManager> <Server output log file is "/opt/bea/user_projects/domains/firstDomain/servers/server03/logs/server03.out">
    <Dec 2, 2008 3:00:12 PM MYT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Server VM Version 10.0-b19 from Sun Microsystems Inc.>
    <Dec 2, 2008 3:00:13 PM MYT> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3 Fri Jul 25 16:30:05 EDT 2008 1137967 >
    <Dec 2, 2008 3:00:16 PM MYT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <Dec 2, 2008 3:00:16 PM MYT> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
    <Dec 2, 2008 3:00:16 PM MYT> <Notice> <Log Management> <BEA-170019> <The server log file /opt/bea/user_projects/domains/firstDomain/servers/server03/logs/server03.log is opened. All server side log events will be written to this file.>
    <Dec 2, 2008 3:00:26 PM MYT> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
    <Dec 2, 2008 3:00:41 PM MYT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
    <Dec 2, 2008 3:00:41 PM MYT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <Dec 2, 2008 3:00:44 PM MYT> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
    <Dec 2, 2008 3:00:44 PM MYT> <Notice> <Cluster> <BEA-000197> <Listening for announcements from cluster using unicast cluster messaging>
    <Dec 2, 2008 3:00:44 PM MYT> <Notice> <Cluster> <BEA-000133> <Waiting to synchronize with other running members of Cluster-00.>
    <Dec 2, 2008 3:01:14 PM MYT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
    <Dec 2, 2008 3:01:14 PM MYT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
    <Dec 2, 2008 3:01:14 PM MYT> <Notice> <Cluster> <BEA-000162> <Starting "async" replication service with remote cluster address "null">
    <Dec 2, 2008 3:01:14 PM MYT> <Notice> <Cluster> <BEA-000162> <Starting "man" replication service with remote cluster address "null">
    <Dec 2, 2008 3:01:14 PM MYT> <Notice> <Cluster> <BEA-000162> <Starting "man-async" replication service with remote cluster address "null">
    <Dec 2, 2008 3:01:14 PM MYT> <Error> <Server> <BEA-002606> <Unable to create a server socket for listening on channel "Default". The address 172.16.141.1 might be incorrect or another process is using port 80: java.net.BindException: Permission denied.>
    <Dec 2, 2008 3:01:14 PM MYT> <Emergency> <Security> <BEA-090087> <Server failed to bind to the configured Admin port. The port may already be used by another process.>
    <Dec 2, 2008 3:01:14 PM MYT> <Error> <Server> <BEA-002606> <Unable to create a server socket for listening on channel "Default[3]". The address 127.0.0.1 might be incorrect or another process is using port 80: java.net.BindException: Permission denied.>
    <Dec 2, 2008 3:01:14 PM MYT> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason: Server failed to bind to any usable port. See preceeding log message for details.>
    <Dec 2, 2008 3:01:14 PM MYT> <Error> <Server> <BEA-002606> <Unable to create a server socket for listening on channel "Default[2]". The address 10.8.8.31 might be incorrect or another process is using port 80: java.net.BindException: Permission denied.>
    <Dec 2, 2008 3:01:14 PM MYT> <Error> <Server> <BEA-002606> <Unable to create a server socket for listening on channel "Default[1]". The address 192.168.140.1 might be incorrect or another process is using port 80: java.net.BindException: Permission denied.>
    <Dec 2, 2008 3:01:14 PM MYT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
    <Dec 2, 2008 3:01:14 PM MYT> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
    <Dec 2, 2008 3:01:14 PM MYT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
    <Dec 2, 2008 3:01:14 PM MYT> <Notice> <Cluster> <BEA-000163> <Stopping "async" replication service>
    <Dec 2, 2008 3:01:14 PM MYT> <Notice> <Cluster> <BEA-000163> <Stopping "man" replication service>
    <Dec 2, 2008 3:01:14 PM MYT> <Notice> <Cluster> <BEA-000163> <Stopping "man-async" replication service>
    <Dec 2, 2008 3:01:15 PM> <Debug> <NodeManager> <Waiting for the process to die: 19768>
    <Dec 2, 2008 3:01:15 PM> <Info> <NodeManager> <Server failed during startup so will not be restarted>
    <Dec 2, 2008 3:01:15 PM> <Debug> <NodeManager> <runMonitor returned, setting finished=true and notifying waiters>
    Netstat shows:
    netstat -an | grep 172.16.141.1
    tcp6 0 0 172.16.141.1:7001 :::* LISTEN
    tcp6 0 0 172.16.141.1:7005 :::* LISTEN
    tcp6 0 0 172.16.141.1:43991 172.16.141.1:7001 ESTABLISHED
    tcp6 0 0 172.16.141.1:7005 172.16.141.1:46728 ESTABLISHED
    tcp6 0 0 172.16.141.1:7001 172.16.141.1:43991 ESTABLISHED
    tcp6 0 0 172.16.141.1:46728 172.16.141.1:7005 ESTABLISHED
    tcp6 1 0 172.16.141.1:43999 172.16.141.1:7001 CLOSE_WAIT
    udp 0 0 172.16.141.1:137 0.0.0.0:*
    udp 0 0 172.16.141.1:138 0.0.0.0:*
    Port 80 is not being used by the IP. Am quite lost at the moment on how to troubleshoot this problem.
    Appreciate any advice offered. Thanks in advance.

    There's not much benefit to having 2 instances on the same machines vs having one instance on that machine. Putting a load balancer in front of a machine with 2 hosts only helps you when you lose a mgd server - but not when you lose an entire machine ( since both mgd servers go away too )
    Consider:
    Mgd Server A on machine myHost1 with java memory 512m/512m
    Mgd Server B on machine myHost1 with java memory512m/512m
    vs
    Mgd Server A on machine myHost1 with java memory 1024m/1024m
    vs
    Mgd Server A on machine myHost1 with java memory1024m/1024m
    Mgd Server B on machine myHost2 with java memory 1024m/1024m
    The first config is your current situation. Your two mgd servers are fighting each other for processing time & memory on that machine. They can't use the same ports, so how does a user decide which port to use when they access your application?
    The second config combines their resources into one mgd server
    The third gives you load balancing ability - you can survive the loss of a machine. Also note that since the 2 instances are on DIFFERENT machines, they CAN use the same non-SSL and SSL ports.

  • [solved] nginx chroot jail: open() "/run/nginx.pid" Permission denied

    I used the perl script from the nginx wiki to configure chroot jail and also configured the nginx systemd unit file. When I try to start the service I get
    # systemctl start nginx
    Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
    # systemctl status nginx.service
    nginx.service - A high performance web server and a reverse proxy server in chroot jail
    Loaded: loaded (/etc/systemd/system/nginx.service; enabled)
    Active: failed (Result: exit-code) since tis 2013-05-07 20:58:49 CEST; 4s ago
    Process: 418 ExecStartPre=/usr/bin/chroot --userspec=http:http /srv/http /usr/sbin/nginx -t -q -g pid /run/nginx.pid; daemon on; master_process on; (code=exited
    , status=1/FAILURE)
    Executing the ExecStartPre line produces the open error.
    # /usr/bin/chroot --userspec=http:http /srv/http /usr/sbin/nginx -t -q -g 'pid /run/nginx.pid; daemon on; master_process on;'
    nginx: [emerg] open() "/run/nginx.pid" failed (13: Permission denied)
    What could be causing this?
    Here's my nginx.service
    # cat /etc/systemd/system/nginx.service
    [Unit]
    Description=A high performance web server and a reverse proxy server in chroot jail
    After=syslog.target network.target
    [Service]
    Type=forking
    PIDFile=/srv/http/run/nginx.pid
    ExecStartPre=/usr/bin/chroot --userspec=http:http /srv/http /usr/sbin/nginx -t -q -g 'pid /run/nginx.pid; daemon on; master_process on;'
    ExecStart=/usr/bin/chroot --userspec=http:http /srv/http /usr/sbin/nginx -g 'pid /run/nginx.pid; daemon on; master_process on;'
    ExecReload=/usr/bin/chroot --userspec=http:http /srv/http /usr/sbin/nginx -g 'pid /run/nginx.pid; daemon on; master_process on;' -s reload
    ExecStop=/usr/bin/chroot --userspec=http:http /srv/http /usr/sbin/nginx -g 'pid /run/nginx.pid;' -s quit
    [Install]
    WantedBy=multi-user.target
    /srv/http/run
    # ls -ahl /srv/http/run/
    totalt 8,0K
    drwxr-xr-x 2 root root 4,0K 7 maj 20.53 ./
    dr-x--x--x 9 root root 4,0K 7 maj 20.16 ../
    -rw-r--r-- 1 root root 0 7 maj 20.53 nginx.pid
    edit:
    # chroot --userspec http:http /srv/http /usr/sbin/nginx
    nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)
    I tried to change the port to 8080 and got
    # chroot --userspec http:http /srv/http /usr/sbin/nginx
    nginx: [emerg] open("/dev/null") failed (13: Permission denied)
    solution:
    The problem was due to the partition being mounted nodev,nosuid.
    Last edited by seron (2013-05-08 11:25:12)

    I know this post is quite old but I wanted to say thank you to the author that you posted this solution. THANKS!!!

  • Open and configure serial port

    Hi,
    when i use the function configured serial port, i can work with it.
    for which case i need the function open port. do i need both an in which order?
    thanks florian 

    Hi florian
    check the help examples
    Attached png file shows  the example.
    chow
    xseadog
    Attachments:
    serial.PNG ‏39 KB

  • Why does a standalone program created in Labview 8.5 try connecting to the internet when the program only reads data through the serial port? Firewalls object to progams that contact the internet without permission.

    why does a standalone program created in Labview 8.5 try connecting to the internet when the program only reads data through the serial port? Firewalls object to progams that contact the internet without permission.
    The created program is not performing a command I have written when it tries to connect to the internet, it must be Labview that is doing it. How do I stop this from happening? 
    Any help would be very appreciated.

    It looks that way..
    "When LabVIEW starts it contacts the service
    locator to removes all services for itself. This request is triggering
    the firewall.This is done in case there were services that were not
    unregistered the last time LabVIEW executed- for example from VIs that
    didn't clean up after themselves"
    This is not yet fixed in LV2009.
    Message Edited by Ray.R on 11-04-2009 12:25 PM

  • Executing window.opener.FunName from Web IC pop-up = Permission Denied

    Hello,
    I have modified a copy of the BuPaCreate view and controller.  When the user hits save, I open a child window to perform some validation using an external system.  I want to write the corrected values back to the form on the BuPaCreate view and then submit the form.  I created a JavaScript function within BuPaCreate to do this.  I'm running into problems when I try to execute this function from the pop-up window.   It is giving a permission denied error.  I made certain my domain and server names are the same. 
    Has anyone else been able to execute a function within a Web IC view in this manner before?  Is there an alternate method for returning the corrected values.
    Thank you for any help you may be able to provide.  I promise to reward all usefull answers.
    Thank you,
    John

    <i>If I leave the method setting out completely, it defaults to POST.</i>
    -->Yes if you dont use anything, then default value will be "Post". But it will give error when you mention explicitly in case of child window usage.
    -->In your code instead of using "element.innerText = val;", you can use
    "element.innerHTML = val;
    --> You need to use the below code get the value from child to main window:
                <script language="javascript" event="onLoad()">
                       opener.document.htmlb_form_1.fieldID.value = <%= your_value %>;
                       window.self.close();
          </script>
    Here is the sample code which handles the child & parent window..Have a look..
    Here is the similar example. I used MVC concept:
    <b>Note:</b> But instead of Model class i used APplication class. You can change ito MODEL Class where ever applicaable.
    Let me know if you have any issue:
    <b>Main.htm:</b>
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2002+design2003" >
      <htmlb:page title="Add Employee Details " >
        <htmlb:form action="POST" >
          Account Number:
          <htmlb:inputField id          = "Account"
                            showHelp    = "true"
                            value       = "<%= Account %>"
                            onValueHelp = "javascript:window.open('acctpop.do?showppopup=true', '_blank', 'Account Details','width=100,height=300');" />
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    <b>Page attribute:</b>
    account TYPE string
    <b>Acctpop.htm</b>
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page title="Test" >
        <htmlb:form id="my_window" >
          <%
      data TV_ITERATOR Type Ref To zcl_itr." - Iterator Function
      data iterator type ref to IF_HTMLB_TABLEVIEW_ITERATOR.
      create object tv_iterator exporting appl_cons = application.
      iterator = tv_iterator.
          %>
          <htmlb:tableView id               = "pop"
                           width            = "200"
                           headerVisible    = "true"
                           design           = "alternating"
                           visibleRowCount  = "10"
                           fillUpEmptyRows  = "true"
                           selectionMode    = "SINGLESELECT"
                           selectedRowIndex = "<%= row_index %>"
                           onRowSelection   = "MyEventRowSelection"
                           showNoMatchText  = "true"
                           filter           = "server"
                           sort             = "server"
                           onHeaderClick    = "MyEventHeaderClick"
                           table            = "<%= it_account %>"
                           iterator         = "<%= iterator %>" >
          </htmlb:tableView>
          <%
      if account is not initial.
          %>
          <htmlb:inputField id      = "checked"
                            visible = "FALSE"
                            value   = "<%= lv_checked %>" />
                <script for="checked" language="javascript" even="onLoad()">
                       opener.document.htmlb_form_1.account.value = <%= account %>;
                       window.self.close();
          </script>
          <%
      endif.
          %>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    <b>Controller Class:</b>
    METHOD DO_INIT.
      CREATE OBJECT APPL.
      SELECT * FROM SFLIGHT INTO TABLE APPL->ITAB.
    ENDMETHOD
    METHOD DO_REQUEST.
      DATA: POPVIEW TYPE REF TO IF_BSP_PAGE.
      DISPATCH_INPUT( ).
      DATA: LV_FIELD TYPE STRING.
    * Get the value of Page level variables.
      LV_FIELD = REQUEST->GET_FORM_FIELD( 'showppopup' ).
      IF LV_FIELD IS NOT INITIAL .
        APPL->VIEW_NAME = 'acctpop.htm'.
      ENDIF.
      IF APPL->VIEW_NAME IS INITIAL.
        APPL->VIEW_NAME = 'main.htm'.
      ENDIF.
      POPVIEW = CREATE_VIEW( VIEW_NAME = APPL->VIEW_NAME ).
      IF APPL->VIEW_NAME = 'acctpop.htm'.
        POPVIEW->SET_ATTRIBUTE( NAME = 'it_account' VALUE = APPL->ITAB ).
        POPVIEW->SET_ATTRIBUTE( NAME = ' accout' VALUE = APPL->account ).
      ENDIF.
      CALL_VIEW( POPVIEW ).
    ENDMETHOD.
    METHOD DO_HANDLE_DATA.
    data: FIELD TYPE IHTTPNVP.
      READ TABLE FORM_FIELDS WITH TABLE KEY
      NAME = ' Account ' INTO FIELD.
      ME-> Account = FIELD-VALUE.
    ENDMETHOD.
    METHOD DO_HANDLE_EVENT.
      DATA: IND TYPE I.
      DATA: TV TYPE REF TO CL_HTMLB_TABLEVIEW.
      DATA: EVENT1 TYPE REF TO CL_HTMLB_EVENT.
      EVENT1 = CL_HTMLB_MANAGER=>GET_EVENT( RUNTIME->SERVER->REQUEST ).
      TV ?= CL_HTMLB_MANAGER=>GET_DATA(
      REQUEST = RUNTIME->SERVER->REQUEST
      NAME = 'tableView'
      ID = 'pop' ).
      IF TV IS NOT INITIAL.
        DATA: TV_DATA TYPE REF TO CL_HTMLB_EVENT_TABLEVIEW.
        TV_DATA = TV->DATA.
        IF TV_DATA->SELECTEDROWINDEX IS NOT INITIAL.
          DATA: ROW LIKE LINE OF APPL->ITAB.
          READ TABLE APPL->ITAB INDEX TV_DATA->SELECTEDROWINDEX INTO ROW.
          DATA VALUE TYPE STRING.
          APPL-> Account = ROW- Account.
        ENDIF.
      ENDIF.
    ENDMETHOD.
    Hope this will help you.
    Let me know if you have any queries.
    Raja T

Maybe you are looking for