Month.java

With the errors shown, how do I fix the following program...
w/ the errors already fixed & shown within the program?
This is only my first semester in Java & I'm still trying to
get familiar w/ it!
import javax.swing.JOptionPane;
public class Month
     private String Month;
     private String Days;
     public Month(pMonth, pDays)
          month = pMonth;
          days = pDays;
     public int getDays()
          if (month==1) { Name = "January"; days=31;}
          else if (month==2) { Name = "February"; days=28; }
          else if (month==3) { Name = "March" ; days=31; }
          else (month==12) {Name = "December"; days=31; }
<identifier> expected
     public PayCheck(pName, pWage, pHour)
^
')' expected
     }........(second to last brace)
^
cannot resolve symbol
symbol : class pName
location: class PayCheck
     public PayCheck(pName, pWage, pHour)
^
missing method body, or declare abstract
     public PayCheck(pName, pWage, pHour)
^

hi, you have quite many errors with your program... that's bad m'kay
i'd reccommend you some tutorials (left column of this page holds link called Tutorials, that would be nice place to start)
or just start from the first cup of java:
http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html
some of it you allready know, but most is probably new...
and also i'd recommend you to see java coding conventions.
it's recommended to write class names with leading uppercase letter, variables and methods with leading lower case, constants with all uppercase etc...
about your code you have shown:
i don't understand why you had to import JOptionPnae.
i'd reccommend using array with monthnames, like that:String[] mNames = {"jan", "feb", "mar", "apr", "mai",
     "jun", "jul", "aug", "sep", "okt", "nov", "det"};
name = mNames[month];
switch (days) {
case 1: days = 28; break;
case 3:;
case 5:;
case 8:;
case 10: days = 30; break;
default: days = 31; break;
}you see that, w/ case, this if-else ladder is not needed, and not as much code needs to be written.
good luck with your first semester of java

