Why am I getting an IncompatibleClassChangeError, and how do I slove it

I have a class that holds data: Book.
I needed to swap it to being an interface.
Easy enough - and now I have a SimpleBook class which implements Book.
I have a Jar that refers to Book Objects.
The jar was compiled when Book was not an interface.
even though Book has the same methods - I get an IncompatibleClassChangeError when Book is used in the precompiled Jar
Why is this?
and is there a way I can fix the problem?

the precompiled code only references Books and need
not know how to make them or that it is now actually
a SimpleBook.You have to recompile everything that uses Book.
I think calling a method on a interface uses a different bytecode to calling a method on a class, but I can not find it in the VM specs.
Edit: invokeinterface & invokespecial.

Similar Messages

  • There was an error opening the database for the library "/Users/stacia134/Pictures/Aperture Library.aplibrary".  Why am I getting this message and how do I correct it so that I can open Aperture????  any suggestions would be most appreciated

    There was an error opening the database for the library “/Users/stacia134/Pictures/Aperture Library.aplibrary”.  Why am I getting this message and how do I correct it so that I can open Aperture????  any suggestions would be most appreciated

    Then I'd check the system drive, if it has problems.
    To check your System drive boot into the Recovery Partition, see: OS X Lion: About Lion Recovery
    Restart your Mac and hold down the Command key and the R key (Command-R), and keep holding them until the Apple icon appears, indicating that your Mac is starting up.
    You will see a panel, where you can use Disk Utility to check your System Drive.

  • Why am I getting this error and how do I fix it?

    I am new to actionscript. I am following a tutorial on lynda. I am trying to learn how to create flash games. I am using flash cs4. The tutorial uses flash cs3 and and actionscript 3.0. I added a movie clip to my library and enabled export for actionscript. I got a dialog box that says "a definition for this class could not be found in the classpath, so one will automatically be generated in the swf file upon export." I click ok. Then when I try to test it, I get an error that says "call to possibly undefined method". What exactly am I doing wrong?

    Try modifying your class and your code as follows...
    change the class linkage to be Cursor.  Not that it is wrong, but classes typically have upper case letters to make them easier to identify in code.
    then, do not use the name of the class as the instance name....
    var cursor:Cursor;
    function initializeGame():void
    cursor = new Cursor();
    etc...

  • Why did font get bigger suddenly, and how to fix?

    I found this thread but please tell me there is a better (read: proper) fix for this
    annoying problem!
    https://support.mozilla.org/en-US/questions/963279
    1) I tried the about:config "fix" and it doesn't help much.
    2) I shouldn't have to mess with my system - Mozilla should resolve this issue.
    There aren't many things that would make me return to IE. This is definitely one of them!

    Does this affect the full Firefox window (user interface and browsing area) or only the browsing (web page) area?
    Reset the page zoom on pages that cause problems.
    *<b>View > Zoom > Reset</b> (Ctrl+0 (zero); Command+0 on Mac)
    *http://kb.mozillazine.org/Zoom_text_of_web_pages
    Not that your System Details List shows a lot of modified font prefs.
    *http://kb.mozillazine.org/about:config
    Can you attach a screenshot?
    *http://en.wikipedia.org/wiki/Screenshot
    *https://support.mozilla.org/kb/how-do-i-create-screenshot-my-problem
    Use a compressed image type like PNG or JPG to save the screenshot.

  • Why am I getting this message, and how can I get rid of it

    the message is:
    Note: WebBrowser.java uses unchecked or unsafe operations
    Note: Recompile with -Xlint:unchecked for details
    the code is:
    import javax.swing.*;
    import javax.swing.event.*;
    import java.io.*;
    import java.net.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    public class WebBrowser implements ActionListener
       static Frame f = new Frame("WebBrowser");
       static TextField address = new TextField(50);
       static Button back = new Button("Back");
       static Button next = new Button("Forward");
       static Button go = new Button("Go");
       static Panel p = new Panel();
       static JEditorPane pane = new JEditorPane();
       static Label status = new Label("");
       static Stack b = new Stack();
       static Stack forw = new Stack();
       public static void main(String[] args) {
          f.setLayout(new BorderLayout());
          p.setLayout(new BorderLayout());
          Panel topad = new Panel();
          topad.add(address);
          topad.add(go);
          p.add(topad, BorderLayout.NORTH);
          Panel bopad = new Panel();
          bopad.add(back);
          bopad.add(next);
          p.add(bopad, BorderLayout.SOUTH);
          f.setSize(500,500);
          f.setVisible(true);
          f.add(p, BorderLayout.NORTH);
          f.add(new JScrollPane(pane), BorderLayout.CENTER);
          f.add(status, BorderLayout.SOUTH);
          f.addWindowListener(new WindowAdapter() {
              public void windowClosing(WindowEvent e) {
                  System.exit(0);
          pane.setEditable(false);
          new WebBrowser();
       public WebBrowser() {
          back.addActionListener(this);
          next.addActionListener(this);
          address.addKeyListener(new KeyAdapter() {
                public void keyPressed(KeyEvent e) {
                    if(e.getKeyCode() == KeyEvent.VK_ENTER) {
                       loadPage(address.getText());
          pane.addHyperlinkListener(new HyperlinkListener() {
              public void hyperlinkUpdate(HyperlinkEvent event) {
                  if(event.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
                      loadPage(event.getURL().toString());
       public void loadPage(String url) {
           try {
              pane.setPage(url);
              b.push(url);
           } catch(Exception ex) {
              status.setText(ex.toString());
       public void actionPerformed(ActionEvent e) {
           if(e.getSource() == back) {
               try {
                  String str = (String)b.pop();
                  forw.push(str);
                  pane.setPage(str);
               } catch(Exception ex) {
                  status.setText(ex.toString());
           if(e.getSource() == next) {
               try {
                  String str = (String)forw.pop();
                  b.push(str);
                  pane.setPage(str);
               } catch(Exception ex) {
                  status.setText(ex.toString());
    } //end of code

    ajtgarber wrote:
    when I compile with -Xlint it says something about unsafe operations and it shows the code:When using Java 5, you should be using generics to make your code more type safe, but it's not an absolute requirement (so it's a warning instead of an error).
    If you want to learn more, just google for generics.

  • Exc in ev handl: Error: Bad NPObject as private data!Why do I get this? and how do I get rid of it. I am a senior gal who needs easy help. Thank you.

    It just occurs when it wants to.

    This was the answer. Thank you so much for the easy to follow instruction you left for me.

  • Why did my Address Book disappear and how can I get it back?

    The Address Book application has simply disappeared on two of my MacBook Pros. I thought the first one (work laptop) was a fluke but now that it's happened on my own MacBook I think something is wrong.
    The app is no longer available anywhere on my hard drive. It's as if I threw it away, but I didn't. I can't open any associated files, so I don't even know if the data has been preserved.
    Can anyone help me figure out why it disappeared, where it went, and how to get it back, short of reinstalling OS X 10.5.8 (the version I'm currently using)? I want to upgrade to Snow Leopard (not Lion -- no one seems to like it), but I'd like to fix this problem first. And I can't upgrade on the work MacBook because I have to use the enterprise-approved OS version.
    Thanks!

    Amy, is there a chance they could both be Syncing to another device that has the data erased?
    What are the sizes & modification dates on the files you found?
    Could be many things, we should start with this to be safe, though 2 different ones would seem unlikely to be this problem...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at the top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair. Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.

  • When ordering a project I'm getting a message " an error occurred while contacting the Apple online store. Please try again"  Can anyone please tell me why I might be getting this message and how to fix the problem.  Thank you

    When ordering a project I'm getting a message " an error occurred while contacting the Apple online store. Please try again"  Can anyone please tell me why I might be getting this message and how to fix the problem.  Thank you

    I've got the same problem.
    It wasn't the case before the upgrade to v 9.2 (Iphoto 11) yesterday.
    The previous solution preferences - advanced - "select a store" (last option) doesn't solve it anymore.
    Thanks!

  • SAP hana Visualize Plan show Create Temp Index and it shows Unsupported Operator Order.  Why the hana build temp index and how to get rid of it ?

    When I see the Visualize Plan for SQLScript it show Create Temp Index at many Places.
    It also shows unsupported operator order CS_JOIN over CS_AGGREGATION.
    Why does hana create Temp Index and how to get rid of it.

    Just browsing for some more information on this operation, and it just happened that my favorite VizPlan expert has chimed in here
    I have a scenario where I am using a nested SQLScript based calc view. One view (child view) retrieves a relatively small data set, then the main CV takes that and joins with a bunch of other data from another schema.
    When I started out, just the nested portion of (child calc view), takes roughly 800ms to return it's resultset, for which I was pleased. Now, when I added some other joins onto that dataset in the main CV, I am seeing my runtime spike to approximately 16 seconds, with 15 seconds being spent on a "Create Temp Index" process that only results in 12 rows (from what I can see).
    Now the question becomes - since I have identified where 95+% of my runtime is being generated, how can I really pinpoint what operation is causing this? I was thinking the ID column (shown in the details) may offer some clues if one knew how to locate the details in a system table somewhere?
    Otherwise, all I can see in the VizPlan is that YES there is a long running component, but I have no idea what it might be, therefore can't do anything about it
    Regards,
    Justin

  • Why do i get 2 curves and not just 1 when i create a diagram from a row of data in a table ?

    Why do I get 2 curves and not just i when I create a diagram from a row af data in a table ?

    Erik,
    Thank you for giving me the points.  Generally you wait to award points until your problem is solved.  It is totally your at your descretion.
    OK.
    This is still not clear.  To post a screenshot get the "stuff" you want to show in view on your screen, then type the key combination <Command>+<Shift>+3.  The cursor will change to a crosshair.  Click and hold on the top-left corner, then drag to enclose what you want to show (to the bottom-right corner), then release.  The screenshot will appear on your desktop and will be named something like "".
    Now click the camera icon in the tool bar for this forum:
    , click the text box to allow you to navigate to, and select your screenshot.
    Here is what you sent me:
    The graph does not seem to be associated with the table of data you are showing.  Generally when you highlight a graph the corresponding table will highlight and show the source of each of the series in the graph (dark and light blue).
    This is what I would expect to see when highlighting a graph:
    Right now I think there is ANOTHER table arround that is the source for the graph and the table you show is "just another table".  You can move your data into the table the graph refers to by copy and paste, or simply typing the values.  You can change how many series there are by grabbing the little circle at the bottom right of the highlighted cells (when you have the graph highlighted) and dragging as shown:
    The Numbers Users' Guide is a great resource you should utilize and can be found here:
    http://support.apple.com/manuals#macosandsoftware
    The chapter on graphing (or charting) is 7 and starts on page 134.

  • Why did my library duplicate itself and how do I remove it?

    Why did my library duplicate itself and how do i remove them?

    An iTunes manual? It is supposed to be so intuitive you don't need a manual.
    http://www.apple.com/itunes/how-to/
    Most people don't have issues, but most people posting here do, obviously, why else would they come?
    With regards to the way iTunes works (when it is working as it is supposed to) if you use the software the way the designers expected you to it all works out OK. The problems start with those of us who think things should work slightly differently and get then confused with the results. At that point you either have to learn to work the way the program expects you to, or work around it. I encourage people to do work with it, as is easier, but in practice I write scripts to enforce my will on iTunes.
    tt2

  • My mac won't read my external harddrive's videos that I took with my Nikon.  Half the videos won't play, and those are .avi files.  WHY won't they play anymore and how can i retrieve them?

    My mac won't read my external harddrive's videos that I took with my Nikon.  Half the videos won't play, and those are .avi files.  WHY won't they play anymore and how can i retrieve them?

    What exactly is your problem? Is it, (a) your Mac doesn't read your external disk, or, (b) you can't retrieve your videos, or, (c) you can't play them, or, (d) you were able to play them at one point, but not any more.
    What version of Mac OS X are you using, what app are you trying to play your videos with, what happens when you do, and what error messages, if any, do you get?

  • My iphone 4 screen has been smashed how can i get it replaced and how much

    hi my iphone 4 screen has got smashed how do i get it fixed and how much i can get it changed december because i have had it 24 months but i am finding it hard to see screen as i use it for work so staff can get intouch.

    In the U.S :
    Out-of-Warranty Service
    If you own an iPhone that is ineligible for warranty service but is eligible for Out-of-Warranty (OOW) Service, Apple will service your iPhone for the Out-of-Warranty Service fee listed below.
    iPhone model
    Out-of-Warranty Service
    iPhone 5
    $229
    iPhone 4S
    $199
    iPhone 4, iPhone 3GS,
    iPhone 3G, Original iPhone
    $149
    A $6.95 shipping fee will be added if service is arranged through Apple and requires shipping. All fees are in U.S. dollars and are subject to local tax. "

  • Help iPhone 4 "Power Button doesn't work", how can I get repair it and how much will cost, want to keep same phone everything works fine not power button. :(

    My iPhone 4 power button doesn't work, how can I get repair it and how much will cost, want to keep same phone everything works fine not power button not working unable used my phone. My warranty is Expired how much will cost to put it on my phone plan? Thanks!

    Hi Julio,
    Here's a link for your question:
    http://support.apple.com/kb/index?page=servicefaq&geo=United_States&product=ipho ne
    Cheers,
    GB

  • My iPhone4 back scrren is cracked. I have purchasded it from US and using it in India after factory unlock. How can I get it done and how much it would cost me.

    My IPhone4 back screen is damaged. I have puchsed it from US and using in India after factory restore.
    How can I get it repaired and how much it would cost me for original part to to be replaced.

    To have Apple repair the phone, you would need to send it to someone you know in the US to have him or her bring it to Apple for repair.  The iPhone warranty is NOT international.  In addition, Apple doesn't sell parts.

Maybe you are looking for

  • Activation Key's

    I have been downloading a large number of fulltrack music songs onto my nokia N91 and have encountered a problem with regards to Activation keys. I had no problem at first, but i have now developed an issue when trying to play tracks. It says that th

  • After update mac os 10.9 wifi LOST CONNECTION

    After I update the lastest operation system, my air lost connection frequently. Each time I have to manually turn off the Wi-Fi for half minute. Then turn it up and it works again. It has happen for dozens of times. Is there anyway to fix it?

  • System is generating PR

    Dear Guru's, I have done all the settings with respect to generate schedule lines as a result of MRP Run for a material but system is generating PR instead of schedule lines. Data Maintained as followings: 1) Scheduling Agreement(Released) 2) Vendor

  • SAP Rules Best Practices - transaction MFBF

    Hello, Can you share how do you classify MFBF  (Backflush in Repetitive Manufacturing)?  My process owner claims it allows user to Scrap materials improperly and should be controlled. It is not in any function in SAP suggested rules, in my experience

  • Discount level authorization in sales order

    Hi, I have one scenario where customer want to give discount level authorization for some customer, please find below example and suggest possible solution Ex. There would be like 3 level discount authorization in sales order like sale manager 2%, ma