Wierd errors

Hello,
I don't know what it doesn't work with this code. It's about create and update oracle tables throw Java.
can someone just check the code and tell me where is the problem ?
thanks in advance
import java.sql.*;
public class SQL_QUERIES_TESTING {
     public static void main(String[] args) {
          Statement stmt=null;
          ResultSet rs=null;
          Connection con=null;
               try {     
               String url="jdbc:oracle:thin:@SS-EC55E45BC763:1521:faiz";
               String driver="oracle.jdbc.driver.OracleDriver";
               String user="HR";
               String pwd="HR";
               Class.forName(driver);
               con=DriverManager.getConnection(url,user,pwd);
               String CreateCoffeeTable="CREATE TABLE COFFEE"+"(COFFEE_TYPE VARCHAR(32), DEALER_ID INTEGER, PRICE FLOAT,"+"SALES INTEGER, TOTAL INTEGER)";
               stmt=con.createStatement();
               stmt.executeUpdate(CreateCoffeeTable);
               stmt.executeUpdate("INSERT INTO COFFEE" + "VALUES ('French_Roast', 49, 8.99, 0, 0)");
               rs.close();
               stmt.close();
               con.close();
               rs.close();
               stmt.close();
               con.close();
          } catch (ClassNotFoundException e) {
               try {
                    stmt.close();
                    con.close();
               } catch (SQLException e1) {
                    e1.printStackTrace();
               e.printStackTrace();
          } catch (SQLException e) {
               try {
                    System.out.println("Execption :"+e.getMessage());
                    stmt.close();
                    con.close();
               } catch (SQLException e1) {
                    e1.printStackTrace();
               e.printStackTrace();
}

nobounds wrote:
I don't know what it doesn't work with this code. It's about create and update oracle tables throw Java.That's funny. You're writing and executing the code so you know what it's supposed to do. If it's not doing what you expect it to do, then you do know what's not working, right? How about letting us in on the secret? It would help us help you.
can someone just check the code and tell me where is the problem ?Remember, no one's sitting idle. If you really want help, you'll have to post the stack trace and exceptions that you're getting and an explanation of what you need to do and what's actually happening. If you ever, really need your code to be run, it'll have to be complete and should take minimum effort on the part of someone helping you out to run. Usually not a way out with JDBC since there'll be DBs involved.
So make an effort, track down the exceptions and the lines which cause them. Post the stack trace. Give a description of your problem.
People on the forum help others voluntarily, it's not their job.
Help them help you.
Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
(Yes I know it's on JavaRanch but I think it applies everywhere)
----------------------------------------------------------------

Similar Messages

  • Cannot install lion from mac appstore. i have a macbook pro early 2011 model with 10.6.8 and i keep getting a wierd error NSInternalInconsistencyException i have no idea what to do.

    I cannot install lion from mac appstore. i have a macbook pro early 2011 model with 10.6.8 and i keep getting a wierd error NSInternalInconsistencyException i have no idea what to do.

    I changed my wireless broadband to a landline-base DSL wifi and it works like a charm. Sun was the culprit even you fiddle with its router and disable firewall, it won't work.
    try changing yours too and let me know how it goes.

  • Wierd error any tips?

    hey guys am getting a error in my app which is wierd, it says
    E:\test>javac Example.java
    Example.java:126: cannot resolve symbol
    symbol : variable HeightField
    location: class Example
    heightString = HeightField.getText();
    does unresolved symbol mean its not already declared? because i have it for sure. al include the relevant methods below
    public void BMIcalc(ActionEvent event)
    public String getName() {
              return NameField.getText();
              public String getHeights() {
              return HeightField.getText();
              public String getWeights() {
              return WeightField.getText();
              String  heightString, weightString, result;
              double  height, weight;
              int     BMI;
              // Get input values
            heightString = getHeights(); <<<<<<calling get heights method;
            weightString = getWeights();<<<<<<calling get weights method;
            //Convert input to numbers
            height = convertToDouble(heightString);
            weight = convertToDouble(weightString);
            //Compute the BMI
            BMI = computeBMI(height, weight);
            //Display the result
            result = "Your BMI is " + BMI;
    //        BMILabel.setText(result);
           // add( BMILabel );
            doLayout( );
        }anyone got a tip on whats wrong? cheers in advance

    this is bad, after i include the method with datarecord class it gets worse error wise. am including the ful code this time sigh this is rough
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    import java.io.*;
    import javax.swing.border.*;
    class DataRecord extends JPanel {
         JTextField NameField, HeightField, WeightField;
         JRadioButton MaleButton, FemaleButton;
         public DataRecord(int num) {
              JPanel west = new JPanel();
              MaleButton = new JRadioButton("MALE");
              FemaleButton = new JRadioButton("FEMALE");
              ButtonGroup group = new ButtonGroup();
              group.add(MaleButton);
              group.add(FemaleButton);
              west.setLayout(new GridLayout(0,2));
              west.add(new JLabel("Record "+num));
              west.add(new JLabel(""));
              west.add(new JLabel("Name      "));
              NameField = new JTextField(15);
              west.add(NameField);
              west.add(new JLabel("Height      "));
              HeightField = new JTextField(15);
              west.add(HeightField);
              west.add(new JLabel("Weight      "));
              WeightField = new JTextField(15);
              west.add(WeightField);
              west.add(MaleButton);
              west.add(FemaleButton);
              setLayout(new FlowLayout(FlowLayout.CENTER));
              add(west);
              public String getName() {
              return NameField.getText();
              public String getHeights() {
              return HeightField.getText();
              public String getWeights() {
              return WeightField.getText();
    public class Example extends JFrame implements ActionListener {
         JPanel recordsPanel;
         ArrayList Records;
         JButton Save, add, CalcBMI;
         public Example() {
              setTitle("Example");
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              setResizable(true);
              Records = new ArrayList();          
              Records.add(new DataRecord(1));
              recordsPanel = new JPanel();
              recordsPanel.setLayout(new GridLayout(0,1));
              recordsPanel.add((DataRecord)Records.get(0));
              Container c = getContentPane();
              c.setLayout(new BorderLayout());
              JScrollPane jsp = new JScrollPane(recordsPanel,JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
              c.add(jsp,BorderLayout.CENTER);
              JPanel south = new JPanel();
              south.setLayout(new FlowLayout(FlowLayout.CENTER));
              CalcBMI= new JButton("Calculate BMI");
              south.add(CalcBMI);
              CalcBMI.addActionListener(this);
              add = new JButton("Add Record");
              south.add(add);
              add.addActionListener(this);
              Save = new JButton("Save Records");
              south.add(Save);
              Save.addActionListener(this);
              c.add(south,BorderLayout.SOUTH);
              pack();
              setSize(this.getWidth(),400);
              show();
         public void actionPerformed(ActionEvent e) {
              if (e.getSource() == Save) {
                   try {
                   catch (IOException ioe) {
                        ioe.printStackTrace();
              else if (e.getSource() == add) add();
         protected void add() {
              DataRecord dr = new DataRecord(Records.size()+1);
              Records.add(dr);
              recordsPanel.add(dr);
              validate();
    public void BMIcalc(ActionEvent event)
              String  heightString, weightString, result;
              double  height, weight;
              int     BMI;
              // Get input values
            heightString = getHeights();
            weightString = getWeights();
            //Convert input to numbers
            height = convertToDouble(heightString);
            weight = convertToDouble(weightString);
            //Compute the BMI
            BMI = computeBMI(height, weight);
            //Display the result
            result = "Your BMI is " + BMI;
    //        BMILabel.setText(result);
           // add( BMILabel );
            doLayout( );
         private int computeBMI(double height, double weight)
            int BMI;
            BMI = (int) Math.round( weight / (height*height) );
            return BMI;
    private double convertToDouble( String str )
            Double doubleObj = new Double( str );
            return doubleObj.doubleValue( );
    public static void main(String[] args) {
              new Example();
    }

  • CS3 shuts down after wierd error

    I'm guessing this problem can be solved by uninstalling/installing my printer driver but thought I'd check here to see if anyone's seen an error this strange anyway.
    If I try to open either a large number of photos or a few large ones, I can sometimes end up with CS3 closing and telling me that a faulting module, e_fuicaia.dll, caused the program to shut down.
    Just what this has to do with anything, I don't know. It is a driver for an old epson 220 cd printer. Why loading photoshop causes the printer driver to crash it seems quite odd.
    As I said, hopefully reinstalling the printer driver will have an effect, although the printer itself works just fine. hmmmm

    Is the Epson 220 set as your default printer? I'd set another, even if its say the "Generic PS Printer," or the Acrobat Printer. You should be able to use the CD printer, by selecting it in the Print dialog box. If that doesn't work, then maybe an uninstall/re-install would work. Personally, I'd do a Registry cleaning, after uninstall, and prior to re-install.
    Hunt

  • Very Wierd Error Code -39 on External FW...

    I keep getting the following Error Code -36, when copy to any external HD FW400/800. This is plugged into a Belkin FW400 Powered HUB. I've gone and replaced this several times at the store thinking it was related to this, and the HUB is erally Powered/Plugged in. I have 4 other FW400 DVD and CD Burners also plugged into this including the iSight Camera.
    "The Finder cannot complete the operation because some data in "1234567_Scar.psd" could not be read nor written." (Error code -36)
    Now if I take this file "1234567_Scar.psd", and StuffIt then the files copies over just fine to any of the External FW400's off te Belkin HUB. So I have been doing all this reformating of External HD's, splitting up RAID-5 configures, Mirrors, Stripes Sets, just trying to nail this down. I even went and sent back 8-250Gig HD's to Maxtore to be replaced by them, and all 8 come back with what look likes the same problem. I tried TechToll Pro 4.1 at $99.00, and althought all comes back Perfect, I see that the S.M.A.R.T. options are not supported in the 8 bay RAID I have - This should mean nothing at all. Then I start to think it's the PSD file format, so start to save in different Formats (Tiff, JPG, GIF, PDF, etc.) I was trying anything, I even went and reformated the OS on the G5 and started from the ground up reloading everything and all the keys again. Still Happens over and over - Can't Burn, or Copy to an External FW400 HD.
    I pretty much ready to give up and buy one of those Drive Brackets that mount 4 more HD in front of the fans inside the G5, but then I worried about the power drain off the G5 power supply, and what this is going to do to the system over a long period of time.
    Now I'm really upset because this is looking like I will never be able to use the External RAID again. Yes, I did have the G5 back to Apple so many times that they think I'm the local nut case that should go buy a Dell. I then begin my very serious dig into this more, and i find this artival on the Apple Chat site from 2000 saying that someone else had this going on too.
    Solution: Unplug the iSight Camera from the BELKIN Powered HUB. BINGO!!! everything works!!! --- Still can't figure out why the iSight camera being off, but plugged into the HUB would casue all of this at all. Either way if anyone is having this nightmare, you may want to avoid this 3 month drag through the dirt and jut unplug the iSight , and move it to a direct port.
    G5 Dual 2.3   Mac OS X (10.4.3)   4-250Gig HD's/8Gig RAM/30" Monitor

    When you got the drive did you reformat it to "Macintosh Extended" aka HFS+ or did you leave it as the default FAT32 format? 
    mrtotes

  • CS6 Mast Coll Trial won't install - wierd error

    I'm trying to install CS6 MC and am having one devil of a time just getting it to install.  Environment:  Win 8.1, brand new out-of-the-box HP 500-214 with 8gB RAM 2tB HDD.  Completely new. 
    First I went and installed some software to begin including Adobe Reader.
    Next, I went and downloaded the CS6 MC install package.  The install package gives me this:
    I right-clik and Run as Admin on the Application.  An extraction occurs at the end of which I get this:
    Ok, so do some reading.  Is the download pacakge corrupt.  Go back and redownload the entire kit, erasing the old one.  Reboot.  Repeat the sequence.  Same deal as before.
    More reading.  Use the CS Clean Tool, actually called the CC Clean Tool but it says it will work on anything.  I get a DOS box, answer some prompts and I get what appears to be a succesful clean.  Reboot.   Now I move back to the folder into which the D/L package was extracted (\Desktop\CS Trial DL) and there's a setup.exe.  Right-clik and Run As Admin.  See error above.
    OK, one more try.  Go back and use the Clean Tool then erase the extract folder (it might be corrupted).  Reboot a third or fourth time.  Re-download the entire kit again.  Same error.  OK, so let's use this thing called The Adobe Support Advisor (ASA).  Run that and I get this cryptic little wonder:
    Ignore the one at 14:40 hrs.  I know I've rebooted/restarted.  See the "licensing program" entry.  Clik on the link and be taken to:
    This is pointing at something aout CS5 when I'm trying to do CS6.  Maybe they're both the same in this context.  Don't know, nothing's giving me much help.
    And, by the way, if I repeat this whole sequence from rebooting and cleaning and re-downloading then run the ASA, I find that the same error with the same dates is showing.  ASA won't show me the report from today's running.  So somehow I need to find out how to "clear" the ASA data.
    So, good people, what other suggestions can we make here for me as I try to mount this trial copy on the premise that if the customer lilkes it he'll buy it?  I'm out of ideas...

    no, you can download suite trials.  here's cs6:
    if you follow all 7 steps you can directly download a trial here: http://prodesigntools.com/adobe-cs6-direct-download-links.html
    if you have a problem starting the download, you didn't follow all 7 steps, or your browser does not accept cookies.
    the most common problem is caused by failing to meticulously follow steps 1,2 and/or 3 (which adds a cookie to your system enabling you to download the correct version from adobe.com).
    failure to obtain that cookie results in an error page being displayed after clicking a link on prodesigntools.com or initiates the download of an incorrect (eg, current) version.

  • Ipod won't update music and i get wierd error messages

    I've never gotten any error messages with my ipod before, i've been trying for about an hour to get it to update my music. I'm backing up my music to make sure i don't have to worry about losing it all when i try restoring. My itunes tells me that my ipod software is too old but on the summary page it says its up to date, can anyone help me with this?

    Hi
    Have a look
    http://discussions.apple.com/thread.jspa?messageID=3125481&#3125481

  • A wierd error of JDBC Receiver adapter

    Dear Expert,
    I got stuck by the JDBC receiver adapter with PI 7.11, the log is
    'JDBC Message processing failed, due to Error processing request in sax parser: Error when executing statement for table/stored proc. 'null' (structure 'SYSTEM'): java.lang.IndexOutOfBoundsException: Index: 1, Size: 1'
    explanation :   
    (1)SYSTEM  is the first element in my XML sent to PI and I guarantee it has value, and there is no mapping with this field in the target table.
    (2)I tested mapping and comminucation channel -> successfully
    (3)db is oracle and the key field is mapped with value
    Looking forward to your insight. Thanks very very much
    Ray

    Dear Expert :
    Thanks for your reply, but I still could not figure out what had happened, it is so desperate.......
         Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'null' (structure 'BOOK'): java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
    The Oracle DB table has many fields and I mapped the key and other fields which could not be null.
    I tried to create a very simple example to test like this , but still it pops up the error like before,
    you can see the error message just  replaces the  text 'SYSTEM' to 'BOOK'.
    'null' (structure 'SYSTEM'): (yesterday)  ->   'null' (structure 'BOOK'):  (today).   What could I do????
    Thanks so much for your help
      <?xml version="1.0" encoding="UTF-8" ?>
      <MT_RM_TEST>
      <BOOK>17-1627-15</BOOK>
      <NAME>Ray</NAME>
      </MT_RM_TEST>
    -> the XML above is my simple test XML sent (book and name are mapped to the key field and other fields which could not be nulll)

  • Wierd error in PL/SQL Package

    I have a package that does a global update of a rather large and complicated table schema. It had been working fine but, over the weekend, it failed after processing approximately 9,000 of 10,000 records with this error:
    ORA-01031 Insufficient Privileges
    Now, I can understand if the silly thing NEVER worked, but WHY would I get THIS error after I've processed most of the records. The database is in 9i ver 2.
    I've looked through the code and I can't see anywhere where it would be changing the USERID or password or anything like that so I'm a little stumped. Any and all assistance gratefully appreciated.
    Leigh Smith

    This is strange. The error that comes up for the insufficient privs is normally due to the privs being granted from the roles and tried to be used in the packages/procedures. That gives us the insufficient priviledge error. But , if it worked before, it should work now too.
    Try granting the user running this package a direct priviledge over the underlying table if you can and see if it changes some thing. Otherwise, probably a more thorough check over the lines of the code would be required.
    What's the database version and o/s?
    HTH
    Aman....

  • Wierd error message and computer restarting

    Everytime I try to change any ipod preferences, I get the following error message:
    "An error occurred when updating the default player for audio file types. You do not have enough access priviliges for this operation."
    Then, when I press OK, my computer restarts. Also, when I go to File-Update iPod, my computer restarts, AND when I plug in my iPod for auto update, it will restart unless it has just restarted. In other words, it will only allow 1 update per restart. Please help, I have Windows XP home edition, a fairly fast computer with no viruses that I know of. I don't know what could be causing this!!!
    PC   Windows XP  

    sorry, been away and only just checked back on the forums. I thought quicktime as itunes uses this under the covers and I had ort of the same problem. I would suggest de-installing all the software and start with a blank canvas. Make sure you remove the software with the add/remove software task though.
    Once you've removed all the software format the ipod (as a removable disk)
    Use the CD that came with your ipod to do the re-install.
    Hope this helps / works.
    P.S. how can such a small item cause so many people so much grief (myself included). saying that there must be thousands of ipod user out there that have never had problem! lucky so and so's

  • Wierd Error in Web Service Model

    Hi,
    I tried accessing a web service on net.
    I downloaded the WSDL file and imported the model into my Webdynpro Application. Next i wrote the reqd code and finally did execute().
    I am getting the foll exception:
         Service call exception; nested exception is: java.lang.Exception: Transport Error ! Response code (407) Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.  )[Ljava.lang.StackTraceElement;@5b37b8
    Intersting part is that when i try to access this web service from IE; it opens successfully and i get the output perfectly. No authentication error is thrown!!
    Can anyone guide me as to what can be the issue?
    Regards,
    Dev

    Hi,
    Yes the proxy password field is uneditable.u can enter only the username.
    For changing the authentication type u have another tab called security in logical ports.Try changing authentication from none to http authentication.select the basic (username/password) radio button.
    This should help automatically take the username and password.
    After doing this change too u will not be allowed to edit the password.
    Regards,
    Nagarajan.
    Message was edited by: Nagarajan Kumarappan

  • Audio doesn't work, wierd error messages

    Sorry for posting a seperate message, but I thought my problem might be different and a more general one. Since a few days, iChat audio is not working. I have a feeling this is since the last security update. Are you experiencing problems? So far I have got 3 error messages. I have tried chatting with my wife,
    and it gives me these messages after failing to connect audio chat:
    1. (My wife) did not respond (although she was responding)
    2. Bandwidth is not sufficient
    3. This is the wierdest one: (I) am not responding!!! I am requesting an audio chat and it says I am not responding? crazy!
    I have tried connecting from my PB g4, both from wireless and LAN and also from iMac G4, to my wifes iBook, both on LAN and wireless.
    ANy suggestions?

    Hi Alpesh,
    If your System Preferenecs > Quicktime is set to Automatic change it to match your Download.
    The same applies it seems to the Top setting on Intranet/LAN
    Ralph

  • Wierd error message while trying to connect...

    I''ve created a small OCCI application with Visual C++. I receive the following error in the code that tries to connect:
    ORA-24960: the attribute OCI_ATTR_PASSWORD is greater than the maximum allowable length of 255
    My password is less than 10 characters.
    Any ideas?
    Thank you,
    Jason
    Oracle Instant Client 10.2.0.1
    Windows XP Professional SP1
    Microsoft Visual C++ 6.0

    Code:
    #include "stdafx.h"
    #include <occi.h>
    #include <iostream>
    #include <string>
    using namespace oracle::occi;
    using namespace oracle::occi::aq;
    using namespace std;
    #pragma comment(lib, "oci")
    #pragma comment(lib, "oraocci10")
    int main(int argc, char* argv[])
        Environment *pEnv = NULL;
        try
            string user = "myuser";
            string password = "mypassword";
            string db = "mydb";
            pEnv = Environment::createEnvironment();
            Connection *pConnection = pEnv->createConnection(user, password, db);
            pEnv->terminateConnection(pConnection);
        catch(exception &str)
            cout << "Exeception : " << str.what() << endl;
        if(pEnv != NULL)
            Environment::terminateEnvironment(pEnv);
        return 0;
    Dependencies:
    Dump of file C:\instantclient_10_2\bin\oraocci10.dll
    File Type: DLL
    Image has the following dependencies:
    OCI.dll
    MSVCR71.dll
    MSVCP71.dll
    KERNEL32.dll
    Summary
    2000 .data
    C000 .data1
    29000 .rdata
    8000 .reloc
    1000 .rsrc
    78000 .text
    5000 .text1
    Compile/link: I have no idea. I am linking to oraocci10.lib and oci.lib. I can send a makefile if necessary.
    Why do you say the client can be only used in VS .Net? I have seen plenty of postings in the forum of people using Visual C++ 6.
    Thanks for your input,
    Jason

  • When Installing I get a wierd Error...

    Well apparently it's part of the installation process to remove all older versions, which I don't have. I used to have iTunes+Quicktime on this computer a long time ago and I was recently trying to reinstall them so I can songs onto my iPod from this computer but during the installation process it keeps failing when it tries to remove the older versions(apparently there were errors that occurred in both iTunes and Quicktime when I uninstalled them so now it can't remove the previous versions and it can't install the new versions.
    What can I do to fix this? Add/Remove programs wont remove iTunes or Quicktime because it says it cannot find the proper file location of the uninstaller, the installation can't remove the previous versions, and windows installer cleanup doesn't do anything...What can I do?

    I am not absolutely clear if you have already uninstalled the old programs, but here is a method for full removal with Installer Clean up.
    == uninstall with cleanup ==
    Download a fresh copy of iTunes and the stand alone version of Quicktime (the one without iTunes)
    http://www.apple.com/quicktime/download/win.html
    http://www.apple.com/itunes/download/
    Download and install Microsoft Installer cleanup utility, there are instructions on the page as well as the download. Note that what you download is the installer not the program – you have to run it to install the program. The installer doesn't give any message to confirm the installation.
    http://support.microsoft.com/kb/290301/
    (To run the program – All Programs>>Windows Install)
    Now use the following method to remove iTunes and its components:
    XP
    http://support.apple.com/kb/HT1925
    Vista
    http://support.apple.com/kb/HT1923
    *If you hit a problem with one of the uninstalls don't worry*, carry on with the deleting of files and folders as directed in the method.
    When you get to deleting Quicktime files in the system32 folder as advised in the method, you can delete any file or folder with Quicktime in the name.
    Restart your PC.
    Run the Microsoft Installer Cleanup Utility. (Start > All Programs > Windows Install Clean Up)
    Remove any references you find to the programs you removed - strictly speaking you only need to worry about those programs where the uninstall failed.
    If you don’t see an entry for one of the programs that did not uninstall, look out for blank entries or numeric entries that look like version numbers e.g. 7.x for Quicktime or 1.x for Bonjour.
    restart your PC
    Install the stand alone Quicktime and check that it works.
    If it does, install iTunes.

  • Wierd #ERROR

    Hello,
    I am using BOXI r2 WEBI. I have created a complex formula and when i create a variable and paste this formula, it gives me #ERROR. But if i just place it on a cell, it gives me correct results without any errors. Its killing me. Has anyone faced this issue before? Any help is much appreciated
    Thanks

    Hi,
    Please create the variables as below to simplify the formula.
    Var1=Sum([all] Where ([Flag]=1 And [Prompt]=1) ForEach ([Name]))
    Var2=Sum([Target] Where ([Flag]=1 And [Prompt]=1) ForEach ([l Name]))
    Var3=Sum([Target] Where ([Flag]=1 And [Prompt]=1) ForEach ([Name]))
    Var4=1+(Var1-Var2)/Var3
    Then use the variable Var4 in the cell.
    Please check if this causes any error or not.
    Regards

  • Wierd error , plz help me .

    this is my test class , very simple:
    package catagorized_services_system;
    import catagorized_services_system.bridge.*;
    public class TestClass {
      IndexSystem is = new IndexSystem();
      TestClass() {}
      public static void main(String[] args) {
        TestClass tc = new TestClass();
    }each time when it tries to create IndexSystem object it throws me that error :
    java.lang.ClassFormatError: catagorizedservicessystem/bridge/IndexSystem (Code attribute is absent in method that is not abstract or native)
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
         at catagorizedservicessystem.TestClass.<init>(TestClass.java:6)
         at catagorizedservicessystem.TestClass.main(TestClass.java:10)
    Exception in thread "main" even though it does have methods and everything , maybe its because its in anotehr package or something .
    plz tell me what can it be ?

    The problem is in your IndexSystem class in the bridge file, which you didn't list in your post. One of your methods has a header but no code and isn't declared to be abstract. Please post the bridge file.

Maybe you are looking for

  • Image Capture saving files to the wrong folder

    This happens pretty consistently. I select the folder I want to download my pictures/movies to and it downloads to one of my previously selected folders. How can I fix this so that it places the files in the folder I specify?

  • Flash not working in Safari 5

    Flash has been buggy for me in Safari 5, ever since I updated the Flash player last week to "10.1 r53". Either Flash files don't play at all, or just the audio plays without video. Per the instructions on these boards, I have: 1. reset Safari 2. unin

  • Not able to clear return structure in BAPI_ALM_ORDER_MAINTAIN

    Hi, I'm having a problem with the return structure in BAPI_ALM_ORDER_MAINTAIN where it's keeping all the records and I can't seem to clear the structure. I've tried sending in a blank return table from webdynpro, but the bapi still remembers any mess

  • Photo albums messed up again after update

    Once again, after an iOS update, the last 12 months and last imported photos albums showed up on the phone even though the boxes are not checked in iTunes before or after those updates. As the with last time, the only way to remove those two albums w

  • Why Task failing in DAC shows as completed in Informatica Workflow monitor?

    Hi BI Guru's, I have a task( 'SIL_TimeDimension_MCalDay' and its detail Task is 'Create Index INDEX W_MCAL_DAY_D_P1' )in DAC that shows 'Failed' . The same task( i.e 'SIL_TimeDimension_MCalDay') shows 'Succeded' in Workflow_monitor. Any thoughts ? Re