New problem  --  My java code can't see my CLASSES from Mapping Workbench

Donald and others -
I am VERY new to TopLink......
I was at the last Oracle Developer Days in Northern Virginia. Donald convinced me and my co-workers to use TopLink for our upcoming project. I have been having tons of problems getting it to work correctly. Maybe I need a TOPLINK license plate, like Donald!!!
Here is my newest problem. I can create a DatabaseSession, login to it, write a query and log out of it.
However, I can only do this if I remove my classes from the Mapping Workbench. As soon as I add even one class to the Mapping Workbench......I get an error as follows:
LOCAL EXCEPTION STACK:
EXCEPTION [TOPLINK-3007] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exceptions.ConversionException
EXCEPTION DESCRIPTION: The object [mil.usa.lbit.isr.TestIsr], of class [class java.lang.String], could not be converted to [class java.lang.Class]. Please ensure that the class [class java.lang.Class] is on the CLASSPATH. You may need to use alternate API passing in the appropriate class loader as required, or setting it on the default ConversionManager
INTERNAL EXCEPTION: java.lang.ClassNotFoundException: mil.usa.lbit.isr.TestIsr
Can anyone tell me where I need to put my class files so the java code can see them via the ISR.xml deployment file.
I currently have these files in a .jar file on the system path and in my web-inf folder and in my project settings. I put them everywhere I could think of, but no luck.
Here is my code:
package mil.usa.lbit.isr;
import mil.usa.lbit.LbitColors;
import java.util.*;
import java.math.*;
import oracle.toplink.sessions.*;
import oracle.toplink.tools.schemaframework.*;
import oracle.toplink.exceptions.*;
import oracle.toplink.expressions.*;
import oracle.toplink.queryframework.*;
import oracle.toplink.tools.workbench.*;
public class TestIsr extends ISR {
public DatabaseSession session;
     public Project project;
public TestIsr() {
this.name = "TestISR";
this.color = LbitColors.AMBER;
this.metric = 97.00;
public boolean isConnected() {
if (session == null)
System.out.println("Not Connected");
return false;     
System.out.println("Connected");
return session.isConnected();
public void loginToDatabase() {
Project builderProject;
System.out.println("Attempt to login to database using TopLink:");
project = XMLProjectReader.read("C:\\LBIT TopLink\\ISR\\ISR.xml");
session = project.createDatabaseSession();
session.login();
System.out.println("Logged in");
public void runQuery() {
ExpressionBuilder builder = new ExpressionBuilder();
Expression expression = builder.get("isr_id").equal(3);
System.out.println(expression);          
//TestIsr isr = (TestIsr) session.readObject(TestIsr.class, expression);
//System.out.println(isr);     
public void logoutOfDatabase() {
session.logout();     
System.out.println("Logged out");          
public static void main(String[] args) {     
TestIsr testing = new TestIsr();
testing.isConnected();     
testing.loginToDatabase();          
testing.isConnected();
testing.runQuery();
testing.logoutOfDatabase();     
Thanks in advance.
Donald please email me and maybe we can chat on the phone if you want to offer some help.
Andy

Thanks for the reply!
However, I did try to implement that yesterday.
When I add the "getClass().getClassLoader()" to the "XMLProjectReader.read" call, the codes loses site of my project (.xml) file.
Here is the new line:
project = XMLProjectReader.read("C:\\LBIT TopLink\\ISR\\ISR.xml", getClass().getClassLoader());
Here is the new error:
EXCEPTION [TOPLINK-7099] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exceptions.ValidationException
EXCEPTION DESCRIPTION: Could not find xml project file which is specified in properties file: xmlProjectFile=C:\LBIT TopLink\ISR\ISR.xml.
     oracle.toplink.exceptions.ValidationException oracle.toplink.exceptions.ValidationException.projectXMLNotFound(java.lang.String, java.lang.Exception)
     oracle.toplink.sessions.Project oracle.toplink.tools.workbench.XMLProjectReader.read(java.lang.String, java.lang.ClassLoader)
But my code could find that file before I added the "getClass().getClassLoader()" code.
Maybe I can avoid this problem by "deploying the XML file in my application jar?" Could you please explain more about this option after answering the first part of my question.
Any other posters feel free to help me too.
I know TopLink is a powerful tool, I just keep hitting these hurdles. ARRRRRRRGGGG!!!
Thanks again,
Andy

Similar Messages

  • How can I move music from my iPod to my new computer if my computer can't SEE the music from the source?!?

    I have read through lots of suggestions for moving my music from my iPod to my new computer...but can not seem to overcome a very difficult hurdle:
    When I connect my very old iPod to my computer and click on the icon to open it, only 3 folders come up:  Calendars, Contacts and Notes.  I cannot "backup" anything useful here!
    When I open iTunes, the program can see my iPod, and lists the complete library...but I cannot KEEP it in my computer!  WHY?!?
    When I go to iTunes > File > Library, I do not get a "backup" option to use to backup my iPod music, either.
    HELP, please.  I have spent hours fiddling around trying to figure out how to do this, and am getting crankier and crankier.
    Thanks in advance...
    Kristin

    See this excellent user tip from another forum member turingtest2 outlining the different methods and software available to help you copy content from your iPod back to your PC and into iTunes.
    Recovering your iTunes library from your iPod or iOS device
    B-rock

  • I have an iPhone 4s. My problem is that I can't see the icon of FaceTime and iMessage. I need to use these apps. What should I do?

    I have an iPhone 4s. My problem is that I can't see the icon of FaceTime and iMessage. I need to use these apps. What should I do?

    Red21Gerard wrote:
    I have an iPhone 4s. My problem is that I can't see the icon of FaceTime and iMessage. I need to use these apps. What should I do?
    FaceTime:
    Check Settings>FaceTime>ON and check Settings>General>Restrictions>FaceTime>ON.  There is no icon, on the 4 & 4S FaceTime is accessed through contacts.  Go into your Contacts, access the contact you want to FaceTime with and you will see a tab at the bottom of their contact card.  You can also access FaceTime by going into your Phone app, select dialling keypad, dial number, press call and an option for FaceTime on the keypad will appear.   It should be noted that FaceTime has been removed from iPhones sold in some Middle Eastern countries at the express wish of the respective Governments.
    iMessage:
    Check Settings>Messages>iMessage>ON.  The icon is the same as your SMS icon. This support document will explain how to use iMessage http://support.apple.com/kb/HT3529

  • Hello Sorry for the inconvenience, but I have a problem in Java I can not open files, audio chat, which type of jnlp after the last update of the Java 2012-004 Please help me in solving this problem.

    Hello Sorry for the inconvenience, but I have a problem in Java I can not open files, audio chat, which type of jnlp after the last update of the Java 2012-004
    Please help me in solving this problem. 

    Make sure Java is enable in your browser's security settings.
    Open Java Preferences (in Utilities folder)
    Make sure Web-start applications are enabled.
    Drag Java 32-bit to the top of the list.
    jnlp isn't an audio file format. It's just a java web-start program (Java Network Launching Protocol).

  • My touchscreen blacks out while on a call so I can't multitask. If I am on a call and a new call comes in, I can't see who is calling or even think of answering because the screen is blacked out.

    My touchscreen blacks out while on a call so I can't multitask. If I am on a call and a new call comes in, I can't see who is calling or even think of answering because the screen is blacked out.

    Thank you so very much! My husband is in Afghanistan and calls at different times. If I am on a call and can't answer him it could be days before I hear from him again. I never thought to just restart my phone! Duh...this is my first smartphone so I am learning. All day people were calling while I was on the phone but I couldn't answer. Thank GOD none of the calls were my husband because it would break my heart if I missed his call. Thank you again and GOD bless you! Ashley Combahee

  • How to insert a new attachment via java code

    Hi everybody,
    I need add a new attachment via java code. I found the service EDIT_RENDITIONS on the Add Attachments page. But this service is not documented. Does somebody have a example how to add attachments?
    Thank you
    Martin

    Martin,
    Try the following code:
    final IdcClientManager clientManager = new IdcClientManager();
    IdcClient client;
    try {
        client = clientManager.createClient(IDC_PROTOCOL + RIDC_SERVER + ":" + RIDC_PORT);
        final String username = "sysadmin";
        final DataBinder dataBinderReq = client.createBinder();
        ServiceResponse severiceResponse = null;
        dataBinderReq.putLocal("IdcService", "EDIT_RENDITIONS");
        dataBinderReq.putLocal("dID", "1560"); // as integer
        dataBinderReq.putLocal("dDocName", "DEV2_001509"); // as string
        dataBinderReq.putLocal("renditionKeys", "addRendition0"); // as string
        dataBinderReq.putLocal("addRendition0.name", "theFileName");
        dataBinderReq.putLocal("addRendition0.description", "theFileDescription");
        dataBinderReq.putLocal("addRendition0.action", "edit");
        final String fileName = "c:\\test.txt";
        final File file = new File(fileName);
        final TransferFile tf = new TransferFile(file);
        dataBinderReq.addFile("addRendition0.file", tf); // as byte
        severiceResponse = client.sendRequest(new IdcContext(username), dataBinderReq);
        final DataBinder dataBinderResp = severiceResponse.getResponseAsBinder();
        //  DataBinder resultado = severiceResponse.getResponseAsBinder();
        System.out.println(dataBinderResp.toString());
    } catch (final IdcClientException e) {
        System.out.println(e.getMessage());
        e.printStackTrace(System.out);
    Jonathan
    http://jonathanhult.com

  • Powerbook G4 Can't "See" Wireless Signal from Ubee Modem/Router

    I was given a G4 Powerbook while out of town and it found the wireless signal in an apartment complex and a major airport just fine. But upon returning home it can't "see" the signal from my (Time Warner, Road Runner Extreme) Ubee modem/router. My Mac Mini's Airport sees the Ubee wireless signal fine, but the older Powerbook G4 can't. (The Airport signal in the menu bar has "bars" but they are grayed out.
    Can an older G4 connect with the newer Ubee modem/router? Are there security settings that will allow this?
    Tx,
    WK

    CRMDVM -- Thanks for the helpful info -- you are probably right on both counts:
    The apartments where I picked up a signal is in an "old folks" apt. complex, meaning the router I was picking up was probably old -- compatible with the G4 lineage. And the Atlanta airport probably has a wireless system to allow the vast number of old and new computers that people carry to connect.
    My Mac Mini connects via WPA2 Personal security code, and I set the G4 to the same security (in the Network preference pane) but still nothing. The Airport wireless icon in the menu bar is still grayed out -- it isn't the "blank" icon as when Airport is turned off. It has the wireless wave lines in the icon, but just grayed out.
    Maybe the G4 is just too old to "see" the newer wireless signal from the new modem/router.
    Thanks again for your help -- you definitely provided more than I knew. (btw, I'm just above you in Union County in Stallings).
    WK

  • Can't see my tables from a JDBC program

    Hi there,
    I have a JDBC program to connect to an Oracle 9i database. The problem is that I can't see the tables I create if I do something like "SELECT * FROM TAB" from a JDBC program and hence can't use them.
    If I do the same statement from SQL * PLUS, I get the the full list of my tables including the ones I created. If i do that from JDBCTest.java, I don't get to see them. I do commit my statments and have tried committing from the Java program and from the SQL Plus after creating the tables....
    Just to make sure I have checked myself, I am pretty sure that I am connecting with the same ID/Password in which I created my tables. I have also used schema.table to no avail... I have used scott/tiger and system/manager
    If i try st.executeUpdate() for example, I get the error : java.sql.sqlException: ORA-00942: table or view does not exist...
    Any help would be greatly appreciated
    Thanx :)
    Nav

    Hi MOD,
    hmmm. Sorry I am not an Oracle geek, but I am under system/manager and I created them all in there. I thought permissions are granted automatically. I tried to grant permissions to myself but had an error that I can't update them myself...
    Can you plz elaborate on how to set permissions cuz actually i installed the database (password still default) and I am not sure if there is a dba other than system/manager who could grant me permissions...
    It works on my home machine with the exact same version of Oracle and Java though and the same users and password :s
    Any other thoughts
    Thanx
    NAV

  • Can't see some letters from my Gmail box in Mail.app in MAC OS 10.8.5.

    Hello, can't see some letters from my Gmail box in Mail.app in MAC OS 10.8.5.

    The solution was to remove all versions of Acrobat Pro and reinstall Acrobat Pro XI. I still had the download file in my Time Machine backup. That's a good thing, since the download link from the order listing on the Adobe website under my account would not work.
    The problems don't occur with version 11.0.0. I got the work done, now I'm updating to 11.1.0 and will report if they came back.

  • HT1454 Can't see ipod videos from 60GB ipod classic.  I have Apple USB/video cable running through Onkyo receiver into Samsung TV. Video & TV out settings seem correct-I can see album cover, but no video. Is it possible to get itunes music videos to play

    Can't see ipod videos from 60GB ipod classic.  I have Apple USB/video cable running through Onkyo receiver into Samsung TV. Video & TV out settings seem correct-I can see album cover, but no video. Is it possible to get itunes music videos to play or do I need to get new ipod.   It works on my iPad and iPhone, but not through iPod Classic.

    Are these music videos located under Videos on your iPod?  Do it play other regular movies (if you have any on the device)?
    B-rock

  • I can see open tabs from my PC on my Mac, but I can't see open tabs from my Mac on my PC. Why?

    I've set up Sync on my work PC and my home MacBook.
    I can see open tabs from my PC while I'm on my Mac, but I can't see open tabs from my Mac while I'm on my PC. Why?

    Here is what I am seeing on my Android device - at the top, a few options like History > Top Sites> Bookmarks>Reading List. Then, the search/address bar, then to the right of that, a square with the number "1" inside it, then 3 dots that, when chosen, give you the following options:
    New Tab
    New Private Tab
    Request Desktop Site
    Tools
    Settings
    Any thoughts on how I specifically sync my Desktop open tabs to my Android device so I can then see all my desktop open tabs on my phone?
    Thanks!

  • Can't see unicode data from BI

    Hi all!
    i have the problem as follows:
    I deployed sucessfully my project from OWB (10.1.0.4) to Oracle database (10.2.0.1) but
    I can't I can't see unicode data from OracleBI Decoverer for OLAP (10.1.2).
    Could you tell me how to solve this problem!
    Thanks
    Vinh.

    Hi J1m,
    According to your description, I make a test on my computer and I am able to reproduce your issue. Firstly, I install the Visual Studio 2013 express for web successfully, create a project and connect to SQL Server database. Then I right click one table,
    and I can see all the options including ‘Show Table Data ’, ‘Open Table Definition ’, ‘Copy’, ‘Refresh’, and ‘Properties’. Next, I uninstall the SQL Server data tools, and restart the Visual Studio, right click on table, and only find  the three options
    ‘Copy’, ‘Refresh’, ‘Properties’ as the following screenshot, which is the same scenario with yours.
    Based on my test, the issue could be due to the missing or corrupt SQL Server Data Tools. To work around the issue, you should install the latest SQL Server data tools for Visual Studio 2013. You could  download the
    ISO file for SQL Server data tools and extract the ISO files to your hard drive following the methods in this
    article, and install the data tools. Please restart your computer after you complete the installation.
    Regards,
    Michelle Li

  • I have activated the cloud and can't see the documents from my mac on my iPad

    I have activated the cloud and can't see the documents from my mac on my iPad

    Has anyone found a solution to this problem? Why on earth can I only have audible books from 2 acounts on my iPod? This is B.S. Is there a way for us to sort by account on the iPod so that I can delete audio books from one of my 2 audible accounts so that I can add books from my wifes account.
    Thanks

  • How can I see my contacts from my phone on my iPad

    How can I see my contacts from my phone on my iPad

    if you have the same apple id on both devices then turn on icloud contacts and they will sync contacts

  • I got a new iPod and now I can't sync my apps from my old ipod

    I got a new iPod and now I can't sync my apps from my old ipod?

    Just what are you trying to do with the photos?
    If the photos on the old iPod are in the iPod's camera Roll album then import them to your computer:
    iOS: Importing personal photos and videos from iOS devices to your computer
    If they were synced to the iPod from another computer then you need a third-party program like TouchCopy or PhoneView to import then into your computer.
    Here is how to sync photos to the iPod:
    iOS and iPod: Syncing photos using iTunes

Maybe you are looking for

  • HTML DB 10g installation problem on linux HTTP-503 ORA-604

    I have a problem after the installation of HTML DB from the linux 10g R2 companion image. I installed HTML DB and HTTP server in one go, on an new system that only has the default orcl database installed. I run Red Hat enterprise linux on a x86_64 sy

  • Double Apple ID on two iphone

    My mum had an iphone before me, but I used my Mac and Itunes to set up something on her phone. Then we I got my Iphone I used the same Mac and Itunes and off course my ID account to set mine. So in our iphones we actually have running two Apple ID. W

  • Sql 2000 database role

    Hi , I want to grant execute permission to all SP's in SQL 2000  database, when I tried to create a db_execprocs role it is throwing an error near ROLE, and when I googled  I have found a script as  CREATE PROCEDURE dbo.spGrantExectoAllStoredProcs @u

  • Why can't I record duration as hh:mm in numbers 3.0.1?

    I'm trying to record the durations of different events in a spreadseet. I format the cells to Duration -> Custom Units -> hr and min -> Style: 0:00 Yet when I type "0:35" to record 35 minutes, I get "0:01" and in the tab on the bottom it says "Actual

  • How do you delete your billing info?

    I want to get rid of my billing info because the store won't let let download any apps was so ever.