Java 1.6 + JDBC + Oracle, what is wrong?

I Instaled the Oracle Enterprise 11.2, The Database Control Tool report me the following informations:
Status : Active
Instance name : orcl
Version: 11.2.0.1.0
Read only : Not
Oracle Home : C:\app\xxxx\product\11.2.0\dbhome_1
Host : localhost
Listener : LISTENER_localhost
Database Vault : not instaled
In my app java i add the ojodbc6.jar that i find on the directory where Oracle database was instaled.
My connection class
import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import org.apache.log4j.Logger; public class DataSourceDAO { private static Logger log = Logger.getLogger( DataSourceDAO.class ); protected Connection connection; private static final String OracleDriver = "oracle.jdbc.driver.OracleDriver"; private static final String OracleURL = "jdbc:oracle:thin:@localhost:1521:orcl"; private static final String OracleUSER = "SYSTEM"; private static final String OraclePASSWORD = "minhasenha"; public DataSourceDAO( ) { init( ); } private void init( ) { try { Class.forName( OracleDriver ); connection = DriverManager.getConnection( OracleURL, OracleUSER, OraclePASSWORD ); } catch ( Exception e ) { log.error( e ) ; throw new RuntimeException( " Impossivel localizar DataSource " ); } } public final void connect( ) throws SQLException { if ( connection == null ) { init( ); } } public final void close( ) throws SQLException { if ( connection != null ) { connection.close( ); } } public final void commit( ) { try { if ( connection != null ) { connection.commit( ); } } catch ( SQLException e ) { log.error( e ) ; throw new RuntimeException( "Impossivel comitar!", e ); } } public final void rollback( ) { try { if ( connection != null ) { connection.rollback( ); } } catch ( SQLException e ) { log.error( e ) ; throw new RuntimeException( "Impossivel desfazer!", e ); } } }
This code was workng in a pc with oracle 11g express editon, but with oracle Enterprise Edition the following erro happens:
Error:
012-06-11 02:46:03,590][enviar] ERROR br.com.ftt.view.TratarClienteVIEW ErroConnection refused: connect
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at br.com.ftt.view.TratarClienteVIEW.enviar(TratarClienteVIEW.java:352)
at br.com.ftt.view.TratarClienteVIEW.inserir(TratarClienteVIEW.java:233)
at br.com.ftt.view.TratarClienteVIEW.access$0(TratarClienteVIEW.java:220)
at br.com.ftt.view.TratarClienteVIEW$1.widgetSelected(TratarClienteVIEW.java:140)
at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at br.com.ftt.view.TratarClienteVIEW.main(TratarClienteVIEW.java:59)
[2012-06-11 02:46:03,606][main] ERROR br.com.ftt.view.TratarClienteVIEW java.lang.NullPointerException

user9981176 wrote:
This code was workng in a pc with oracle 11g express editon, but with oracle Enterprise Edition the following erro happens:Expanding on the previous answer....because there is nothing wrong with the code.
The error indicates a box to box connection problem. Usual causes but others are possible.
1. Database isn't up (or listener isn't up)
2. Wrong port
3. Wrong host
4. Firewall issue.

