Class could not be loaded or is not an entity class

Hello,
I am using Berkeley DB JE 3.3.75 in a web application. I have a class which extends a Persistent class.
@Entity
public class XMessageInMemoryAdapter extends XMessage implements Serializable {
private static final long serialVersionUID = 1L;
@SecondaryKey(relate=Relationship.MANY_TO_ONE)
private int objectStatus;
@Persistent
public class XMessage extends YMessage implements Serializable {
private static final long serialVersionUID = 1L;
@SecondaryKey(relate=Relationship.MANY_TO_ONE)
private String serviceVariant;
@Persistent
public abstract class YMessage implements Serializable {
private static final long serialVersionUID = 42L;
@PrimaryKey
private String messageGroupId;
But when I try to query the PrimaryKey, an IllegalArgumentException is thrown:
java.lang.IllegalArgumentException: Class could not be loaded or is not an entity class: com.mycompany.common.model.XMessageInMemoryAdapter
at com.sleepycat.persist.impl.Store.checkEntityClass(Store.java:1175)
at com.sleepycat.persist.impl.Store.getPrimaryIndex(Store.java:313)
at com.sleepycat.persist.EntityStore.getPrimaryIndex(EntityStore.java:257)
at com.mycompany.common.memorydb.impl.StoreRefImpl.queryPrimaryIndex(StoreRefImpl.java:49)
at com.mycompany.common.memorydb.dao.MessageDao.init(MessageDao.java:67)
And here is the MessageDao ve StoreRefImpl ( I deleted irrelevant parts )
public class MessageDao {
     protected void init() {
          primaryKey = this.store.queryPrimaryIndex(String.class, XMessageInMemoryAdapter.class);
public class StoreRefImpl {
     public PK queryPrimaryIndex(Class<?> indexClass, Class<?> objectClass) {
          try {
               PrimaryIndex index = this.store.getPrimaryIndex(indexClass, objectClass); // this is where the exception is thrown
               return new PKImpl(index);
          } catch (DatabaseException e) {
               throw new DBException(e);
Everything working nice in my local machine but when we deploy the application on test server we keep getting this exception.
Thank you for your help.

Hi Yusuf,
This sounds like a classpath problem on your test server. This exception will occur if the class cannot be loaded.
Please make sure that the je-3.3.75.jar file and your app classes or jar are in the same classpath location, and that there are not multiple copies in different locations. For example, if you're deploying a servlet, be sure to place the JE jar and your app jar in the same lib directory.
--mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • CDD-23564: The file "c:\orant\BIN\cfg61.dll" could not be loaded or does not exist.

    Hi
    When I try and generate a form from Designer 6i i get the following error message :-
    CDD-23564: The file "c:\orant\BIN\cfg61.dll" could not be loaded or does not exist. However the file does exist in the specified location. I've looked thru the on-line documentation and checked the registry but can't see anything obvious. I've got the following configuration on my machine :-
    Oracle 8i (version 8.1.6) - Windows NT 4
    Designer 6i (version 6.5.52.1.0)
    Any advice would be welcome.
    Thanks
    null

    I think you would install the ORACLE FORMS 6i.

  • Can not down load I0s7 due not enough memory on my iphone5  how can i free up more memory?

    can not down load I0s7 due not enough memory on my iphone5  how can i free up more memory?

    Or, do the update while connected to iTunes, which does not require extra space on your device, and in my experience seems to be a much more reliable update method anyway.

  • I have got iphone v.4.1, i bought bowling game (US$ 0.99), due to version problem i could not down load the same (not compatable), pls let me know how to proceed further.

    I have got a iphone 3 GS version 4.1, i download bowling game (US$ 0.99), due to version mismatching i could not down load the same, i already paid for the same, please advise how to proceed the same.
    i have been told not to update my iphone to new version, otherwise it will be locked forever.
    please help me.
    chandrru iyer

    Help with what? It's YOUR responsibility to READ the requirements for any app you want to purchase. They are clearly stated on the app's info page. So, either update your phone or beg iTunes support for a refund:
    http://www.apple.com/support/itunes/

  • My files did not down load properly do not have two files zip or second folder help

    files did not down load properly need help need to build website for class do not have the zip file or second folder new to this

    Hi
    could you tell, does it gives you any error when you try to download raw files
    and i would recommend you do update the camera raw plugin
    Adobe - Adobe Camera Raw and DNG Converter : For Macintosh : Adobe DNG Converter 8.2

  • Is it possible to use Boot Camp to partition an external hard drive so there is a OSX partition and a Windows partiton?  I want to use the external drive for backup only, NOT to load Windows and NOT to use as a boot drive.

    I have partitioned the internal hard drive and am running Lion and Win7 Pro on my iMac i5 2.7GHz with 16GB RAM.  Can I use Boot Camp to create a Windows partition on an OSX external hard drive to use for backing up both systems to the same HDD?  I do NOT want to install OSX Lion or Windows 7 Professional on the external drive.  I do NOT want to boot either system from the external drive.  The 3TB external drive is for backup only.

    Use NTFS for Windows and buy Paragon NTFS for OS X
    You can also try Paragon HFS for Windows
    As long as you are using for data and backups, you can leave the drive as GPT too.
    I would recommend strongly to always have a 2nd bootable Mac OS drive, only need 30GB partition. System maintenance. Though LIon Recovery Mode finally makes it less but not totally unneeded.
    And yes you can use Windows to create a partition.
    Boot Camp is too broad. Do you want or mean BC Assistant? not needed but probably possible.
    MBR has trouble with 3TB drives.

  • Sometimes after trying to load videos, Firefox will not finish loading and will not load any website afterwards. The ONLY way to fix it is by pulling the modem for a few minutes.

    When I try to load videos, there is a good chance the video will randomly stop loading, and nothing is accessible until I turn off the modem. Restarting my computer, clearing my browser cache, cookies, etc. None of that works. I've had "slightly" better luck immediately pausing a video and letting it buffer entirely, but that still doesn't work all the time. Surfing has just become a gamble until I just get frustrated.

    Is anyone here to help?

  • [SOLVED]GNOME-SYSTEM-TOOLS: The configuration could not be loaded

    Hello there!
    I'm a ubuntu user completely new to arch. I got my desktop up and running but there seems to be a problem setting up the gnome-system-tools program. Whenever I try to laaunch any application in this package I get this error message:
    The configuration could not be loaded
    You are not allowed to access the system configuration.
    I tried the solution on this forum thread (http://bbs.archlinux.org/viewtopic.php?id=45854 ), but to no avail. I am still getting the same error message. This is my DAEMONS line in rc.conf:
    DAEMONS=(syslog-ng hal stbd !network !dhcdbd !networkmanager wicd netfs crond alsa fam gdm)
    I have added both my user and root to the stb-admin group, this is the part of my groups file that shows this:
    stb-admin:x:103:root,abhishek
    Can anyone please help me figure out where I'm going wrong.
    Many thanks in advance.
    Last edited by bhadotia (2012-02-16 00:50:03)

    I was reading post installation wiki and found the following command to reinstall the whole system:
    pacman -S $(comm -3 <(pacman -Qq) <(pacman -Qqm))
    As a few things were not going right and I was unable to solve the problems using the ordinary methods, I decided to run the above command and now everything seems to be working fine .Though I'm not sure that this will remain like that, as the process was inturrpted a couple of times such that I had to hard reset the laptop.
    But everything seems to be going fine now - the system tools have started to work normally and another gnome-related problem has been solved.:D

  • Images not getting Loaded while running Java Application through jar file

    Hello Friends,
    I have a problem while starting my application.I have written my application using pure java.There is no JSP or anything just pure swings.Mine is a standalone appplication.So i used to run it using a batch file.And when i used to start my application it used to not show me the images.so what i did was i mentioned the starting directory in the properties of the batch file (ie in the start in column field).But that was when i was using weblogic server.And i have lot of people working on the same application.so i used ZAC publisher in weblogic and along with that i used to publish the batch file also.so the users dint have any problem.But now what is my problem is i m trying to use JAVA Webstart instead of weblogic ZAC.Now in webstart what happens is that i have to run the appliaction thru jar file.so where do i mention the class path so that the images get loaded.As of now the imaes are not getting loaded.i feel this is a class path problem.but where do i mention it that is my problem.It would be really helpfule if someone could help me out.
    thanx and regards,
    [email protected]

    try out this
    ImageIcon img1=new ImageIcon(this.getClass().getResource(imagename));
    for exmaple
    Imageicon img1=new ImageIcon(this.getClass().getResource("name1.jpg"));
    dont 4get to include the image files in the jar file

  • Adf bc jar for base entity classes and extending them existing  project

    Hi,
    I am using jdev 11.1.1.0 and have created a base workspace/project and adf jar for my base entity classes.
    1. I can consume this base adf bc jar in a separate new consuming workspace and create VO based on base bc classes or create new EOs that extend base bc entity classes.
    2. Furthermore, for an existing consuming project that earlier included src/ of base entity (BC components), i can remove the dependency on bc source and bring in this new adf jar and everything including the view controller and the service/datacontrol works fine.
    The issue i am running into is as follows.
    - In the existing project (#2) above i try to create a couple of entities based on entities in my base jar; associations are automatically brought in. Note i am not overriding any attributes. My intent here is to generate .java and implement some code.
    - I then try to make my existing VOs based on the newly extended entity (VO overview->Entity Objects-> Shuttle NewEntity from Available to Selected)
    - I then try to remove the old EO from selected under VO overview->Entity Objects->Shuttle OldEntity from Selected back
    - I get a warning dialog box that says something to the effect that some viewlinks are dependent on these old EOs in this consuming project.
    - I tried to laboriously analyzed dependencies and it this dialog box does not make any sense as I have already extended EOs and the tooling should be able to let me use these
    My questions
    - Why I am not able to remove old entities from VO dependencies
    - Is it ok to leave the old EOs in "Selected" along with the newly extended EO ? What are the implications for this?
    - I also thought about extending base associations, but did not go anywhere.
    In general, I am ok with consuming an ADF BC jar that has entities etc. but not clear about removing dependencies of base EOs on VOs when entities are extended and consumed in a pre-existing project that used base entities.
    I can send a project if any PM is willing to take a look at it.
    Thanks,
    ps:
    I have already gone over the following info
    http://technology.amis.nl/blog/215/organization-of-bc4j-domain-eo-and-business-vo-package
    .. wants to create an enterprise data model in BC4J, reflecting the Enterprise Data Model set up in the RDBMS. All (or at least most) business rules will be implemented in the Middle Tier – to take the load of the database and also allow developers not comfortable with PL/SQL to define and maintain the business rules. It is clear that this means that all applications that need to access – and manipulate – the database, need to go through the BC4J foundation layer. Martijn wants to define the Entity Objects – and their business rules – only once and share that definition between different projects. Each projects can create its own ViewObjects on top of these shared Enterprise Entity Objects.
    http://radio-weblogs.com/0118231/2005/09/29.html
    I am currently working on a project for a partner where we will be using ADF BC as our model layer for a large application. In order to keep the footprint of each application module down to a reasonable size, we are intending to create a number of separate 'root' application modules for each functional area of the application. Within, these 'root' application modules we will then use nested application modules to further partition the application. All of the application modules will be accessing the same datasource and will need access to the same database objects.
    In order to separate our code between the development team and into function areas, our initial thoughts were that we would create an ADF BC model project containing Entity Objects for all of the database tables e.t.c. as these are common amongst all functional areas. We have configured all of the EOs for validation rules, defaulting values and extending doDML() as appropriate. Happy at this stage we then created a simple .jar file to deploy all of the definitions. Upon creating a new ADF BC project for each functional area we added the jar file as a library import into the new project. However when we the tried to create some new View Objects via the JDev Wizard we were unable to see the imported Entity Objects.
    Is the only way to share Entity Object definitions between different ADF BC projects to manually copy the source definition files into the new projects src directory? Since this would mean multiple copies of the same components, it could prove to be a maintenance nightmare.Is there a way of doing it without creating multiple copies of the same object definitions?
    The developer is spot on in their ideas of layering and reuse, and even has created a library for their reusable entities. This last step is not something everyone thinks to do. The missing step is known as "importing" components, so with that one extra bit of knowledge under his belt, he should be able to do exactly what he envisions. My little article called Difference Between Adding and Importing Business Components tries to explain the difference and gives the menu options to choose to perform the importing.
    Difference between adding and importing BC4J
    http://radio-weblogs.com/0118231/stories/2005/08/11/differenceBetweenAddingAndImportingBusinessComponents.html
    Working with Libraries of Reusable Business Components
    http://download.oracle.com/docs/cd/B32110_01/web.1013/b25947/bcadvgen.htm#CHEFECGD

    Hi,
    since you followed the OC4J developer guide I think this question might be better handled there as well
    OC4J
    So in case you don't get an answer here on the forum, try it on the OC4J forum
    Frank

  • Class or interface could not be loaded?

    I am very new to coding in general, ini fact this is my fisrt crack at it, and right now I'm just going off a tutorial, but for whatever reason i'm having an issue that the class/interface not being loaded.
    My code right now is:
    class ship extends MovieClip
         var velocity;
         function onLoad()
              velocity = 10;
         function onEnterFrame()
              _x = _x + velocity;
    Essentailly when I test play this i should see my object going across the screen, but instead it does nothing and i get the error:
    "Symbol=Ship, layer=1, frame=1, Line 1      The class or interface 'Ship' could not be loaded."
    I do have the .fla and .as saved in the same file, but does it matter where that file is located, or have I come across some basic mistake or..?
    I'm using ActionScript2.0 for this.
    (Very secondary, but does anybody have any tutorial reccomendations?)

    You have the .fla and .as saved in the same file? Or the same folder?
    Also you will notice that you have
    class ship extends MovieClip
    But it looks like for your symbol you have given it a defintion of Ship. (Caps matter!)
    Your code should be capitalized, as should the name of the Ship.as file. You will notice that the Flash classes all start with a cap and that instances start with lowercase letters. You don't have to do this, but it makes it easier to know what is what.
    As a recommendation I would recommend the book by Keith Peters, Making things move. And also unless you have an overwhelming need to learn AS2, I would recommend skipping it and moving right to AS3.

  • The MBean class could not be loaded by the default loader repositor

    Im trying to register a custom MBean to WebLogic 8.1 Sp5 Application Server but i get this error :
    The MBean class could not be loaded by the default loader repository .
    i have make a servelt that registers the Managed Bean i added the MBean jar file to the WAR file of the servelt and I added the Mbean jar file to the CLASSPATH in setEnv.cmd for the domain
    the code for the servlet is this :
    try
    Hashtable props = new Hashtable();
    props.put( Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory" );
    props.put( Context.PROVIDER_URL, "t3://naiden:7001" );
    props.put( Context.SECURITY_PRINCIPAL, "admin" );
    props.put( Context.SECURITY_CREDENTIALS, "secret:)" );
    InitialContext ctx = new InitialContext( props );
    mbeanServer = ( MBeanServer )
    ctx.lookup( "weblogic.management.server" );
    logger.debug( "domain name e " + mbeanServer.getDefaultDomain() );
    catch( NamingException ne )
    error=ne.getMessage();
    logger.debug( ne.getMessage() );
    try {
    ObjectName objName = new ObjectName("isy:Name=NaidenStandardMBean");
    mbeanServer.createMBean("samplembean.Standard", objName);
    catch( MalformedObjectNameException ex )
    }

    You should use jre 1.5 or 1.6 for migmon from 7.10. It looks like your jre is 1.4.

  • The class or interface 'MouseEvent' could not be loaded

    I am creating a swf file that would get populated with images
    and text taken entirely from an XML file from the local folder. All
    i need to do now is manouver between the images using a click of a
    button. Say there are some images lined up one below the other and
    there would be a button on screen.. on click of which the focus has
    to shift from one image to the other. To achieve this functionality
    i have created a Movie Clip that would act as the BG for the Images
    to show that the image is in Focus. I check the current location of
    the Movie Clip on cick of the button and then set the next location
    of the Bg movie clip accordingly.
    The Functionality of moving/changing coordinates of the movie
    clip on click of a button works fine when done separately in a new
    file, but when combined with the code where the XML gets parsed and
    the Imges are set on the UI, it gives me an error -- "The class or
    interface 'MouseEvent' could not be loaded"
    I'm adding my code below
    RPNext_btn.addEventListener(MouseEvent.CLICK, clickHandler);
    function clickHandler(event:MouseEvent):void {
    trace("here");
    var XCo = SwatchBGRght_MC.x;
    var YCo = SwatchBGRght_MC.y;
    trace("X coordinate::"+XCo);
    trace("Y coordinate::"+YCo);
    if(YCo==145){
    //SwatchBGRght_MC.y = 282.2;
    if(YCo==282.2){
    //SwatchBGRght_MC.y = 419.4;
    if(YCo==419.4){
    //SwatchBGRght_MC.y = 145;
    __________________________________

    Well, I guess I'll have to see the code, that is NOT
    functioning, to track this error down.

  • The class or interface could not be loaded...?

    I'm doing a simple link code. I've tried many diferrent ways to do this but this error keeps comming up saying The class or interface could not be loaded...
    home_btn.addEventListener(MouseEvent.CLICK, gotoURL);
    function gotoURL(event:MouseEvent):Void
    navigateToURL(new URLRequest("my site"));
    This is the most recent method I've tried in doing this. I've tried changing the publishing settings of the document to and from Action Script 3.0- using an import command. But thats too complicated. I know this is simple... but can anyone please help?

    Thanks, but whenever I change the publish settings back to As3 the flash tween gets caught in a loop and it doesn't end, it just re-runs the swf over and over again. I'm not sure how to fix this problem now.
    I even tried to add a stop(); at the beginning of the new script.
    stop();
    home_btn.addEventListener(MouseEvent.CLICK, gotoURL);
    function gotoURL(event:MouseEvent):Void
    navigateToURL(new URLRequest("http://www.knirv.com"));
    I'm still getting an error message saying "1046: Type was not found or was not a compile-time constant: Void."...However, I'm sure your advice to upload to my server will solve this. Much thanks for the expertise

  • The class or interface 'flash.utils.ByteArray' could not be loaded.

    Hi all, I am trying to use some of the new functionality that
    is available in AS3 and I keep getting an unfathomable error
    message. The code that I am using is at the bottom of this post.
    No matter what I do I keep getting the following error when I
    compile this code
    The class or interface 'flash.utils.ByteArray' could not be
    loaded.
    And the source line is
    var pixels:ByteArray = srcBmp.getPixels( new
    Rectangle(0,0,imageWidth,imageHeight) );
    Can anybody see what I am doing wrong here? This is driving
    me crazy!!

    I AM THE ULTIMATE CHUMP!!!!!
    I finally figured it out, you can tell I am new to Flash!
    Anyway, I assumed that by selecting ActionScript 3.0 in my
    Actions frame then this ias the version that would be used when the
    movie was exported. However I have found out that I should also
    have been setting the ActionScript version to 3.0 in the Publish
    settings page to. I feel like such an idiot!!!

Maybe you are looking for

  • Check printing with out bank details amount etc

    Hi Gurus, When I am running APP it is running perfectly when I am looking in own spool request I am getting the check details but in check column Bank Details XXXXXX Check Number XXXXXX  Void I am not able to get the check details

  • How to build bundle information for FFT analysis

    Hi guys I'm trying to read information from NI DAQ one data at a time with an interval of 20ms, which is 50Hz. I tried to bundle up the information using "bundle" function with the t0 and dt(0.02) however, FFT keep showing only one peak at 0Hz am I d

  • InDesign CS6 - wo online registrieren?

    Ich habe die Creative Suite 6 Design Standard erworben. Photoshop klappt Prima, InDesign geht nur als Testversion ....? Muss ich jedes Element einzeln registrieren und wenn dann wo? Auch die Hilfe-Eingabe spuckt hier kein Ergebnis aus ...

  • SAP note related to QA08 transaction

    Hi all, I am trying to activate inspection type using QA08 Transaction (for which we have written a BDC). The program runs successfully but the client says there is an internal error due to which the subsequent transactions are affected. We are prett

  • Annotations in Mail

    I just moved to Mail from Eudora. There I had the possibility to annotate received messages - which I did a lot, comments, actions to take etc. There doesn't seem to be such a function in Mail. Is there a way aroud this limitation?