Socket Permission

Hello,
I am developing a applet (client) that connects to a C server (linux) using sockets.
i have tried to grant permissions in java.policy like this:
grant{
permission java.security.AllPermission;
and this...
grant{
permission java.net.SocketPermission "10.0.0.157:1024-", "accept, connect, listen, resolve";
in my applet code i have include this:
SocketPermission p1 = new SocketPermission("10.0.0.157:1024-","accept,connect,listen, resolve");
why does the Runtime Permission Exception happen ?
please, help me.
thanks :)

hi,
I too had the same problem.Just remove the accept,connect,resolve and type any one.dont use all the three.if u have grant all permission.then dont type accept,connect,listen on the code,just port address and ip address will be fine.
--Shiva                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • "Error Starting OMI-Server. Unable to bind socket.Permission denied. Listen

    Hi All,
    I Installed Forms 1o-g successfully on my mishon ( Version windows vista), when i try to connect Forms i got error
    like this *"Error Starting OMI-Server. Unable to bind socket.Permission denied. Listen*
    Plz Anyone help....
    Thanks
    sa.....

    Which version of Windows Vista? Bear in mind that Vista home edition is not supported by Oracle (I think for all products). If that is the case, you should be upgrading your OS to business or ultimate edition.
    If that is not the case, please get in touch with Oracle support. Not much is available on internet or in forums (as you seem to have posted this in Forms forum as well).

  • Applet Socket permission problem

    Heloo I made an applet which gets the content of web . like if i pass the www.yahoo.com to applet it must read all the html coding of yahoo page .my code is perfect with the desktop application but when i run it with applet then it gives the socket permission error i search all where but i havent found any solution i tried to edit policy file but still found the same error kindly help me how to get rid from this error thanks and below is my code sample
    Applet code:
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import javax.swing.*;
    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.*;
    import java.security.Permission;
    public class Apple extends JApplet implements ActionListener{
              Container c;
         JTextField uf=new JTextField(30);
         JTextArea tarea=new JTextArea(600,600);
         JButton b=new JButton("Get Content");
         JButton bb=new JButton("Clear");
         URL u;
         JScrollPane sp=new JScrollPane();
         InputStream is = null;
    DataInputStream dis;
    String s;
         public void init(){
              JOptionPane.showMessageDialog(null,"hello world");
              c=new Container();
                   JOptionPane.showMessageDialog(null,"Demo Product Developed By sarc");
              c=this.getContentPane();
              uf.setText("http://www.yahoo.com");
              c.setLayout(new FlowLayout(FlowLayout.LEFT));
              sp.add(tarea);
              c.add(new JLabel("Enter Your Url"));
              c.add(uf);
              c.add(b);     c.add(bb);
              c.add(new Label("EXAMPLE: http://www.rentacoder.com"));
              b.addActionListener(this);bb.addActionListener(this);
              c.add(tarea);     
         public void actionPerformed(ActionEvent ae){
              if( ae.getSource()==b){
                        JOptionPane.showMessageDialog(null,"Demo Product Developed By sarc");
              down();
              if( ae.getSource()==bb){
    tarea.setText("");
              public void down(){
                   try{
                   System.out.println("1");
                   String uu=uf.getText()+":80";
                   u = new URL(uf.getText());
                   is = u.openStream();
                   dis = new DataInputStream(new BufferedInputStream(is));
                   String str;int k=0;int l=50;
                   while ((s = dis.readLine()) != null) {
    tarea.append(s+"\n");
    k++;
    if(k==l){
         JOptionPane.showMessageDialog(null,"Demo Product Developed By sarc");
    l=2*k;
    }is.close();
    } catch (MalformedURLException e) {JOptionPane.showMessageDialog(null,"e"+e);
    } catch (IOException e) {JOptionPane.showMessageDialog(null,e);
    HTML CODE :
    <applet code="Apple.class" width="300" height="300">
    </applet>

    The applet should be able to connect to the host it came from but I think you
    have to connect to the same port as well (not really sure about that).
    You can either have the consumers of your applet set up a policy for your applet
    or you sign the applet.
    Signing applets:
    http://forum.java.sun.com/thread.jsp?forum=63&thread=524815
    second post and last post for the java class file
    http://forum.java.sun.com/thread.jsp?forum=63&thread=409341
    4th post explaining how to set up your own policy with your own keystore
    Java security configuration (according to me):
    1. Signing, good for Internet published applets. The user will be asked if he or she trusts
    the applet and when yes or allways is clicked the applet can do whatever it wants. This
    is the default setting of the SUN jre and can be compared with IE setting that askes the
    user about downloading and running ActiveX controls from the Internet security zone.
    2. Setting up a policy. Good for people who disabled asking the user about signed
    applets (like companies that are worried this could cause a problem). it is possible
    to provide multiple java.policy files in the java.security, a company could put a .policy file
    on the Intanet and have all jre's use this by adding this URL to the java.security.
    When a policy needs to be changed the admin only has to do this is the file on the
    Intranet.
    A specific user can have a policy in their user.home to set up personal policies (to be
    done by Administrators).
    A policy file can use a keystore to be used in a signed by policy. For example "applets
    that are signed by SUN can access some files on my machine). It can allso be used
    to identify yourselve, when making an SSL connection the keystore can be used as
    the source of your public key.

  • FILE.IO.PERMISSION and SOCKET.PERMISSION when calling jdev proxy from DB

    Hello everybody,
    i deployed a webservide proxy (made in jdev 10.1.3.2) to an oracle 10gR2 database. Invoking this proxy works very well when calling it (as a procedure in the database) on the same machine as the DB is running.
    But when trying to invoke the procedure remote on the DB-server from another pc i get 2 error messages (randomly):
    java.security.AccessControlException: the Permission (java.net.SocketPermission 192.168.20.1:1521 connect,resolve) has not been granted to VECOZO. The PL/SQL to grant this is dbms_java.grant_permission( 'VECOZO', 'SYS:java.net.SocketPermission', '192.168.20.1:1521', 'connect,resolve' )
    java.security.AccessControlException: the Permission (java.io.FilePermission \\WEBFS01\WEBFS01_Vecozo\Temp\Acc\MAY07 read) has not been granted to VECOZO. The PL/SQL to grant this is dbms_java.grant_permission( 'VECOZO', 'SYS:java.io.FilePermission', '\\WEBFS01\WEBFS01_Vecozo\Temp\Acc\MAY07', 'read' )
    I gave this permissions in the sys schema to the vecozo schema following the example the error produces for me, but it doesnt work! When i grant socketpermissions on the port secified by the error and i run the proxy again the db comes up with the same error, only with a different port number. I'm getting crazy here. Also the granting of the file.io permission seems to have no result.
    What is strange is that it all works when invoking the proxy locally (from the pc as where the db is running). I think this is because locally you dont need socketpermissions (as sockets are primarily for communication with other pc's). Furthermore i did not even grant the file permission when working locally in my testenvironmentand it all worked just fine. so i dont know why i suddenly need this permission when invoking the procedure on the productionserver from an external pc.
    Can somebody plz help me with this????
    greetz,
    Kim

    Anybody :)

  • Socket permission denied, why?

    My java Applet code's socket connection (to the same
    computer the Applet resides) was denied for no permission. Why? Please help. Thank you. (I have a RH Linux Enterprise, the
    latest version. And on my old computer-LINUX also,
    there was no such problem).

    My java Applet code's socket connection (to the same
    computer the Applet resides) was denied for no
    permission. Why? Please help. Thank you. (I have a RH
    Linux Enterprise, the
    latest version. And on my old computer-LINUX also,
    there was no such problem).Some browsers implement a security manager that only allows an applet to connect to the server IP from where the applet page were originally loaded.

  • Socket Permission not granted

    I've tried to open up the socket from the applet but it's not able to do so.However i've tried opening it from the appletviewer and it works fine,with the permission granted as open and appletviewer -J"-Djava.security.manager" -J"-Djava.security.policy=DFS.policy" in the policy file.Any one with a possible solution to get it working with the browser applet setting.
    Pd

    could you please write the code and the file where to place the sign coz i've no idea about doing it so.
    Keep Looking
    Pd

  • Access Denied Socket Permission Error using 3rdParty jar in webstart

    Hi,
    I am trying to create a multisocket in my application, and this app is downloaded through webstart,
    Following are the things I ve done,
    1. I use two jnlp file, one mail jnlp file (say a.jnlp) and the other an extension jnlp file (a_ext.jnlp) which contains the third party jars.
    2. I used <security><allpermission/><security/> in both the jnlp files.
    3. If I try to create a multisocket in my code that is downloaded through main jnlp i.e. a.jnlp file, then it is working fine.
    4. But the problem is, the third party jar which is downloaded throught "a_ext.jnlp" file is trying to create a multisocket
    and i am getting the following error,
    +java.security.AccessControlException: access denied (java.net.SocketPermission 228.0.0.4 connect,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.checkMulticast(Unknown Source)+
    + at java.net.MulticastSocket.joinGroup(Unknown Source)+
    + at inria.net.MulticastSession.initialize(MulticastSession.java:143)+
    + at inria.net.lrmp.LrmpImpl.<init>(LrmpImpl.java:105)+
    + at inria.net.lrmp.LrmpImpl.<init>(LrmpImpl.java:89)+
    + at inria.net.lrmp.Lrmp.<init>(Lrmp.java:194)+Please help me.
    Note that I dont want to create any policy file, I want some configurations to be done in jnlp files or in the jars, because i cannot create a policy file and copy it manually in each client deployment.

    >
    And sorry that jnlp is a valid jnlp only, ..>
    How do you know? Did you validate it, or are you just guessing?
    >
    ..and it was a typing mistake, ..>So don't retype these things, instead copy/paste them.
    >
    it is </security> not <security/>>it is also <all-permissions/>, not <allpermission/>
    >
    and when i start through webstart it is asking for confirmation also, so i think this <security> tag is working fine.>Stop thinking and start validating.
    >
    But the problem is with security for the 3rdParty jar downloaded through jnlp extension. >So it will be most important to validate that. Note that if this 3rd party extension is signed by the people that supplied it, you should get a second security prompt.
    >
    ... I hope JNLP doesnt check or give permission for the jars downloaded via extension jnlp?>What does that mean?
    OTOH, I just noticed you assigned the princely sum of 1 entire duke star for this question. It is obviously of only minor importance to you, so my time is better spent elsewhere.
    Good luck with it.

  • Acces denied socket permission

    I have no more idea's on how to fix this issue..
    I get me this error in java console when I open my applet in a browser
    => loading driver:
    OK
    => connecting:
    com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
    ** BEGIN NESTED EXCEPTION **
    java.net.SocketException
    MESSAGE: java.security.AccessControlException: access denied (java.net.SocketPermission 192.168.5.4:3306 connect,resolve)
    STACKTRACE:
    java.net.SocketException: java.security.AccessControlException: access denied (java.net.SocketPermission 192.168.5.4:3306 connect,resolve)
         at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:156)
         at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:277)
         at com.mysql.jdbc.Connection.createNewIO(Connection.java:2668)
         at com.mysql.jdbc.Connection.<init>(Connection.java:1531)
         at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
         at java.sql.DriverManager.getConnection(DriverManager.java:582)
         at java.sql.DriverManager.getConnection(DriverManager.java:185)
         at TestMySQL.init(TestMySQL.java:22)
         at sun.applet.AppletPanel.run(AppletPanel.java:417)
         at java.lang.Thread.run(Thread.java:619)
    ** END NESTED EXCEPTION **
    Last packet sent to the server was 83 ms ago.
         at com.mysql.jdbc.Connection.createNewIO(Connection.java:2741)
         at com.mysql.jdbc.Connection.<init>(Connection.java:1531)
         at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
         at java.sql.DriverManager.getConnection(DriverManager.java:582)
         at java.sql.DriverManager.getConnection(DriverManager.java:185)
         at TestMySQL.init(TestMySQL.java:22)
         at sun.applet.AppletPanel.run(AppletPanel.java:417)
         at java.lang.Thread.run(Thread.java:619)it works fine with eclipse in appletviewer..
    I've tried signing it because it would be some security policy thing.. which has no result at all
    and I've tried making a policy thing but no clue how to attach that to my jar
    here's my HTML
    <html>
    <head>
         <meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
         <title>MySQL Test</title>
    </head>
    <body>
    <p>MySQL Test</p>
    <p><object classid="java:TestMySQL.class" codebase="./" width="90%" height="90%" codetype="application/java" archive="mysql-test.jar" >De browser ondersteunt het OBJECT element niet, of kan het Java applet niet insluiten.</object></p>
    </body>
    </html>and here's my MANIFEST thing..
    Manifest-Version: 1.0
    Class-Path: mysql-connector-java-5.0.4.jarand here's my applet source
    import javax.swing.JApplet;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.Statement;
    import java.sql.ResultSet;
    public class TestMySQL extends JApplet {
         private static final String JDBC_DRIVER = "com.mysql.jdbc.Driver";
         private static final String DATABASE_URL = "jdbc:mysql://192.168.5.4:3306/OQMcontrolec30_validatie";
         private static final String USERNAME = "root";
         private static final String PASSWORD = "";
         public void init() {
              try {
                   /* Test loading driver */
                   System.out.println("=> loading driver:");
                   Class.forName(JDBC_DRIVER).newInstance();
                   System.out.println("OK");
                   /* Test the connection */
                   System.out.println("=> connecting:");
                   Connection connection = DriverManager
                             .getConnection(DATABASE_URL, USERNAME, PASSWORD);
                   System.out.println("OK");
                   System.out.println();
                   /* Perform query */
                   Statement statement = connection.createStatement();
                   String sql = "SELECT * FROM flowchart WHERE ProcesID = 100;";
                   ResultSet resultset2 = statement.executeQuery(sql);
                   /* Print the results */
                   while (resultset2.next()) {
                        try {
                             for (int i = 1; i < 25; i++){
                                  System.out.println(resultset2.getString(i));
                        }catch(Exception e){}
                        System.out.println("==============================");
                   /* Close result set, statement and DB connection */
                   resultset2.close();
                   statement.close();
                   connection.close();
              } catch (Exception e) {
                   e.printStackTrace();
    }I'm trying some stuff with a test applet before I make it into my real applet
    but so far it doesn't even work =(
    I must be able to contact a remote MySQL server and load data from that.. and eventually save data into it too..

    doesn't work either =(
    html:
    <html>
    <head>
         <meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
         <title>MySQL Test</title>
    </head>
    <body>
    <p>MySQL Test</p>
    <p><object classid="java:TestMySQL.class" codebase="file:///home/niels/workspace/" width="90%" height="90%" codetype="application/java" archive="mysql-test.jar" >De browser ondersteunt het OBJECT element niet, of kan het Java applet niet insluiten.</object></p>
    </body>
    </html>policy:
    // ====== .java.policy ======
    grant CodeBase "file:///home/niels/workspace" {
         permission java.net.SocketPermission "192.168.5.4:3306", "connect,resolve";
    };error:
    Java Plug-in 1.6.0
    Using JRE version 1.6.0 Java HotSpot(TM) Client VM
    User home directory = /home/niels
    c:   clear console window
    f:   finalize objects on finalization queue
    g:   garbage collect
    h:   display this help message
    l:   dump classloader list
    m:   print memory usage
    o:   trigger logging
    p:   reload proxy configuration
    q:   hide console
    r:   reload policy configuration
    s:   dump system and deployment properties
    t:   dump thread list
    v:   dump thread stack
    x:   clear classloader cache
    0-5: set trace level to <n>
    => loading driver:
    OK
    => connecting:
    com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
    ** BEGIN NESTED EXCEPTION **
    java.net.SocketException
    MESSAGE: java.security.AccessControlException: access denied (java.net.SocketPermission 192.168.5.4:3306 connect,resolve)
    STACKTRACE:
    java.net.SocketException: java.security.AccessControlException: access denied (java.net.SocketPermission 192.168.5.4:3306 connect,resolve)
         at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:156)
         at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:277)
         at com.mysql.jdbc.Connection.createNewIO(Connection.java:2668)
         at com.mysql.jdbc.Connection.<init>(Connection.java:1531)
         at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
         at java.sql.DriverManager.getConnection(DriverManager.java:582)
         at java.sql.DriverManager.getConnection(DriverManager.java:185)
         at TestMySQL.init(TestMySQL.java:22)
         at sun.applet.AppletPanel.run(AppletPanel.java:417)
         at java.lang.Thread.run(Thread.java:619)
    ** END NESTED EXCEPTION **
    Last packet sent to the server was 20 ms ago.
         at com.mysql.jdbc.Connection.createNewIO(Connection.java:2741)
         at com.mysql.jdbc.Connection.<init>(Connection.java:1531)
         at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
         at java.sql.DriverManager.getConnection(DriverManager.java:582)
         at java.sql.DriverManager.getConnection(DriverManager.java:185)
         at TestMySQL.init(TestMySQL.java:22)
         at sun.applet.AppletPanel.run(AppletPanel.java:417)
         at java.lang.Thread.run(Thread.java:619)

  • Getting socket permission exception

    package LoadDriver;
    import java.sql.*;
    public class LoadDriver
    public Statement driver() throws Exception
    String dbUrl = "jdbc:db2:deal://extreme:50000";
    String user ="";
    String password ="";
    Statement s;
    Class.forName("com.ibm.db2.jcc.DB2Driver");
    Connection c = DriverManager.getConnection(dbUrl, user, password);
    DatabaseMetaData dbmd = c.getMetaData();
    if(dbmd.supportsResultSetConcurrency(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE))
    System.out.println("The driver supports scrollable and updatable resultset.");
    else
    System.out.println("The driver does not support scrollable and updatable resultset.");
    s = c.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);
    System.out.println("driver is loaded");
    return s;
    on db2 universal driver.....plzz tell where is the error

    The most common mistake in this area is specifying the local host address of the host that is running the client (eg, embedding "localhost" in the URL), rather than the actual network address of the host that the remote server is listening on (configurable as "listen address", and reported in the server log).
    As for your other questions:
    The .NET doc lists the location of a debug version of the .NET client library.
    http://download.oracle.com/docs/cd/E15523_01/web.1111/e13746/install.htm#i1076001
    In addition, there are tracing options (also mentioned in the .NET doc).
    http://download.oracle.com/docs/cd/E15523_01/web.1111/e13746/guidelines.htm#i1089267
    Tom

  • Jintiator and Socket Permission??

    hi all..
    am writing a JavaBean inside an oracle form; my bean
    is client that's to connect to a certain server and
    display whatever msg this server sends. This form got
    to be run through the web; in order to do this, Oracle
    deploys Jinitiator which generates an applet
    containing the form, and here lies the problem. As you
    no, applets have some security restrictions including
    establishing a connection to any server other than the
    one they have been downloaded from(host); well,
    actually, i was able to overcome this through writing
    an applet containing my bean with one policy file,
    "MyAppletPolicy.policy", granting this applet a
    SocketPermission on the Server IP and Port; the applet
    works just fine, but all through AppletViewer with the
    command line:
    AppletViewer
    -J-Djava.security.policy=MyAppletPolicy.policy
    MyAppletPage.htm
    again, this only works fine through AppletViewer, NOT
    Jinitaitor.
    so, i wonder f any of u no how to pass this command to
    Jinitiator or adjust its settings to grant the
    generated applet the permissions it needs; am using Jinitiator1.3.9.1, Jdk1.3, and IE.
    Appreciating ur cooperation..
    Mourad

    hi Frank..
    i've already signed my jar file containg the bean and granted it All Permissinos using keytool, policytool,...
    but i my form got the same exception i told u about.
    for adjusting Jinitiator setting, i went to the basic tab, and in the runtime parameters i wrote:
    java.security.policy=<path>MyApplet.policy
    stil, i got the same exception; actually, am not sure of the correctness of i wrote in the Jinitiator's runtime parameters, so, f i'm right, what do u suggest me to do??
    one more thing, this maybe stupid, but all the samples i've gone through concerning integrating JavaBean into Oracle forms handle action and events through form triggers. what i did is that i handled everything in my bean; i mean my bean has one 'Connect' button that calls one method responsible of establishing a connection to the server. u think this could have anything to do with the exception i got??(again, i no it's very silly, but i've tried many things with no use)
    thank u for ur time and cooperation..
    Mourad

  • Can't create new user, Permission Errors in Console

    I just purchased a new 2013 iMac with a 3TB Fusion Drive. I'm trying to dig and fing out why I'm currently unable to create and log in to another user account. I haven't manually changed any permissions in the terminal, and I've booted into recovery mode and attempted restore all Disk Permissions (my next step is to run Onyx). After creating a new user account, when attempting to log into it, the log in screen hangs and just loads endlessly. The console output is as follows:
    3/8/13 9:23:00.852 PM
    SecurityAgent[417]
    Login Window login proceeding
    3/8/13 9:23:01.010 PM
    loginwindow[79]
    ERROR | ScreensharingLoginNotification | Failed sending message to screen sharing GetScreensharingPort, err: 1102
    3/8/13 9:23:01.034 PM
    WindowServer[110]
    Session 257 retained (2 references)
    3/8/13 9:23:01.034 PM
    WindowServer[110]
    Session 257 released (1 references)
    3/8/13 9:23:01.062 PM
    loginwindow[420]
    Login Window Application Started
    3/8/13 9:23:01.072 PM
    WindowServer[110]
    _CGXNewConnectionPort: Call from workspace.  Updating audit session 100000 -> 100014
    3/8/13 9:23:01.073 PM
    loginwindow[420]
    **DMPROXY** Found `/System/Library/CoreServices/DMProxy'.
    3/8/13 9:23:01.090 PM
    WindowServer[110]
    Created shield window 0x74 for display 0x41dc9d00
    3/8/13 9:23:01.091 PM
    WindowServer[110]
    Display 0x41dc9d00: VirtualDisplay Unit 0; ColorProfile { 1, "Default(sRGB IEC61966-2.1)"}; TransferFormula (1.000000, 1.000000, 1.000000)
    3/8/13 9:23:01.109 PM
    launchctl[422]
    com.apple.findmymacmessenger: Already loaded
    3/8/13 9:23:01.127 PM
    com.apple.SecurityServer[16]
    Session 100014 created
    3/8/13 9:23:01.128 PM
    hidd[84]
    CGSShutdownServerConnections: Detaching application from window server
    3/8/13 9:23:01.128 PM
    hidd[84]
    CGSDisplayServerShutdown: Detaching display subsystem from window server
    3/8/13 9:23:01.129 PM
    WindowServer[110]
    _CGXNewConnectionPort: Call from workspace.  Updating audit session 100014 -> 100014
    3/8/13 9:23:01.134 PM
    loginwindow[420]
    Login Window Started Security Agent
    3/8/13 9:23:01.150 PM
    airportd[424]
    _doAutoJoin: Already associated to “Network Name”. Bailing on auto-join.
    3/8/13 9:23:01.176 PM
    SecurityAgent[431]
    MacBuddy was run = 0
    3/8/13 9:23:01.183 PM
    SecurityAgent[431]
    User info context values set for NewUserAccount
    3/8/13 9:23:01.212 PM
    UserEventAgent[426]
    cannot find useragent 1102
    3/8/13 9:23:01.372 PM
    loginwindow[420]
    Login Window - Returned from Security Agent
    3/8/13 9:23:01.375 PM
    loginwindow[420]
    ERROR | ScreensharingLoginNotification | Failed sending message to screen sharing GetScreensharingPort, err: 1102
    3/8/13 9:23:01.378 PM
    loginwindow[420]
    USER_PROCESS: 420 console
    3/8/13 9:23:01.381 PM
    loginwindow[420]
    Can not connect to /var/run/systemkeychaincheck.socket: Permission denied
    3/8/13 9:23:01.384 PM
    com.apple.launchd[1]
    (com.apple.launchd.peruser.504[434]) Job failed to exec(3) for weird reason: 13
    3/8/13 9:23:01.385 PM
    com.apple.launchd[1]
    (com.apple.launchd.peruser.504) Throttling respawn: Will start in 10 seconds
    3/8/13 9:23:01.395 PM
    airportd[424]
    _doAutoJoin: Already associated to “Network Name”. Bailing on auto-join.
    3/8/13 9:23:11.386 PM
    com.apple.launchd[1]
    (com.apple.launchd.peruser.504[436]) Job failed to exec(3) for weird reason: 13
    3/8/13 9:23:11.386 PM
    com.apple.launchd[1]
    (com.apple.launchd.peruser.504) Throttling respawn: Will start in 10 seconds
    3/8/13 9:23:20.987 PM
    warmd[63]
    [_bootcachectl_playlist_dir_for_user:2529] Assertion failed: ((*__error()) == 2): stat'ing /var/db/BootCaches/106DB82C-37AE-44CC-B0B9-6CA37911832C failed: 13 Permission denied
    3/8/13 9:23:21.387 PM
    com.apple.launchd[1]
    (com.apple.launchd.peruser.504[438]) Job failed to exec(3) for weird reason: 13
    3/8/13 9:23:21.387 PM
    com.apple.launchd[1]
    (com.apple.launchd.peruser.504) Throttling respawn: Will start in 10 seconds
    3/8/13 9:23:31.389 PM
    com.apple.launchd[1]
    (com.apple.launchd.peruser.504[445]) Job failed to exec(3) for weird reason: 13
    3/8/13 9:23:31.389 PM
    com.apple.launchd[1]
    (com.apple.launchd.peruser.504) Throttling respawn: Will start in 10 seconds
    Does anyone know what's causing the issue?

    Well, the possible fixes I tried ended up hosing my permissions (somehow considering they shouldn't have an I was re establishing root user permissions where they belonged). I had to boot into recovery mode and reinstall Mountain Lion (thank god that it keeps all of my files) and that pretty much corrected everything on it's own. Does anyone know of the exact reasoning for the above issue? Which file or folder it's coming from?

  • Can't start mysql

    when I type "rc.d start mysqld" it displays busy for a while, then fails. At this point it does not generate an error message. I have changed the permissions of /var/lib/mysql recursively to 777. I have also created the mysqld directory in /var/run and given it 777 permissions. I hope I have included all the relevant files. 
    I have read every suggestion on the internet and gotten nowhere. Please help a noobus out. Thanks in advance.
    /var/lib/mysql/localhost.err
    120115 01:11:48 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
    120115 1:11:48 [Warning] One can only use the --user switch if running as root
    120115 1:11:48 InnoDB: The InnoDB memory heap is disabled
    120115 1:11:48 InnoDB: Mutexes and rw_locks use GCC atomic builtins
    120115 1:11:48 InnoDB: Compressed tables use zlib 1.2.5
    120115 1:11:48 InnoDB: Initializing buffer pool, size = 128.0M
    120115 1:11:48 InnoDB: Completed initialization of buffer pool
    120115 1:11:48 InnoDB: highest supported file format is Barracuda.
    120115 1:11:50 InnoDB: Waiting for the background threads to start
    120115 1:11:51 InnoDB: 1.1.8 started; log sequence number 1595675
    120115 1:11:51 [ERROR] Can't start server : Bind on unix socket: Permission denied
    120115 1:11:51 [ERROR] Do you already have another mysqld server running on socket: /var/run/mysqld/mysqld.sock ?
    120115 1:11:51 [ERROR] Aborting
    120115 1:11:51 InnoDB: Starting shutdown...
    120115 1:11:51 InnoDB: Shutdown completed; log sequence number 1595675
    120115 1:11:51 [Note] /usr/bin/mysqld: Shutdown complete
    120115 01:11:51 mysqld_safe mysqld from pid file /var/lib/mysql/localhost.pid ended
    /etc/rc.conf
    # /etc/rc.conf - Main Configuration for Arch Linux
    # LOCALIZATION
    # LOCALE: available languages can be listed with the 'locale -a' command
    # DAEMON_LOCALE: If set to 'yes', use $LOCALE as the locale during daemon
    # startup and during the boot process. If set to 'no', the C locale is used.
    # HARDWARECLOCK: set to "", "UTC" or "localtime", any other value will result
    # in the hardware clock being left untouched (useful for virtualization)
    # Note: Using "localtime" is discouraged, using "" makes hwclock fall back
    # to the value in /var/lib/hwclock/adjfile
    # TIMEZONE: timezones are found in /usr/share/zoneinfo
    # Note: if unset, the value in /etc/localtime is used unchanged
    # KEYMAP: keymaps are found in /usr/share/kbd/keymaps
    # CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
    # CONSOLEMAP: found in /usr/share/kbd/consoletrans
    # USECOLOR: use ANSI color sequences in startup messages
    LOCALE="en_US.UTF-8"
    DAEMON_LOCALE="no"
    HARDWARECLOCK="UTC"
    TIMEZONE="America/New_York"
    KEYMAP="us"
    CONSOLEFONT=
    CONSOLEMAP=
    USECOLOR="yes"
    # HARDWARE
    # MODULES: Modules to load at boot-up. Blacklisting is no longer supported.
    # Replace every !module by an entry as on the following line in a file in
    # /etc/modprobe.d:
    # blacklist module
    # See "man modprobe.conf" for details.
    MODULES=()
    # Udev settle timeout (default to 30)
    UDEV_TIMEOUT=30
    # Scan for FakeRAID (dmraid) Volumes at startup
    USEDMRAID="no"
    # Scan for BTRFS volumes at startup
    USEBTRFS="no"
    # Scan for LVM volume groups at startup, required if you use LVM
    USELVM="no"
    # NETWORKING
    # HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
    HOSTNAME="localhost"
    # Use 'ip addr' or 'ls /sys/class/net/' to see all available interfaces.
    # Wired network setup
    # - interface: name of device (required)
    # - address: IP address (leave blank for DHCP)
    # - netmask: subnet mask (ignored for DHCP) (optional, defaults to 255.255.255.0)
    # - broadcast: broadcast address (ignored for DHCP) (optional)
    # - gateway: default route (ignored for DHCP)
    # Static IP example
    # interface=eth0
    # address=192.168.0.2
    # netmask=255.255.255.0
    # broadcast=192.168.0.255
    # gateway=192.168.0.1
    # DHCP example
    # interface=eth0
    # address=
    # netmask=
    # gateway=
    interface=eth0
    address=
    netmask=
    broadcast=
    gateway=
    # Setting this to "yes" will skip network shutdown.
    # This is required if your root device is on NFS.
    NETWORK_PERSIST="no"
    # Enable these netcfg profiles at boot-up. These are useful if you happen to
    # need more advanced network features than the simple network service
    # supports, such as multiple network configurations (ie, laptop users)
    # - set to 'menu' to present a menu during boot-up (dialog package required)
    # - prefix an entry with a ! to disable it
    # Network profiles are found in /etc/network.d
    # This requires the netcfg package
    NETWORKS=(menu)
    WIRELESS_INTERFACE="wlan0"
    WIRED_INTERFACE="ethO"
    # DAEMONS
    # Daemons to start at boot-up (in this order)
    # - prefix a daemon with a ! to disable it
    # - prefix a daemon with a @ to start it up in the background
    # If something other takes care of your hardware clock (ntpd, dual-boot...)
    # you should disable 'hwclock' here.
    DAEMONS=(hwclock syslog-ng @network crond net-auto-wired dbus acpid)
    /etc/hosts
    # /etc/hosts: static lookup table for host names
    #<ip-address> <hostname.domain.org> <hostname>
    127.0.0.1 localhost.localdomain localhost
    #::1 localhost.localdomain localhost
    # End of file
    /etc/mysql/my.cnf
    # MySQL config file for medium systems.
    # This is for a system with little memory (32M - 64M) where MySQL plays
    # an important part, or systems up to 128M where MySQL is used together with
    # other programs (such as a web server)
    # MySQL programs look for option files in a set of
    # locations which depend on the deployment platform.
    # You can copy this option file to one of those
    # locations. For information about these locations, see:
    # http://dev.mysql.com/doc/mysql/en/option-files.html
    # In this file, you can use all long options that a program supports.
    # If you want to know which options a program supports, run the program
    # with the "--help" option.
    # The following options will be passed to all MySQL clients
    [client]
    #password = your_password
    port = 3306
    socket = /var/run/mysqld/mysqld.sock
    # Here follows entries for some specific programs
    # The MySQL server
    [mysqld]
    port = 3306
    socket = /var/run/mysqld/mysqld.sock
    datadir = /var/lib/mysql
    skip-external-locking
    key_buffer_size = 16M
    max_allowed_packet = 1M
    table_open_cache = 64
    sort_buffer_size = 512K
    net_buffer_length = 8K
    read_buffer_size = 256K
    read_rnd_buffer_size = 512K
    myisam_sort_buffer_size = 8M
    # Don't listen on a TCP/IP port at all. This can be a security enhancement,
    # if all processes that need to connect to mysqld run on the same host.
    # All interaction with mysqld must be made via Unix sockets or named pipes.
    # Note that using this option without enabling named pipes on Windows
    # (via the "enable-named-pipe" option) will render mysqld useless!
    skip-networking
    # Replication Master Server (default)
    # binary logging is required for replication
    log-bin=mysql-bin
    # binary logging format - mixed recommended
    binlog_format=mixed
    # required unique id between 1 and 2^32 - 1
    # defaults to 1 if master-host is not set
    # but will not function as a master if omitted
    server-id = 1
    # Replication Slave (comment out master section to use this)
    # To configure this host as a replication slave, you can choose between
    # two methods :
    # 1) Use the CHANGE MASTER TO command (fully described in our manual) -
    # the syntax is:
    # CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>,
    # MASTER_USER=<user>, MASTER_PASSWORD=<password> ;
    # where you replace <host>, <user>, <password> by quoted strings and
    # <port> by the master's port number (3306 by default).
    # Example:
    # CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,
    # MASTER_USER='joe', MASTER_PASSWORD='secret';
    # OR
    # 2) Set the variables below. However, in case you choose this method, then
    # start replication for the first time (even unsuccessfully, for example
    # if you mistyped the password in master-password and the slave fails to
    # connect), the slave will create a master.info file, and any later
    # change in this file to the variables' values below will be ignored and
    # overridden by the content of the master.info file, unless you shutdown
    # the slave server, delete master.info and restart the slaver server.
    # For that reason, you may want to leave the lines below untouched
    # (commented) and instead use CHANGE MASTER TO (see above)
    # required unique id between 2 and 2^32 - 1
    # (and different from the master)
    # defaults to 2 if master-host is set
    # but will not function as a slave if omitted
    #server-id = 2
    # The replication master for this slave - required
    #master-host = <hostname>
    # The username the slave will use for authentication when connecting
    # to the master - required
    #master-user = <username>
    # The password the slave will authenticate with when connecting to
    # the master - required
    #master-password = <password>
    # The port the master is listening on.
    # optional - defaults to 3306
    #master-port = <port>
    # binary logging - not required for slaves, but recommended
    #log-bin=mysql-bin
    # Uncomment the following if you are using InnoDB tables
    #innodb_data_home_dir = /var/lib/mysql
    #innodb_data_file_path = ibdata1:10M:autoextend
    #innodb_log_group_home_dir = /var/lib/mysql
    # You can set .._buffer_pool_size up to 50 - 80 %
    # of RAM but beware of setting memory usage too high
    #innodb_buffer_pool_size = 16M
    #innodb_additional_mem_pool_size = 2M
    # Set .._log_file_size to 25 % of buffer pool size
    #innodb_log_file_size = 5M
    #innodb_log_buffer_size = 8M
    #innodb_flush_log_at_trx_commit = 1
    #innodb_lock_wait_timeout = 50
    [mysqldump]
    quick
    max_allowed_packet = 16M
    [mysql]
    no-auto-rehash
    # Remove the next comment character if you are not familiar with SQL
    #safe-updates
    [myisamchk]
    key_buffer_size = 20M
    sort_buffer_size = 20M
    read_buffer = 2M
    write_buffer = 2M
    [mysqlhotcopy]
    interactive-timeout

    Hi,
    I seem to have had an issue with mysql as well and it appears to be that I don't have a sock file as I have checked /var/run/mysqld for mysqld.sock and it does not exist so would that be what is stopping mysql server from starting and if so how do I create the sock file ??
    Cheers
    Quazza
    Update - Actually I solved my problem to, it was to do with my log files filling up but that also led to the bigger problem of a failing HD oh what fun anyway got there before any major data loss. 
    Last edited by quazza (2012-01-20 08:09:26)

  • Error while Deploying war file in SunOneWebServer

    Hi,
    I am getting the following error while deploying my war file in sunonewebserver 6.1
    Server Start Up
    <dl><dt>Status:
    </dt><dd>[https-ctsintcoora5]: start failed. (2: No such file or
    directory)
    [https-ctsintcoora5]: Sun ONE Web Server 6.1 B08/22/2003 12:37 [https-ctsintcoora5]: info: CORE5076: Using [Java HotSpot(TM)
    Server VM, Version 1.4.1_03] from [Sun Microsystems Inc.]
    [https-ctsintcoora5]: info: WEB0100: Loading web module in virtual
    server [https-ctsintcoora5] at [TestTomcatProject]
    [https-ctsintcoora5]: info: WEB0100: Loading web module in virtual
    server [https-ctsintcoora5] at [search]
    [https-ctsintcoora5]: info: CORE3282: stdout: PARSE error at line
    4 column -1
    [https-ctsintcoora5]: info: CORE3282: stdout:
    org.xml.sax.SAXParseException: Attribute "xmlns" is not declared for element
    "web-app".
    [https-ctsintcoora5]: failure: ContextConfig[TestTomcatProject]
    WEB3524: Parse error in application web.xml
    [https-ctsintcoora5]: org.xml.sax.SAXParseException: Attribute
    "xmlns" is not declared for element "web-app".
    [https-ctsintcoora5]: at
    org.apache.crimson.parser.Parser2.error(Parser2.java:3210)
    [https-ctsintcoora5]: at
    org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1456)
    [https-ctsintcoora5]: at
    org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:534)
    [https-ctsintcoora5]: at
    org.apache.crimson.parser.Parser2.parse(Parser2.java:318)
    [https-ctsintcoora5]: at
    org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
    [https-ctsintcoora5]: at
    org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
    [https-ctsintcoora5]: at
    javax.xml.parsers.SAXParser.parse(SAXParser.java:314)
    [https-ctsintcoora5]: at
    javax.xml.parsers.SAXParser.parse(SAXParser.java:89)
    [https-ctsintcoora5]: at
    org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:275)
    [https-ctsintcoora5]: at
    org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:311) [https-ctsintcoora5]: at
    org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:990) [https-ctsintcoora5]: at
    org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:256) [https-ctsintcoora5]: at
    org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155) [https-ctsintcoora5]: at
    org.apache.catalina.core.StandardContext.start(StandardContext.java:3679) [https-ctsintcoora5]: at
    com.iplanet.ias.web.WebModule.start(WebModule.java:238)
    [https-ctsintcoora5]: at
    org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
    [https-ctsintcoora5]: at
    org.apache.catalina.core.StandardHost.start(StandardHost.java:652)
    [https-ctsintcoora5]: at
    org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
    [https-ctsintcoora5]: at
    org.apache.catalina.core.StandardEngine.start(StandardEngine.java:355)
    [https-ctsintcoora5]: at
    org.apache.catalina.startup.Embedded.start(Embedded.java:995)
    [https-ctsintcoora5]: at
    com.iplanet.ias.web.WebContainer.start(WebContainer.java:411)
    [https-ctsintcoora5]: at
    com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:506)
    [https-ctsintcoora5]: at
    com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:161)
    [https-ctsintcoora5]:
    [https-ctsintcoora5]: failure: ContextConfig[TestTomcatProject]:
    WEB3525: Occurred at line 4 column -1
    [https-ctsintcoora5]: failure: ContextConfig[TestTomcatProject]:
    WEB3541: Marking this application unavailable due to previous error(s)
    [https-ctsintcoora5]: failure: WebModule[TestTomcatProject]:
    WEB2705: Context startup failed due to previous errors
    [https-ctsintcoora5]: failure: WebModule[TestTomcatProject]:
    WEB2720: Error initializing naming context for context /TestTomcatProject [https-ctsintcoora5]: javax.naming.NamingException: WEB3880:
    Unknown context name :
    StandardEngine[null].StandardHost[https-ctsintcoora5].StandardContext[TestTomcatProject] [https-ctsintcoora5]: at
    org.apache.naming.ContextBindings.bindThread(ContextBindings.java:207)
    [https-ctsintcoora5]: at
    org.apache.catalina.core.StandardContext.bindThread(StandardContext.java:4068) [https-ctsintcoora5]: at
    org.apache.catalina.core.StandardContext.stop(StandardContext.java:3788) [https-ctsintcoora5]: at
    com.iplanet.ias.web.WebModule.stop(WebModule.java:302)
    [https-ctsintcoora5]: at
    org.apache.catalina.core.StandardContext.start(StandardContext.java:3759) [https-ctsintcoora5]: at
    com.iplanet.ias.web.WebModule.start(WebModule.java:238)
    [https-ctsintcoora5]: at
    org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
    [https-ctsintcoora5]: at
    org.apache.catalina.core.StandardHost.start(StandardHost.java:652)
    [https-ctsintcoora5]: at
    org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
    [https-ctsintcoora5]: at
    org.apache.catalina.core.StandardEngine.start(StandardEngine.java:355)
    [https-ctsintcoora5]: at
    org.apache.catalina.startup.Embedded.start(Embedded.java:995)
    [https-ctsintcoora5]: at
    com.iplanet.ias.web.WebContainer.start(WebContainer.java:411)
    [https-ctsintcoora5]: at
    com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:506)
    [https-ctsintcoora5]: at
    com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:161)
    [https-ctsintcoora5]:
    [https-ctsintcoora5]: startup failure: could not bind to port 80
    (Permission denied)
    [https-ctsintcoora5]: failure: HTTP3127: [LS ls1]
    http://ctsintcoora5:80: Error creating socket (Permission denied)
    [https-ctsintcoora5]: failure: HTTP3094: 1 listen sockets could
    not be created
    [https-ctsintcoora5]: failure: CORE3186: Failed to set
    configuration
    [https-ctsintcoora5]: failure: server initialization failed
    alert("Warning: https-ctsintcoora5\nThis server failed to start correctly.");</dd></dl>
    <dl><dt>Error
    </dt><dd>An error occurred during startup.
    </dd><dd>The server https-ctsintcoora5 was not started.</dd></dl>I have changed the dtd format of my web.xml also:
    my web.xml goes like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
    <servlet>
    <servlet-name>validateuser</servlet-name>
    <servlet-class>validateuser</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>validateuser</servlet-name>
    <url-pattern>/validateuser</url-pattern>
    </servlet-mapping>
    <servlet>
    <servlet-name>updateprofile</servlet-name>
    <servlet-class>updateprofile</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>updateprofile</servlet-name>
    <url-pattern>/updateprofile</url-pattern>
    </servlet-mapping>
    <servlet>
    <servlet-name>registeruser</servlet-name>
    <servlet-class>registeruser</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>registeruser</servlet-name>
    <url-pattern>/registeruser</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
    <welcome-file>jspfiles/Home.jsp</welcome-file>
    </welcome-file-list>
    <error-page>
    <error-code>404</error-code>
    <location>/error.jsp</location>
    </error-page>
    </web-app>
    is there anything that needs to be changed?
    thanks in advance
    Dharini

    Wow, that's a really unhelpful error message.
    It sounds like your web app is attempting to use a malformed tag library. Did you create your own TLD file? In either case, check your web app for *.tld files. One of them apparently contains a <displayname> element instead of a display-name attribute.

  • Problem Playing Audio in Forms 6i On Web

    Hi there,
    I'm trying to get sound out of a form running over the web under Forms 6i using JDK 1.1.8 and after two solid days of reading documentation, scanning Oracle's support sites and searching the web I've been unable to figure out what I need to do to get sound to work in this environment. The maddening part is that I've been able to do it under Forms 9i and JDeveloper (using Java2) 9i so I know how easy this should be. Unfortunately, 9i is not our corporate standard yet so I am forced to go the 6i route instead for now.
    Based on my research I find it impossible to believe that I'm dealing with that complex a problem and that if any of you have managed to figure it out it won't require that much time to pass it on.
    Okay, if you are still reading then I thank you and hope that you'll be able to help. The specifics of my situation are as follows:
    -Using Oracle 8.1.7 as the database but that's pretty much irrelevant here as I do no database access in this simplified form I'm testing in.
    -Forms Server and Form Builder 6i (version 6.0.8.13.0) running on Solaris and being used to develop a simple form with just one button on it which implements my PJC. My real need is a bit more complex but this is fine for a start.
    -JDeveloper 3.2.3 used to develop the PJC, compiled with the 1.1.8 JDK and deployed to a standard JAR file.
    -Have tried signing my JAR file and resigning the f60all.jar using the same user. Have tried not signing either one. Have tried just signing one of the two. I believe I've tried every combination here with the one that gets me the furthest being the scenario where I don't sign mine and just use the standard one that came with the Forms install. This allows me to get my form up on the screen and at least try to play the sound.
    -The code for the PJC is as follows. This code was mostly auto-generated by JDev with the setproperty function and its debug code having been created by me using my successfull 9i experiment code as the base. Anyway, here is the PJC code.
    // Copyright (c) 1999 Oracle Corporation
    package soundpkg;
    import oracle.forms.ui.*;
    import oracle.forms.properties.ID;
    import java.net.URL;
    import java.applet.*;
    public class sound extends VButton {
    public final static ID PLAY = ID.registerProperty("PLAY");
    public String sou_loc = "http://rhqt-oracle.on.prv:6900/las/paul.wav";
    public sound() {
    super();
    try {
    jbInit();
    catch (Exception e) {
    e.printStackTrace();
    private void jbInit() throws Exception {
    public boolean setProperty(ID property, Object value) {
    if (property == PLAY)
    try
    System.out.println("before soundplay");
    sou_loc = value.toString();
    System.out.println(sou_loc);
    URL sou = new URL(sou_loc);
    System.out.println("1");
    Applet testapp = new Applet();
    System.out.println("2");
    AudioClip clip = testapp.getAudioClip(sou);
    System.out.println("3");
    clip.play();
    System.out.println("after soundplay");
    return true;
    } catch(Exception ex)
    ex.printStackTrace();
    return super.setProperty(property, value);
    Pretty much the only change from my 9i code was to the function call for opening the audio file.
    Under Jdev 9i, using Java2 it was:
    AudioClip clip = Applet.newAudioClip(sou);
    Under Jdev 3.2.3 and using JDK 1.1.8 (have to in order to work with Forms 6i) I changed it to:
    AudioClip clip = testapp.getAudioClip(sou);
    From all of my reading, I thought this SHOULD have worked. But, of course, it doesn't. One possible problem is the fact that I was forced to create a new instance of Applet in order to be able to reference the getAudioClip function. My other two attempts to reference it without creating a new instance were:
    1)Just access it on its own:
    AudioClip clip = getAudioClip(sou);
    - This resulted in the expected, "method getAudioClip(java.net url) not found in class soundpkg.sound" error
    2)Access it by first referencing Applet
    AudioClip clip = Applet.getAudioClip(sou);
    - This resulted in a, "non-static method getAudioClip(java.net.URL) cannot be referenced from a static context", message
    Hence, how I wound up creating the new instance and using it to access the getAudioClip function. Maybe this was the wrong way to troubleshoot it but, being new to Java and about five years removed from my C++ experience, it was the best I could come up with and it at least allowed me to compile. However, once I click on my button to play the sound I get the following error output from the Java Console. I've left the beginning info on just in case version numbers are required or something. Seemingly, the more relevant stuff comes later, beginning with the line generated by my debug code saying "before soundplay". Though, I must admit I'm curious as to why I'm getting all of those other, "opening blah blah blah no proxy", messages as well but they don't seem to be stopping me from running the form so I've ignored them for now. Anyway, here are the errors thrown up by the Java Console:
    OUTPUT FROM JAVA CONSOLE FOLLOWS
    Oracle JInitiator version 1.1.8.10
    Using JRE version 1.1.8.10
    User home directory = C:\Documents and Settings\duane.colucci
    Proxy Configuration: Manual Configuration
    Proxy: blvgate.on.prv:80
    Proxy Overrides: *.prv,10.*,*.hrdc-drhc.net
    JAR caching enabled.
    Cache directory: C:\Program Files\Oracle\JInitiator 1.1.8.10\jcache
    Maximum cache size: 50000000 bytes
    Opening http://svr02113075.on.prv:8200/web_code/f60all.jar no proxy
    Loading http://svr02113075.on.prv:8200/web_code/f60all.jar from JAR cache.
    Opening http://svr02113075.on.prv:8200/web_code/sound118.jar no proxy
    Loading http://svr02113075.on.prv:8200/web_code/sound118.jar from JAR cache.
    Opening http://svr02113075.on.prv:8200/web_code/oracle/forms/engine/MainBeanInfo.class no proxy
    Opening http://svr02113075.on.prv:8200/web_code/sun/beans/infos/MainBeanInfo.class no proxy
    Opening http://svr02113075.on.prv:8200/web_code/oracle/ewt/swing/JBufferedAppletBeanInfo.class no proxy
    Opening http://svr02113075.on.prv:8200/web_code/sun/beans/infos/JBufferedAppletBeanInfo.class no proxy
    Opening http://svr02113075.on.prv:8200/web_code/oracle/ewt/lwAWT/BufferedAppletBeanInfo.class no proxy
    Opening http://svr02113075.on.prv:8200/web_code/sun/beans/infos/BufferedAppletBeanInfo.class no proxy
    Opening http://svr02113075.on.prv:8200/web_code/oracle/ewt/popup/PopupAppletBeanInfo.class no proxy
    Opening http://svr02113075.on.prv:8200/web_code/sun/beans/infos/PopupAppletBeanInfo.class no proxy
    Opening http://svr02113075.on.prv:8200/web_code/oracle/forms/engine/RunformBundle_en_CA.class no proxy
    Opening http://svr02113075.on.prv:8200/web_code/oracle/forms/engine/RunformBundle_en_CA.properties no proxy
    Opening http://svr02113075.on.prv:8200/web_code/oracle/forms/registry/Registry.dat no proxy
    connectMode=Socket
    serverHost=svr02113075.on.prv
    serverPort=9001
    Forms Applet version is : 60813
    before soundplay
    http://rhqt-oracle.on.prv:6900/paul.wav
    1
    2
    java.lang.NullPointerException:
         at java.applet.Applet.getAppletContext(Applet.java:138)
         at java.applet.Applet.getAudioClip(Applet.java:240)
         at soundpkg.sound.setProperty(sound.java:57)
         at oracle.forms.handler.ComponentItem.setCustomProperty(Compiled Code)
         at oracle.forms.handler.ComponentItem.onUpdate(Compiled Code)
         at oracle.forms.handler.ButtonItem.onUpdate(Unknown Source)
         at oracle.forms.handler.UICommon.onUpdate(Compiled Code)
         at oracle.forms.engine.Runform.onUpdateHandler(Compiled Code)
         at oracle.forms.engine.Runform.processMessage(Compiled Code)
         at oracle.forms.engine.Runform.processSet(Compiled Code)
         at oracle.forms.engine.Runform.onMessageReal(Compiled Code)
         at oracle.forms.engine.Runform.onMessage(Compiled Code)
         at oracle.forms.engine.Runform.processEventEnd(Compiled Code)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Compiled Code)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Compiled Code)
         at java.awt.Component.dispatchEventImpl(Compiled Code)
         at java.awt.Container.dispatchEventImpl(Compiled Code)
         at java.awt.Component.dispatchEvent(Compiled Code)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Compiled Code)
         at java.awt.LightweightDispatcher.processMouseEvent(Compiled Code)
         at java.awt.LightweightDispatcher.dispatchEvent(Compiled Code)
         at java.awt.Container.dispatchEventImpl(Compiled Code)
         at java.awt.Window.dispatchEventImpl(Compiled Code)
         at java.awt.Component.dispatchEvent(Compiled Code)
         at java.awt.EventDispatchThread.run(Compiled Code)
    As you can see from the output and a quick glance at my code above, the program crashes out on the line where I attempt to call the getAudioClip function. And that's about it. This is where I'm stumped. So, again, any help anybody can provide is greatly appreciated.
    Thanks in advance,
    Duane Colucci

    Duane,
    don't knowwhy you chose to extend VButton, but the following code works for me. Note that I extend the VBean class. Also I am using Jinitiator 1.3.1.9 (this is what I had available for testing). My first test chowed that there was a problem with the way you specify teh URL string, which is why I harcoded the URL string when building the URL.
    Another issue when running it is that you need to sign the file because it needs socket permission (at least this was the error shown on a remote client).
    Here's the code
    package mypackage3;
    import oracle.forms.ui.*;
    import oracle.forms.properties.ID;
    import java.net.URL;
    import java.applet.*;
    import javax.swing.JTextField;
    import oracle.forms.handler.IHandler;
    public class Class1 extends VBean {
    public final static ID PLAY = ID.registerProperty("PLAY");
    private IHandler mHandler = null;
    public Class1()
    super();
    public void init(IHandler handler)
    mHandler = handler;
    super.init(handler);
    public boolean setProperty(ID property, Object value) {
    if (property == PLAY)
    try
    System.out.println("before soundplay");
    URL sou = new URL("http://fnimphiu-lap.de.oracle.com/forms60java/Drums.wav");
    System.out.println("1");
    //Applet testapp = new Applet();
    Applet testapp = mHandler.getApplet();
    System.out.println("2");
    AudioClip clip = testapp.getAudioClip(sou);
    System.out.println("3");
    clip.play();
    System.out.println("after soundplay");
    return true;
    catch(Exception ex)
    ex.printStackTrace();
    return super.setProperty(property, value);
    Fran

  • Run SunOne using normal user

    Hi, I have installed SunOne AppSvr7 on UNIX Server (SunOS) on my own directory "/export/home/SUNWappsvr7".
    I have installed the software using root permission.
    I can start and stop the app-server using root with no problem.
    However, I need to run/operate the app-server with user which does not have root permission.
    I do a chown to user with no root permission on the following directory:
    - <install_config_dir>: /export/home/SUNWappsvr7/config
    - /export/home/SUNWappsvr7/var <-- this contains the domains directory
    - /export/home/SUNWappsvr7/bin
    The error message that i get from the server.log file is as follows:
    [25/Mar/2003:09:19:06] INFO ( 3947): CORE1116: Sun ONE Application Server 7.0
    [25/Mar/2003:09:19:16] INFO ( 3948): CORE5076: Using [Java HotSpot(TM) Server VM, Version 1.4.0_02] from [Sun Microsystems Inc.]
    [25/Mar/2003:09:19:29] INFO ( 3948): JMS5029: Successfully attached to an existing Message Queue broker. Instance Name = TowerDomain_TowerInst
    [25/Mar/2003:09:19:48] INFO ( 3948): JTS5014: Recoverable JTS instance, serverId = [100]
    [25/Mar/2003:09:19:51] INFO ( 3948): RAR5060: Install JDBC Datasources ...
    [25/Mar/2003:09:19:52] INFO ( 3948): JMS5015: Install JMS resources ...
    [25/Mar/2003:09:20:03] SEVERE ( 3948): HTTP3127: HTTP listener http-listener-1 [http://suntest11:88]: Error creating socket (Permission denied)
    [25/Mar/2003:09:20:03] SEVERE ( 3948): HTTP3094: 1 HTTP listener socket(s) could not be created
    [25/Mar/2003:09:20:03] SEVERE ( 3948): CORE3186: Failed to set configuration
    Is there any special configurations or any other required steps to get Appserver running with no root permission?
    If anyone could help me with this problem, it would be deeply appreciated.
    Thanks in advance.

    Only root is allowed to listen on ports below 1024. Your Application Server has an HTTP listener configured on port 88. If you will not be starting your Application Server as root, you must choose another port.

Maybe you are looking for

  • Want to compare same object in different systems

    hi all, i want to compare same object in different systems example: same transfer rule in BID to be compared with the one in BIT/BIP in these kind of cases, pls help me on how to do the comparison. as i have to do some enhancement in BID and release

  • Can't view music videos since upgrade

    Since upgrading iTunes to 10.2.1 I can no longer view music videos. I hear the music, but the window only displays the same image that's showing in Now Playing. I have made no other changes except the upgrade?

  • CS4 crashes trying to install (everytime same spot)

    Everytime It hits the part trying to install the "Langpack" it crashed. I spend all 8 hours of my work day trying to resolve this. Customer Service at it's worst (In India or somewhere). I wish I could just talk to someone who understands the program

  • IMovie 10.0.3 update has ruined all my titles

    So Im filming at least one thing a day for 2014.  Each day has a title which is Line Lower Third.  When you type content, it shrinks to fit (well used to) Apple decide to install an update to iMovie (April 14) and since that update, my titles on EVER

  • I am having problems with my Canon S100 camera. The shutter is not working correctly.

    I hope this is the right place to post a complaint about my Canon S100 camera's shutter not working correctly.  My daughter purchased two of these cameras, one for me, and one for herself.  Both cameras are having the same problem.  I hope Canon can