Similar Messages

  • What's wrong with java.util.Date??

    Hi all,
    I was just practicing a bit of java.util ,when i was compiling my code-
    import java.util.Date;
    import java.text.SimpleDateFormat;
    class DateStamp{
    public static void Main(String args[]){
    doDate1;
    String D;
    int D1,D2,D3;
    Date dt=new Date();
    SimpleDateFormat sdf=new SimpleDateFormat("dd-mm-yyyy");
    /*When using method .setDate(x) ,is x an integer or String?can x=2/5/2002 or 2-5-2002?*/
    public void doDate1{
    dt.setDay(12);
    dt.setMonth(12);
    dt.setYear(102);
    D=dt.getTime();
    D.parseInt(D1);D=""
    D=sdf.getTime();
    D.parseInt(D2);
    int D3=D2-D1;
    int D3=D3/86400000;/*How do you convert milisec-to-days?*/
    D=D3.toString().
    System.out.println(D+"days have elapsed since then");
    the compiler said this-
    File Compiled...
    --------------------------- Javac Output ---------------------------
    DateStamp.java:7: Invalid expression statement.doDate1;^DateStamp.java:14: Instance variables can't be void: doDate1public void doDate1; ^2 errors
    this problem is persistant, and i'm a java newbie ,Does anyone know what's wrong here?
    Thanks!
    Regards,
    aesh83

    How do you get System date onto a Date variable?Calendar.getInstance().getTime() returns a java.util.Date for the current time. You can also use System.currentTimeMillis() and turn it into a Date.
    Will date.after(Date when) method work when Date
    variables are in milisecs?Date.after(Date when) compares two date objects. As the JavaDoc says "Returns:
    true if and only if the instant represented by this Date object is strictly later than the instant represented by when" To me that says that milliseconds are taken into account, I.E. comparing dates actually compares the date plus the time portion.
    >
    What methods-
    *Convert a date(dd/mm/yy) to milisec?If you look in the javaDoc you'll see "long getTime() Returns the number of milliseconds since January 1, 1970, 00:00:00 GMT represented by this Date object." Calendar also has the getTimeInMillis() method.
    *Convert a milisec value to a date(dd/mm/yy)?Calendar.setTimeInMillis(long);
    I'm have this little problem.
    When using GregorianCalander-
    *need to initialize?
    *need set today's date?Calendar.getInstance() will return an appropriate Calendar object for the current locale initialized to the current date/time.
    *how do you check if a date exceeds 3 weeks?I'm not sure what you mean. There are a couple of roll(...) methods that will allow you to add a unit of time to a date. I.E. you could add three weeks to a date.
    To ignore the time portion of a date just set the time to "00:00"
    Col

  • Errors dont know what is wrong!

    Errors dont know what is wrong!
    import java.awt.*;
    import javax.swing.*;
    import java.awt.geom.*;
    import java.awt.event.MouseListener;
    import java.awt.event.*;
    public class SquareShape extends Piece
    {private Rectangle2D.Double _square1, _square2, _square3, _square4;
    private int xLoc=80, yLoc=0, size=19, space=1;
    private smallPiece [][] rectangle;
    public SquareShape(smallPiece[][] rect)
    {super(Color.red);
    _square1 = new Rectangle2D.Double(xLoc,yLoc,size,size);
    _square2 = new Rectangle2D.Double(xLoc,yLoc+size+space,size,size);
    _square3 = new Rectangle2D.Double(xLoc+size+space,yLoc,size,size);
    _square4 = new Rectangle2D.Double(xLoc+size+space,yLoc+size+space,size,size);
    rectangle= rect;}
    public void setXLocation(int x)
    {_square1.setFrame(xLoc+x,yLoc,size,size);
    _square2.setFrame(xLoc+x,yLoc+size+space,size,size);
    _square3.setFrame(xLoc+size+space+x,yLoc,size,size);
    _square4.setFrame(xLoc+size+space+x,yLoc+size+space,size,size);
    xLoc=xLoc+x;}
    public void setYLocation(int y)
    {_square1.setFrame(xLoc,yLoc+y,size,size);
    _square2.setFrame(xLoc,yLoc+size+space+y,size,size);
    _square3.setFrame(xLoc+size+space,yLoc+y,size,size);
    _square4.setFrame(xLoc+size+space,yLoc+size+space+y,size,size);
    yLoc=yLoc+y;}
    public boolean moveOneStep()
    {if(_square2.getY()+size>=440||_square4.getY()>=440)
    return false;
    else
    if(rectangle[21-((int)(_square2.getY()+1))/20][9-((int)(_square2.getX()+1))/20]!=null || rectangle[21-((int)(_square4.getY()+1))/20][9-((int)(_square4.getX()+1))/20]!=null)
    {return false;}
    else
    {setYLocation(20);
    return true;}}
    public int[][] getLocs()
    {int[][] locs= new int[4][2];
    locs[0][0]= ((int)(_square1.getY()+1))/20;
    locs[0][1]= ((int)(_square1.getX()+1))/20;
    locs[1][0]= ((int)(_square2.getY()+1))/20;
    locs[1][1]= ((int)(_square2.getX()+1))/20;
    locs[2][0]= ((int)(_square3.getY()+1))/20;
    locs[2][1]= ((int)(_square3.getX()+1))/20;
    locs[3][0]= ((int)(_square4.getY()+1))/20;
    locs[3][1]= ((int)(_square4.getX()+1))/20;
    System.out.println(locs[0][0]+" "+locs[0][1]+" "+locs[1][0]+" "+locs[1][1]+" "+locs[2][0]+" "+locs[2][1]+ " "+locs[3][0]+" "+locs[3][1]);
    return locs;}
    public boolean contains(int x, int y)
    {if(_square3.contains(x,y)||_square4.contains(x,y))
    return true;
    else
    return false;}
    public void fill(Graphics2D g2)
    super.fill(g2);
    g2.fill(_square1);
    g2.fill(_square2);
    g2.fill(_square3);
    g2.fill(_square4);}
    import java.awt.geom.*;
    import java.awt.*;
    import javax.swing.JPanel;
    import javax.swing.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.KeyEvent;
    import java.awt.event.*;
    public class TetrisPanel extends JPanel
    {private Factory _pieceFact;
    private Piece currentPiece;
    private Timer _timer;
    private int Interval =500;
    private smallPiece [][] locationArray;
    public TetrisPanel()
    {setBackground(Color.white);
    locationArray = new smallPiece[22][10];
    _pieceFact = new Factory(locationArray);
    currentPiece = _pieceFact.newPiece();
    _timer = new Timer(Interval, new TimerListener());
    _timer.start();
    public void paintComponent(Graphics g)
    {super.paintComponent(g);
    Graphics2D g2 = (Graphics2D)g;
    currentPiece.fill(g2);
    for(int row =0; row<22; row++)
    for(int col =0; col<10; col++)
    if(locationArray[row][col]!=null)
    {locationArray[row][col].fill(g2);}}
    public void createPiece()
    {currentPiece =_pieceFact.newPiece();
    repaint();}
    public class TimerListener implements ActionListener{
    public void actionPerformed(ActionEvent e)
    if(currentPiece.moveOneStep()==true)
    {repaint();
    currentPiece.getLocs();}
    else
    {int[][]ar = currentPiece.getLocs();
    for(int rows=0; rows<ar.length; rows++)
    {locationArray[22-ar[rows][0]][10-ar[rows][1]] = new smallPiece(ar[rows][1]*20,ar[rows][0]*20, currentPiece.getColor());}
    createPiece();
    repaint();}
    }the error
    Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 22
         at TetrisPanel$TimerListener.actionPerformed(TetrisPanel.java:51)
         at javax.swing.Timer.fireActionPerformed(Timer.java:271)
         at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 22
         at SquareShape.moveOneStep(SquareShape.java:38)
         at TetrisPanel$TimerListener.actionPerformed(TetrisPanel.java:45)
         at javax.swing.Timer.fireActionPerformed(Timer.java:271)
         at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

    Errors dont know what is wrong!You read the stack trace from the top down, looking out for the first line that refers to your code.
    java.lang.ArrayIndexOutOfBoundsException: 22This means that you are using something as an array index (some variable, perhaps) and it has a value of 22, but the array itself is not that big.
    at TetrisPanel$TimerListener.actionPerformed(TetrisPanel.java:51This tells you exactly where the bad array access is taking place. Only you know which line 51 is - and it's good form to tell the rest of us when you post - but, at a wild guess, I'd say it was that line within the for loop that assigns new values to the locationArray.
    Use System.out.println() to check the values of the variables (or expressions) you use to access the array. Also check the length of the various arrays involved.
    (If I were you, I'd consider using a bit more indentation in your code. Especially where constructs are nested.)

  • What is wrong with this program segment? I could not understand the error..

    public class Hmw3
         public static char[] myMethod(char[]p1,int p2, char p3)
         {                             //13 th row
              if(p2<p1.length)
                   p1[p2]=p3;
                   System.out.println(p1);
         public static void main(String[] args)
              String sentence="It snows";
              char[] tmp=sentence.toCharArray();
              System.out.println(tmp);
              myMethod(tmp,3,'k');
              sentence=String.copyValueOf(tmp);
              System.out.println(sentence);     
    i wrote this program segment and compiler gave this error:
    C:\Program Files\Xinox Software\JCreator LE\MyProjects\hmw3\Hmw3.java:13: missing return statement
    What is wrong???

    Your method signature states that myMethod should return an array for chars.
    But in ur implementation of myMethod, there is nothing returned.
    Just add a return statement like "return p1"

  • Help: What's wrong to get TimeMillis in this code?

    Hi,
    I want to get the TimeMillis from a Calender.
    Everytime the date and time and correct, however,
    the Date and TimeMillis are always wrong. Can
    anybody tell me how to get the correct ones?
    tz = TimeZone.getTimeZone("PST");
    cal = Calendar.getInstance(tz);
    cal.setTimeZone(tz);
    // get date and time
    nYear = cal.get(cal.YEAR);
    nMonth = cal.get(cal.MONTH);
    nDayofMonth = cal.get(cal.DAY_OF_MONTH);
    nDayofWeek = cal.get(cal.DAY_OF_WEEK);
    nHour = cal.get(cal.HOUR_OF_DAY);
    nMin = cal.get(cal.MINUTE);
    nSec = cal.get(cal.SECOND);
    int miliSec = cal.get(cal.MILLISECOND);
    // get TimeMillis
    java.util.Date date = (java.util.Date)(cal.getTime());
    long nTime = date.getTime();
    Thanks very much,
    Fan

    Hi,
    I'm having a similar problem.I have compare 2 dates and get the number of days between them.
    Myplan is convert both dates to milisecs ,calculate, and re-convert to get days (how do i round it off only yo integers, no decimals).Any idea how i could do this?-
    import java.util.Date;
    import java.text.SimpleDateFormat;
    class DateStamp{
    public static void Main(String args[]){
    doDate1;
    String D;
    int D1,D2,D3;
    Date dt=new Date();
    SimpleDateFormat sdf=new SimpleDateFormat("dd-mm-yyyy");
    /*When using method .setDate(x) ,is x an integer or String?can x=2/5/2002 or 2-5-2002?*/
    public void doDate1{
    dt.setDay(12);
    dt.setMonth(12);
    dt.setYear(102);
    D=dt.getTime();
    D.parseInt(D1);D=""
    D=sdf.getTime();
    D.parseInt(D2);
    int D3=D2-D1;
    int D3=D3/86400000;/*How do you convert milisec-to-days?*/
    D=D3.toString().
    System.out.println(D+"days have elapsed since then");
    the compiler said this-
    File Compiled...
    --------------------------- Javac Output ---------------------------
    DateStamp.java:7: Invalid expression statement.doDate1;^DateStamp.java:14: Instance variables can't be void: doDate1public void doDate1; ^2 errors
    this problem is persistant, and i'm a java newbie ,Does anyone know what's wrong here?
    Thanks!
    Regards,
    aesh83

  • What is wrong with my tiny jdbc program? Help!!!

    Hi,
    Would anyone diagnose the problem of my simple jdbc program?
    The situation is :
    a) local machine oracle thin driver connection; "lsnrctl" is running.
    b) I can query the statement "select id from gameUser" from SQLPLUS logged in as "scott", with desirable result.
    c) There are two code lines commented out in the code, if I uncomment them and instead comment out their counterparts and run the program, the "rset" would contain the result I want. But if I run the program unchanged, the output is only "hi".
    d) If I change the query statement to a wrong column name or a wrong table name, there would be a sql exception. So I surmise that the connection with the database is successful. But how come there is no query result???
    The follow is my coding.
    import java.sql.*;
    class dbAccess {
    public static void main (String args []) throws SQLException
    DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
    try{
    Connection conn = DriverManager.getConnection
    ("jdbc:oracle:thin:orcl", "scott", "tiger");
    // ("jdbc:oracle:thin:orcl", "system", "manager");
    Statement stmt = conn.createStatement();
    ResultSet rset = stmt.executeQuery("select ID from scott.gameUser");
    // ResultSet rset = stmt.executeQuery("select BANNER from SYS.V_$VERSION");
    while (rset.next())
    System.out.println (rset.getString(1)); stmt.close();
    System.out.println("hi");
    }catch (Exception e)
    System.out.println(e.toString());
    Thanks for help!

    "local machine oracle thin driver connection;" means that my jdbc application uses Oracle thin driver to connect to a Oracle database. The database and the application are both on the same local machine.
    "lsnrctl" is the command line program running to accept incomming request to connect to the database, it listens on the default 1521 port.
    I inserted two rows into the table and I could query these two rows in SQLPLUS.
    And I tried "select ID from gameUser", "select id from scott.gameUser" and various combination, it just won't retrieve the rows I inserted in the table.

  • JDBC,Oracle - java.lang.ClassNotFoundException: oracle.jdbc.driver.Oracle

    I am using JBuilder5 which comes with jdk1.3. I have installed oracle 8.1.7 Enterprise version.
    I am using Win NT 4.0.
    I have set the PATH variable as E:\oracle\ora81\lib; and
    CLASSPATH as : E:\oracle\ora81\jdbc\lib\classes12.zip;E:\oracle\ora81\jdbc\lib\nls_charset12.zip;
    My JDBC code is
    package sample2;
    import java.sql.*;
    public class Two {
    Connection con;
    Statement st;
    public Two() {
    try{
    Class.forName("oracle.jdbc.driver.OracleDriver");
    con = DriverManager.getConnection("jdbc:oracle:oci8:@First","scott","tiger");
    st = con.createStatement();
    ResultSet rs = st.executeQuery("Select * from Book");
    while(rs.next())
    System.out.print(rs.getInt("ID")+"\t");
    System.out.print(rs.getString("title")+"\t");
    System.out.print(rs.getString("author")+"\t");
    System.out.print(rs.getString("subject")+"\t");
    System.out.println(rs.getInt("copies")+"\t");
    st.close();
    con.close();
    catch(Exception ex)
    System.out.println("Exception : " + ex.toString());
    public static void main(String[] args) {
    Two two1 = new Two();
    I am getting this exception:
    Exception : java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    I can understand that the classpath for the driver is the problem here.
    Also, I tried to run this file without JBuilder as a independent file on a notepad. Even then this exception is thrown.
    I have set the PATH to E:\oracle\ora81\bin and also to E:\oracle\ora81\lib.
    I ran "echo %classpath%" from my command prompt and this is what i am getting.
    E:\JBuilder5\jdk1.3\lib\tools.jar;E:\JBuilder5\jdk1.3\dt.jar;E:\oracle\ora81\jdbc\lib\classes12.zip;E:
    \oracle\ora81\jdbc\lib\nls_charset12.zip;
    I searched solution for this probldem in Sun JDC Forum itself. Many of them suggested to unzip classes12.zip and create jar file and add it in the classpath. Alos, some have suggested to copy the classes12.zip in home directory and then include this path in the classpath. I tried those solutions also. But, nothing seem to work.
    Somebody help me fix this problem.
    Thanks in advance.

    Jbuilder5 uses a different means of loading dependent classes. Use menu : Tools -->Configure Libraries - Click New and setup a new named library that points to classes12.zip .
    Then include this in u'r required Libraries of your project using menu Project --> Project Properties - required Libraries tab.
    I don't thnk Jbuilder5 even refers to CLASSPATH set in Windows NT environement. Path may need to be set to include oracle/ora81/bin directory though.
    Hope this helps.

  • Error Connecting to database URL jdbc:oracle:oci:@rmsdbtst as user rms13 java.lang.Exception:UnsatisfiedLinkError encountered when using the Oracle driver

    Trying to Install RMS application 13.2.2 and I get past the pre-installation checks and when I get to the Data Source details and enter the data source details with the check box checked to validate the schema/Test Data Source I get the following error:
    Error Connecting to database URL jdbc:oracle:oci:@rmsdbtst as user rms13 java.lang.Exception:UnsatisfiedLinkError encountered when using the Oracle driver. Please check that the library path is set up properly or switch to the JDBC thin client oracle/jdbc/driver/T2CConnection.getLibraryVersioNumber()
    Checks performed:
    RMS Application code location and directory contents:
    [oracle@test-rms-app application]$ pwd
    /binary_files/STAGING_DIR/rms/application
    [oracle@test-rms-app application]$ ls -ltr
    total 144
    -rw-r--r-- 1 oracle oinstall   272 Dec 7  2010 version.properties
    -rw-r--r-- 1 oracle oinstall   405 Jan 16 2011 expected-object-counts.properties
    -rw-r--r-- 1 oracle oinstall   892 May 13 2011 ant.install.properties.sample
    -rw-r--r-- 1 oracle oinstall 64004 Jun  6  2011 build.xml
    drwxr-xr-x 9 oracle oinstall  4096 Jun 16 2011 rms13
    drwxr-xr-x 3 oracle oinstall  4096 Jun 16 2011 installer-resources
    drwxr-xr-x 3 oracle oinstall  4096 Jun 16 2011 antinstall
    drwxr-xr-x 2 oracle oinstall  4096 Jun 16 2011 ant-ext
    drwxr-xr-x 5 oracle oinstall  4096 Jun 16 2011 ant
    -rw-r--r-- 1 oracle oinstall 11324 Dec 18 09:18 antinstall-config.xml.ORIG
    -rwxr-xr-x 1 oracle oinstall  4249 Dec 18 10:01 install.sh
    drwxr-xr-x 4 oracle oinstall  4096 Dec 18 10:06 common
    -rw-r--r-- 1 oracle oinstall 16244 Dec 19 10:37 antinstall-config.xml
    -rw-r--r-- 1 oracle oinstall   689 Dec 19 10:37 ant.install.log
    [oracle@test-rms-app application]$
    Application installation:
    [oracle@test-rms-app application]$ ./install.sh
    THIS IS the driver directory
    Verified $ORACLE_SID.
    Verified SQL*Plus exists.
    Verified write permissions.
    Verified formsweb.cfg read permissions.
    Verified Registry.dat read permissions.
    Verified Java version 1.4.2.x or greater. Java version - 1.6.0
    Verified Tk2Motif.rgb settings.
    Verified frmcmp_batch.sh status.
    WARNING: Oracle Enterprise Linux not detected.  Some components may not install properly.
    Verified $DISPLAY - 172.16.129.82:0.0.
    This installer will ask for your "My Oracle Support" credentials.
    Preparing installer. This may take a few moments.
    Your internet connection type is: NONE
    Integrating My Oracle Support into the product installer workflow...
         [move] Moving 1 file to /binary_files/STAGING_DIR/rms/application
    Installer preparation complete.
    MW_HOME=/u01/app/oracle/Middleware/NewMiddleware1034
    ORACLE_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/as_1
    ORACLE_INSTANCE=/u01/app/oracle/Middleware/NewMiddleware1034/asinst_1
    DOMAIN_HOME=/u01/app/oracle/Middleware/NewMiddleware1034/user_projects/domains/rmsClassDomain
    WLS_INSTANCE=WLS_FORMS
    ORACLE_SID=rmsdbtst
    JAVA_HOME=/u01/app/oracle/jrockit-jdk1.6.0_45-R28.2.7-4.1.0
    Launching installer...
    To make sure I have connectivity from the app server to the database (on a database server) here are the steps followed:
    [oracle@test-rms-app application]$ tnsping rmsdbtst
    TNS Ping Utility for Linux: Version 11.1.0.7.0 - Production on 19-DEC-2013 10:41:40
    Copyright (c) 1997, 2008, Oracle.  All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = test-rms-db.vonmaur.vmc)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SID = rmsdbtst)))
    OK (0 msec)
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ sqlplus rms13@rmsdbtst
    SQL*Plus: Release 11.1.0.7.0 - Production on Thu Dec 19 10:46:18 2013
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ ping test-rms-db
    PING test-rms-db.vonmaur.vmc (192.168.1.140) 56(84) bytes of data.
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=1 ttl=64 time=0.599 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=2 ttl=64 time=0.168 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=3 ttl=64 time=0.132 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=4 ttl=64 time=0.158 ms
    64 bytes from test-rms-db.vonmaur.vmc (192.168.1.140): icmp_seq=5 ttl=64 time=0.135 ms
    --- test-rms-db.vonmaur.vmc ping statistics ---
    5 packets transmitted, 5 received, 0% packet loss, time 4001ms
    rtt min/avg/max/mdev = 0.132/0.238/0.599/0.181 ms
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ uname -a
    Linux test-rms-app.vonmaur.vmc 2.6.18-128.el5 #1 SMP Wed Jan 21 08:45:05 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
    [oracle@test-rms-app application]$
    [oracle@test-rms-app application]$ cat /etc/*-release
    Enterprise Linux Enterprise Linux Server release 5.3 (Carthage)
    Red Hat Enterprise Linux Server release 5.3 (Tikanga)
    [oracle@test-rms-app application]$
    The database is created and all the batch file scripts have been successfully deployed.  Now working on the application server.  The  Weblogic server is installed and 11g forms and reports are installed successfully.
    Any help would be helpful.
    Thanks,
    Ram.

    Please check MOS Notes:
    FAQ: RWMS 13.2 Installation and Configuration (Doc ID 1307639.1)

  • What is wrong in this java code?

    Can someone please tell me what is wrong in this java code?
    /* The program is intended to start animating text at the click of a button, pause it at another click and resume at the next click. It should continue like this */
    import javax.swing.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    public class TextAnime implements Runnable
    JFrame frame;
    boolean flag;
    Thread animeThread;
    JLabel label;
    String[] textArray;
    public TextAnime()
    flag = false;
    animeThread = new Thread(this);
    frame = new JFrame("Animate Text");
    GridBagLayout gbl = new GridBagLayout();
    GridBagConstraints gbc = new GridBagConstraints();
    frame.setLayout(gbl);
    JButton button = new JButton("Start");
    label = new JLabel("Stopped");
    textArray = new String[5];
    String textArray1[] = {"Programmer", "SportsMan", "Genius", "Friend", "Knowledgable"};
    for(int ctr = 0; ctr<5 ; ctr++)
    textArray[ctr] = textArray1[ctr];
    gbc.weightx = 1;
    gbc.gridx = 0;
    gbl.setConstraints(button,gbc);
    frame.getContentPane().add(button);
    ButList bl = new ButList();
    button.addActionListener(bl);
    gbc.gridx = 1;
    gbl.setConstraints(label,gbc);
    frame.getContentPane().add(label);
    frame.setSize(200,150);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOS E);
    frame.setVisible(true);
    public class ButList implements ActionListener
    public void actionPerformed(ActionEvent evt)
    if(flag == false)
    flag = true;
    animeStart();
    else
    flag = false;
    //animeStop();
    public synchronized void animeStart()
    animeThread.start();
    Thread newThread;
    newThread = Thread.currentThread();
    newThread.notify();
    public void animeStop()
    animeThread.interrupt();
    public void run()
    int i = 0;
    try
    while(i == i)
    if(i==5)
    i=0;
    label.setText(textArray);
    animeThread.sleep(1000);
    i++;
    if (flag == false)
    animeThread.wait();
    catch(InterruptedException ie)
    label.setText("Stopped");
    public static void main(String args[])
    TextAnime ta = new TextAnime();
    Please tell me if this can be written in a more simpler manner. Also please correct this code. I am tired after trying many times.

    When I fix your error, compile and run it, I get this exception:
    Exception in thread "AWT-EventQueue-0" java.lang.IllegalMonitorStateException
         at java.lang.Object.notify(Native Method)
         at cruft.TextAnime.animeStart(TextAnime.java:81)
         at cruft.TextAnime$ButList.actionPerformed(TextAnime.java:63)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
         at java.awt.Component.processMouseEvent(Component.java:6038)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
         at java.awt.Component.processEvent(Component.java:5803)
         at java.awt.Container.processEvent(Container.java:2058)
         at java.awt.Component.dispatchEventImpl(Component.java:4410)
         at java.awt.Container.dispatchEventImpl(Container.java:2116)
         at java.awt.Component.dispatchEvent(Component.java:4240)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
         at java.awt.Container.dispatchEventImpl(Container.java:2102)
         at java.awt.Window.dispatchEventImpl(Window.java:2429)
         at java.awt.Component.dispatchEvent(Component.java:4240)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    %

  • Every time I try to download Java for Lion (no matter what the source) all I get is a document image labelled "unconfirmed download" and a warning that this type of file may harm my computer. What am I doin wrong?

    Every time I try to download Java for Lion (no matter what the source) all I get is a document image labelled "unconfirmed download" and a warning that this type of file may harm my computer. What am I doin wrong?

    Donna...
    Even from Apple?  >  Java for OS X Lion Update 1
    Restart your Mac before trying to download the file.
    Do you have anti virus software installed or a program like LIttle Snitch?
    If you are using Safari to download files, go to the Safari menu bar click Safari > Empty Cache
    If that doesn't help, back to the menu bar, click Safari > Reset Safari. Select the top 5 boxes then click Reset.
    If you still can't download the Java file, go to ~ / Library / Caches / com.apple.Safari
    Move the Cache.db file from the com.apple.Safari folder to the Trash and restart your Mac. Try downloading that file again.
    If it still won't download without that dialog, go to ~/Library/Safari. Move the Downloads.plist file from the Safari folder to the Trash.
    Try again.
    ~ (Tilde) character represents the Home folder.
    For Lion:   To find the Home folder in OS X Lion, open the Finder, hold the Option key, and choose Go > Library

  • Does anybody know what is wrong with my java code?

    Does anybody know what is wrong with my java code?
    --------------------Configuration: <Default>--------------------
    stockApplet.java:47: cannot find symbol
    symbol : variable M_pointThread
    location: class StockApplet
    if (M_pointThread==null)
    ^
    stockApplet.java:49: cannot find symbol
    symbol : variable M_pointThread
    location: class StockApplet
    M_pointThread=new Thread(this);
    ^
    stockApplet.java:50: cannot find symbol
    symbol : variable M_pointThread
    location: class StockApplet
    THE CODE:
    import java.applet.*;
    import java.awt.*;
    import java.io.*;
    import java.net.*;
    public class StockApplet extends java.applet.Applet implements Runnable
    int Move_Length=0,Move_Sum=0;
    String FileName,Name_Str,Content_Date;
    int SP[]=new int[2000];
    int KP[]=new int[2000];
    int JD[]=new int[2000];
    int JG[]=new int[2000];
    int Mid_Worth[]=new int[2000];
    String myDate[]=new String[2000];
    double CJL[]=new double[2000];
    double MaxCJL,MidCJL;
    Label label[]=new Label[10];
    int MaxWorth,MinWorth;
    int x_move0,x_move1,MaxLength=0;
    int x0,y0,X,Y,Record_Num;
    boolean Mouse_Move,Name_Change=true;
    int JX_Five1,JX_Five2,JX_Ten1,JX_Ten2;
    public void init()
    TextField text1=new TextField();
    Thread M_pointThread=null;
    setLayout(null);
    this.setBackground(Color.white);
    this.setForeground(Color.black);
    for(int i=1;i< 10;i++)
    label=new Label();
    this.add(label[i]);
    label[i].reshape(i*80-65,10,50,15);
    if(i==2){label[i].reshape(80,10,70,15);}
    if(i==7){label[i].reshape(510,10,80,15);}
    if(i >7){label[i].reshape((i-8)*490+45,380,70,15);}
    FileName="six";
    Name_Str="six";
    this.add(text1);
    text1.reshape(150,385,70,20);
    text1.getText();
    public void start()
    if (M_pointThread==null)
    M_pointThread=new Thread(this);
    M_pointThread.start();

    Welcome to the forum. I think that George123 has your problem and its solution well in hand. Follow his good advice and you will have solved this problem. One other thing though just for future reference. If you post your code, here, you are going to want someone to be able to read it easily. Please use code tags when posting next time and your code will be much easier on the eye. You can find out about them here:
    http://forum.java.sun.com/help.jspa?sec=formatting

  • What is the meaning of java:comp/env in (?java:comp/env/jdbc/mssql?) ?

    I know that we are suppose to give jndi names starting with jdbc/
    But i have a sun book in which they created a jndi with jdbc/ejbUserAccount and later referred it with "java:comp/env/jdbc/UserAccountDB"
    also in this blog this guy has done the same ..
    http://vchaithanya.wordpress.com/category/java/
    please help !!

    DogsAreBarking wrote:
    I know that we are suppose to give jndi names starting with jdbc/
    no we're not!
    But i have a sun book in which they created a jndi with jdbc/ejbUserAccount and later referred it with "java:comp/env/jdbc/UserAccountDB"
    That's how he defined it, apparently. Or rather the application(server) that provides the resource through JNDI.
    please help !!It's just a name. It could be anything, but usually they are descriptive.

  • Anyone from ORACLE knows what's wrong with oidspadi.sh

    Hi,
    I downloaded the Cygwin and am trying to run oidspadi.sh it keeps giving the following error.
    $ ./oidspadi.sh
    : command not found 28:
    : command not found 38:
    : command not found 43:
    : command not found 47:
    : command not found 51:
    : command not found 58:
    : command not found 59:
    : command not found 60: clear
      OID Active Directory Plug-in Configuration
    Please make sure Database and OID are up and running.
    : command not found 67:
    : command not found 70:
    ./oidspadi.sh: line 103: syntax error near unexpected token `fi'
    '/oidspadi.sh: line 103: `      fi
    [//code]
    I did set my ORACLE_HOME and also am able to connect to OID but don't what's wrong with the script. I am using 10.1.2.0.2 on windows.
    Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I found out the resolution please see Note:403469.1.
    Thanks

  • Firefox says Java needs to be updated, Java says I have the latest update, what is wrong?

    I had disabled Java because of the vulnerabilities mentioned earlier in the year.
    Today I downloaded and installed the latest version according to Java SE7 U9. Firefox tells me this is an outdated version when I click to check plugins are up to date. When I click on update the Java.com site tells me my Java is up to date and offers no update.
    Java Deployment Toolkit 7.0.90.5 is also deemed outdated by Firefox but Java offers no update.
    What is going on? I have Windows 7 X64 Firefox is X32. Please help.
    Sue

    Hello Sue, Java SE 7 U 10 is the latest
    there is an issue, better see : https://support.mozilla.org/en-US/questions/944191
    thank you

  • Calling a java class in my oracle database from a oracle stored procedure

    my oracle stored procedure is:
    create or replace
    PROCEDURE openpdffile
    AS LANGUAGE JAVA
    NAME 'pdfopenbook.mainbook()';
    it is valid and so is this java class;
    import java.sql.*;
    import oracle.jdbc.*;
    public class pdfopenbook //class pdfopen
    public static void mainbook(String args[]) //main function
    try //try statement
    Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + "c:\\temp
    final_book.pdf");
    // Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + "sol.exe");
    } catch (Exception e) //catch any exceptions here
    System.out.println("Error" + e ); //print the error
    but i get the error:
    onnecting to the database caprs.
    ORA-29531: no method mainbook in class pdfopenbook
    ORA-06512: at "CAPRS.OPENPDFFILE", line 1
    ORA-06512: at line 2
    Process exited.
    Disconnecting from the database caprs.
    it says there is no mainbook method but there is, what am i doing wrong??
    Thanks,
    Doug

    Pass String[] as an argument to mainbook():
    create or replace PROCEDURE openpdffile
    AS LANGUAGE JAVA
    NAME 'pdfopenbook.mainbook(java.lang.String[])';Have you posted it on the Database forum?
    Regards,
    Nick

Maybe you are looking for

  • Can I install a 2nd hard drives to an HP Envy Dv7-7212nr unit

    I just purchest a HP Envy Dv7-7212nr and the specs states there is 2 hard drive bays, When I opened the compartment were there the drives gose the secound bay has no connecter for the secound hard drive. can i purchase the connecter?  

  • Upgrade stopped on phase MAIN_NEWBAS/PARCONV_UPG

    Hello, We are Upgrading our SAP CRM System from 5.0 to 7.0 (Ramp-Up version) / Oracle 10 / Windows 2003 The upgrade process stops with the following error: "Checks after phase MAIN_NEWBAS/PARCONV_UPG were negative" The Principal Errors are this: (PAR

  • Reset power-on password?

    I have a system disabled code 52690945 on my HP Split 13-g110dx x2 . any way to reset power-on password, or admin password. I bought system as a "parts or repair" from Microcenter. I have a receipt. This question was solved. View Solution.

  • Mdx extraction from fin.reports

    Hi We use a lot of fin.reports for planning purposes and now we have to write mdx query that would model reports i am just wondering about possibility to get mdx query from financial report automatically somehow? Regards Sasha Edited by: Softperson o

  • Mini Player Sort of thing....

    Right now I have Windows. I really like this thing I recently discovered in these forums. It is the little toolbar thing that stays on the Windows version of the Dock on my computer. No window will go over the bottom toolbar thing (sorry, but I forge