Similar Messages

  • Java is not working any more

    The last 6 months Java has not worked at all. I have Java 1.4.2 and 5.0 installed. I have tried re-installation, emptying buffers, resettings safari, using other browsers, created new user account in OSX and so on. I have tried all the tricks in the book and I have talked with other people that have the same problem without being able to find a solution.
    My theory is that everything went wrong with the last java update, and I'm wondering whether Apple will release another update also including Java 1.6. I have waited quite long now, hoping for a update, but it doesn't seem to happen. Does anybody have some ideas on what I can do to get Java working again.

    HI punsk and Welcome to Apple Discussions ...
    Since you're having so much trouble with Java, you might consider backing up your files and doing a complete erase and reinstall. Not an Archive and Install, ERASE and start over. Once you do that, go to Software Updates available from the Apple menu; Apple/Software Updates and start from scratch.
    If you do this, after this is finished, run Disk Utility from your Applications/Utilities folder and Repair Disk Permissions.
    Also, on your iBook. Make sure you have available drive space for updates. Open Disk Utility, select MacintoshHD in the panel on the left, then look down right side of window and you'll see:
    Capacity and Available. Make sure your Available drive space is at least 20% of the total drive.
    Carolyn

  • [ANN] Changes in the Java Newsletter subscription process

    We have changed the mechanism for subscribing to the Monthly Java Newsletter - if you want to keep (or start) getting this monthly Java newsletter please follow these instructions:
    http://www.oracle.com/technology/products/jdev/java_newsletter.html
    For an archive of the newsletters check out:
    http://www.oracle.com/technology/tech/java/newsletter/archive.html

    Hi
    If you want to use client VM for any purpose and want to specify this in server.xml in native-library-path-prefix I would suggest using the full path instead of JAVA_HOME.
    eg. in place of JAVA_HOME put /usr/j2se.
    Then it will pick up client jvm.

  • Last date of month

    Hi im new to java. Looking for a class that provides last date of the month according to a given year and month .

    java does provide a calendar object for gregorian
    dates.. surprising its called GregorianCalendar. :PAs I said avoid GregorianDate in Java it is a poor implementation. Date arithmetic is overly complex. There are inconsistencies i.e. Month starts at zero Jan is 0 day of week starts at 1 (Sunday = 1, Monday = 2) First of the month is 0 not 1 as one would expect. Sun's date does not handle dates prior to 1970 ( a real pain in your are doing historical data analysis). Suns Date uses 2 digit years.
    BigDate makes date arithmetic a slam dunk.
    To find the second monday in June 1961
    BigDate aDate = new BigDate(BigDate.nthXXXDay( 2, 1, 1961, 6));
    yyyy = aDate.getYYYY();
    mm = aDate.getMM ();
    dd = aDate.getDD ();
    To calculate 156 days after the 1st of Jan 1999. You would do the following.
    BigDate aDate = new BigDate (1999, 1 , 1 + 156, BigDate.NORMALIZE);
    yyyy = aDate.getYYYY();
    mm = aDate.getMM ();
    dd = aDate.getDD ();
    or
    BigDate aDate = new BigDate (1999, 1 , 1 );
    aDate.setOrdinal(aDate.getOrdinal( )+ 156);
    yyyy = aDate.getYYYY();
    mm = aDate.getMM ();
    dd = aDate.getDD ();

  • Disable all the previous dates in a calendar form

    hi guys,
    I am having a calendar form in which it displays all the previous,current,future dates and months.when i click on the particular button on the
    calendar it dispalys the date, month, and year.its working fine.But what i need is, i want to disable all the previous dates in the calendar till the current
    date.But not to disable the previous button.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    class CalendarForm extends JFrame
    JButton[] btn = new JButton[49];
    int month = java.util.Calendar.getInstance().get(java.util.Calendar.MONTH);
    int year = java.util.Calendar.getInstance().get(java.util.Calendar.YEAR);
    JLabel lbl = new JLabel("", JLabel.CENTER);
    JTextField tf1=new JTextField();
    public CalendarForm()
    buildGUI();
    setDates();
    public void buildGUI()
    setLocation(200,350);
    setDefaultCloseOperation(HIDE_ON_CLOSE);
    String[] header = {"Sun","Mon","Tue","Wed","Thur","Fri","Sat"};
    JPanel midPanel = new JPanel(new GridLayout(7,7));
    midPanel.setPreferredSize(new Dimension(350,250));
    for(int x = 0; x < btn.length; x++)
    final int selection = x;
    btn[x] = new JButton();
    btn[x].setFocusPainted(false);
    if(x>6)
    btn[x].addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent ae){
    displayDatePicked(btn[selection].getActionCommand());}});
    if(x < 7)
    {btn[x].setFont(new Font("Lucida", Font.PLAIN, 8)); btn[x].setText(header[x]);}
    midPanel.add(btn[x]);
    JPanel lowPanel = new JPanel(new GridLayout(1,3));
    JButton prevBtn = new JButton("<< Previous");
    prevBtn.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent ae){
    month--;setDates();}});
    lowPanel.add(prevBtn);
    lowPanel.add(lbl);
    JButton nextBtn = new JButton("Next >>");
    nextBtn.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent ae){
    month++;setDates();}});
    lowPanel.add(nextBtn);
    getContentPane().add(midPanel,BorderLayout.CENTER);
    getContentPane().add(lowPanel,BorderLayout.SOUTH);
    pack();
    public void setDates()
    for(int x = 7; x < btn.length; x++) btn[x].setText("");
    java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("MMMM yyyy");
    java.util.Calendar cal = java.util.Calendar.getInstance();
    cal.set(year,month,1);
    int dayOfWeek = cal.get(java.util.Calendar.DAY_OF_WEEK);
    int daysInMonth = cal.getActualMaximum(java.util.Calendar.DAY_OF_MONTH);
    for(int x = 6+dayOfWeek,day = 1; day <= daysInMonth; x++,day++) btn[x].setText(""+day);
    lbl.setText(sdf.format(cal.getTime()));
    setTitle("Calendar - "+lbl.getText());
    public void displayDatePicked(String day)
    if(day.equals("") == false)
    // java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("EEEE d MMMM, yyyy");
    java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("dd/MM/yyyy");
    java.util.Calendar cal = java.util.Calendar.getInstance();
    cal.set(year,month,Integer.parseInt(day));
    System.out.println(tf1.getText());
    getContentPane().add(tf1,BorderLayout.NORTH);
    // JOptionPane.showMessageDialog(this,"You picked "+sdf.format(cal.getTime()));
    tf1.setText(sdf.format(cal.getTime()));
    System.out.println("from date"+tf1.getText());
    this.setVisible(false);
    public String getFromDate()
    return tf1.getText();
    public static void main(String[] args)
         new CalendarForm().setVisible(true);
    the above  code is to diaplay the calendar form.plzzzzzzzzzzzzzzzz help me. thanks in advance                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    hi michael,i disabled all the previous buttons in a calendar form.this is my code
    import java.awt.*;
    import java.awt.event.*;
    import java.text.DateFormat;
    import java.text.ParseException;
    import java.util.Date;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javax.swing.*;
    class CalendarForm extends JFrame {
        JButton[] btn = new JButton[49];
        int month = java.util.Calendar.getInstance().get(java.util.Calendar.MONTH);
        int date = java.util.Calendar.getInstance().get(java.util.Calendar.DATE);
        int year = java.util.Calendar.getInstance().get(java.util.Calendar.YEAR);
        JLabel lbl = new JLabel("", JLabel.CENTER);
        JTextField tf1 = new JTextField();
        public CalendarForm() {
            buildGUI();
            setDates();
        private String getMonthAndYearAsString() {
            java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("MMMM yyyy");
            return sdf.format(new Date(System.currentTimeMillis()));
        private Date getCurrentDate() {
            java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("dd MM yyyy");
            return new Date();
        public void buildGUI() {
            setLocation(450, 350);
            setDefaultCloseOperation(HIDE_ON_CLOSE);
            String[] header = {"Sun", "Mon", "Tue", "Wed", "Thur", "Fri", "Sat"};
            JPanel midPanel = new JPanel(new GridLayout(7, 7));
            midPanel.setPreferredSize(new Dimension(350, 250));
            for (int x = 0; x < btn.length; x++) {
                final int selection = x;
                btn[x] = new JButton();
                btn[x].setFocusPainted(false);
                if (x > 6) {
                    btn[x].addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent ae) {
                            displayDatePicked(btn[selection].getActionCommand());
                if (x < 7) {
                    btn[x].setFont(new Font("Lucida", Font.PLAIN, 8));
                    btn[x].setText(header[x]);
                midPanel.add(btn[x]);
            JPanel lowPanel = new JPanel(new GridLayout(1, 3));
            JButton prevBtn = new JButton("<< Previous");
            prevBtn.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent ae) {
                    month--;
                    setDates();
                    java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("MMMM yyyy");
                    java.util.Calendar cal = java.util.Calendar.getInstance();
                    cal.set(year, month, 1);
                    int dayOfWeek = cal.get(java.util.Calendar.DAY_OF_WEEK);
                    int daysInMonth = cal.getActualMaximum(java.util.Calendar.DAY_OF_MONTH);
                    String currentMonth = getMonthAndYearAsString();
                    System.out.println("CURRENT MONTH AND YEAR " + currentMonth);
                    String selectedMonth = sdf.format(cal.getTime());
                    System.out.println("SELECTED MONTH AND YEAR " + selectedMonth);
                    Date currentDate = getCurrentDate();
                    Date selectedDate = new Date(cal.getTimeInMillis());
                    //Comparing currentDate nad selectedDate
                    int off = currentDate.compareTo(selectedDate);
                    int currentDay = date;
                    if (currentMonth.compareTo(selectedMonth) == 0) {
                        for (int x = 7 + dayOfWeek,  day = 1; day <= btn.length; x++, day++) {
                            btn[x].setEnabled(true);
                            if (day < currentDay) {
                                int k = x - 1;
                                for (int j = 7; j <= k; j++) {
                                    btn[j].setEnabled(false);
                    } else if (off == 1) {
                        for (int x = 6 + dayOfWeek,  day = 1; day < daysInMonth; x++, day++) {
                            for (int i = 6 + dayOfWeek; day < currentDay; i++) {
                                btn.setEnabled(false);
    } else if (off == -1) {
    for (int x = 7, day = 1; day < btn.length; x++, day++) {
    btn[x].setEnabled(true);
    lowPanel.add(prevBtn);
    lowPanel.add(lbl);
    JButton nextBtn = new JButton("Next >>");
    nextBtn.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent ae) {
    month++;
    setDates();
    java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("MMMM yyyy");
    java.util.Calendar cal = java.util.Calendar.getInstance();
    cal.set(year, month, 1);
    int dayOfWeek = cal.get(java.util.Calendar.DAY_OF_WEEK);
    int daysInMonth = cal.getActualMaximum(java.util.Calendar.DAY_OF_MONTH);
    String currentMonth = getMonthAndYearAsString();
    System.out.println("CURRENT MONTH AND YEAR " + currentMonth);
    String selectedMonth = sdf.format(cal.getTime());
    System.out.println("SELECTED MONTH AND YEAR " + selectedMonth);
    Date currentDate = getCurrentDate();
    Date selectedDate = new Date(cal.getTimeInMillis());
    //Comparing currentDate and selectedDate
    int off = currentDate.compareTo(selectedDate);
    int currentDay = date;
    if (currentMonth.compareTo(selectedMonth) == 0) {
    for (int x = 7 + dayOfWeek, day = 1; day <= btn.length; x++, day++) {
    btn[x].setEnabled(true);
    if (day < currentDay) {
    int k = x - 1;
    for (int j = 7; j <= k; j++) {
    btn[j].setEnabled(false);
    if (off == -1) {
    for (int x = 7, day = 1; day < btn.length; x++, day++) {
    btn[x].setEnabled(true);
    } else if (off == 1) {
    for (int x = 6 + dayOfWeek, day = 1; day < daysInMonth; x++, day++) {
    for (int i = 6 + dayOfWeek; day < currentDay; i++) {
    btn[i].setEnabled(false);
    lowPanel.add(nextBtn);
    getContentPane().add(midPanel, BorderLayout.CENTER);
    getContentPane().add(lowPanel, BorderLayout.SOUTH);
    pack();
    public void setDates() {
    for (int x = 7; x < btn.length; x++) {
    btn[x].setText("");
    java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("MMMM yyyy");
    java.util.Calendar cal = java.util.Calendar.getInstance();
    cal.set(year, month, 1);
    int dayOfWeek = cal.get(java.util.Calendar.DAY_OF_WEEK);
    int daysInMonth = cal.getActualMaximum(java.util.Calendar.DAY_OF_MONTH);
    lbl.setText(sdf.format(cal.getTime()));
    setTitle("Calendar - " + lbl.getText());
    int currentDay = date;
    for (int x = 6 + dayOfWeek, day = 1; day <= daysInMonth; x++, day++) {
    btn[x].setText("" + day);
    if (day < currentDay) {
    for (int j = 7; j <= x; j++) {
    btn[j].setEnabled(false);
    public void displayDatePicked(String day) {
    if (day.equals("") == false) {
    java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("dd/MM/yyyy");
    java.util.Calendar cal = java.util.Calendar.getInstance();
    cal.set(year, month, Integer.parseInt(day));
    System.out.println(month);
    System.out.println(tf1.getText());
    tf1.setText(sdf.format(cal.getTime()));
    System.out.println("from date" + tf1.getText());
    // VStudentAttendanceForm class ....
    if (VStudentAttendanceForm.jcalFlag == 1) {
    VStudentAttendanceForm.jtfFromDate.setText(tf1.getText());
    if (VStudentAttendanceForm.jcalFlag == 2) {
    VStudentAttendanceForm.jtfToDate.setText(tf1.getText());
    if (ManageStudents.cal == 1) {
    ManageStudents.jTextField22.setText(tf1.getText());
    ManageStudents.FromjTextField10.setText(tf1.getText());
    if (ManageStudents.cal == 2) {
    ManageStudents.jTextField23.setText(tf1.getText());
    ManageStudents.TojTextField11.setText(tf1.getText());
    if (vAuditTrail.cal == 1) {
    vAuditTrail.jTextField3.setText(tf1.getText());
    if (vAuditTrail.cal == 2) {
    vAuditTrail.jTextField4.setText(tf1.getText());
    if (Attendance.cal == 1) {
    Attendance.jTextField7.setText(tf1.getText());
    if (Attendance.cal == 2) {
    Attendance.jTextField8.setText(tf1.getText());
    this.setVisible(false);
    public String getFromDate() {
    return tf1.getText();
    public static void main(String[] args) {
    new CalendarForm().setVisible(true);

  • [Jena] Debugging addInBulk()

    Hello,
    I am evaluating Oracle 11g with the Jena Adaptor 2.0. Currently I am trying to load customer records from one large file in N-TRIPLE format using addInBulk(). I did this successfully with a file with 100 sample records, and now I am trying it with 1000 (just a baby step towards ultimately being able to load all 200,000). Now I am getting the following error:
    [java] - addInBulk: [171042 ] sqle
    [java] java.sql.SQLException: ORA-01843: not a valid month
    [java] ORA-06512: at "MDSYS.SDO_RDF_INTERNAL", line 781
    [java] ORA-06512: at "MDSYS.SDO_RDF_INTERNAL", line 1886
    [java] ORA-06512: at "MDSYS.SDO_RDF", line 294
    [java] ORA-06512: at "MDSYS.RDF_APIS", line 542
    [java] ORA-06512: at line 1
    [java]
    [java] at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:74)
    [java] at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:131)
    [java] at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:204)
    [java] at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
    [java] at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
    [java] at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1034)
    [java] at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:191)
    [java] at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:950)
    [java] at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1222)
    [java] at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3387)
    [java] at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3488)
    [java] at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:3840)
    [java] at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1086)
    [java] at oracle.spatial.rdf.client.jena.Oracle.executeCall(Oracle.java:474)
    [java] at oracle.spatial.rdf.client.jena.OracleBulkUpdateHandler.addInBulk(OracleBulkUpdateHandler.java:685)
    [java] at oracle.spatial.rdf.client.jena.OracleBulkUpdateHandler.addInBulk(OracleBulkUpdateHandler.java:472)
    [java] at oracle.spatial.rdf.client.jena.OracleBulkUpdateHandler.addInBulk(OracleBulkUpdateHandler.java:439)
    [java] at [redatced].OracleLoader.oracleBatchLoad(Unknown Source)
    [java] at [redacted].OracleLoader.main(Unknown Source)
    [java] java.sql.SQLException: ORA-01843: not a valid month
    [java] ORA-06512: at "MDSYS.SDO_RDF_INTERNAL", line 781
    [java] ORA-06512: at "MDSYS.SDO_RDF_INTERNAL", line 1886
    [java] ORA-06512: at "MDSYS.SDO_RDF", line 294
    [java] ORA-06512: at "MDSYS.RDF_APIS", line 542
    [java] ORA-06512: at line 1
    It's certainly possible that there is a glitch in my sample data - but my real question is, how do I debug and track down this problem? I am new to Oracle and I just can't figure out where to look and/or how to get more information about where in the data this is happening, what "month" it is choking on. Is there a log I could be looking at? Some way to turn on additional debugging output? Some clue as to exactly what statement is failing and what data is causing it to fail? I did some regex searching through the original N-TRIPLE source file to see if I could find something that looked like a date with a bad month, but no such date was apparent...
    Thanks very much for any help!
    Steve

    I have a bit more info - I added a StatusListener to the call to addInBulk(). This confirmed that all 171,042 triples were loaded (or so it claims) -- this error is happening in whatever post-processing happens after reporting the last triple loaded but before addInBulk() returns. This makes me suspect that this is actually a bug, or a configuration error on my part, rather than anything wrong with my test data.

  • Great problem to a young problem

    i wrote a programme to accept integer 1-12 as months jan-december.
    And i'm getting the following error
    month.java:42: sysmbol cannot be found
    symbol: method parseInt(java.lang.String)
    Location: class month
    pickmonth = parseInt(mth.ReadLine());
    1 error
    my programme is
    import java.io.*;
    import java.lang.*;
    public class month
         public int displayMonth(int pickmonth)
              switch(pickmonth)
                   case 1: System.out.println("January");break;
                   case 2: System.out.println("February");break;
                   case 3: System.out.println("March");break;
                   case 4: System.out.println("April");break;
                   case 5: System.out.println("May");break;
                   case 6: System.out.println("June");break;
                   case 7: System.out.println("July");break;
                   case 8: System.out.println("August");break;
                   case 9: System.out.println("September");break;
                   case 10: System.out.println("October");break;
                   case 11: System.out.println("November");break;
                   case 12: System.out.println("December");break;
                   default: System.out.println("The month does not exist");
              return pickmonth;
         public static void main(String args[])
              int pickmonth;
              BufferedReader mth = new BufferedReader(new InputStreamReader(System.in));
              month xmonth;
              xmonth = new month();
              System.out.println("1-12 stand for the months of the year.Thats, January-December.");
              System.out.println("Type a number to choose a month");
              while (pickmonth ==0)
              System.out.println("Enter a month");
              pickmonth = parseInt(mth.readLine());
              xmonth.displayMonth(pickmonth);
    }

    Either you used to have a "parseInt" method, or maybe you wanted:
    pickmonth = Integer.parseInt(mth.readLine());<!--[if true]><br><br><img src="http://www.kodcu.com/kodcu/html/02_a_files/duke.running.jpg"><br><br><![endif]-->

  • Offline  capture for sybase11.9 shows  databases (0) logins(0)

    HI..
    I have created the .dat files, using the offline capture scripts.
    From the capture wizard, I clieck offline capture, provide it the files.. window appears which says it is loading the source model.
    After everything is done, on the main pane of the workbench,databases(0)and logins(0). It says no objects captured.
    There is something in the error.log:
    java.sql.SQLException: ORA-01843: not a valid month
    java.sql.SQLException: ORA-01843: not a valid month
    here is my details
    omwb OS: (windows xp)
    omwb version: (10.1.0.4)
    omwb repository type: (oracle 9.2.01)
    captured database type: (sybase)
    captured database version:(11.9)
    what's wrong with my migration workbench?
    Thanks~~

    Hi,
    The offline capture creates data files. These dat files contain data from the system tables of your Sybase database. We use special characters to act as delmiters between the columns and rows in the data.
    If these delimiters are present within your data then the OMWB thinks that you have an extra column or row (basically it breaks apart the row into columns using the delimiters , but if the delimiters are also present in your data, the omwb breaks apart the row incorrectly).
    Theres a solution outlined here
    Re: Offline data capture
    You could also try the Online Capture if you have that option available.
    I hope this helps
    Dermot,
    Message was edited by:
    dooneill

  • Oracle9i JDeveloper (Version 9.0.5 Alpha) Expert Testing

    Dear JDeveloper user,
    We would like to give you the opportunity to test and provide feedback on the alpha release of JDeveloper 9.0.5. To do so, we would like to invite you to a 3-day Expert Testing Session at Oracle HQ. During these three days, you will be able to:
    - Learn about all of the new features in more detail
    - Communicate directly with the development team to ask questions and provide feedback
    - Test the features you are expert in or are interested in
    - Influence the features being developed through your feedback
    Here is more detailed information:
    When
    From 9am Monday April 28th 2003 to 5pm Wednesday April 30th 2003 (3 days)
    Where
    Oracle Headquarters, Redwood Shores, California
    Areas to be tested
    - Middle tier development (Web services, BC4J, EJB, Toplink, Database Schema Modelling, ...)
    - Client development (Visual Editors for JSP and UIX, Drag and Drop Data binding, JClient, Controller, XML development, ...)
    - Development environment (New UI, code editor features, Tuning tools, UML modelers, SCM, ...)
    Expenses
    Participation is free; Breakfast and lunch will be provided by Oracle; Travel expenses, accommodation and other expenses will not be covered by Oracle.
    Equipment and Personnel
    You may send up to two people. Oracle will provide one machine per company, but the second person may bring their own laptop if they want a separate machine.
    How to apply
    We are looking for different developer profiles with a variety of backgrounds and experiences, so we would like to get information about the person(s) you would like to send.
    Please send an email to [email protected] by Friday April 11th with the following information.
    The contact information of the person(s) you would like to send:
    Developer 1:
    Company:
    Job Title/Role:
    Email Address:
    Tel. Number:
    Developer 2:
    Company:
    Job Title/Role:
    Email Address:
    Tel. Number:
    Experience with JDeveloper or Java development:
    __ Years __ Months
    Java and JDeveloper expertise (check all that apply):
    __ Business Components for Java
    __ EJB
    __ TopLink
    __ UIX
    __ JSP, Servlets
    __ Struts
    __ Web Services
    __ UML
    Oracle product expertise (check all that apply):
    __ iAS, OC4J
    __ Designer
    __ Forms
    __ SCM
    There is a limited number of machines available so don't wait to reply!
    Legal Agreement
    When we receive your email application, we will send you the Oracle onsite beta trial license terms.
    Confirmation
    We will let you know if you are confirmed for the Expert Testing once we have received the above information (email) and the legal agreement (fax). You will receive more details about the event (exact location, list of hotels, more detailled agenda) with the confirmation.
    We hope to hear from you soon and are looking forward to working with you during this special event.
    Thank you,
    Product Management
    Oracle9i JDeveloper

    refresh

  • Adding a .class so I can import...?

    My teacher provided me with a class that allows me to get input from the user. In order to use this class we have to copy and paste it into every folder which this class needs to be used...having 20 different folders for 20 different projects makes this a pain in he butt since I have to keep copying that .class file every time I make a new folder.
    Is there a more conventional way of doing this? iI hought maybe I could add it to the JDK and import it, but I have no idea how to do this. Whats the best thing to do?
    Thanks in advance,
    Marcelo
    P.S. Feel free to e-mail me [email protected]

    Do you know anything about packages?
    So you have MyInput.java, in it you should have something like:
    package school.project;
    class MyInput
    ALL of your 20+ classes you need to use this class with should ALSO be in a similar package:
    package school.project.class1;
    import school.project.InputClass;
    public class Class1
    InputClass cl = new InputClass();
    public void someMethod()
    cl.someMethod();
    This is pretty basic first month java teaching. If your teacher is not teaching you this, find a new teacher, or go buy a book for $50 or so and learn it. Not trying to be rude, just saying this stuff should be taught early on. I don't know why teachers still dont get into namespaces with packages, scope (public, private, protected, package), etc right at the start. I have never worked with an application written in JAva that doesn't use these things, so it should be a rule to teach it right away.
    Good luck.

  • XMLTalk alternatives?

    This months Java Report (http://www.javareport.com/html/from_pages/index.asp?mon=10&yr=2001) has an article about xmltalk, which allows you to have a declarative description of your UI, including data model objects that are being displayed/modified behind the scenes. xmltalk's code can read this description and instantiate the UI.
    I certainly understand the motivation for creating such a tool: it is hard (in most languages/gui toolkits) to create and maintain a large UI using hard coded techniques.
    I'd like to know if there are other (preferably opensource) efforts along this line.

    Axualize is one such framewrok that focusses on defining UI models. It is a very mature and robust tool that has been up and coming for more than a year and a half as far as I know... u can take a look at :
    http://axualize.sourceforge.net

  • Automatic trapping of NaNs?

    Infinites would be nice too.
    I badly need a way to force the JVM to automatically throw an Exception with the first occurence of a numerical error. Yes, debugging is possible by throwing in if(X!=X) type statements, but the time expended to locate problems is enormous in a large program. I guess there are some other alternatives: 1) Stop making programming errors. 2) Run a Java to C++ converter and then turn on NaN trapping in the C++ loader, ... How about a Java option?
    Thanks.

    How about 200,000 lines of code and >1 hour for a
    test case. You can't have a 200,000 line method so presumably you have more than one method.
    Each method can have a NAN check at the end.
    Adding in a few strategic NaN checks can
    make this >2 hours for a test case. Then 1 or more of the following is true...
    - The checks are creationg 1000s/10000s of exceptions (because you are producing too many NANs anyways.)
    - It isn't a "simple" check that is being added.
    - Something is really wrong with the code.
    We are very good
    at putting in NaN checks, but the lack of an
    automatic NaN trapping capability has still set the
    overall project back several months.Java has always been that way. So that suggests the architecture/design was flawed from the beginning (because either the wrong language was choosen or the attributes of the language were ignored.)
    Actually I believe C++ behaves that way as well. (At least I have used compilers that did that.)
    You can of course modify the JVM. If might take months however to figure out where to modify it. And if you distribute the code you will need a contract with Sun.

  • Program feedback (text editor)

    http://www.angelfire.com/linux/magic-jar/index.html
    Please try out my program, called Scribe. It is written completely in Java, and I recommend you unjar the download to get access to the .txt files. Source and compiled is included, and the program is under the GNU GPL.
    Any feedback at all is greatly appreciated, I have only distributed this to my friends, and would like any help with it. The code is a little messy and repetitive, but keep in mind I am a second month Java student.
    Thanks to anyone who checks it out!

    And The-Sue, the code actually is accessible. I
    don't know if you figured this out in your years and
    years of being l337, but you can type jar xf File.jar
    at the terminal, and look, just looooook what pops
    out. The source code, as well as all the class files
    and extras. It is almost like a jar file is on par
    with zip, in fact, maybe it is the Java version of
    zip...oh wait...it is!A jar file is a way of grouping files together (class files image and audio data) which will usually involve a runnable or executable single file version, it is not an alternative java version of a zip file. It does not include source code, if we wish to include this and of a greater use javadocs then the standard practice is to use a zip file.
    I don't see what putting it up on Sourceforge would
    do, nor do I see harm in releasing the code. Some of
    the world, other than you commercial rednecks, don't
    mind open source.Does the term facetious mean anything to you?

  • Please give me hand !!it looks like simple problem but!!

    something happened to my machine so now
    when I run the following command :
    c:>java mydir/myclass I get this error:
    Exception in thread "main" java.lang.NoClassDefFoundError: mydir/myclass
    Do you know how I solve this problem?
    By the way it was working fine.
    Thanx

    Thanks alot for your suggestion but it does not work
    I used to run it as follow for many months
    java mydir/myclass
    and it was working fine. Well, what do you know...you're right.
    java has some syntactic sugar to deal with being called wrong.
    The problem happened after I
    try to set path in may machine using
    setpath command
    Do you think I have to update system variables and so
    onPossibly. Who knows what new and pointless hurdles you have to jump through on a Microsoft box.
    Has the class changed at all?
    Are you executing it from the same directory you always were?
    What else could have changed on your system? Install any new software lately?

  • JBO-27122: SQL error & java.sql.SQLException: ORA-01843: not a valid month

    Hi,
    We developed OA page for Employee's Payslip and it is working fine for all the employees but it is not working for only one employee...Getting the error as
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement
    preparation
    ## Detail 0 ##
    java.sql.SQLException: ORA-01843: not a valid month
    Real Scenario is:
    The user "DANISH.LOTFY" is login into application and when he click on Payslip to the month then he is always getting the above error.
    For testing purpose we have removed his employee assignment from user screen(fnd_user) and assigned some other employee name (say MOHAMED.ELBAHY)... After this when DANISH.LOTFY logins into the application and payslip page is working fine...(He can able to see MOHAMED.ELBAHY payslip.....
    Realy we don't know this strange behaviour of OA ...
    ------ Code with Error details------------------
    Statement:
    SELECT * FROM (SELECT DISTINCT ppa.DATE_EARNED, TO_CHAR(ppa.DATE_EARNED,'MON-YYYY') DISPLAY
    , TO_CHAR(ppa.DATE_EARNED,'MM YYYY') PARAM
    FROM
    pay_payroll_actions ppa
    ,pay_assignment_actions pac
    ,PER_ALL_ASSIGNMENTS_F PASS
    ,FND_USER FU
    ,per_time_periods PTP
    WHERE ppa.payroll_id = 61
    AND ppa.payroll_action_id = pac.payroll_action_id
    AND PAC.ASSIGNMENT_ID = PASS.ASSIGNMENT_ID
    AND PASS.PERSON_ID = FU.EMPLOYEE_ID
    AND FU.USER_ID =Fnd_Profile.VALUE('USER_ID')
    AND TRIM(TO_CHAR(ppa.DATE_EARNED,'MON-YYYY')) IS NOT NULL
    ---Added by Sudipta C on 28th Janaury 2008
    AND TRIM(TO_CHAR(ppa.DATE_EARNED,'MON-YYYY')) <> TRIM(TO_CHAR(SYSDATE,'MON-YYYY'))
    AND ppa.DATE_EARNED=(SELECT MAX(DATE_EARNED) FROM pay_payroll_actions WHERE time_period_id=ppa.time_period_id)
    AND ppa.DATE_EARNED >='30-NOV-2007'
    UNION ALL
    --Query to Display only the Current Month if the Concurrent Request Ran
    SELECT DISTINCT ppa.DATE_EARNED, TO_CHAR(ppa.DATE_EARNED,'MON-YYYY') DISPLAY
    , TO_CHAR(ppa.DATE_EARNED,'MM YYYY') PARAM
    FROM
    pay_payroll_actions ppa
    ,pay_assignment_actions pac
    ,PER_ALL_ASSIGNMENTS_F PASS
    ,FND_USER FU
    ,per_time_periods PTP
    WHERE ppa.payroll_id = 61
    AND ppa.payroll_action_id = pac.payroll_action_id
    AND PAC.ASSIGNMENT_ID = PASS.ASSIGNMENT_ID
    AND PASS.PERSON_ID = FU.EMPLOYEE_ID
    AND FU.USER_ID = Fnd_Profile.VALUE('USER_ID')
    AND TRIM(TO_CHAR(ppa.DATE_EARNED,'MON-YYYY')) IS NOT NULL
    AND TRIM(TO_CHAR(ppa.DATE_EARNED,'MON-YYYY')) = TRIM(TO_CHAR(SYSDATE,'MON-YYYY'))
    AND ppa.DATE_EARNED=(SELECT MAX(DATE_EARNED) FROM pay_payroll_actions WHERE time_period_id=ppa.time_period_id)
    AND ppa.DATE_EARNED >='30-NOV-2007'
    --Check the Concurrent Program Ran or not to Display the SYS Month Payroll Period ID
    AND EXISTS
    (SELECT TRIM(TO_CHAR(REQUEST_DATE,'MON-YYYY')) FROM fnd_conc_req_summary_v fcrs
    WHERE program_short_name = 'PROC_EXP1_TESTING'
    AND PHASE_CODE='C' AND STATUS_CODE='C'
    AND TO_CHAR(REQUEST_DATE,'MON-YYYY')=TO_CHAR(SYSDATE,'MON-YYYY')
    AND REQUEST_DATE=(SELECT MAX(REQUEST_DATE) FROM fnd_conc_req_summary_v
    WHERE CONCURRENT_PROGRAM_ID=fcrs.CONCURRENT_PROGRAM_ID))
    ORDER BY 1 DESC) QRSLT WHERE (( UPPER(DISPLAY) like :1 AND (DISPLAY like :2 OR DISPLAY like :3 OR DISPLAY like :4 OR DISPLAY like :5)))
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1408)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormData(OAPageBean.java:2555)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1677)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:509)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:430)
         at oa_html._OA._jspService(_OA.java:84)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.sql.SQLException: ORA-01843: not a valid month
    Could any please suggest/provide your valuable inputs to resolve this issue(It is in production , so please treat it as very urgent).
    Thanks & Regards,
    J.Prakash

    Hi,
    This is really a strange behaviour as you are saying that it is happening only for one user so please check his user preferences.
    Regards,
    Reetesh Sharma

Maybe you are looking for

  • MDG- Material CR PDF print form

    Hello Friends, I am facing a problem while printing adobe forms. I searched the forums before posting but none of the discussions were satisfying. My issue is as below: I am getting an error while printing material CR's, the form gets called from WDA

  • IMac G5 blinking power light / won't turn on

    When my iMac G5 is hooked up to power, the power light (front bottom right panel) faintly blinks once every 2 seconds or so. The monitor is not on at all, and the computer does not appear to be running (no sounds). All other devices hooked up to that

  • What is the maximum excel file size that can be converted to pdf?

    Currently I am trying to convert a excel file of 37 mb by using pdf generator. And it fails with the exception as java.lang.OutOfMemoryError: Java heap space; nested exception is: java.lang.OutOfMemoryError: Java heap space. Waiting someone help! T_T

  • A STORED PROCEDURE PERFORMES SLOWER WHEN EXECUTED IN HMTLDB THE IN SQLPLUS

    We executed a stored procedure in HTMLDB. At the beginning and the end of this stored procedure a timestamp inserted in a logtable. First we executed the procedure in HTMLDB's SQL workshop (version 2.0.0.00.49 for MacOSX) under the owners schema . Ex

  • How to extract data from the XL sheet for mapping

    Hello all, I have a scenario of file to idoc, where in the source file contains the information in XL sheet. Can we access the XL sheet data for mapping ? if so can anyone helpme providing the procedure.